/* site.css - контент внутри <main>: hero, оглавление, секции, таблицы-табло, шаги, плюсы/минусы, FAQ. */

/* ===================== Hero ===================== */
.stk-hero{
  position:relative; overflow:hidden; border-bottom:1px solid var(--stk-line);
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(61,220,132,.14), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, rgba(245,184,61,.08), transparent 60%),
    repeating-linear-gradient(90deg, rgba(232,240,242,.025) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #0E2230 0%, var(--stk-bg) 100%);
}
.stk-hero__inner{ display:grid; gap:32px; padding-block:28px 44px; }
.stk-hero__body{ max-width:680px; }
.stk-hero h1{
  font-weight:700; font-size:clamp(2.25rem, 1.55rem + 2.9vw, 3.75rem); line-height:1.02; letter-spacing:-.005em;
  margin-bottom:20px;
}
.stk-hero__lead p{ color:#C9D7DC; font-size:1.125rem; }
.stk-hero__lead p + p{ margin-top:12px; }
.stk-hero__lead a{ color:var(--stk-link); text-decoration:underline; text-underline-offset:3px; }
.stk-hero__actions{ margin-top:28px; }
.stk-hero__media{
  width:100%; border-radius:var(--stk-radius); border:1px solid var(--stk-line); box-shadow:var(--stk-shadow);
}
@media (min-width:1024px){
  .stk-hero__inner{ grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr); align-items:center; gap:56px; padding-block:40px 64px; }
  .stk-hero__media{ transform:perspective(1200px) rotateY(-6deg); transform-origin:left center; }
}

/* ===================== Layout: оглавление + статья ===================== */
.stk-layout{ display:grid; gap:8px; padding-top:28px; }
.stk-article{ min-width:0; max-width:780px; }
@media (min-width:1024px){
  .stk-layout{ grid-template-columns:250px minmax(0, 1fr); gap:56px; padding-top:48px; align-items:start; }
}

/* ===================== TOC ===================== */
.stk-toc__box{ border:1px solid var(--stk-line); border-radius:var(--stk-radius); background:var(--stk-surface); }
.stk-toc__box > summary{
  display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:0 16px;
  font-family:var(--stk-font-head); font-weight:700; font-size:1.0625rem; letter-spacing:.08em; text-transform:uppercase;
  cursor:pointer; list-style:none;
}
.stk-toc__box > summary::-webkit-details-marker{ display:none; }
.stk-toc__box > summary::after{
  content:""; width:9px; height:9px; margin-top:-4px; border-right:2px solid var(--stk-saffron); border-bottom:2px solid var(--stk-saffron);
  transform:rotate(45deg); transition:transform .2s var(--stk-ease);
}
.stk-toc__box[open] > summary::after{ transform:rotate(-135deg); margin-top:4px; }
.stk-toc__list{ list-style:none; counter-reset:toc; padding:0 8px 12px; }
.stk-toc__list li{ counter-increment:toc; }
.stk-toc__list a{
  display:flex; gap:10px; padding:8px; border-radius:6px; font-size:.9375rem; line-height:1.35; color:var(--stk-muted);
  transition:color .18s var(--stk-ease), background-color .18s var(--stk-ease);
}
.stk-toc__list a::before{
  content:counter(toc, decimal-leading-zero); flex-shrink:0; min-width:1.6em;
  font-family:var(--stk-font-head); font-weight:700; color:var(--stk-saffron);
}
.stk-toc__list a:hover{ color:var(--stk-text); background:var(--stk-surface-2); }
.stk-toc__list a.is-active{ color:var(--stk-text); background:var(--stk-surface-2); box-shadow:inset 3px 0 0 var(--stk-pitch); }
@media (min-width:1024px){
  .stk-toc{ position:sticky; top:calc(var(--stk-header-h) + 20px); }
  .stk-toc__box{ max-height:calc(100vh - var(--stk-header-h) - 40px); overflow-y:auto; scrollbar-width:thin; }
}

/* ===================== Секции и типографика контента ===================== */
.stk-sec{ padding-block:36px; border-top:1px solid var(--stk-line); }
.stk-article > .stk-sec:first-child{ border-top:0; padding-top:12px; }
.stk-sec .stk-sec{ padding-block:28px 0; border-top:0; }
.stk-sec h2{ font-weight:700; font-size:clamp(1.75rem, 1.4rem + 1.3vw, 2.4rem); margin-bottom:18px; }
.stk-sec h2::before{
  content:""; display:block; width:44px; height:4px; margin-bottom:14px; border-radius:2px; background:var(--stk-pitch);
}
.stk-sec h3{ font-weight:600; font-size:clamp(1.35rem, 1.2rem + .5vw, 1.6rem); margin-bottom:12px; }
.stk-sec p, .stk-sec ul, .stk-sec ol, .stk-table-wrap{ margin-bottom:18px; }
.stk-sec > :last-child, .stk-sec > div > :last-child{ margin-bottom:0; }
.stk-sec a:not(.stk-cta){
  color:var(--stk-link); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
  transition:color .18s var(--stk-ease);
}
.stk-sec a:not(.stk-cta):hover{ color:var(--stk-text); }
.stk-sec strong{ font-weight:600; color:#fff; }

/* маркированный список: шафрановый ромб */
.stk-sec ul:not([class]){ list-style:none; display:grid; gap:10px; }
.stk-sec ul:not([class]) > li{ position:relative; padding-left:24px; }
.stk-sec ul:not([class]) > li::before{
  content:""; position:absolute; left:3px; top:.62em; width:8px; height:8px; background:var(--stk-saffron); transform:rotate(45deg);
}
/* нумерованный список: номер табло */
.stk-sec ol:not([class]){ list-style:none; counter-reset:num; display:grid; gap:10px; }
.stk-sec ol:not([class]) > li{ counter-increment:num; position:relative; padding-left:40px; min-height:28px; }
.stk-sec ol:not([class]) > li::before{
  content:counter(num); position:absolute; left:0; top:.05em; width:28px; height:28px; border-radius:6px;
  display:grid; place-items:center; background:var(--stk-surface-2); color:var(--stk-saffron);
  font-family:var(--stk-font-head); font-weight:700; font-size:1rem; line-height:1;
}

/* ===================== Таблицы ===================== */
.stk-table-wrap{ overflow-x:auto; border:1px solid var(--stk-line); border-radius:var(--stk-radius); background:var(--stk-surface); }
.stk-table-wrap:focus-visible{ outline-offset:2px; }
.stk-table-wrap table{ width:100%; border-collapse:collapse; font-size:.9688rem; line-height:1.45; }
.stk-table-wrap table:has(thead th:nth-child(3)){ min-width:600px; }
.stk-table-wrap caption{
  caption-side:top; text-align:left; padding:14px 16px; border-bottom:1px solid var(--stk-line);
  font-family:var(--stk-font-head); font-weight:700; font-size:1.0625rem; letter-spacing:.06em; text-transform:uppercase; color:var(--stk-text);
}
.stk-table-wrap th, .stk-table-wrap td{ padding:12px 16px; text-align:left; vertical-align:top; border-bottom:1px solid var(--stk-line); }
.stk-table-wrap thead th{
  background:var(--stk-surface-2); color:var(--stk-muted);
  font-family:var(--stk-font-head); font-weight:600; font-size:.9375rem; letter-spacing:.06em; text-transform:uppercase;
}
.stk-table-wrap tbody tr:last-child > *{ border-bottom:0; }
.stk-table-wrap tbody tr:nth-child(even){ background:rgba(27,51,64,.45); }
.stk-table-wrap tbody th{ color:var(--stk-saffron); font-weight:600; }
.stk-table-wrap td{ font-variant-numeric:tabular-nums; }

/* табло "at a glance": две колонки, метки слева */
.stk-table-wrap--score{ border-top:3px solid var(--stk-pitch); }
.stk-table-wrap--score thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.stk-table-wrap--score tbody th{
  width:38%; font-family:var(--stk-font-head); font-weight:600; font-size:.9375rem; letter-spacing:.06em; text-transform:uppercase; padding-top:14px;
}
.stk-table-wrap--score td{ font-weight:500; color:#fff; }
.stk-table-wrap--score tbody tr:nth-child(even){ background:none; }
.stk-table-wrap--score tbody th, .stk-table-wrap--score td{ border-bottom-style:dashed; }
@media (max-width:519px){
  .stk-table-wrap--score tbody tr{ display:block; padding:10px 16px; border-bottom:1px dashed var(--stk-line); }
  .stk-table-wrap--score tbody tr:last-child{ border-bottom:0; }
  .stk-table-wrap--score tbody th, .stk-table-wrap--score td{ display:block; width:auto; padding:0; border:0; }
  .stk-table-wrap--score tbody th{ margin-bottom:2px; font-size:.8125rem; }
}

/* ===================== Шаги ===================== */
.stk-steps{ list-style:none; counter-reset:step; margin-bottom:22px; }
.stk-steps__item{ counter-increment:step; position:relative; padding:0 0 26px 60px; min-height:44px; }
.stk-steps__item::before{
  content:counter(step); position:absolute; left:0; top:-2px; width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; background:var(--stk-bg); border:2px solid var(--stk-saffron); color:var(--stk-saffron);
  font-family:var(--stk-font-head); font-weight:700; font-size:1.25rem; line-height:1;
}
.stk-steps__item::after{
  content:""; position:absolute; left:21px; top:46px; bottom:4px; width:2px; background:var(--stk-line);
}
.stk-steps__item:last-child{ padding-bottom:0; }
.stk-steps__item:last-child::after{ display:none; }
.stk-steps__name{ font-family:var(--stk-font-head); font-weight:700; font-size:1.25rem; line-height:1.2; margin:8px 0 4px; }
.stk-steps__item p{ margin-bottom:0; }
/* кадры шагов: портретные окна форм ужимаем по высоте, чтобы шаг не растягивался на экран */
.stk-steps__item img{ margin-top:14px; width:auto; max-height:440px; border-radius:var(--stk-radius-sm); border:1px solid var(--stk-line); }

/* ===================== Кадр раздела (сбоку от текста) ===================== */
.stk-sec{ display:flow-root; }
.stk-sec__img{
  width:auto; max-height:420px; margin:6px 0 20px;
  border-radius:var(--stk-radius); border:1px solid var(--stk-line); box-shadow:var(--stk-shadow);
}
.stk-sec__img--tall{ max-height:460px; }
@media (min-width:768px){
  .stk-sec__img{ float:right; width:min(44%, 340px); max-height:none; margin:6px 0 16px 28px; }
  .stk-sec__img--tall{ width:min(32%, 220px); }
  /* таблицы, шаги, плюсы-минусы и вложенные разделы не жмём рядом с кадром */
  .stk-sec .stk-table-wrap, .stk-sec .stk-steps, .stk-sec .stk-pc, .stk-sec .stk-sec__action, .stk-sec .stk-sec{ clear:both; }
}

/* ===================== Плюсы / минусы ===================== */
.stk-pc{ display:grid; gap:16px; margin-top:6px; }
.stk-pc__col{ padding:20px; border-radius:var(--stk-radius); background:var(--stk-surface); border:1px solid var(--stk-line); }
.stk-pc__col--pros{ border-top:3px solid var(--stk-pitch); }
.stk-pc__col--cons{ border-top:3px solid var(--stk-danger); }
.stk-pc__col h3{ font-size:1.375rem; letter-spacing:.06em; text-transform:uppercase; }
.stk-pc__list{ list-style:none; display:grid; gap:10px; margin:0; }
.stk-pc li{ position:relative; padding-left:30px; }
.stk-pc li::before{
  content:""; position:absolute; left:0; top:.3em; width:20px; height:20px;
  -webkit-mask:var(--stk-icon) center / contain no-repeat; mask:var(--stk-icon) center / contain no-repeat;
}
.stk-pc__col--pros li::before{
  background:var(--stk-pitch);
  --stk-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.stk-pc__col--cons li::before{
  background:var(--stk-danger);
  --stk-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
@media (min-width:640px){ .stk-pc{ grid-template-columns:1fr 1fr; } }

/* ===================== CTA в разделе ===================== */
.stk-sec__action{ margin-top:22px; display:flex; flex-wrap:wrap; align-items:center; gap:14px; }

/* ===================== Hero: выгоды, скрытый код, кликабельный кадр ===================== */
.stk-hero__points{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:8px; }
.stk-hero__points li{ position:relative; padding-left:30px; color:var(--stk-text); font-weight:500; }
.stk-hero__points li::before{
  content:""; position:absolute; left:0; top:.2em; width:20px; height:20px; border-radius:50%; background:var(--stk-pitch);
}
.stk-hero__points li::after{
  content:""; position:absolute; left:6px; top:calc(.2em + 5px); width:5px; height:9px;
  border-right:2.5px solid var(--stk-on-pitch); border-bottom:2.5px solid var(--stk-on-pitch); transform:rotate(45deg);
}
.stk-hero__actions{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; }

/* промокод под маской: вся плашка - ссылка на регистрацию */
.stk-code{
  display:inline-flex; align-items:center; gap:12px; min-height:60px; padding:8px 8px 8px 16px;
  border:2px dashed var(--stk-saffron); border-radius:var(--stk-radius-sm); background:rgba(245,184,61,.06);
  color:var(--stk-text); text-decoration:none;
  transition:background-color .18s var(--stk-ease), border-color .18s var(--stk-ease);
}
.stk-code:hover{ background:rgba(245,184,61,.14); }
.stk-code__label{
  display:flex; flex-direction:column; font-family:var(--stk-font-head); font-weight:600; font-size:.8125rem;
  letter-spacing:.08em; text-transform:uppercase; color:var(--stk-muted); line-height:1.1;
}
.stk-code__mask{ font-family:var(--stk-font-head); font-weight:700; font-size:1.375rem; letter-spacing:.18em; color:var(--stk-saffron); }
.stk-code__reveal{
  display:inline-flex; align-items:center; gap:6px; padding:10px 12px; border-radius:6px; background:var(--stk-saffron);
  color:var(--stk-on-pitch); font-family:var(--stk-font-head); font-weight:700; font-size:1rem; letter-spacing:.04em; text-transform:uppercase;
}
.stk-code__arrow{ transition:transform .18s var(--stk-ease); }
.stk-code:hover .stk-code__arrow{ transform:translateX(3px); }

/* кадры-ссылки: hero и разделы */
.stk-hero__media-link, .stk-sec__img--link{ display:block; color:inherit; }
.stk-hero__media-link .stk-hero__media, .stk-sec__img--link img{ transition:box-shadow .2s var(--stk-ease), border-color .2s var(--stk-ease); }
.stk-hero__media-link:hover .stk-hero__media{ border-color:var(--stk-pitch); }
.stk-sec__img--link{ width:fit-content; max-width:100%; max-height:none; padding:0; border:0; box-shadow:none; background:none; }
.stk-sec__img--link img{
  display:block; width:auto; max-width:100%; max-height:420px;
  border-radius:var(--stk-radius); border:1px solid var(--stk-line); box-shadow:var(--stk-shadow);
}
.stk-sec__img--link.stk-sec__img--tall img{ max-height:460px; }
.stk-sec__img--link:hover img{ border-color:var(--stk-pitch); }
@media (min-width:768px){
  .stk-sec__img--link img{ width:100%; max-height:none; }
}

/* ===================== Нижняя плашка с оффером (мобайл) ===================== */
.stk-stickybar{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  display:flex; align-items:center; gap:12px; padding:10px var(--stk-gutter) calc(10px + env(safe-area-inset-bottom));
  background:rgba(7,18,25,.96); border-top:1px solid var(--stk-line); box-shadow:0 -10px 30px -12px rgba(0,0,0,.7);
  transition:transform .25s var(--stk-ease), visibility 0s;
}
/* visibility - чтобы спрятанная кнопка не ловила фокус с клавиатуры */
.stk-stickybar.is-hidden{ transform:translateY(110%); visibility:hidden; transition:transform .25s var(--stk-ease), visibility 0s .25s; }
.stk-stickybar__text{ margin:0; flex:1; min-width:0; line-height:1.25; font-size:.875rem; color:var(--stk-muted); }
.stk-stickybar__text strong{ display:block; font-family:var(--stk-font-head); font-size:1.125rem; letter-spacing:.02em; color:var(--stk-saffron); }
.stk-stickybar .stk-cta{ flex-shrink:0; }
body.has-stickybar{ padding-bottom:72px; }
@media (min-width:768px){
  .stk-stickybar{ display:none; }
  body.has-stickybar{ padding-bottom:0; }
}

/* ===================== FAQ ===================== */
.stk-faq{ display:grid; gap:10px; }
.stk-faq__item{ border:1px solid var(--stk-line); border-radius:var(--stk-radius); background:var(--stk-surface); transition:border-color .18s var(--stk-ease); }
.stk-faq__item[open]{ border-color:#3A5C6B; }
.stk-faq__item > summary{
  display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:56px; padding:14px 18px;
  font-weight:600; font-size:1.0625rem; line-height:1.4; cursor:pointer; list-style:none;
}
.stk-faq__item > summary::-webkit-details-marker{ display:none; }
.stk-faq__item > summary::after{
  content:""; flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--stk-surface-2);
  -webkit-mask:none; mask:none;
  background-image:linear-gradient(var(--stk-pitch), var(--stk-pitch)), linear-gradient(var(--stk-pitch), var(--stk-pitch));
  background-size:12px 2px, 2px 12px; background-position:center; background-repeat:no-repeat;
  transition:transform .2s var(--stk-ease);
}
.stk-faq__item[open] > summary::after{ transform:rotate(45deg); }
.stk-faq__item > summary:hover{ color:var(--stk-pitch); }
.stk-faq__a{ padding:0 18px 18px; color:#C9D7DC; }
.stk-faq__a > :last-child{ margin-bottom:0; }
