/* FinKIT.pro - minimal UI */
/* Roboto Regular — загружаем через Google Fonts + font-face fallback */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'),
       url('/assets/fonts/Roboto-Regular.woff2') format('woff2'),
       url('/assets/fonts/Roboto-Regular.woff')  format('woff');
}

:root{
  --beige:#F4F4F4;
  --orange:#ffa500;
  --blue:#001F3F;
  --black:#000000;
  --white:#ffffff;
  --muted:#6b7280;
  --card:#ffffff;
  --border: rgba(0,0,0,.08);
  --shadow: 0 16px 40px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;
}

*{ box-sizing:border-box; }
html,body{
  font-synthesis: weight;
  height:100%; }
body{
  margin:0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight:400;
  background: var(--beige);
  color: var(--black);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header{
  position: sticky;
  top:0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244,244,244,.75);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight:700;
  color: var(--blue);
  letter-spacing: .2px;
}

.brand img{ width:34px; height:34px; }

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  font-weight:500;
  color: rgba(0,0,0,.75);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(0,0,0,.04);
  text-decoration:none;
}


/* --- mobile nav toggle --- */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.nav-toggle:hover{ background: rgba(255,255,255,1); }
.nav-toggle-icon{
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: background .2s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background: var(--blue);
  border-radius:2px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle-icon::before{ top:-7px; }
.nav-toggle-icon::after{ top:7px; }

body.nav-open .nav-toggle-icon{ background: transparent; }
body.nav-open .nav-toggle-icon::before{ top:0; transform: rotate(45deg); }
body.nav-open .nav-toggle-icon::after{ top:0; transform: rotate(-45deg); }

/* Оранжевый акцент при наведении на навигацию */
.nav a:not(.btn):hover{
  color: var(--orange);
}

.nav .btn,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border: 1px solid rgba(0,0,0,.12);
  background: var(--white);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none !important;
}

.btn-primary{
  background: var(--orange);
  border-color: rgba(0,0,0,.05);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,165,0,.25);
}

.btn-primary:hover{ filter: brightness(.98); }
.btn-outline{
  background: transparent;
  border-color: rgba(0,0,0,.18);
  color: var(--blue);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  color: rgba(0,0,0,.75);
  font-size: 13px;
}

.hero{
  padding: 56px 0 26px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items:center;
}

.h1{
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  color: var(--blue);
  margin: 10px 0 14px;
}

.lead{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,.7);
  margin: 0 0 22px;
  max-width: 56ch;
}

.hero-card{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.form-row{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}

.input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  outline:none;
  font-size: 15px;
}

.input:focus{ border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,165,0,.15); }

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.section{
  padding: 44px 0;
}

.section-title{
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--blue);
  padding-left: 12px;
  border-left: 4px solid var(--orange);
}

.section-sub{
  margin: 0 0 22px;
  color: rgba(0,0,0,.68);
  line-height: 1.6;
  max-width: 70ch;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 32px rgba(0,0,0,.05);
}

.card h3{
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 18px;
}

.card p{
  margin: 0;
  color: rgba(0,0,0,.7);
  line-height: 1.55;
}

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step{
  position:relative;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.step .num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  margin-bottom: 10px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.note{
  border-left: 4px solid var(--orange);
  padding: 12px 14px;
  background: rgba(255,165,0,.08);
  border-radius: 12px;
  color: rgba(0,0,0,.75);
  line-height: 1.55;
}

.contact-card{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  flex-direction: column;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.contact-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  color: rgba(0,0,0,.75);
}

.contact-item .icon{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0,31,63,.07);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.footer{
  padding: 22px 0 34px;
  border-top: 1px solid var(--border);
  background: rgba(244,244,244,.65);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
}

.small{
  font-size: 13px;
  color: rgba(0,0,0,.65);
  line-height: 1.55;
}

hr.sep{
  border:0;
  border-top:1px solid var(--border);
  margin: 18px 0;
}

.auth-wrap{
  min-height: calc(100vh - 76px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 34px 0;
}

.auth-card{
  width: min(520px, calc(100% - 40px));
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-card h1{
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 40px;
  line-height: 1.05;
}

.auth-card p{
  margin: 0 0 18px;
  color: rgba(0,0,0,.7);
}

.field{
  margin-bottom: 14px;
}

.label{
  display:block;
  font-weight:600;
  color: rgba(0,0,0,.75);
  margin: 0 0 6px;
}

.help{
  font-size: 13px;
  color: rgba(0,0,0,.6);
  margin-top: 6px;
  line-height: 1.4;
}

.row-between{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}

.alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.85);
  color: rgba(0,0,0,.75);
  line-height: 1.5;
  margin-bottom: 14px;
}

.alert.error{
  border-color: rgba(185,28,28,.25);
  background: rgba(254,242,242,.9);
}

.alert.ok{
  border-color: rgba(22,163,74,.25);
  background: rgba(240,253,244,.9);
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
}

.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size: 14px;
}

.table th{
  font-weight:700;
  color: rgba(0,0,0,.75);
  background: rgba(244,244,244,.7);
}

.table tr:last-child td{ border-bottom:0; }

.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.kpi .box{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.kpi .box .big{
  font-size: 34px;
  font-weight:700;
  color: var(--blue);
}

.kpi .box .cap{
  margin-top: 4px;
  color: rgba(0,0,0,.65);
  font-size: 13px;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .kpi{ grid-template-columns: 1fr; }
  .header-inner{ position: relative; padding: 10px 0; }
  .nav-toggle{ display:inline-flex; }
  .nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: rgba(244,244,244,.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  body.nav-open .nav{ display:flex; }
  .nav a{ padding: 12px 16px; border-radius: 0; }
  .nav a:hover{ background: rgba(0,0,0,.04); }
  .nav .btn{ width: calc(100% - 32px); margin: 8px 16px 0; }
  .nav .btn-outline{ margin-top: 10px; }
  .brand img{ width:30px; height:30px; }

}


/* --- course section --- */
.section-course .cards{ margin-top:18px; }
.course-cta{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }


/* --- Курсы криптовалют --- */
.section-rates { background: var(--beige); }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-subtitle { margin: 0; color: var(--muted); }
.rates-meta { color: var(--muted); font-size: 14px; }

.rates-table-wrap { margin-top: 18px; overflow-x: auto; }
.rates-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 820px; }
.rates-table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--blue);
  background: var(--beige);
  border-bottom: 1px solid var(--border);
  padding: 14px 14px;
  white-space: nowrap;
}
.rates-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--beige);
  white-space: nowrap;
}
.rates-table tbody tr:hover td { background: rgba(255,255,255,.92); }

.ta-right { text-align: right; }
.muted { color: var(--muted); }
.rates-loading { text-align: center; color: var(--muted); padding: 22px 14px; }

.pos { color: #128a3c; font-weight: 600; }
.neg { color: #c52828; font-weight: 600; }

.rates-note { margin-top: 10px; color: var(--muted); font-size: 12px; }


@media (max-width: 420px){
  .container{ width: calc(100% - 24px); }
  .brand span{ display:none; }
}

.consent-text a{
  color: var(--orange);
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
.consent-text a:hover{
  color: var(--blue);
}

/* Ссылки на документы в согласиях должны быть видимыми */
.consent-text a{
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
  color: var(--blue);
}
.consent-text a:hover{
  color: var(--orange);
}

/* Модальные окна */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal.show{ display: flex; }
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.modal__card{
  position: relative;
  width: min(560px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal__title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}
.modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 14px;
}
.qr-img{
  display:block;
  width: 220px;
  height: 220px;
  margin: 12px auto 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}


.order-box{
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.order-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.order-row:last-child{
  border-bottom: none;
}
.order-row span{
  color: var(--muted);
  font-size: 14px;
}
.order-row strong{
  color: var(--blue);
  text-align: right;
}
.order-row--total strong{
  font-size: 18px;
}
@media (max-width: 640px){
  .order-row{
    flex-direction: column;
    align-items: flex-start;
  }
  .order-row strong{
    text-align: left;
  }
}


.status-toast{
  position: fixed;
  top: 92px;
  right: 20px;
  width: min(420px, calc(100% - 24px));
  margin: 0;
  z-index: 10002;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

@media (max-width: 640px){
  .status-toast{
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}
