:root{
  --bg:#070A12;
  --panel:rgba(255,255,255,.06);
  --panel-2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);
  --primary:#E85DF9;
  --primary2:#2DD4BF;
  --primary-rgb:232,93,249;
  --primary2-rgb:45,212,191;
  --shadow: 0 20px 70px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(var(--primary-rgb),.20), transparent 60%),
              radial-gradient(1200px 700px at 80% 0%, rgba(var(--primary2-rgb),.16), transparent 55%),
              var(--bg);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-120px;
  z-index:-3;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(var(--primary-rgb),.14), transparent 60%),
    radial-gradient(900px 520px at 80% 15%, rgba(var(--primary2-rgb),.12), transparent 60%),
    radial-gradient(900px 520px at 50% 70%, rgba(255,211,106,.06), transparent 65%);
  filter: blur(18px);
  opacity: .95;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.045) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .18;
  mix-blend-mode: overlay;
}

a{color:inherit; text-decoration:none}
button{font:inherit}

.bg{position:fixed; inset:0; z-index:-2}
#bgCanvas{position:absolute; inset:0; width:100%; height:100%}
.bg-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 50% -40px, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(1200px 800px at 10% 10%, rgba(var(--primary-rgb),.10), transparent 60%),
    radial-gradient(1200px 800px at 90% 10%, rgba(var(--primary2-rgb),.08), transparent 60%),
    linear-gradient(to bottom, rgba(7,10,18,.20), rgba(7,10,18,.82) 55%, rgba(7,10,18,.96));
}

.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}

.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.42);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb),.45), rgba(var(--primary2-rgb),.35), transparent);
  opacity: .55;
}

.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}

.brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px}
.brand-mark{
  width:28px; height:28px; border-radius:8px;
  display:block;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb),.35);
}
.brand-small .brand-mark{width:22px; height:22px}

.nav{display:flex; gap:16px; align-items:center}
.nav-link{color:var(--muted); font-weight:500; padding:10px 10px; border-radius:10px}
.nav-link:hover{color:var(--text); background: rgba(255,255,255,.05)}

.burger{display:none}

.header-actions{display:flex; gap:10px; align-items:center}

.btn{
  border:1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}

.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#071018;
  font-weight:700;
  box-shadow: 0 18px 50px rgba(var(--primary-rgb),.25);
}
.btn-primary:hover{box-shadow: 0 22px 60px rgba(var(--primary-rgb),.35), 0 0 0 4px rgba(var(--primary-rgb),.10)}

.btn-ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(255,255,255,.10);
}
.btn-ghost:hover{background: rgba(255,255,255,.10)}

.hero{padding: 90px 0 50px}
.hero-grid{display:flex; justify-content:center}
.hero-copy{max-width: 760px; width:100%; text-align:center}

.badge{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
}

.hero-title{font-size: clamp(32px, 5vw, 52px); line-height:1.06; margin:0 0 14px; letter-spacing:-.6px}
.hero-subtitle{margin:0 auto 22px; max-width: 620px; color: var(--muted); font-size: 17px; line-height:1.6}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin: 0 0 26px}

.hero-stats{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; max-width:520px; margin:0 auto}
.stat{background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 12px 12px}
.stat-value{font-weight:800; letter-spacing:-.4px; font-size: 18px}
.stat-label{color: var(--muted2); font-size: 12px; margin-top: 4px}

.rating{
  display:inline-block;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffd36a, #fff0b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(255, 211, 106, .10);
  margin-right: 6px;
}

.section{padding: 44px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom: 18px}
.section-title{margin:0; font-size: 22px; letter-spacing:-.3px}
.section-subtitle{margin:0; color:var(--muted); max-width: 620px; line-height:1.6}

.section-title{
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cards{display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px}
.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 16px;
  box-shadow: 0 14px 45px rgba(0,0,0,.25);
}
.card:hover{border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.065)}
.card-glow{
  width: 44px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  box-shadow: 0 0 12px rgba(var(--primary-rgb),.65), 0 0 26px rgba(var(--primary2-rgb),.35);
}
.card-title{margin: 16px 0 6px; font-size: 16px; letter-spacing:-.2px}
.card-text{margin: 0; color: var(--muted); line-height:1.6; font-size: 14px}

.cta{
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.20), rgba(var(--primary2-rgb),.13));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
}
.cta-title{margin:0; letter-spacing:-.3px}
.cta-text{margin:6px 0 0; color: var(--muted); line-height:1.6}
.cta-actions{display:flex; gap:10px; flex-wrap:wrap}

.pricing{display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px}
.price-card{
  position:relative;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 20px 16px 16px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  box-shadow: 0 14px 45px rgba(0,0,0,.25);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.price-card:hover{transform: translateY(-3px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16)}
.price-popular{
  background: linear-gradient(180deg, rgba(var(--primary-rgb),.18), rgba(var(--primary2-rgb),.09));
  border-color: rgba(var(--primary-rgb),.55);
}
.price-badge{
  position:absolute;
  top:-10px;
  right:14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #071018;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb),.35);
}
.price-name{color: var(--muted); font-weight: 600}
.price-value{font-size: 28px; font-weight: 800; letter-spacing: -.6px}
.price-note{color: var(--muted2); font-size: 12px; line-height: 1.5; min-height: 34px}
.price-btn{margin-top: auto; text-align:center; justify-content:center; display:inline-flex}

.faq{display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px}
.faq-item{
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 45px rgba(0,0,0,.22);
  overflow:hidden;
  transition: border-color .15s ease, background .15s ease;
}
.faq-item:hover{border-color: rgba(255,255,255,.16)}
.faq-item.open{border-color: rgba(var(--primary-rgb),.45); background: rgba(255,255,255,.065)}

.faq-question{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:none;
  border:none;
  color: var(--text);
  text-align:left;
  padding:16px;
  cursor:pointer;
  font-weight:600;
  font-size:14.5px;
  line-height:1.4;
}

.faq-plus{
  flex:none;
  width:22px; height:22px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  position:relative;
  transition: background .15s ease, border-color .15s ease;
}
.faq-plus::before,.faq-plus::after{
  content:"";
  position:absolute;
  left:50%; top:50%;
  background: var(--text);
  transform: translate(-50%,-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.faq-plus::before{width:10px; height:2px; border-radius:2px}
.faq-plus::after{width:2px; height:10px; border-radius:2px}
.faq-item.open .faq-plus{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-color: transparent;
}
.faq-item.open .faq-plus::before,
.faq-item.open .faq-plus::after{background:#071018}
.faq-item.open .faq-plus::after{transform: translate(-50%,-50%) rotate(90deg); opacity:0}

.faq-answer{
  display:grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-answer-inner{overflow:hidden}
.faq-answer-inner p{margin:0; padding:0 16px 16px; color: var(--muted); line-height:1.6; font-size: 14px}
.faq-item.open .faq-answer{grid-template-rows: 1fr}

.footer{padding: 30px 0 40px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(7,10,18,.35)}
.footer-inner{display:flex; justify-content:space-between; align-items:flex-start; gap: 12px}
.footer-note{color: var(--muted2); font-size: 12px; margin-top: 8px}
.footer-right{display:flex; gap: 12px; align-items:center}
.footer-link{background:none; border:none; color: var(--muted); cursor:pointer; padding:10px 10px; border-radius:10px}
.footer-link:hover{color: var(--text); background: rgba(255,255,255,.05)}

.icon-btn{background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: var(--text); border-radius: 12px; padding: 8px 10px; cursor:pointer}
.icon-btn:hover{background: rgba(255,255,255,.10)}

@media (max-width: 980px){
  .cards{grid-template-columns: repeat(2, 1fr)}
  .faq{grid-template-columns: repeat(2, 1fr)}
  .pricing{grid-template-columns: repeat(2, 1fr)}
  .section-head{flex-direction:column; align-items:flex-start}
  .nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding: 10px 20px 16px;
    background: rgba(7,10,18,.92);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
  }
  .nav.open{display:flex}
  .burger{display:inline-flex; align-items:center; justify-content:center}
}

@media (max-width: 560px){
  .pricing{grid-template-columns: 1fr}
  .faq{grid-template-columns: 1fr}
  .hero-stats{grid-template-columns: repeat(3, 1fr)}
  .header-actions .btn-ghost{display:none}
}

/* ── Legal pages (оферта, ПДн) ─────────────────────────────────────────── */
.legal{padding:120px 0 80px}
.legal-head{margin-bottom:36px}
.legal-title{font-size:clamp(28px,4vw,42px); line-height:1.15; margin:0 0 10px; letter-spacing:-.02em}
.legal-meta{color:var(--muted2); font-size:14px}
.legal-doc{
  background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius);
  padding:clamp(20px,4vw,40px); box-shadow:var(--shadow);
}
.legal-doc + .legal-doc{margin-top:28px}
.legal-doc h2{font-size:clamp(19px,2.4vw,23px); margin:38px 0 14px; letter-spacing:-.01em}
.legal-doc h2:first-child{margin-top:0}
.legal-doc h3{font-size:16px; margin:24px 0 10px; color:var(--text)}
.legal-doc p{color:var(--muted); line-height:1.7; margin:0 0 12px; font-size:15px}
.legal-doc ul,.legal-doc ol{color:var(--muted); line-height:1.7; margin:0 0 12px; padding-left:22px; font-size:15px}
.legal-doc li{margin:0 0 7px}
.legal-doc strong{color:var(--text); font-weight:600}
.legal-doc a{color:var(--primary2); text-decoration:underline; text-underline-offset:3px}
.legal-doc a:hover{color:var(--text)}
.legal-toc{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px}
.legal-toc a{
  border:1px solid var(--stroke); background:var(--panel-2); border-radius:999px;
  padding:7px 14px; font-size:13px; color:var(--muted); text-decoration:none;
}
.legal-toc a:hover{color:var(--text); border-color:rgba(var(--primary2-rgb),.5)}
.legal-fill{
  color:#FFD36A; background:rgba(255,211,106,.10);
  border:1px dashed rgba(255,211,106,.45); border-radius:6px; padding:1px 7px;
  font-size:.94em; white-space:nowrap;
}
.legal-note{
  margin-top:28px; padding:16px 18px; border-radius:14px;
  border:1px solid rgba(255,211,106,.30); background:rgba(255,211,106,.07);
}
.legal-note p{color:rgba(255,211,106,.92); margin:0; font-size:14px}
.legal-table{width:100%; border-collapse:collapse; margin:0 0 14px; font-size:15px}
.legal-table th,.legal-table td{
  text-align:left; padding:10px 12px; border-bottom:1px solid var(--stroke); color:var(--muted);
}
.legal-table th{color:var(--text); font-weight:600; font-size:14px}
.legal-table td:last-child,.legal-table th:last-child{text-align:right; white-space:nowrap}
.legal-req dt{color:var(--muted2); font-size:13px; margin-top:12px}
.legal-req dd{margin:2px 0 0; color:var(--text); font-size:15px}

.pricing-legal{
  margin:26px auto 0; max-width:760px; text-align:center;
  color:var(--muted2); font-size:13px; line-height:1.6;
}
.pricing-legal a{color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.pricing-legal a:hover{color:var(--text)}

/* ── Окно оформления заказа ────────────────────────────────────────────── */
.modal{position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:20px}
.modal[hidden]{display:none}
.modal-backdrop{position:absolute; inset:0; background:rgba(4,6,12,.72); backdrop-filter:blur(6px)}
.modal-card{
  position:relative; width:min(940px,100%); max-height:calc(100dvh - 40px);
  display:flex; flex-direction:column; overflow:hidden;
  background:linear-gradient(180deg, rgba(20,24,40,.96), rgba(10,13,24,.98));
  border:1px solid var(--stroke); border-radius:var(--radius); box-shadow:var(--shadow);
  animation:coIn .18s ease-out;
}
@keyframes coIn{from{opacity:0; transform:translateY(8px) scale(.99)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){.modal-card{animation:none}}

.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 24px; border-bottom:1px solid var(--stroke);
}
.modal-title{margin:0; font-size:19px; font-weight:600; letter-spacing:-.01em}
.modal-close{
  flex:none; width:34px; height:34px; display:grid; place-items:center; cursor:pointer;
  background:var(--panel); border:1px solid var(--stroke); border-radius:10px; color:var(--muted);
}
.modal-close:hover{color:var(--text); border-color:rgba(var(--primary-rgb),.45)}

.modal-body{
  display:grid; grid-template-columns:1fr 1fr; gap:26px;
  padding:24px; overflow-y:auto;
}
.modal-foot{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:18px 24px; border-top:1px solid var(--stroke); background:rgba(255,255,255,.02);
}

.co-form{display:flex; flex-direction:column; gap:18px}
.co-field{display:flex; flex-direction:column; gap:9px}
.co-label{font-size:13px; color:var(--muted); font-weight:500}
.co-optional{color:var(--muted2); font-weight:400}
.co-hint{font-size:12px; color:var(--muted2); line-height:1.5}

.co-options{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px}
.co-options-pay{grid-template-columns:repeat(3, minmax(0,1fr))}
.co-option{
  display:flex; flex-direction:column; align-items:flex-start; gap:3px; cursor:pointer;
  min-height:52px; justify-content:center; padding:9px 12px; text-align:left;
  background:var(--panel); border:1px solid var(--stroke); border-radius:12px;
  color:var(--muted); font-size:13px; transition:border-color .15s, background .15s, color .15s;
}
.co-option b{color:var(--text); font-size:14px; font-weight:600}
.co-option:hover{background:var(--panel-2); color:var(--text)}
.co-option.is-active{
  border-color:rgba(var(--primary-rgb),.65); background:rgba(var(--primary-rgb),.12); color:var(--text);
}

.co-input{
  width:100%; min-height:46px; padding:11px 14px; font:inherit; font-size:14px;
  color:var(--text); background:var(--panel); border:1px solid var(--stroke); border-radius:12px;
  transition:border-color .15s, background .15s;
}
.co-input::placeholder{color:var(--muted2)}
.co-input:focus{outline:none; border-color:rgba(var(--primary-rgb),.7); background:var(--panel-2)}
.co-input.is-bad{border-color:rgba(255,107,107,.75)}

.co-agree{display:flex; align-items:flex-start; gap:11px; cursor:pointer; margin-top:2px}
.co-agree input{position:absolute; opacity:0; width:0; height:0}
.co-agree-box{
  flex:none; width:20px; height:20px; margin-top:1px; border-radius:6px;
  background:var(--panel); border:1px solid var(--stroke); position:relative; transition:.15s;
}
.co-agree input:checked + .co-agree-box{
  background:linear-gradient(135deg, var(--primary), var(--primary2)); border-color:transparent;
}
.co-agree input:checked + .co-agree-box::after{
  content:""; position:absolute; left:6px; top:2px; width:5px; height:10px;
  border:solid #0b0e18; border-width:0 2px 2px 0; transform:rotate(45deg);
}
.co-agree input:focus-visible + .co-agree-box{box-shadow:0 0 0 3px rgba(var(--primary-rgb),.35)}
.co-agree-text{font-size:13px; color:var(--muted); line-height:1.55}
.co-agree-text a{color:var(--primary2); text-decoration:underline; text-underline-offset:3px}
.co-agree-text a:hover{color:var(--text)}

.co-about{
  background:rgba(255,255,255,.03); border:1px solid var(--stroke);
  border-radius:14px; padding:18px 20px; align-self:start;
}
.co-about-title{margin:0 0 12px; font-size:15px; font-weight:600}
.co-about p{margin:0 0 12px; color:var(--muted); font-size:13.5px; line-height:1.65}
.co-about-head{color:var(--text) !important; font-weight:600; font-size:13px !important; margin-bottom:6px !important}
.co-list{margin:0 0 14px; padding-left:18px; color:var(--muted); font-size:13.5px; line-height:1.65}
.co-list li{margin-bottom:3px}

.co-total{display:flex; flex-direction:column; gap:2px}
.co-total-label{font-size:12px; color:var(--muted2)}
.co-total-value{font-size:22px; font-weight:700; letter-spacing:-.01em}
.co-foot-right{display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.co-pay{min-width:170px; justify-content:center}
.co-pay:disabled{opacity:.45; cursor:not-allowed; filter:grayscale(.4)}
.co-error{margin:0; color:#FF8A8A; font-size:13px; max-width:360px; line-height:1.5}

body.modal-open{overflow:hidden}

@media (max-width:860px){
  .modal-body{grid-template-columns:1fr; gap:20px; padding:20px}
  .co-about{order:-1}
  .modal-foot{padding:16px 20px}
  .co-foot-right{width:100%; justify-content:stretch}
  .co-pay{flex:1}
}
@media (max-width:480px){
  .co-options-pay{grid-template-columns:1fr}
}

/* ── Оформление: промокод, скидка, способы оплаты ─────────────────────── */
.co-option[hidden]{display:none}
.co-options-pay{grid-template-columns:repeat(2, minmax(0,1fr))}
.co-hint-ok{color:#5EE6B0}
.co-hint-bad{color:#FF8A8A}
.co-total-old{font-size:14px; font-weight:500; color:var(--muted2); margin-left:6px}
.co-input[readonly]{color:var(--muted); cursor:default}

/* «Личный кабинет» в меню нужен только в мобильном бургер-меню. */
@media (min-width:981px){.nav-account{display:none}}
