/* =========================
   THEME TOKENS
   ========================= */
:root{
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* LIGHT */
  --bg:#ffffff;
  --bg2:#f7fafc;
  --text:#0f172a;
  --muted:#5b667a;
  --card:#ffffff;
  --card2:#ffffff;
  --line:#e7eef6;
  --shadow: 0 20px 60px rgba(15,23,42,.08);

  --accent:#0ea5a3;
  --accent2:#7c3aed;
  --accent3:#60a5fa;

  --btnText:#ffffff;
  --btnGhost:#ffffff;

  /* pill radius */
  --pill: 999px;

  --r12:12px;
  --r14:14px;
  --r16:16px;
  --r18:18px;
  --r20:20px;
  --r22:22px;
  --r24:24px;
}

html[data-theme="dark"]{
  --bg:#0b1220;
  --bg2:#0f1b32;
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.12);
  --shadow: 0 24px 70px rgba(0,0,0,.42);

  --btnGhost:rgba(255,255,255,.06);
}

/* =========================
   BASE
   ========================= */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

/* ✅ единый фон (чтобы не было “странно разделено”) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 600px at 70% 0%, color-mix(in srgb, var(--accent3) 18%, transparent), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  pointer-events:none;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}
.container{max-width:1160px; margin:0 auto; padding:0 18px}
.center{text-align:center}
.w100{width:100%}
.muted{color:var(--muted)}
.h1{font-size:44px; line-height:1.08; letter-spacing:-.6px; margin:14px 0 12px}
.h2{font-size:34px; line-height:1.15; margin:0 0 10px; letter-spacing:-.4px}
.lead{font-size:16px; line-height:1.65; color:var(--muted); margin:0 0 14px}
.sub{margin:0; color:var(--muted); line-height:1.6}

:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: 12px;
}

/* =========================
   HEADER
   ========================= */
.header{
  position:sticky; top:0; z-index:50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: backdrop-filter;
  border-bottom:1px solid var(--line);
}
.header__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 10px;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.logo__icon{
  width:32px;
  height:32px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}
.logo__name{
  font-weight:700;
  letter-spacing:.2px;
  white-space:nowrap;
}
.logo__accent{color:var(--accent)}
.logo--foot .logo__icon{width:28px;height:28px;border-radius:10px}
.logo--foot .logo__name{font-size:16px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{
  color:color-mix(in srgb, var(--text) 72%, transparent);
  font-weight:500;
  font-size:14px;
}
.nav a:hover{color:var(--text)}

.header__actions{display:flex; gap:10px; align-items:center}

/* theme icon-only button */
.theme{
  width:44px;
  height:44px;
  border-radius: var(--pill);
  border:1px solid var(--line);
  background: var(--btnGhost);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}
.theme svg{
  width:18px;height:18px;
  stroke: color-mix(in srgb, var(--text) 80%, transparent);
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.theme:hover{transform: translateY(-1px)}
.theme:active{transform: translateY(0px)}

/* burger */
.burger{
  width:44px;height:44px;border-radius:var(--pill);
  border:1px solid var(--line);
  background: var(--btnGhost);
  display:none;
  padding:10px;
}
.burger span{
  display:block;
  height:2px;
  background:color-mix(in srgb, var(--text) 80%, transparent);
  margin:5px 0;
  border-radius:2px;
}

/* mobile */
.mobile{border-top:1px solid var(--line)}
.mobile[hidden]{display:none !important}
.mobile{
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.mobile__panel{padding:14px 18px 18px; display:flex; flex-direction:column; gap:10px}
.m-link{
  padding:10px 12px;
  border-radius:var(--pill);
  border:1px solid var(--line);
  background: var(--btnGhost);
  color:color-mix(in srgb, var(--text) 85%, transparent);
}
.mobile__cta{display:flex; flex-direction:column; gap:10px; margin-top:6px}

/* =========================
   BUTTONS (PILLS)
   ========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius: var(--pill);
  font-weight:600;
  font-size:14px;
  border:1px solid var(--line);
  transition: transform .16s ease, background .16s ease, filter .16s ease;
  line-height:1.1;
  min-height:44px;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent3) 70%, var(--accent)));
  color:var(--btnText);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.btn--primary:hover{transform: translateY(-1px); filter: brightness(1.02)}
.btn--ghost{background: var(--btnGhost)}
.btn--ghost:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}

/* =========================
   HERO
   ========================= */
.hero{padding:46px 0 22px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:stretch;
}
.hero__left{min-width:0}
.hero__right{min-width:0}

.badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:var(--pill);
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  color:color-mix(in srgb, var(--text) 70%, transparent);
  font-weight:500;
  font-size:13px;
}

.ticks{margin:14px 0 0; padding:0; list-style:none; display:grid; gap:8px}
.ticks li{
  padding-left:22px;
  position:relative;
  color:color-mix(in srgb, var(--text) 78%, transparent);
}
.ticks li::before{
  content:"";
  width:12px;height:12px;
  position:absolute; left:0; top:5px;
  border-radius:4px;
  background: color-mix(in srgb, var(--accent) 85%, transparent);
}
.hero__cta{display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 12px}
.hero__note{color:var(--muted); font-size:13px; line-height:1.5}

/* =========================
   DEVICE MOCK
   ========================= */
.device{
  border-radius:24px;
  border:1px solid var(--line);
  background:
    radial-gradient(800px 420px at 30% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(640px 420px at 90% 20%, color-mix(in srgb, var(--accent2) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 420px;
  min-width:0;
}
html[data-theme="dark"] .device{box-shadow:none}

.device__top{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:14px 14px 0;
}
.pill{
  font-size:12px;
  padding:7px 10px;
  border-radius:var(--pill);
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 75%, transparent);
  color: color-mix(in srgb, var(--text) 72%, transparent);
}
.pill--ok{
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.device__body{padding:14px}
.kpi{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.kpi__item{
  border-radius:18px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  padding:12px;
}
.kpi__num{font-weight:800; font-size:14px}
.kpi__txt{margin-top:4px; color:var(--muted); font-size:12px; line-height:1.3}

.mini-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:10px}
.mini-card{
  display:flex; gap:10px; align-items:center;
  border-radius:18px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  padding:12px;
}
.mini-card__icon{
  width:38px;height:38px;border-radius:14px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 85%, transparent);
}
.mini-card__icon svg{
  width:20px;height:20px;
  stroke: var(--accent);
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mini-card__t{font-weight:700; font-size:13px}
.mini-card__s{color:var(--muted); font-size:12px; margin-top:2px}

.chart{
  margin-top:12px;
  border-radius:18px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  padding:12px;
}
.chart__title{font-weight:700; font-size:13px; margin-bottom:10px}
.bars{
  height:78px;
  display:flex;
  align-items:flex-end;
  gap:8px;
}
.bars span{
  flex:1;
  border-radius:12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent3) 70%, var(--accent)), color-mix(in srgb, var(--accent) 60%, transparent));
  opacity:.85;
}
.chart__foot{font-size:12px; margin-top:8px}

.device__bottom{
  padding:12px 14px 14px;
  border-top:1px solid var(--line);
  margin-top:auto;
}

/* =========================
   SECTIONS
   ========================= */
.section{padding:56px 0}

/* alt — аккуратнее, чтобы не “резалось” */
.alt{
  background: color-mix(in srgb, var(--bg2) 55%, transparent);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head{margin-bottom:18px}

/* =========================
   CARDS / ICONS
   ========================= */
.grid4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.card{
  border-radius:20px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  padding:16px;
}
html[data-theme="dark"] .card{box-shadow:none}

.icon{
  width:44px;
  height:44px;
  border-radius:16px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon svg{
  width:22px;
  height:22px;
  stroke: var(--accent);
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.card h3{margin:12px 0 8px; font-size:15px}
.card p{margin:0; color:var(--muted); line-height:1.55; font-size:14px}

/* =========================
   PRICING
   ========================= */
.pricing{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  align-items:stretch;
}
.price{
  border-radius:22px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: 0 12px 40px rgba(15,23,42,.06);
  padding:16px;
  position:relative;
  overflow:hidden;
}
html[data-theme="dark"] .price{box-shadow:none}

.price--best{
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-4px);
  padding-top: 54px; /* ✅ чтобы ribbon не налезал */
}

.ribbon{
  position:absolute; top:12px; left:12px;
  font-size:12px;
  padding:7px 10px;
  border-radius:var(--pill);
  border:1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: color-mix(in srgb, var(--text) 80%, transparent);
  font-weight:700;
}

.price h3{margin:0 0 8px}
.price__val{
  font-weight:800;
  font-size:28px;
  margin-bottom:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:baseline;
}
.price__val span{font-weight:600; font-size:14px; color:var(--muted)}

.check{margin:0 0 14px; padding:0; list-style:none; display:grid; gap:8px}
.check li{
  padding-left:22px;
  position:relative;
  color:color-mix(in srgb, var(--text) 76%, transparent);
}
.check li::before{
  content:"";
  width:12px;height:12px;
  position:absolute; left:0; top:5px;
  border-radius:4px;
  background: color-mix(in srgb, var(--accent) 85%, transparent);
}

.limits{
  display:grid;
  gap:8px;
  margin:10px 0 12px;
}
.limit{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:var(--pill);
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
}
.limit span{color:var(--muted); font-size:13px}
.limit b{font-size:14px}

/* =========================
   NOTES
   ========================= */
.note{
  margin-top:16px;
  padding:14px;
  border-radius:20px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
}
.note__title{font-weight:700; margin-bottom:6px}
.note__text{color:var(--muted); line-height:1.6; font-size:14px}
.note--mt{margin-top:18px}

/* =========================
   CTA + FORM
   ========================= */
.cta{
  padding:54px 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 18%, transparent),
    color-mix(in srgb, var(--bg2) 82%, transparent)
  );
  border-top:1px solid var(--line);
}
.cta__box{
  border-radius:24px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: var(--shadow);
  padding:18px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:14px;
}
html[data-theme="dark"] .cta__box{box-shadow:none}

.cta__bullets{display:grid; gap:10px; margin-top:12px}
.b{display:flex; gap:10px; align-items:center; color:color-mix(in srgb, var(--text) 78%, transparent)}
.b__ic{
  width:34px;height:34px;
  border-radius: var(--pill);
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  display:grid; place-items:center;
}
.b__ic svg{
  width:18px;height:18px;
  stroke: var(--accent);
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.form{
  border-radius:20px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--bg2) 60%, transparent);
  padding:14px;
  display: flex;
    flex-direction: column;
    gap: 10px
}
.form__row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.inp{
  width:100%;
  padding:12px 14px;
  border-radius: var(--pill);
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 85%, transparent);
  color:var(--text);
  outline:none;
  min-height:44px;
  line-height:1.1;
}
.inp::placeholder{color: color-mix(in srgb, var(--muted) 85%, transparent)}
.inp:focus{border-color: color-mix(in srgb, var(--accent) 55%, var(--line))}

.form__fine{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.toast{
  margin-top:10px;
  padding:10px 12px;
  border-radius:20px;
  border:1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: color-mix(in srgb, var(--text) 85%, transparent);
}

/* =========================
   FAQ
   ========================= */

.faq{
  display:grid;
  gap:12px;
}

/* карточка вопроса */
.qa{
  border-radius:20px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  padding:14px 16px;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .12s ease;
}

/* hover — легкий подъём */
.qa:hover{
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

/* открытое состояние */
.qa[open]{
  background: color-mix(in srgb, var(--brand) 6%, var(--card));
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
}

/* вопрос */
.qa summary{
  cursor:pointer;
  font-weight:600;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  line-height:1.35;
}

/* убираем стандартный маркер */
.qa summary::-webkit-details-marker{
  display:none;
}

/* плюс/минус */
.qa summary::after{
  content:"+";
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:500;
  color:var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease;
}

/* при открытии превращаем + в − */
.qa[open] summary::after{
  content:"−";
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

/* ответ */
.qa__a{
  margin-top:10px;
  padding-top:6px;
  color:var(--muted);
  line-height:1.6;
  font-size:15px;
}

/* мобильные правки */
@media (max-width: 640px){
  .qa{
    padding:12px 14px;
    border-radius:16px;
  }
  .qa summary::after{
    width:24px;
    height:24px;
    font-size:16px;
  }
}
.stores{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.store{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
}

.store:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.store img{
  height:28px;
  width:auto;
  display:block;
}


/* =========================
   FOOTER
   ========================= */
.footer{padding:28px 0 40px}
.footer__grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap:14px;
  padding-top:18px;
}
.footer__col{display:flex; flex-direction:column; gap:8px}
.footer__title{font-weight:700; margin-bottom:4px}
.footer__col a{color:color-mix(in srgb, var(--text) 75%, transparent)}
.footer__col a:hover{color:var(--text)}

/* =========================
   DARK readability (тонко)
   ========================= */
html[data-theme="dark"] .card,
html[data-theme="dark"] .price,
html[data-theme="dark"] .device,
html[data-theme="dark"] .form{
  border-color: rgba(255,255,255,.14);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1040px){
  .grid4{grid-template-columns:repeat(2,1fr)}
}

@media (max-width: 980px){
  .nav{display:none}
  .burger{display:inline-block}

  .hero{padding-top:34px}
  .hero__grid{grid-template-columns:1fr; gap:16px}

  .pricing{grid-template-columns:1fr}
  .cta__box{grid-template-columns:1fr}
  .price--best{transform:none}

  .footer__grid{grid-template-columns:1fr}
}

@media (max-width: 520px){
  .h1{font-size:34px}
  .h2{font-size:26px}

  .header__actions .btn{display:none}
  .header__actions .btn.btn--primary{display:inline-flex}
  /* theme остаётся иконкой — ок */

  .form__row{grid-template-columns:1fr}
}

@media (max-width: 420px){
  .hero__cta{gap:8px}
  .hero__cta .btn{width:100%}
}

/* device mobile fit */
.device-wrap{max-width:520px;margin-left:auto}
@media (max-width:980px){.device-wrap{max-width:100%;margin:0 auto}}
@media (max-width:520px){
  .device{min-height:auto;width:100%}
  .kpi{grid-template-columns:1fr}
  .mini-grid{grid-template-columns:1fr}
}

/* pricing button to bottom */
.price{display:flex;flex-direction:column;height:100%}
.price__cta{margin-top:auto}

/* theme icon */
.theme__svg{width:18px;height:18px;fill:none;stroke:color-mix(in srgb,var(--text) 78%,transparent);stroke-width:1.8}

.consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
  user-select:none;
  cursor:pointer;
}

.consent input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.consent__box{
  width:18px;
  height:18px;
  margin-top:2px;
  border-radius:6px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  display:grid;
  place-items:center;
  flex:0 0 18px;
  transition: background .12s ease, border-color .12s ease;
}

.consent__box::after{
  content:"";
  width:10px;
  height:10px;
  border-radius:4px;
  background: var(--brand, #0EA5A3);
  transform: scale(0);
  transition: transform .12s ease;
}

.consent input:checked + .consent__box{
  background: color-mix(in srgb, var(--brand, #0EA5A3) 14%, white);
  border-color: color-mix(in srgb, var(--brand, #0EA5A3) 35%, rgba(15,23,42,.12));
}

.consent input:checked + .consent__box::after{
  transform: scale(1);
}

.consent__text{
  font-size:13px;
  line-height:1.35;
  color: rgba(15,23,42,.62);
}
