/* ==========================================================================
   Spinbetter EG — main stylesheet
   RTL / Arabic / no JavaScript / mobile first
   ========================================================================== */

:root{
  /* тёмно-фиолетовая база с лёгким зелёным подтоном + яркий лайм на кнопках */
  --bg:#0a0714;
  --bg-2:#100c20;
  --bg-3:#1a1030;
  --surface:#140e26;
  --surface-2:#1e1438;
  --line:#332450;
  --text:#ffffff;
  --muted:#bfb3d6;
  --accent:#9dfc45;
  --accent-2:#7de01f;
  --accent-ink:#06210a;
  --violet:#8b3ff2;
  --violet-deep:#2b1145;
  --pink:#c026d3;
  --grad-main:linear-gradient(135deg,#9dfc45 0%,#4fe07a 100%);
  --grad-soft:linear-gradient(135deg,rgba(139,63,242,.38) 0%,rgba(157,252,69,.10) 100%);
  --grad-hero:radial-gradient(1000px 480px at 85% -10%,rgba(157,252,69,.12),transparent 60%),
              radial-gradient(900px 480px at 10% 0%,rgba(139,63,242,.40),transparent 62%),
              linear-gradient(180deg,#150e2b 0%,#0a0714 100%);
  --r-s:10px;
  --r-m:16px;
  --r-l:24px;
  --shadow:0 18px 44px rgba(0,0,0,.45);
  --wrap:1180px;
  --font:"Segoe UI","Tahoma","Noto Sans Arabic","Arial",sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden;max-width:100%}
body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:16px;
  line-height:1.85;
  direction:rtl;
  text-align:right;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block;border:0}
[id]{scroll-margin-top:86px} /* чтобы липкая шапка не перекрывала якоря */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.35;margin:0 0 .6em;font-weight:800;color:#fff;letter-spacing:-.2px}
h1{font-size:1.9rem}
h2{font-size:1.5rem;position:relative;padding-inline-start:14px}
h2::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:.28em;
  bottom:.28em;
  width:5px;
  border-radius:3px;
  background:var(--grad-main);
}
h3{font-size:1.2rem}
p{margin:0 0 1.1em;color:#e4dcf2}
ul,ol{margin:0 0 1.2em;padding-right:1.3em;padding-left:0}
li{margin-bottom:.5em}
hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
table{width:100%;border-collapse:collapse}

/* ---------- layout ---------- */
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 16px}
.section{padding:34px 0}
.section--tight{padding:20px 0}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-m);
  padding:20px;
  box-shadow:var(--shadow);
}
.grid{display:grid;gap:16px;grid-template-columns:1fr}
.muted{color:var(--muted)}
.center{text-align:center}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  padding:13px 26px;
  border-radius:999px;
  font-weight:800;
  font-size:1rem;
  text-align:center;
  border:1px solid transparent;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.btn:hover{text-decoration:none;transform:translateY(-2px)}
.btn--primary{background:var(--grad-main);color:var(--accent-ink);box-shadow:0 10px 26px rgba(157,252,69,.25)}
.btn--ghost{background:transparent;color:var(--text);border-color:var(--line)}
.btn--ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn--sm{padding:9px 18px;font-size:.9rem}
.btn--block{display:block;width:100%}

/* ---------- header ---------- */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,7,20,.94);
  border-bottom:1px solid var(--line);
}
.header__bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-height:64px;padding:8px 0}
.logo{display:flex;align-items:center;color:var(--text)}
.logo:hover{text-decoration:none}
.logo img{height:30px;width:auto}
.header__cta{display:flex;align-items:center;gap:8px;margin-inline-start:auto}

/* CSS-only burger (checkbox hack, no JS) */
.nav-toggle{position:absolute;opacity:0;pointer-events:none}
.burger{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:var(--r-s);
  cursor:pointer;
  background:var(--surface);
}
.burger i{display:block;height:2px;background:var(--text);border-radius:2px}
.nav{display:none;flex:0 0 100%;order:5}
.nav ul{list-style:none;margin:0;padding:0}
.nav a{
  display:block;
  padding:12px 4px;
  color:var(--text);
  font-weight:600;
  border-bottom:1px solid var(--line);
}
.nav a:hover,.nav a[aria-current="page"]{color:var(--accent);text-decoration:none}
.nav-toggle:checked ~ .nav{display:block;padding-bottom:14px}
.nav-toggle:focus-visible ~ .burger{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- выпадающее меню (details/summary, без JS) ---------- */
.drop{position:relative}
.drop__btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:12px 4px;
  color:var(--text);
  font-weight:600;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  list-style:none;
}
.drop__btn::-webkit-details-marker{display:none}
.drop__btn:hover{color:var(--accent)}
/* стрелка-шеврон, нарисована на CSS */
.drop__btn::after{
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-bottom:3px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.drop[open] > .drop__btn{color:var(--accent)}
.drop[open] > .drop__btn::after{transform:rotate(-135deg);margin-bottom:-3px}
.drop__menu{
  list-style:none;
  margin:0;
  padding:2px 0 6px;
}
.drop__menu li{margin:0}
.drop__menu a{
  padding:11px 4px;
  padding-inline-start:20px;
  font-weight:500;
  font-size:.95rem;
  color:var(--muted);
  border-bottom:1px solid rgba(51,36,80,.7);
  position:relative;
}
.drop__menu a::before{
  content:"";
  position:absolute;
  inset-inline-start:4px;
  top:50%;
  width:5px;
  height:5px;
  margin-top:-2px;
  border-radius:50%;
  background:var(--line);
  transition:background .15s ease;
}
.drop__menu a:hover,.drop__menu a[aria-current="page"]{color:var(--accent)}
.drop__menu a:hover::before,.drop__menu a[aria-current="page"]::before{background:var(--accent)}
.drop__menu li:last-child a{border-bottom:0}

/* ---------- hero ---------- */
.hero{background:var(--grad-hero);border-bottom:1px solid var(--line);padding:22px 0 34px}
.hero__inner{display:grid;gap:20px}
.hero h1{font-size:1.85rem;margin-bottom:.4em;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.6)}
.hero p{color:var(--muted);font-size:1.03rem}
.hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}

/* широкий hero-баннер 1380x248 */
.hero__banner{position:relative;display:block;margin:0 0 4px;border-radius:var(--r-m);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}
/* затемнение справа, чтобы текст поверх баннера всегда читался */
.hero__banner::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(to left,rgba(8,5,16,.88) 0%,rgba(8,5,16,.62) 30%,rgba(8,5,16,.15) 52%,transparent 68%);
  pointer-events:none;
}
.hero__banner-link{display:block}
/* текстовый блок с кнопкой поверх баннера — прижат к правому краю */
.hero__banner-text{
  position:absolute;
  z-index:2;
  top:50%;
  right:4%;
  transform:translateY(-50%);
  max-width:48%;
  text-align:right;
  color:#fff;
  font-size:clamp(.72rem,1.35vw,1.05rem);
  font-weight:600;
  line-height:1.6;
  text-shadow:0 2px 14px rgba(0,0,0,.85);
  pointer-events:none; /* клик проходит на баннер, кнопка ниже включена отдельно */
}
.hero__banner-text b{
  display:block;
  color:var(--accent);
  font-weight:900;
  font-size:clamp(.95rem,2.3vw,1.75rem);
  line-height:1.3;
  margin-bottom:.25em;
}
.btn--banner{
  display:block;
  width:fit-content;   /* в RTL блок прижимается к правому краю контейнера */
  pointer-events:auto;
  margin-top:clamp(6px,1.4vw,14px);
  padding:clamp(7px,1.1vw,13px) clamp(16px,2.4vw,32px);
  font-size:clamp(.75rem,1.35vw,1rem);
  text-shadow:none;
}
/* баннер отзеркален по горизонтали: объекты уходят влево, свободное поле — справа,
   где в RTL начинается чтение. Убрать зеркалирование — удалить строку с transform. */
.hero__banner img{width:100%;height:auto;display:block;transform:scaleX(-1)}
/* мобильное поведение hero-баннера описано ниже, в блоке «Дополнительная
   мобильная адаптация»: картинка кадрируется, текст выносится под неё */
.badges{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.badges li{
  background:var(--grad-soft);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 14px;
  font-size:.85rem;
  color:var(--text);
  margin:0;
}

/* ---------- контент-блок с баннером справа ---------- */
.promo{padding:34px 0}
.promo + .promo{border-top:1px solid var(--line)}
/* minmax(0,1fr) + min-width:0 — иначе широкая таблица внутри колонки
   растягивает грид и вся страница становится шире экрана */
.promo__grid{display:grid;gap:22px;align-items:start;grid-template-columns:minmax(0,1fr)}
.promo__aside,.promo__body{min-width:0}
.promo__aside{
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
  border:1px solid var(--line);
  border-radius:var(--r-m);
  padding:14px;
  box-shadow:var(--shadow);
}
/* баннер 1448x944 — пропорция фиксирована, растягивается по ширине колонки */
.promo__aside img{width:100%;height:auto;aspect-ratio:1448/944;object-fit:cover;border-radius:var(--r-s);display:block}
.promo__aside .btn{margin-top:14px;width:100%}
.promo__body > h1:first-child,
.promo__body > h2:first-child{margin-top:0}
.promo__body > h1{font-size:1.7rem;line-height:1.3;margin-bottom:.5em}
@media (min-width:900px){ .promo__body > h1{font-size:2.1rem} }
.promo__body h3{margin-top:1.6em;color:#fff}
.promo__body .table-wrap{margin-top:1.2em}

/* навигация по странице — сворачиваемый блок под hero */
.toc{
  background:linear-gradient(180deg,#1d1240 0%,#0d0a1c 100%);
  border:1px solid rgba(139,63,242,.45);
  border-radius:var(--r-m);
  padding:14px 18px 6px;
  box-shadow:var(--shadow);
}
.toc[open]{padding-bottom:14px}

/* шапка-переключатель */
.toc__head{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  list-style:none;
  padding:6px 0 12px;
  border-bottom:1px solid rgba(139,63,242,.35);
  font-weight:700;
  color:var(--muted);
  transition:color .15s ease;
}
.toc__head::-webkit-details-marker{display:none}
.toc__head:hover{color:var(--text)}
.toc__icon{
  flex:0 0 auto;
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(157,252,69,.12);
  border:1px solid rgba(157,252,69,.35);
  color:var(--accent);
  font-weight:900;
  font-size:.9rem;
  line-height:1;
}
/* шеврон справа (в RTL — с краю строки) */
.toc__head::after{
  content:"";
  margin-inline-start:auto;
  width:8px;
  height:8px;
  border-right:2px solid var(--accent);
  border-bottom:2px solid var(--accent);
  transform:rotate(45deg);
  margin-bottom:4px;
  transition:transform .2s ease;
}
.toc[open] > .toc__head::after{transform:rotate(-135deg);margin-bottom:-2px}

/* список пунктов */
.toc__list{
  list-style:none;
  margin:0;
  padding:10px 0 0;
  display:grid;
  gap:2px;
}
.toc__list li{margin:0}
.toc__list a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 6px;
  border-radius:10px;
  color:var(--text);
  font-size:.95rem;
  font-weight:700;
  transition:background .15s ease,color .15s ease;
}
/* галочка, нарисованная на CSS */
.toc__list a::before{
  content:"";
  flex:0 0 auto;
  width:7px;
  height:13px;
  margin:-3px 4px 0;
  border-right:2.5px solid var(--accent);
  border-bottom:2.5px solid var(--accent);
  transform:rotate(45deg);
  transition:border-color .15s ease;
}
.toc__list a:hover{
  text-decoration:none;
  color:var(--accent);
  background:rgba(157,252,69,.08);
}
/* вложенные пункты */
.toc__sub a{
  padding-inline-start:34px;
  font-weight:500;
  color:var(--muted);
  font-size:.9rem;
}
.toc__sub a::before{opacity:.7}
.toc__sub a:hover{color:var(--accent)}

/* ---------- вводная карточка с кнопкой (без картинки) ---------- */
.intro-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
}
.intro-card::after{
  content:"";
  position:absolute;
  inset-inline-start:-60px;
  top:-70px;
  width:220px;
  height:220px;
  background:var(--grad-soft);
  filter:blur(38px);
  pointer-events:none;
}
.intro-card > *{position:relative;z-index:1}
.intro-card h1{margin-bottom:.5em}
.intro-card .btn{margin-top:6px}
@media (max-width:560px){
  .intro-card .btn{display:block;width:100%}
}

/* ---------- CTA-полоса внутри текста ---------- */
.cta-inline{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  margin:26px 0;
  padding:18px 20px;
  border:1px solid transparent;
  border-radius:var(--r-m);
  background:linear-gradient(135deg,#241452 0%,#0d0a1c 100%) padding-box,
             linear-gradient(135deg,rgba(157,252,69,.55),rgba(139,63,242,.75)) border-box;
  box-shadow:var(--shadow);
}
.cta-inline::after{
  content:"";
  position:absolute;
  inset-inline-start:-50px;
  top:-60px;
  width:190px;
  height:190px;
  background:var(--grad-soft);
  filter:blur(34px);
  pointer-events:none;
}
.cta-inline__text{
  flex:1 1 240px;
  position:relative;
  z-index:1;
  margin:0;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.5;
}
.cta-inline__text b{
  display:block;
  color:var(--text);
  font-size:1.05rem;
  font-weight:800;
  margin-bottom:2px;
}
.cta-inline .btn{position:relative;z-index:1;flex:0 0 auto}
@media (max-width:560px){
  .cta-inline{padding:16px;gap:12px}
  .cta-inline .btn{width:100%;text-align:center;justify-content:center}
}

/* контакты */
.contacts{list-style:none;padding:0;margin:0 0 1.2em;display:grid;gap:10px}
.contacts li{
  margin:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-inline-start:4px solid var(--accent);
  border-radius:var(--r-s);
  padding:10px 14px;
}
.contacts span{display:block;font-size:.85rem;color:var(--muted)}
.contacts a{font-weight:700;word-break:break-all}

/* ---------- banner ---------- */
.banner{margin:22px 0}
.banner img{border-radius:var(--r-m);width:100%}
.banner--inline{margin:26px 0}

/* ---------- bonus / feature cards ---------- */
.bonus{
  position:relative;
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
  border:1px solid var(--line);
  border-radius:var(--r-m);
  padding:22px;
  overflow:hidden;
}
.bonus::after{
  content:"";
  position:absolute;
  inset-inline-start:-40px;
  top:-40px;
  width:150px;
  height:150px;
  background:var(--grad-soft);
  filter:blur(28px);
}
.bonus h3{margin-bottom:.35em}
.bonus .amount{font-size:1.6rem;font-weight:900;color:var(--accent);display:block;margin-bottom:8px}
.bonus p{color:var(--muted);position:relative;z-index:1}

.feature{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:18px}
.feature h3{color:var(--accent);font-size:1.05rem}
.feature p{color:var(--muted);margin:0}

/* ---------- table ---------- */
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--line);
  border-radius:var(--r-m);
  background:var(--surface);
  box-shadow:var(--shadow);
  margin-bottom:1.4em;
}
.table-wrap table{min-width:540px;border-radius:var(--r-m);overflow:hidden}
th,td{
  padding:14px 16px;
  text-align:right;
  vertical-align:middle;
  border-bottom:1px solid var(--line);
  font-size:.95rem;
}
thead th{
  background:linear-gradient(180deg,#2a1a4d 0%,#170f2e 100%);
  color:#fff;
  font-weight:800;
  white-space:nowrap;
  border-bottom:2px solid var(--accent);
  position:relative;
}
tbody tr{transition:background .15s ease}
tbody tr:nth-child(even){background:rgba(255,255,255,.025)}
tbody tr:hover{background:rgba(157,252,69,.07)}
tbody tr:last-child td{border-bottom:0}
/* первый столбец — смысловой, выделяем */
tbody td:first-child{font-weight:700;color:#fff}
/* классы-утилиты для ячеек */
td.is-accent,.td-accent{color:var(--accent);font-weight:800;white-space:nowrap}
td.is-num,.td-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.tag-yes,.tag-no{
  display:inline-block;padding:2px 12px;border-radius:999px;
  font-size:.8rem;font-weight:800;line-height:1.7;
}
.tag-yes{background:rgba(157,252,69,.14);color:var(--accent);border:1px solid rgba(157,252,69,.4)}
.tag-no{background:rgba(192,38,211,.16);color:#e879f9;border:1px solid rgba(192,38,211,.5)}
.table-hint{font-size:.82rem;color:var(--muted);margin:-1em 0 1.4em}

/* ---------- steps ---------- */
.steps{list-style:none;counter-reset:step;padding:0;margin:0}
.steps li{
  counter-increment:step;
  position:relative;
  padding:16px 62px 16px 16px;
  margin-bottom:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-m);
}
.steps li::before{
  content:counter(step);
  position:absolute;
  inset-inline-start:16px;
  top:16px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--grad-main);
  color:var(--accent-ink);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- FAQ (details/summary, no JS) ---------- */
.faq details{
  background:linear-gradient(180deg,var(--surface-2) 0%,var(--surface) 100%);
  border:1px solid var(--line);
  border-radius:var(--r-m);
  margin-bottom:12px;
  padding:0 18px;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.faq details:hover{border-color:rgba(157,252,69,.45)}
.faq details[open]{
  border-color:var(--accent);
  box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 1px rgba(157,252,69,.18) inset;
}
.faq summary{
  cursor:pointer;
  list-style:none;
  padding:17px 0;
  font-weight:700;
  font-size:1.02rem;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--accent)}
.faq summary::after{
  content:"+";
  flex:0 0 auto;
  width:28px;height:28px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:rgba(157,252,69,.12);
  border:1px solid rgba(157,252,69,.45);
  color:var(--accent);
  font-weight:900;
  font-size:1.15rem;
  line-height:1;
  transition:background .18s ease,transform .18s ease;
}
.faq details[open] summary::after{
  content:"–";
  background:var(--grad-main);
  color:var(--accent-ink);
  border-color:transparent;
  transform:rotate(180deg);
}
.faq details > *:not(summary){
  color:var(--muted);
  margin-top:0;
}
.faq details > *:not(summary):first-of-type{
  padding-top:14px;
  border-top:1px solid var(--line);
}
.faq details > *:last-child{margin-bottom:0;padding-bottom:18px}
.faq details p{margin-bottom:.9em}
.faq details a{font-weight:700}

/* ---------- notes ---------- */
.note{
  border-inline-start:4px solid var(--accent);
  background:var(--surface);
  border-radius:var(--r-s);
  padding:14px 16px;
  color:var(--muted);
}
.note--warn{border-inline-start-color:var(--pink)}

/* ---------- legal pages ---------- */
.legal{max-width:860px;margin:0 auto}
.legal h2{margin-top:1.8em;padding-top:.4em;border-top:1px solid var(--line)}
.legal h2:first-of-type{border-top:0;margin-top:0}
.updated{font-size:.9rem;color:var(--muted)}
.breadcrumbs{font-size:.85rem;color:var(--muted);padding:14px 0 0}
.breadcrumbs a{color:var(--muted)}

/* ---------- age gate strip ---------- */
.age{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  border-radius:50%;
  border:2px solid var(--pink);
  color:var(--pink);
  font-weight:900;
  font-size:.85rem;
  flex:0 0 auto;
}

/* ---------- кнопка «наверх» ---------- */
.to-top{
  position:fixed;
  inset-inline-end:18px;
  bottom:18px;
  z-index:80;
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:
    linear-gradient(180deg,rgba(30,20,56,.94),rgba(13,10,28,.94)) padding-box,
    var(--grad-main) border-box;
  border:2px solid transparent;
  box-shadow:0 12px 30px rgba(0,0,0,.55);
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
/* стрелка нарисована на CSS — без иконочных шрифтов и картинок */
.to-top::before{
  content:"";
  width:12px;
  height:12px;
  margin-top:3px;
  border-top:2.5px solid var(--accent);
  border-left:2.5px solid var(--accent);
  transform:rotate(45deg);
  transition:border-color .2s ease;
}
/* мягкое свечение вокруг кнопки */
.to-top::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(157,252,69,.28),transparent 70%);
  opacity:0;
  transition:opacity .2s ease;
  pointer-events:none;
}
.to-top:hover{
  transform:translateY(-4px);
  background:var(--grad-main) padding-box,var(--grad-main) border-box;
  box-shadow:0 16px 34px rgba(0,0,0,.55),0 0 22px rgba(157,252,69,.35);
}
.to-top:hover::before{border-color:var(--accent-ink)}
.to-top:hover::after{opacity:1}
@media (min-width:900px){
  .to-top{inset-inline-end:28px;bottom:28px;width:56px;height:56px}
  .to-top::before{width:14px;height:14px}
}

/* ---------- footer ---------- */
.footer{background:var(--bg-2);border-top:1px solid var(--line);padding:30px 0 22px;margin-top:36px}
.footer__cols{display:grid;gap:22px;grid-template-columns:1fr}
.footer h4{font-size:1rem;margin-bottom:.7em}
.footer ul{list-style:none;padding:0;margin:0}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--accent)}
.footer__note{
  display:flex;gap:12px;align-items:flex-start;
  margin-top:22px;padding-top:18px;border-top:1px solid var(--line);
  color:var(--muted);font-size:.85rem;line-height:1.7;
}
/* копирайт-строка внизу футера */
.footer__copy{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.82rem;
  line-height:1.7;
  text-align:center;
}
.footer__copy p{margin:0 0 .3em;color:var(--muted);font-size:.82rem}
.footer__copy p:last-child{margin-bottom:0}
.footer__copy b{color:var(--text)}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width:640px){
  h1{font-size:2.2rem}
  .hero h1{font-size:2.4rem}
  .grid--2{grid-template-columns:repeat(2,1fr)}
  .grid--3{grid-template-columns:repeat(2,1fr)}
  .footer__cols{grid-template-columns:repeat(2,1fr)}
  .section{padding:44px 0}
}

/* ==========================================================================
   Desktop — burger hidden, inline nav
   ========================================================================== */
@media (min-width:900px){
  body{font-size:17px}
  .hero{padding:30px 0 54px}
  .hero__inner{gap:26px}
  .hero h1{font-size:2.7rem}
  .grid--3{grid-template-columns:repeat(3,1fr)}
  .grid--4{grid-template-columns:repeat(4,1fr)}
  .footer__cols{grid-template-columns:2fr 1fr 1fr}
  .section{padding:56px 0}
  .card{padding:26px}

  /* баннер справа (первая колонка в RTL), текст слева */
  .promo{padding:52px 0}
  .promo__grid{grid-template-columns:420px minmax(0,1fr);gap:34px}

  .burger{display:none}
  .nav{display:block !important;flex:0 1 auto;order:0}
  .nav > ul{display:flex;align-items:center;gap:4px}
  .nav a{border-bottom:0;padding:10px 14px;border-radius:var(--r-s);font-size:.97rem}
  .nav a:hover{background:var(--surface)}

  /* ----- выпадающее меню на десктопе ----- */
  .drop__btn{
    border-bottom:0;
    padding:10px 14px;
    border-radius:var(--r-s);
    font-size:.97rem;
    font-weight:600;
    justify-content:flex-start;
  }
  .drop__btn::after{width:6px;height:6px;border-width:2px;margin-bottom:2px}
  .drop:hover > .drop__btn,
  .drop:focus-within > .drop__btn{background:var(--surface);color:var(--accent)}

  /* панель видна и когда details закрыт — раскрываем по hover/фокусу */
  .drop > .drop__menu{
    display:block;
    position:absolute;
    top:calc(100% + 10px);
    inset-inline-start:50%;
    transform:translateX(50%) translateY(-6px);
    min-width:230px;
    padding:8px;
    border:1px solid transparent;
    border-radius:var(--r-m);
    background:linear-gradient(180deg,#241452,#0d0a1c) padding-box,
               linear-gradient(135deg,rgba(157,252,69,.5),rgba(139,63,242,.75)) border-box;
    box-shadow:0 24px 48px rgba(0,0,0,.55);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility .18s;
  }
  /* «мостик», чтобы курсор не терял меню в зазоре */
  .drop > .drop__menu::before{
    content:"";
    position:absolute;
    top:-12px;
    inset-inline:0;
    height:12px;
  }
  /* уголок панели */
  .drop > .drop__menu::after{
    content:"";
    position:absolute;
    top:-6px;
    inset-inline-start:calc(50% - 5px);
    width:10px;
    height:10px;
    background:#241452;
    border-inline-start:1px solid rgba(157,252,69,.5);
    border-top:1px solid rgba(157,252,69,.5);
    transform:rotate(45deg);
  }
  /* на десктопе атрибут open не должен «залипать» — панель только по hover/фокусу */
  .drop[open] > .drop__btn::after{transform:rotate(45deg);margin-bottom:2px}
  .drop:hover > .drop__btn::after,
  .drop:focus-within > .drop__btn::after{transform:rotate(-135deg);margin-bottom:-2px}
  .drop:hover > .drop__menu,
  .drop:focus-within > .drop__menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(50%) translateY(0);
  }
  .drop__menu a{
    display:block;
    padding:10px 12px;
    padding-inline-start:26px;
    border-bottom:0;
    border-radius:10px;
    white-space:nowrap;
  }
  .drop__menu a::before{inset-inline-start:12px}
  .drop__menu a:hover{background:var(--surface-2)}

  .header__bar{gap:18px;flex-wrap:nowrap}
  .logo img{height:34px}
}

/* очень узкие экраны — компактные кнопки в шапке */
@media (max-width:380px){
  .header__cta .btn--sm{padding:8px 12px;font-size:.82rem}
  .logo img{height:26px}
}

/* ==========================================================================
   Дополнительная мобильная адаптация (все страницы)
   ========================================================================== */
@media (max-width:900px){
  /* блок «баннер + текст» на планшете и телефоне: картинка всегда сверху */
  .promo__grid{grid-template-columns:1fr}
  .promo__aside{padding:10px}
  .promo__aside .btn{margin-top:10px}
}

@media (max-width:640px){
  .promo{padding:26px 0}
  .promo__body h3{margin-top:1.3em}
  /* таблицы: чуть компактнее, горизонтальная прокрутка остаётся */
  th,td{padding:11px 12px;font-size:.88rem}
  /* узкие таблицы (2 колонки) вписываются в экран, широкие — прокручиваются внутри рамки */
  .table-wrap{max-width:100%}
  .table-wrap table{min-width:340px}
  /* пункты навигации могут занимать две строки — галочку выравниваем по первой */
  .toc__list a{align-items:flex-start}
  .toc__list a::before{margin-top:3px}
  .toc__sub a{padding-inline-start:26px}
  /* длинные адреса почты не ломают вёрстку */
  .contacts a,.table-wrap a{word-break:break-word}
}

/* --- шапка на телефоне: логотип и бургер в строке, кнопки — отдельной строкой --- */
@media (max-width:700px){
  .header__bar{gap:8px;min-height:56px;padding:8px 0}
  .logo{flex:1 1 auto;order:1}
  .logo img{height:28px}
  .burger{order:2;margin-inline-start:auto;width:42px;height:42px}
  .header__cta{order:4;flex:0 0 100%;margin-inline-start:0;gap:8px}
  .header__cta .btn{flex:1 1 0;padding:10px 8px;font-size:.88rem}
  .nav{order:5}
  [id]{scroll-margin-top:130px}
}

/* --- hero-баннер на телефоне и планшете: текст выносим из картинки под неё --- */
@media (max-width:780px){
  .hero{padding:14px 0 24px}
  .hero__banner{margin-bottom:0}
  /* зеркалирование нужно только на десктопе (оно освобождает правый край под текст).
     На мобильных текст уходит вниз, поэтому картинку показываем как есть и центрируем. */
  /* картинка показывается целиком, без кадрирования: сохраняем пропорцию 1380x248 */
  .hero__banner img{
    transform:none;
    width:100%;
    height:auto;
    aspect-ratio:1380/248;
    object-fit:contain;
    background:#0a0714;
  }
  .hero__banner::before{display:none}
  .hero__banner-text{
    position:static;
    transform:none;
    max-width:100%;
    padding:16px;
    background:linear-gradient(180deg,var(--surface-2),var(--surface));
    border-top:1px solid rgba(139,63,242,.5);
    text-align:right;
    font-size:.92rem;
    line-height:1.6;
    text-shadow:none;
    pointer-events:auto;
  }
  .hero__banner-text b{font-size:1.15rem;margin-bottom:.15em}
  .btn--banner{width:100%;margin-top:12px;padding:12px 16px;font-size:.95rem}
  .hero h1{font-size:1.45rem}
  h2{font-size:1.22rem;padding-inline-start:12px}
  h3{font-size:1.06rem}
}

@media (max-width:480px){
  /* баннер блока 1448x944 не должен занимать пол-экрана */
  .promo__aside img{aspect-ratio:16/11}
  .promo__aside .btn{padding:12px 16px}
  .toc{padding:12px 14px 6px}
  .toc__list a{font-size:.9rem}
  .cta-inline__text{font-size:.9rem}
  .cta-inline__text b{font-size:1rem}
  .contacts li{padding:9px 12px}
  .to-top{width:44px;height:44px;inset-inline-end:12px;bottom:12px}
}

@media (max-width:380px){
  .wrap{padding:0 12px}
  .hero__banner-text{padding:14px}
  .hero__banner-text b{font-size:1.05rem}
  .header__cta .btn{font-size:.82rem;padding:10px 6px}
  th,td{padding:10px;font-size:.84rem}
}

/* ---------- a11y / motion ---------- */
@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
