:root{
  --bg:#ffffff;
  --bg2:#f6f7fb;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --border:rgba(15,23,42,.10);
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --accent:#2563eb;
  --accent2:#1d4ed8;
  --pill:#eef2ff;
  --pillText:#1e40af;
  --glass: rgba(255,255,255,.65);
  --code:#0b1220;
}

html[data-theme="dark"]{
  --bg:#0b1220;
  --bg2:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --card:#0f172a;
  --border:rgba(148,163,184,.16);
  --shadow: 0 14px 38px rgba(0,0,0,.35);
  --accent:#22c55e;
  --accent2:#16a34a;
  --pill: rgba(34,197,94,.12);
  --pillText:#86efac;
  --glass: rgba(15,23,42,.7);
  --code:#0b1220;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

a{color:inherit; text-decoration:none}
code{background: rgba(2,6,23,.06); padding:.15rem .35rem; border-radius:.45rem}
html[data-theme="dark"] code{background: rgba(255,255,255,.08)}

.container{width:min(1120px, calc(100% - 32px)); margin:0 auto}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .header{ background: rgba(11,18,32,.55); }

.header__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; gap:12px; align-items:center}
.brand__mark{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:800;
  background: var(--pill);
  color: var(--pillText);
  border:1px solid var(--border);
}
.brand__name{font-weight:700; line-height:1.1}
.brand__tag{font-size:12px; color: var(--muted)}

.nav{display:flex; gap:14px; align-items:center}
.nav__link{font-size:14px; color: var(--muted)}
.nav__link:hover{color: var(--text)}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: transparent;
  cursor:pointer;
  font-weight:600;
}
.btn--primary{
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color:#fff; border-color: transparent;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}
html[data-theme="dark"] .btn--primary{ box-shadow: 0 10px 22px rgba(34,197,94,.18); }
.btn--ghost{
  background: rgba(2,6,23,.04);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .btn--ghost{
  background: rgba(255,255,255,.10);
  border-color: rgba(148,163,184,.22);
  color: #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn--ghost:hover{
  filter: brightness(0.98);
}
html[data-theme="dark"] .btn--ghost:hover{
  background: rgba(255,255,255,.14);
}
.btn--lg{padding:12px 16px; border-radius:14px}
.btn .icon{opacity:.9}

.burger{display:none; background:transparent; border:0; cursor:pointer}
.burger span{display:block; width:22px; height:2px; background: var(--text); margin:5px 0; border-radius:2px}

.mobile{display:none; padding:10px 0 18px; border-top:1px solid var(--border)}
.mobile__link{display:block; padding:10px 0; color: var(--muted)}
.mobile__btn{width:100%; justify-content:center; margin-top:10px}

.hero{padding:52px 0 24px}
.hero__inner{display:grid; grid-template-columns: 1.15fr .85fr; gap:24px; align-items:start}
.pill{
  display:inline-flex; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: var(--pill);
  color: var(--pillText);
  font-weight:700;
  font-size:12px;
  border:1px solid var(--border);
}
.hero__title{font-size:44px; line-height:1.05; margin:16px 0 10px}
.hero__subtitle{font-size:16px; color: var(--muted); margin:0 0 18px; max-width:56ch}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px}

.hero__meta{display:flex; gap:14px; flex-wrap:wrap}
.meta{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,.55);
}
html[data-theme="dark"] .meta{background: rgba(15,23,42,.6)}
.meta__kpi{font-weight:800; font-size:18px}
.meta__txt{font-size:12px; color: var(--muted)}

.hero__meta--panel{
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

html[data-theme="dark"] .hero__meta--panel{
  background: rgba(15,23,42,.65);
}


.hero__meta--panel{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.55);
  display:flex;
  flex-direction:column;
  gap:14px;
}

html[data-theme="dark"] .hero__meta--panel{
  background: rgba(15,23,42,.65);
}
.meta__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.hero__meta--panel .meta{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.60);
}

html[data-theme="dark"] .hero__meta--panel .meta{
  background: rgba(11,18,32,.35);
}

/* верхний (широкий) можно сделать чуть "главнее" */
.hero__meta--panel .meta--wide{
  background: rgba(255,255,255,.72);
}

html[data-theme="dark"] .hero__meta--panel .meta--wide{
  background: rgba(15,23,42,.55);
}

.meta--mini{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,.6);
}
html[data-theme="dark"] .meta--mini{
  background: rgba(11,18,32,.35);
}
@media (max-width: 768px){
  .meta__row{
    grid-template-columns:1fr;
  }
}
.meta--wide .meta__kpi{ font-size:18px; }
.meta--wide .meta__txt{ max-width: none; }


.card{
  border:1px solid var(--border);
  border-radius:16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card--glass{background: var(--glass)}
.card--soft{background: rgba(255,255,255,.55)}
html[data-theme="dark"] .card--soft{background: rgba(15,23,42,.65)}
.card__title{padding:16px 18px 0; font-weight:800}
.card__body{padding:12px 18px 18px}

.steps{margin:0; padding-left:18px; color: var(--muted); line-height:1.6}
.steps--modal{color: var(--muted); padding-left:20px}

.hint{
  margin-top:14px;
  padding:12px 12px;
  border-radius:14px;
  border:1px dashed var(--border);
  color: var(--muted);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hint__line{
  display:flex;
  gap:10px;
  align-items:flex-start;
  line-height:1.45;
}

.hint__line--sub{
  margin-top:2px;
}

.hint__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  margin-top:5px;
  flex: 0 0 10px;
}

.hint__dot--green{ background: var(--accent); }
.hint__dot--red{ background: #ef4444; }

.kv{display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border)}
.kv:last-child{border-bottom:0}
.kv__k{color: var(--muted); font-size:13px}
.kv__v a{color: var(--text); font-weight:700}
.muted{color: var(--muted)}

.section{padding:44px 0}
.section__title{font-size:28px; margin:0 0 8px}
.section__subtitle{margin:0 0 18px; color: var(--muted)}

.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.feature{
  padding:18px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.55);
}
html[data-theme="dark"] .feature{background: rgba(15,23,42,.65)}
.feature__icon{font-size:18px}
.feature__title{margin-top:10px; font-weight:800}
.feature__text{margin-top:6px; color: var(--muted); line-height:1.55}

.how{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:10px}
.how__card{
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.55);
  padding:18px;
}
html[data-theme="dark"] .how__card{background: rgba(15,23,42,.65)}
.how__n{width:34px; height:34px; border-radius:12px; display:grid; place-items:center; font-weight:900; background: var(--pill); color: var(--pillText); border:1px solid var(--border)}
.how__t{margin-top:10px; font-weight:900}
.how__d{margin-top:6px; color: var(--muted); line-height:1.55}

.center{display:flex; justify-content:center; margin-top:18px}

.faq{display:grid; gap:10px}
.faq__item{
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.55);
  padding:14px 16px;
}
html[data-theme="dark"] .faq__item{background: rgba(15,23,42,.65)}
.faq__item summary{cursor:pointer; font-weight:800}
.faq__content{margin-top:10px; color: var(--muted); line-height:1.6}

.footer{padding:28px 0 40px; border-top:1px solid var(--border)}
.footer__inner{display:flex; justify-content:space-between; gap:12px; align-items:center}
.footer__brand{font-weight:900}
.footer__muted{color: var(--muted); font-size:13px}
.footer__right{display:flex; gap:10px; align-items:center; color: var(--muted)}
.sep{opacity:.6}

.modal{position:fixed; inset:0; display:none; z-index:100}
.modal.is-open{display:block}
.modal__backdrop{position:absolute; inset:0; background: rgba(2,6,23,.62)}
.modal__panel{
  position:relative;
  width:min(760px, calc(100% - 24px));
  margin: 7vh auto;
  border-radius:18px;
  background: var(--card);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__head{display:flex; justify-content:space-between; gap:12px; padding:16px 16px 12px; border-bottom:1px solid var(--border)}
.modal__title{font-weight:900; font-size:18px}
.modal__subtitle{color: var(--muted); font-size:13px; margin-top:2px}
.iconbtn{width:38px; height:38px; border-radius:12px; border:1px solid var(--border); background:transparent; cursor:pointer; font-weight:900}
.tabs{display:flex; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); flex-wrap:wrap}
.tab{
  padding:9px 12px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(2,6,23,.03);
  cursor:pointer;
  font-weight:700;
  color: var(--muted);
}
html[data-theme="dark"] .tab{background: rgba(255,255,255,.06)}
.tab.is-active{background: var(--pill); color: var(--pillText)}
.tabpanes{padding:12px 16px}
.pane{display:none}
.pane.is-active{display:block}
.modal__foot{display:flex; justify-content:flex-end; gap:10px; padding:12px 16px 16px; border-top:1px solid var(--border)}

@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr; }
  .grid{grid-template-columns:1fr}
  .how{grid-template-columns:1fr}
}

@media (max-width: 840px){
  .nav{display:none}
  .burger{display:block}
  .mobile{display:none}
  .mobile.is-open{display:block}
}

.authTabs{
  display:flex;
  gap:12px;
  margin: 18px 0 12px;
}

.authTab{
  flex:1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

html[data-theme="dark"] .authTab{
  background: rgba(15,23,42,.55);
}

.authTab.is-active{
  border-color: rgba(37,99,235,.45);
  background: rgba(37,99,235,.12);
  color: rgba(37,99,235,1);
}

html[data-theme="dark"] .authTab.is-active{
  border-color: rgba(34,197,94,.40);
  background: rgba(34,197,94,.12);
  color: rgba(34,197,94,1);
}

.authCard{
  padding: 18px;
}

.input{
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  color: var(--text);
  outline: none;
}

html[data-theme="dark"] .input{
  background: rgba(11,18,32,.45);
}

.input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

html[data-theme="dark"] .input:focus{
  border-color: rgba(34,197,94,.45);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}