/*
Theme Name: Skywork Ru
Theme URI: https://skyworkai.help/
Author: Skywork Ru
Description: Русскоязычный сайт о Skywork — агентском ИИ-рабочем пространстве. Язык дизайна: наложенные плиты со смещённой цветной подложкой.
Version: 1.1.5
License: GNU General Public License v2 or later
Text Domain: skywork-help
*/

/* ==========================================================================
   Токены. Палитра снята кодом с бандлов skywork.ai
   (css/index-PBBSbGES.css): --brand-brand01-black #000818,
   --brand-brand03-blue #4d5eff, поверхность #edeff1 (89 вхождений),
   акцент #6c47ff (61 вхождение) со ступенями #a666ff / #7357ff / #efebff.
   Радиус 12px и кнопки-пилюли 100px — оттуда же.
   ========================================================================== */
:root {
  --ink:        #000818;
  --ink-2:      #333b46;
  --ink-3:      #485568;
  --mute:       #7f8896;
  --mute-2:     #979fab;

  --paper:      #ffffff;
  --surf:       #f9fafc;
  --surf-2:     #f4f5f7;
  --surf-3:     #edeff1;
  --line:       #adadad;
  --line-2:     #d4d6dc;

  --acc:        #6c47ff;
  --acc-deep:   #5334e6;
  --acc-lit:    #a666ff;
  --acc-pale:   #efebff;
  --blue:       #4d5eff;
  --teal:       #00c9a7;
  --rose:       #ff576d;

  --wrap:       1536px;
  --pad:        clamp(20px, 4vw, 56px);
  --col:        760px;

  --r:          12px;
  --r-s:        8px;
  --r-pill:     100px;

  --shift:      14px;              /* смещение цветной подложки под плитой */
  --shift-h:    24px;              /* то же на ховере */

  --f-d: 'Noto Serif Display', 'Times New Roman', Georgia, serif;
  --f-t: 'Fira Sans Condensed', 'Arial Narrow', system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ==========================================================================
   База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-t);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-deep); }

h1, h2, h3, h4 {
  font-family: var(--f-d);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 4.1vw, 62px); font-weight: 700; letter-spacing: -0.022em; }
h2 { font-size: clamp(28px, 3.2vw, 50px); }
h3 { font-size: clamp(21px, 1.7vw, 27px); }
h4 { font-size: 19px; font-family: var(--f-t); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .42em; }
li::marker { color: var(--acc); }

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--acc-pale); color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ==========================================================================
   Раскладка
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.text { max-width: var(--col); }

.band { padding: clamp(64px, 7vw, 124px) 0; position: relative; overflow-x: clip; }
.band--tint { background: var(--surf-2); }
.band--ink  { background: var(--ink); color: #c2c9d4; }
.band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }

/* Линейка-бегунок между секциями: три подписи по краям и в центре.
   Взято с референса 5, но с тремя якорями, а не одной подписью. */
.runner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-t);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.runner span:nth-child(2) { color: var(--ink); letter-spacing: .16em; }
.runner span:last-child { text-align: right; }
.band--ink .runner { border-color: rgba(255,255,255,.14); color: #7f8896; }
.band--ink .runner span:nth-child(2) { color: #fff; }

/* ==========================================================================
   Несущая форма: плита со смещённой цветной подложкой
   ========================================================================== */
/* Смещённая цветная подложка рисуется внешней тенью, а не псевдоэлементом.
   ::before с z-index:-1 зависел от контекста наложения и ломался тремя
   разными способами:
   1) у плиты со своим z-index (.overlap > :nth-child(2), .overlap--rev)
      подложка всплывала ПОВЕРХ собственной белой карточки и заливала её;
   2) в секции с непрозрачным фоном (.band--tint, .band--ink) она, наоборот,
      уходила под этот фон и пропадала совсем: своего контекста у плиты нет,
      псевдоэлемент всплывал до корневого, а фон секции рисуется позже;
   3) на время появления .rise (opacity < 1 и transform) контекст возникал
      и снова исчезал — подложка мелькала поверх карточки и «проваливалась».
   Внешняя тень пишется под фоном элемента всегда и от контекста наложения
   не зависит, поэтому все три случая закрываются одной механикой.
   Цвет подложки задаётся переменной, чтобы модификаторы не спорили
   по специфичности с .slab:hover. */
.slab {
  position: relative;
  --slab-underlay: var(--acc-pale);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 2.2vw, 34px);
  box-shadow: var(--shift) var(--shift) 0 0 var(--slab-underlay);
}
.slab > * { position: relative; }
.slab:hover {
  border-color: var(--line-2);
  box-shadow: var(--shift-h) var(--shift-h) 0 0 var(--slab-underlay);
}

.slab--acc  { --slab-underlay: var(--acc); }
.slab--blue { --slab-underlay: var(--blue); }
.slab--teal { --slab-underlay: var(--teal); }
.slab--rose { --slab-underlay: var(--rose); }
.slab--flat, .slab--flat:hover { box-shadow: none; }

/* Появление .rise перебивает transition самой плиты, поэтому дублируем
   правило с большей специфичностью — иначе сдвиг подложки на ховере
   перестаёт анимироваться. */
.slab, .js .slab.rise {
  transition: opacity .5s var(--ease), transform .5s var(--ease),
              border-color .3s var(--ease), box-shadow .34s var(--ease);
}

.slab--fill { background: var(--ink); border-color: var(--ink); color: #c2c9d4; }
.slab--fill h3, .slab--fill h4 { color: #fff; }

/* Надстрочных подписей над заголовками в теме нет намеренно: это С4 стоп-листа,
   и переименование класса запрет не обходит. Факт уходит в сам заголовок. */

/* Наложение плит друг на друга — референс 7 */
.overlap { display: grid; gap: 0; }
@media (min-width: 981px) {
  .overlap { grid-template-columns: 1fr 1fr; align-items: start; }
  .overlap > :nth-child(2) { margin-top: 78px; margin-left: -46px; z-index: 2; }
  .overlap--rev > :nth-child(1) { margin-top: 62px; z-index: 2; }
  .overlap--rev > :nth-child(2) { margin-top: 0; margin-left: -10px; z-index: 1; }
}

/* ==========================================================================
   Сетки
   ========================================================================== */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 2.4vw, 38px); margin-bottom: 50px;}
@media (min-width: 821px)  { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 821px)  { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 821px)  { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Асимметричная лесенка на 12 колонок */
@media (min-width: 981px) {
  .g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(22px, 2.2vw, 38px); }
  .sp3 { grid-column: span 3; } .sp4 { grid-column: span 4; }
  .sp5 { grid-column: span 5; } .sp6 { grid-column: span 6; }
  .sp7 { grid-column: span 7; } .sp8 { grid-column: span 8; }
  .sp9 { grid-column: span 9; } .sp12 { grid-column: span 12; }
  .drop { margin-top: 44px; } .drop-l { margin-top: 82px; }
}

/* ==========================================================================
   Кнопки. База — скругление офсайта (пилюля 100px).
   Контурная с прямым углом из референса 7 оставлена акцентной, не базовой.
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-t); font-size: 16px; font-weight: 600; line-height: 1;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  background: var(--acc); color: #fff;
  border: 1px solid var(--acc);
  cursor: pointer;
  transition: background-color .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--acc-deep); border-color: var(--acc-deep); color: #fff; }

.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: #12203a; border-color: #12203a; }

/* Акцентная контурная — прямой угол, разрядка, капс (референс 7) */
.btn--edge {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 28px;
}
.btn--edge:hover { background: var(--ink); color: #fff; }
.band--ink .btn--edge, .slab--fill .btn--edge { color: #fff; border-color: rgba(255,255,255,.5); }
.band--ink .btn--edge:hover, .slab--fill .btn--edge:hover { background: #fff; color: var(--ink); }

.btn--xs { padding: 9px 15px; font-size: 13px; white-space: nowrap; }
.btn--wide { width: 100%; }

.btns { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

/* ==========================================================================
   Шапка — плавающая пилюля, бренд по центру (референс 5)
   ========================================================================== */
.top {
  position: sticky; top: 0; z-index: 60;
  padding: 14px 0;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.top.is-stuck { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }

.top__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
	justify-items: self-end;
}
.top__in > * { min-width: 0; }

.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mark__s { width: 30px; height: 30px; flex: 0 0 30px; display: block; object-fit: contain; }
.mark__t { font-family: var(--f-d); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

.nav { display: none; }
@media (min-width: 1400px) {
  .nav a { font-size: 15px; padding: 8px 12px; }
}
@media (min-width: 1181px) {
  .nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
  .nav a {
    font-family: var(--f-t); font-size: 14px; font-weight: 500;
    color: var(--ink-3); padding: 7px 9px; border-radius: var(--r-pill);
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--acc-pale); color: var(--acc-deep); }
}

.top__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  cursor: pointer; color: var(--ink);
}
@media (min-width: 1181px) { .burger { display: none; } }

.drawer {
  display: none;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.drawer.is-on { display: block; }
.drawer a {
  display: block; padding: 11px 2px;
  font-family: var(--f-t); font-size: 17px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1181px) { .drawer, .drawer.is-on { display: none; } }

/* ==========================================================================
   Первый экран: коллаж наложенных плит + призрачная литера (референс 7)
   ========================================================================== */
.beacon { position: relative; padding: clamp(56px, 6vw, 106px) 0 clamp(106px, 6vw, 104px); overflow-x: clip; }

.beacon__ghost {
  position: absolute;
  right: -2vw; top: -4vw;
  font-family: var(--f-d);
  font-size: clamp(280px, 34vw, 620px);
  font-weight: 700;
  line-height: .78;
  color: var(--surf-3);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}

.beacon__in { position: relative; z-index: 1; }

.beacon__lead { max-width: 940px; }
.beacon__lead p { font-size: clamp(18px, 1.35vw, 22px); color: var(--ink-3); }

.frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surf-3);
  border: 1px solid var(--line);
}
.frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,8,24,0) 46%, rgba(0,8,24,.62) 100%);
  pointer-events: none;
}
/* Затемнение низа нужно только под белой подписью. Без подписи оно просто
   гасит нижнюю часть кадра: у постера съедает кнопку, у предметной съёмки — тень.
   Браузер без :has() просто оставит градиент, как было. */
.frame:not(:has(.frame__cap))::after { display: none; }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame--21 { aspect-ratio: 21 / 9; }
.frame--169 { aspect-ratio: 16 / 9; }
.frame--43 { aspect-ratio: 4 / 3; }
.frame--34 { aspect-ratio: 3 / 4; }
.frame--11 { aspect-ratio: 1 / 1; }
.frame--23 { aspect-ratio: 2 / 3; }

.frame__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 20px;
  color: #fff;
  font-family: var(--f-t); font-size: 14px; font-weight: 500;
}

/* ==========================================================================
   Снимки интерфейса. Отдельная подача от художественных кадров:
   картинка вписывается целиком, у неё своя светлая подложка, подпись
   печатается под кадром, а не поверх, и затемнение низа снято —
   на скриншоте оно съедает нижнюю панель.
   ========================================================================== */
.shots { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 821px) {
  .shots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .shot--s2 { grid-column: span 2; max-width: 350px; }
  .shot--s3 { grid-column: span 3; }
  .shot--s4 { grid-column: span 4; }
  .shot--s6 { grid-column: span 6; }
}
.shot {
  margin: 0;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surf-3);
}
.shot__box {
  display: block;
  position: relative;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.shot__box > img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.shot__cap {
  margin: 12px 2px 2px;
  font-family: var(--f-t); font-size: 14px; line-height: 1.45;
  color: var(--ink-3);
}

/* ==========================================================================
   Пара слайдов: второй заходит углом на первый. Одна композиция,
   а не две соседние плитки.
   ========================================================================== */
.duo { position: relative; }
.duo__a, .duo__b { margin: 0; }
.duo__a { width: 100%; }
/* Узкие экраны: перекрытие уменьшено до угла, ширина второго урезана,
   чтобы сдвиг не давал горизонтального переполнения. */
.duo__b {
  position: relative; z-index: 2;
  width: 88%; margin-left: 12%; margin-top: -6%;
  box-shadow: 0 14px 34px rgba(0, 8, 24, .22);
}
@media (min-width: 821px) {
  .duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .duo__a { grid-column: 1 / span 8; grid-row: 1; }
  .duo__b {
    grid-column: 8 / span 5; grid-row: 1;
    width: 100%; margin-left: 0; margin-top: 68%;
    box-shadow: 0 26px 60px rgba(0, 8, 24, .24);
  }
}
/* Слайды светлые: общий градиент низа гасит подписи внутри кадра. */
.duo .frame::after { display: none; }
.duo .frame { border-color: var(--line-2); }
.duo__cap {
  margin: 18px 0 0;
  font-family: var(--f-t); font-size: 15px; color: var(--ink-3);
}

/* Плейсхолдер, пока медиа не залиты */
.frame--void { display: grid; place-items: center; background: var(--surf-2); }
.frame--void::after { display: none; }
.frame--void::before {
  content: attr(data-void);
  position: absolute; z-index: 1;
  font-family: var(--f-t); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute-2);
  padding: 0 18px; text-align: center;
}

/* ==========================================================================
   Числа на полях — маргиналии с выносной линейкой
   ========================================================================== */
.margs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.marg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 821px) {
  .marg { grid-template-columns: 186px minmax(0, 1fr); gap: 30px; align-items: baseline; }
}
.marg__n {
  font-family: var(--f-d); font-size: clamp(34px, 3.4vw, 54px); font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -0.03em;
  position: relative;
}
@media (min-width: 821px) {
  .marg__n::after {
    content: ""; position: absolute; left: 0; bottom: -13px;
    width: 40px; height: 2px; background: var(--acc);
  }
}
.marg__t { color: var(--ink-3); }
.marg__t b { color: var(--ink); }

/* ==========================================================================
   Асимметричная мозаика галереи (референс 7): разные пропорции, наложение
   ========================================================================== */
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 821px) {
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .mosaic > :nth-child(1) { grid-column: span 4; }
  .mosaic > :nth-child(2) { grid-column: span 2; margin-top: 42px; }
  .mosaic > :nth-child(3) { grid-column: span 2; }
  .mosaic > :nth-child(4) { grid-column: span 2; margin-top: -26px; }
  .mosaic > :nth-child(5) { grid-column: span 2; margin-top: 30px; }
  .mosaic > :nth-child(6) { grid-column: span 3; margin-top: -14px; }
  .mosaic > :nth-child(7) { grid-column: span 3; margin-top: 34px; }
  .mosaic > :nth-child(8) { grid-column: span 2; }
}

/* Три кадра в ряд со сдвигом — под набор, где широкой картинки нет. */
.mosaic--trio { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 821px) {
  .mosaic--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .mosaic--trio > :nth-child(1) { grid-column: auto; margin-top: 0; }
  .mosaic--trio > :nth-child(2) { grid-column: auto; margin-top: 34px; }
  .mosaic--trio > :nth-child(3) { grid-column: auto; margin-top: -18px; }
}

/* ==========================================================================
   Таблицы
   ========================================================================== */
.tw { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-family: var(--f-t); font-size: 16px; background: var(--paper); }
th, td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); background: var(--surf-2); white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
td b { color: var(--ink); }

@media (max-width: 640px) {
  .tw { border: none; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; background: var(--paper); }
  td { border-bottom: 1px solid var(--line); padding: 12px 15px; }
  tr td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    display: block; margin-bottom: 4px;
    font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  }
}

/* ==========================================================================
   Тарифы
   ========================================================================== */
.plan { display: flex; flex-direction: column; }
.plan__n { font-family: var(--f-t); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.plan__p { font-family: var(--f-d); font-size: clamp(34px, 3vw, 46px); font-weight: 700; color: var(--ink); line-height: 1.05; margin: 8px 0 2px; letter-spacing: -0.03em; }
.plan__u { font-family: var(--f-t); font-size: 15px; color: var(--mute); }
.plan__l { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan__l li { position: relative; padding-left: 22px; font-size: 16px; margin-bottom: .5em; }
.plan__l li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--acc); }
.plan .btn { margin-top: auto; }
.plan__tag {
  position: absolute; top: -13px; left: clamp(22px, 2.2vw, 34px); z-index: 3;
  background: var(--ink); color: #fff;
  font-family: var(--f-t); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill);
}

/* ==========================================================================
   Аккордеон FAQ
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc__i { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 22px 2px;
  font-family: var(--f-d); font-size: clamp(18px, 1.35vw, 22px); font-weight: 600; color: var(--ink);
  line-height: 1.25;
}
.acc__s { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 4px; position: relative; }
.acc__s::before, .acc__s::after {
  content: ""; position: absolute; left: 3px; top: 10px; width: 16px; height: 2px; background: var(--acc);
  transition: transform .3s var(--ease);
}
.acc__s::after { transform: rotate(90deg); }
.acc__i.is-on .acc__s::after { transform: rotate(0deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.acc__i.is-on .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding-bottom: 20px; color: var(--ink-3); }

/* ==========================================================================
   Отзывы и рейтинг
   ========================================================================== */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.star { position: relative; display: inline-block; line-height: 0; }
.star svg { display: block; }
.star__b { color: var(--line-2); }
.star__f { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--acc); }

.score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.score__n { font-family: var(--f-d); font-size: clamp(48px, 5vw, 82px); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }

.bars { display: grid; gap: 15px; }
.bar__h { display: flex; justify-content: space-between; gap: 14px; font-family: var(--f-t); font-size: 15px; margin-bottom: 6px; }
.bar__h b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar__t { height: 7px; border-radius: var(--r-pill); background: var(--surf-3); overflow: hidden; }
.bar__f { height: 100%; border-radius: var(--r-pill); background: var(--acc); }

.voice__who { font-family: var(--f-t); font-size: 16px; font-weight: 600; color: var(--ink); }
.voice__when { font-family: var(--f-t); font-size: 14px; color: var(--mute); }
.voice__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }

/* ==========================================================================
   Хлебные крошки, перелинковка, подвал
   ========================================================================== */
.crumbs { font-family: var(--f-t); font-size: 14px; color: var(--mute); padding: 10px 0 0; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--acc); }
.crumbs span { margin: 0 7px; color: var(--line-2); }

.next { display: grid; gap: 14px; }
@media (min-width: 821px) { .next { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.next a {
  display: block; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-family: var(--f-d); font-size: 20px; font-weight: 600;
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.next a:hover { border-color: var(--acc); background: var(--acc-pale); color: var(--ink); }

.foot { background: var(--ink); color: #8b94a3; padding: clamp(52px, 5vw, 84px) 0 34px; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.foot a { color: #b9c0cc; font-family: var(--f-t); font-size: 16px; }
.foot a:hover { color: #fff; }
.foot__grid { display: grid; gap: 34px; }
@media (min-width: 821px)  { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.foot__list { list-style: none; padding: 0; margin: 0; }
.foot__list li { margin-bottom: 9px; }
.foot__mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 16px; }
.foot__mark .mark__t { color: #fff; }
.foot__note { font-family: var(--f-t); font-size: 14px; line-height: 1.6; color: #7f8896; }
.foot__bot {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--f-t); font-size: 14px; color: #6f7885;
}

/* ==========================================================================
   Появление: подложка приходит первой, плита наезжает на неё
   ========================================================================== */
.js .rise { opacity: 0; transform: translate(calc(var(--shift) * -1), calc(var(--shift) * -1)); }
.js .rise { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }
.js .rise:nth-child(2) { transition-delay: .07s; }
.js .rise:nth-child(3) { transition-delay: .14s; }
.js .rise:nth-child(4) { transition-delay: .21s; }
.js .rise:nth-child(5) { transition-delay: .28s; }
.js .rise:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .rise.is-in { opacity: 1; transform: none; transition: none; }
  .slab, .slab:hover, .js .slab.rise { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Мелочи
   ========================================================================== */
.lead { font-size: clamp(18px, 1.35vw, 22px); color: var(--ink-3); }
.mut { color: var(--mute); }
.nowrap { white-space: nowrap; }
.mb0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(30px, 3.2vw, 52px); }
.center { text-align: center; }

.tag {
  display: inline-block;
  font-family: var(--f-t); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc-deep); background: var(--acc-pale);
  padding: 6px 12px; border-radius: var(--r-pill);
}

.hr { height: 1px; background: var(--line); border: none; margin: clamp(38px, 4vw, 64px) 0; }

.ico { width: 22px; height: 22px; stroke-width: 1.6; }

@media (max-width: 980px) {
  .overlap > :nth-child(2),
  .overlap--rev > :nth-child(1),
  .overlap--rev > :nth-child(2) { margin: 18px 0 0; }
	.overlap {gap: 30px;}
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  /* Литера декоративная: за правый край её выпускать нельзя — на узких
     ширинах это давало настоящее переполнение, а не «просто вылет». */
  .beacon__ghost { font-size: 200px; right: 0; top: -2vw; }
}
@media (max-width: 420px) {
  .btn { padding: 13px 20px; font-size: 15px; }
  .btn--xs { padding: 9px 12px; font-size: 12px; }
  .mark__t { font-size: 19px; }
  .top__in { gap: 10px; }
  .burger { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (max-width: 380px) {
  /* Имя бренда прячется, знак и доступное имя ссылки остаются:
     иначе шапка не помещается в 320px и страница едет вбок. */
  .mark__t { display: none; }
  .beacon__ghost { font-size: 168px; }
  :root { --pad: 16px; }
}
.band--ink .score__n {
	color: #ffffff;
}
.band--ink .slab--fill {
	border: 1px solid var(--line);
    border-radius: var(--r);
}

/* ==========================================================================
   Полноэкранный просмотр кадров.
   В сетке кадр обрезан рамкой (cover), в оверлее показывается целиком
   (contain) — владелец требует кадры целиком. Курсор zoom-in вешается
   только на то, что скрипт реально включил: без JS подсказки нет.
   Имя состояния своё, is-lbx-open: класс .open в теме занят первым экраном.
   ========================================================================== */
.js-zoom { cursor: zoom-in; }
.js-zoom:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
/* Подпись лежит поверх кадра: без этого нижняя полоса рамки на клик не отвечает. */
.frame__cap { pointer-events: none; }

/* Замок прокрутки. Позиция возвращается скриптом, поэтому прыжка нет,
   а padding-right компенсирует исчезнувшую полосу прокрутки. */
.is-lbx-open body { position: fixed; left: 0; right: 0; overflow: hidden; }

.lbx {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 46px);
  /* Снизу воздух под счётчик кадров: двухстрочная подпись иначе садится на него. */
  padding-bottom: clamp(44px, 4.5vw, 74px);
  background: rgba(4, 8, 20, .93);
  overscroll-behavior: contain;
  animation: lbx-in .18s ease-out both;
}
.lbx[hidden] { display: none; }
.lbx [hidden] { display: none !important; }

.lbx__stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 14px;
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
}
.lbx__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  align-self: center;
  border-radius: var(--r-s);
  cursor: zoom-out;
  animation: lbx-pic .2s ease-out both;
}
.lbx__cap {
  margin: 0;
  max-width: 860px;
  text-align: center;
  color: rgba(255, 255, 255, .82);
  font-family: var(--f-t); font-size: 14px; line-height: 1.45;
}

.lbx__x, .lbx__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(10, 16, 32, .74);
  color: #fff;
  font-family: var(--f-t); font-size: 26px; line-height: 1;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.lbx__x:hover, .lbx__nav:hover { background: rgba(30, 40, 70, .92); }
.lbx__x:focus-visible, .lbx__nav:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.lbx__x { top: clamp(10px, 2vw, 22px); right: clamp(10px, 2vw, 22px); font-size: 30px; }
.lbx__nav { top: 50%; transform: translateY(-50%); }
.lbx__prev { left: clamp(6px, 1.4vw, 20px); }
.lbx__next { right: clamp(6px, 1.4vw, 20px); }
.lbx__num {
  position: absolute; left: 0; right: 0; bottom: clamp(6px, 1.4vw, 16px);
  margin: 0; text-align: center;
  color: rgba(255, 255, 255, .6);
  font-family: var(--f-t); font-size: 13px; letter-spacing: .08em;
}

@media (max-width: 560px) {
  .lbx { padding: 12px 12px 58px; }
  .lbx__x, .lbx__nav { width: 40px; height: 40px; font-size: 22px; }
  .lbx__nav { top: auto; bottom: 8px; transform: none; }
  .lbx__prev { left: calc(50% - 80px); }
  .lbx__next { right: calc(50% - 80px); }
  .lbx__num { bottom: 22px; }
}

@keyframes lbx-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbx-pic { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lbx, .lbx__img { animation: none; }
}
