/* ==========================================================================
   Sani Labs / sanilabs.info

   Палитра тёплая, построена вокруг кирпичного #9C3D26 из брендбука.
   Кирпичный здесь работает не точечным акцентом, а плашкой: секция статуса
   залита им целиком. Остальное держится на волосяных линейках и типографике,
   без теней и градиентных пятен.

   Радиусы повторяют логику знака: передняя рамка почти квадратная, задняя
   круглая. Поэтому вложенность задаёт радиус, а не одна общая величина.

   Шрифты: IBM Plex Sans на заголовки, Golos Text на текст. Оба содержат
   полный казахский набор (ә ғ қ ң ө ұ ү һ і), Manrope из брендбука его
   не содержит и подставлял фолбэк.
   ========================================================================== */

:root {
  --paper:     #f3ede6;
  --paper-2:   #eee5da;
  --surface:   #fffdfb;
  --ink:       #1e1a17;
  --ink-2:     #6e635b;
  --ink-3:     #736760;
  --rule:      #ded2c6;
  --rule-soft: #e9e0d6;
  --brick:      #9c3d26;
  --brick-2:    #7c2e1a;
  --brick-fill: #9c3d26;
  --brick-fill-2: #b34827;
  --brick-sf:   #f0e3dc;
  --night:      #1e1a17;
  --night-ink:  #efe9e3;

  --r-1: 2px;
  --r-2: 6px;
  --r-3: 14px;

  --logo-bg: var(--paper);
  --wrap: 1160px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    /* Фон не чёрный, а тёплый уголь, текст не белый, а тёплый светлый:
       пара «почти чёрное с почти белым» утомляет глаза сильнее всего. */
    --paper:      #1b1613;
    --paper-2:    #221c18;
    --surface:    #272019;
    --ink:        #e9e3dc;
    --ink-2:      #b1a599;
    --ink-3:      #a3978b;
    --rule:       #392f28;
    --rule-soft:  #2d251f;
    --brick:      #de7f5c;
    --brick-2:    #ec9575;
    --brick-fill: #a8441f;
    --brick-fill-2: #c2542a;
    --brick-sf:   #2f2119;
    --night:      #151110;
    --night-ink:  #e6e0d9;
    --shadow:    0 1px 2px rgba(0, 0, 0, .34), 0 8px 24px rgba(0, 0, 0, .32);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .38), 0 18px 40px rgba(0, 0, 0, .42);
  }
}
html[data-theme="dark"] {
  /* Фон не чёрный, а тёплый уголь, текст не белый, а тёплый светлый:
     пара «почти чёрное с почти белым» утомляет глаза сильнее всего. */
  --paper:      #1b1613;
  --paper-2:    #221c18;
  --surface:    #272019;
  --ink:        #e9e3dc;
  --ink-2:      #b1a599;
  --ink-3:      #a3978b;
  --rule:       #392f28;
  --rule-soft:  #2d251f;
  --brick:      #de7f5c;
  --brick-2:    #ec9575;
  --brick-fill: #a8441f;
  --brick-fill-2: #c2542a;
  --brick-sf:   #2f2119;
  --night:      #151110;
  --night-ink:  #e6e0d9;
  --shadow:    0 1px 2px rgba(0, 0, 0, .34), 0 8px 24px rgba(0, 0, 0, .32);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .38), 0 18px 40px rgba(0, 0, 0, .42);
}

/* --- база ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.62 "Golos Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.021em;
  line-height: 1.14;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.45rem); line-height: 1.04; letter-spacing: -.032em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.055rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
code { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: .92em; }

::selection { background: var(--brick-fill); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 100;
  background: var(--brick-fill); color: #fff; padding: 11px 18px; border-radius: var(--r-2);
  font-weight: 600; transition: top .22s var(--ease);
}
.skip:focus { top: 16px; }

/* --- шапка --------------------------------------------------------------- */

.hdr {
  position: sticky; top: 0; z-index: 50;
  --logo-bg: var(--paper);
  background: var(--paper);
  transition: box-shadow .32s var(--ease);
}
.hdr.is-stuck { box-shadow: 0 10px 26px -22px rgba(30, 26, 23, .55); }

.hdr__in { display: flex; align-items: center; gap: 24px; height: 76px; }

.logo { display: flex; align-items: center; flex: none; color: var(--brick); }
.logo__svg { height: 32px; width: auto; display: block; }
.logo { transition: opacity .2s var(--ease); }
.logo:hover { opacity: .7; }

.nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; z-index: 1;
  padding: 9px 12px;
  font-size: .925rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .24s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--brick); }

/* Один общий бегунок переезжает к текущему разделу, а не мигает
   отдельной чертой под каждым пунктом. */
.nav__mark {
  position: absolute; z-index: 0; bottom: 4px; left: 0;
  height: 2px; width: 0; border-radius: 2px;
  background: var(--brick);
  opacity: 0;
  transition: transform .46s var(--ease-out), width .46s var(--ease-out),
              opacity .32s var(--ease);
}
.nav__mark.is-on { opacity: 1; }

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

/* Плашка активного языка едет между кнопками, а не перепрыгивает. */
.lang {
  position: relative; display: flex;
  border: 1px solid var(--rule); border-radius: var(--r-2);
  overflow: hidden;
  --lang-i: 1;
}
.lang__pill {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0;
  width: calc(100% / 3);
  background: var(--brick-fill);
  transform: translateX(calc(100% * var(--lang-i)));
  transition: transform .46s var(--ease-out);
}
.lang button {
  position: relative; z-index: 1; flex: 1 1 0;
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2); padding: 8px 11px;
  transition: color .34s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button.is-on { color: #fff; }

/* Кнопки без рамок: рамка тут ничего не сообщает, только шумит. */
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 0; background: none; padding: 0;
  color: var(--ink-2); cursor: pointer;
  transition: color .22s var(--ease);
}
.icon-btn:hover { color: var(--brick); }

.theme-btn { color: #c2701f; }
.theme-btn:hover { color: #a85c14; }
html[data-theme="dark"] .theme-btn { color: #f0c56b; }
html[data-theme="dark"] .theme-btn:hover { color: #ffd98a; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-btn { color: #f0c56b; }
  html:not([data-theme="light"]) .theme-btn:hover { color: #ffd98a; }
}

/* Солнце превращается в луну одной фигурой: лучи втягиваются, а сверху
   справа наезжает вырез из маски и выедает из диска серп. */
.theme-ico { display: block; overflow: visible; }
.theme-ico__disc {
  transform-origin: 12px 12px;
  transition: transform .62s var(--ease-out);
}
.theme-ico__cut {
  transition: transform .62s var(--ease-out);
}
.theme-ico__rays {
  transform-origin: 12px 12px;
  transition: transform .52s var(--ease-out), opacity .34s var(--ease);
}

html[data-theme="dark"] .theme-ico__cut  { transform: translate(-9.2px, 3.6px); }
html[data-theme="dark"] .theme-ico__rays { transform: rotate(-55deg) scale(.2); opacity: 0; }
html[data-theme="dark"] .theme-ico__disc { transform: scale(1.16) rotate(-14deg); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-ico__cut  { transform: translate(-9.2px, 3.6px); }
  html:not([data-theme="light"]) .theme-ico__rays { transform: rotate(-55deg) scale(.2); opacity: 0; }
  html:not([data-theme="light"]) .theme-ico__disc { transform: scale(1.16) rotate(-14deg); }
}

/* Полоски целым числом пикселей, иначе на обычном экране они размываются
   и выглядят разной толщины. */
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span {
  display: block; width: 18px; height: 2px; border-radius: 1px;
  background: currentColor;
  transition: transform .32s var(--ease-out), opacity .18s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- герой --------------------------------------------------------------- */

.hero { padding: clamp(52px, 7vw, 92px) 0 clamp(36px, 4vw, 56px); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
  color: var(--ink-2);
  max-width: 52ch;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Кнопки держатся на форме и цвете, без подпрыгиваний и разъезжающихся
   иконок: движение здесь ничего не сообщает. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent; border-radius: 8px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500; font-size: .95rem; line-height: 1;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--solid { background: var(--brick-fill); color: #fff; }
.btn--solid:hover { background: var(--brick-fill-2); }

.btn--line { border-color: var(--rule); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--brick); color: var(--brick); }
.btn--line svg { color: var(--brick); }

.btn__num {
  margin-left: 4px;
  color: var(--ink-2);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  transition: color .22s var(--ease);
}
.btn--line:hover .btn__num { color: var(--brick); }

/* Первый экран: знак собирается из своих же рамок, потом надпись
   прорисовывается штрихом, стирается и пишется снова. Обе анимации сделаны
   на геометрии логотипа, а не поверх неё. */
.brandshow {
  --logo-bg: var(--paper);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 3vw, 30px);
  color: var(--brick);
  padding-top: clamp(4px, 2vw, 20px);
}
.brandshow__mark { width: min(80%, 268px); height: auto; display: block; }
.brandshow__word { width: min(100%, 348px); height: auto; display: block; overflow: visible; }

.bs-l { opacity: 0; transform-box: view-box; transform-origin: 128px 128px;
        animation: bs-fade .85s var(--ease-out) forwards; }
.bs-l1 { animation-delay: .44s; }
@keyframes bs-fade { to { opacity: 1; } }

.bs-ring {
  transform-box: view-box; transform-origin: 99px 99px;
  opacity: 0; transform: scale(.25);
  animation: bs-ring .75s var(--ease-out) .68s forwards,
             bs-breathe 13s var(--ease) 2.1s infinite;
}
@keyframes bs-ring { to { opacity: 1; transform: none; } }

.bs-dia {
  transform-box: view-box; transform-origin: 99px 99px;
  opacity: 0; transform: rotate(200deg) scale(.15);
  animation: bs-dia .85s var(--ease-out) .82s forwards,
             bs-spin 13s var(--ease) 2.1s infinite;
}
@keyframes bs-dia { to { opacity: 1; transform: rotate(45deg) scale(1); } }

.brandshow__mark { animation: bs-float 8s var(--ease) 1.6s infinite; }
@keyframes bs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Когда знак собрался, стопка начинает медленно раскрываться и сходиться
   обратно. Радиусы рамок при этом не трогаем: знак всё время читается как
   он есть, меняется только глубина. */
.bs-l2 { animation: bs-fade .85s var(--ease-out) .28s forwards,
                    bs-fan-2 9s var(--ease) 2.1s infinite; }
.bs-l3 { animation: bs-fade .85s var(--ease-out) .12s forwards,
                    bs-fan-3 9s var(--ease) 2.1s infinite; }

@keyframes bs-fan-2 {
  0%, 100% { transform: none; }
  45%      { transform: translate(7px, 7px); }
}
@keyframes bs-fan-3 {
  0%, 100% { transform: none; }
  45%      { transform: translate(15px, 15px); }
}

/* ромб отсчитывает четверти оборота, кольцо еле заметно дышит */
@keyframes bs-spin {
  0%, 18%   { transform: rotate(45deg); }
  30%, 48%  { transform: rotate(135deg); }
  60%, 78%  { transform: rotate(225deg); }
  90%, 100% { transform: rotate(405deg); }
}
@keyframes bs-breathe {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.07); }
}

/* надпись рисуется штрихом: длина каждого контура считается в main.js */
.bs-w {
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
  animation: bs-draw 7s var(--ease) 1.1s infinite;
}
@keyframes bs-draw {
  0%          { stroke-dashoffset: var(--len, 300); }
  26%, 66%    { stroke-dashoffset: 0; }
  90%, 100%   { stroke-dashoffset: var(--len, 300); }
}
.bs-dot { opacity: 0; animation: bs-dot 7s var(--ease) 1.1s infinite; }
@keyframes bs-dot { 0%, 30% { opacity: 0; } 40%, 66% { opacity: 1; } 88%, 100% { opacity: 0; } }

/* --- секции -------------------------------------------------------------- */

.sec { padding: clamp(60px, 7vw, 96px) 0; }
.sec--alt { background: var(--paper-2); --logo-bg: var(--paper-2); }
.sec__h {
  text-align: center;
  max-width: 20ch;
  margin: 0 auto clamp(30px, 4vw, 46px);
}
.sec__lede {
  text-align: center; color: var(--ink-2);
  max-width: 48ch; margin: -22px auto clamp(28px, 3vw, 38px);
  font-size: 1.02rem;
}

/* «Для кого» и «Как работаем» стоят рядом: оба списка короткие,
   вместе они занимают один экран вместо двух. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: start; }
.duo .sec__h { min-height: 2.28em; }

/* о компании */
.about { max-width: 62ch; margin-inline: auto; text-align: center; }
.about p { color: var(--ink-2); font-size: 1.04rem; }
.about p + p { margin-top: 16px; }

/* направления: строки с волосяной линейкой, без плашек и теней */
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.svc {
  display: grid; grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 18px; align-items: start; align-content: start;
  padding: 22px 0;
}
.svc__ico { color: var(--brick); display: block; }
.svc__ico .ico { width: 32px; height: 32px; display: block; overflow: visible; }

/* Каждая иконка живёт своей жизнью и объясняет смысл раздела: лента в
   телефоне ползёт, строки в окне набираются, столбцы графика перестраиваются,
   шапочка подпрыгивает, робот моргает, шестерёнка проворачивается.
   Движение медленное и вразнобой, чтобы читалось фоном, а не мельтешило. */
.ico__feed, .ico__lines rect, .ico__bars rect,
.ico__cap, .ico__tassel, .ico__eyes, .ico__gear {
  transform-box: fill-box;
}

.ico__feed { transform-origin: center; animation: ico-scroll 4.2s linear infinite; }
@keyframes ico-scroll { to { transform: translateY(-9.6px); } }

.ico__lines rect { transform-origin: left center; animation: ico-type 3.4s var(--ease-out) infinite; }
.ico__lines rect:nth-child(2) { animation-delay: .35s; }
.ico__lines rect:nth-child(3) { animation-delay: .7s; }
@keyframes ico-type { 0% { transform: scaleX(0); } 22%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

.ico__bars rect { transform-origin: bottom; animation: ico-bar 2.1s var(--ease) infinite alternate; }
.ico__bars rect:nth-child(2) { animation-delay: .3s; }
.ico__bars rect:nth-child(3) { animation-delay: .6s; }
.ico__bars rect:nth-child(4) { animation-delay: .9s; }
@keyframes ico-bar { from { transform: scaleY(.5); } to { transform: scaleY(1); } }

.ico__cap { transform-box: view-box; transform-origin: 12px 12px; animation: ico-cap 2.8s var(--ease-out) infinite; }
@keyframes ico-cap { 0%, 72%, 100% { transform: translateY(0); } 82% { transform: translateY(-2.2px); } }

.ico__tassel { transform-box: view-box; transform-origin: 20.4px 8.6px; animation: ico-tassel 2.8s var(--ease) infinite; }
@keyframes ico-tassel { 0%, 72%, 100% { transform: rotate(0); } 82% { transform: rotate(14deg); } 92% { transform: rotate(-7deg); } }

.ico__eyes { transform-box: view-box; transform-origin: 12px 13.4px; animation: ico-blink 3.2s var(--ease) infinite; }
@keyframes ico-blink {
  0%, 40%, 47%, 57%, 64%, 100% { transform: scaleY(1); }
  43%, 60% { transform: scaleY(.08); }
}

.ico__gear { transform-box: view-box; transform-origin: 12px 12px; animation: ico-gear 7s linear infinite; }
@keyframes ico-gear { to { transform: rotate(360deg); } }
.svc h3 { margin-bottom: 7px; }
.svc p { grid-column: 2; color: var(--ink-2); font-size: .945rem; }

/* для кого */
.aud__grid { display: grid; }
.aud {
  display: grid; grid-template-columns: 54px minmax(0, 1fr);
  gap: 2px 16px; align-items: baseline; align-content: start;
  padding: 18px 0;
}
.aud__tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .96rem; font-weight: 500; letter-spacing: .02em; color: var(--brick);
  line-height: 1.3;
}
.aud h3 { margin: 0; }
.aud p { grid-column: 2; color: var(--ink-2); font-size: .945rem; margin-top: 5px; }

/* как работаем: это настоящая последовательность, поэтому номера уместны */
.steps { display: grid; counter-reset: none; }
.steps li {
  display: grid; grid-template-columns: 54px minmax(0, 1fr);
  gap: 2px 16px; align-items: baseline; align-content: start;
  padding: 18px 0;
}
.step__n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.06rem; font-weight: 500; color: var(--brick);
  line-height: 1.25;
}
.steps h3 { margin: 0; }
.steps p { grid-column: 2; color: var(--ink-2); font-size: .945rem; margin-top: 5px; }

/* статус: единственная плашка на странице, залитая кирпичным */
.status { background: var(--brick-fill); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.status__in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.status .sec__h { color: #fff; }
.status__text p { color: rgba(255, 255, 255, .82); max-width: 54ch; }
.status__text p + p { margin-top: 14px; }
.status__list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0;
  font-size: .95rem;
}
.status__list dt { color: rgba(255, 255, 255, .7); }
.status__list dd { font-family: "IBM Plex Sans", system-ui, sans-serif; font-weight: 500; }

/* вопросы */
/* Список без сплошных линеек: разделяет номер и короткий штрих в его колонке.
   Маркер это ромб из центра фирменного знака, при раскрытии вокруг него
   появляется кольцо, как в самом логотипе. */
.faq { max-width: 900px; margin-inline: auto; }
.faq details { position: relative; }

/* Подсветка живёт на всём блоке, поэтому раскрытый ответ не отрывается
   от своего вопроса. */
.faq { max-width: 900px; margin-inline: auto; }
.faq details {
  margin-left: -16px;
  padding-inline: 16px 18px;
  border-radius: var(--r-2);
  transition: background .3s var(--ease);
}
.faq details:hover, .faq details[open] { background: var(--brick-sf); }

.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 30px;
  align-items: start; gap: 0 14px;
  padding: 17px 0;
}
.faq summary::-webkit-details-marker { display: none; }

.faq__n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .95rem; color: var(--ink-3); padding-top: 4px;
  transition: color .28s var(--ease);
}
.faq details[open] .faq__n { color: var(--brick); }

.faq__q {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500; font-size: 1rem; line-height: 1.4;
  transition: color .22s var(--ease);
}
.faq summary:hover .faq__q { color: var(--brick); }

.faq__mark { display: block; padding-top: 1px; color: var(--brick); }
.faq__mark svg { width: 22px; height: 22px; display: block; overflow: visible; }
.faq__ring, .faq__dia, .faq__wave { transform-box: view-box; transform-origin: 12px 12px; }

/* Кольцо обводится вокруг ромба, как в самом знаке, наружу уходит волна. */
.faq__ring {
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
  transform: rotate(-90deg);
  transition: stroke-dashoffset .68s var(--ease-out);
}
.faq details[open] .faq__ring { stroke-dashoffset: 0; }

.faq__dia {
  transform: rotate(45deg);
  transition: transform .68s var(--ease-out);
}
.faq details[open] .faq__dia { transform: rotate(225deg) scale(.46); }

.faq__wave { opacity: 0; }
.faq details[open] .faq__wave { animation: faq-wave .85s var(--ease-out); }
@keyframes faq-wave {
  0%   { opacity: .55; transform: scale(.5); }
  100% { opacity: 0;   transform: scale(1.85); }
}

.faq details p {
  padding: 0 44px 20px 60px; margin-top: -7px;
  color: var(--ink-2); font-size: .96rem;
}
.faq details[open] p { animation: rise .45s var(--ease-out); }

/* контакты */
.contact__act { display: flex; flex-direction: column; align-items: center; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact__alt {
  display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 24px; justify-content: center;
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 1rem;
}
.contact__alt a {
  color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact__alt a:hover { color: var(--brick); border-color: var(--brick); }

/* реквизиты */
.req { margin-top: 46px; max-width: 900px; margin-inline: auto; }
.req summary {
  list-style: none; cursor: pointer; padding: 14px 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: color .2s var(--ease);
}
.req summary::-webkit-details-marker { display: none; }
.req summary:hover { color: var(--brick); }
.req summary::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 1.6px solid var(--brick); border-bottom: 1.6px solid var(--brick);
  transform: rotate(-45deg); transition: transform .32s var(--ease);
}
.req[open] summary::before { transform: rotate(45deg); }
.req__panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: 8px clamp(20px, 3vw, 30px) 22px;
  margin-bottom: 6px;
}
.req[open] .req__panel { animation: rise .5s var(--ease-out); }
.req__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); }
.req__list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0;
}
.req__list dt { font-size: .87rem; color: var(--ink-2); white-space: nowrap; }
.req__list dd {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500; font-size: .93rem; text-align: right;
  display: inline-flex; align-items: center; gap: 8px;
}
.req__list code { font-size: .89rem; letter-spacing: .015em; }

.copy {
  width: 30px; height: 30px; flex: none; margin: -6px -4px -6px 0;
  border: 0; background: none; cursor: pointer; position: relative;
  border-radius: var(--r-2);
  transition: background .2s var(--ease);
}
.copy::after {
  content: ""; position: absolute; inset: 0; background: var(--ink-3);
  -webkit-mask: var(--copy-ico) center / 14px no-repeat; mask: var(--copy-ico) center / 14px no-repeat;
  transition: background .2s var(--ease);
}
.copy:hover { background: var(--brick-sf); }
.copy:hover::after { background: var(--brick); }
:root { --copy-ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1Zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm0 16H8V7h11v14Z"/></svg>'); }

/* --- подвал -------------------------------------------------------------- */

.ftr {
  background: var(--night); color: var(--night-ink);
  --logo-bg: var(--night);
  padding: 56px 0 40px;
}
.ftr__in { display: grid; gap: 34px; }
.ftr__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; color: #fff; }
.ftr__brand .logo__svg { height: 28px; }
.ftr__brand p { color: rgba(239, 233, 227, .6); font-size: .94rem; }

.ftr__soc { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.ftr__soc a {
  display: block; color: rgba(239, 233, 227, .62);
  transition: color .22s var(--ease);
}
.ftr__soc a svg { width: 22px; height: 22px; display: block; }
.ftr__soc a:hover { color: #fff; }

.ftr__legal {
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
  font-size: .85rem; color: rgba(239, 233, 227, .5);
  padding-top: 30px;
}
.ftr__legal a { transition: color .2s var(--ease); }
.ftr__legal a:hover { color: var(--brick-2); }

/* --- свой скроллбар --------------------------------------------------- */

html { scrollbar-color: var(--rule) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--rule);
  border: 3px solid var(--paper);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brick); }
::-webkit-scrollbar-corner { background: transparent; }

/* --- кнопка наверх ------------------------------------------------------ */

.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--brick-fill); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out),
              visibility .35s, background .22s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--brick-fill-2); }
.totop svg { width: 19px; height: 19px; }
.totop__ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--brick-fill);
  opacity: .3;
  transform: scale(.86);
  transition: transform .45s var(--ease-out), opacity .35s var(--ease);
}
.totop:hover .totop__ring { transform: scale(1); opacity: .55; }

/* --- уведомление о копировании ------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: var(--r-2);
  font-size: .88rem; font-weight: 500;
  opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity .3s var(--ease), transform .35s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- движение ------------------------------------------------------------ */

/* появление при первой отрисовке: заголовок, лид, кнопки, карточка */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.hero__lead h1,
.hero__lead .lede,
.hero__lead .cta { animation: rise .8s var(--ease-out) backwards; }
.hero__lead h1   { animation-delay: .05s; }
.hero__lead .lede { animation-delay: .16s; }
.hero__lead .cta { animation-delay: .26s; }
.record { animation: settle .95s var(--ease-out) .18s backwards; }

/* появление при прокрутке: короткий сдвиг, длинная плавная кривая */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- адаптив ------------------------------------------------------------- */

/* Планшет: две колонки схлопываются в одну, но раскладка ещё просторная. */
@media (max-width: 1040px) {
  .hero__in { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .status__in { grid-template-columns: 1fr; gap: 30px; }
  .brandshow__mark { width: min(46%, 200px); }
  .brandshow__word { width: min(62%, 264px); }
  .sec__h { max-width: 24ch; }
}

/* Здесь меню уезжает под бургер. */
@media (max-width: 880px) {
  .hdr__in { gap: 12px; height: 68px; }
  .burger { display: flex; }
  .hdr__tools { margin-left: auto; gap: 6px; }
  .logo__svg { height: 28px; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    padding: 8px 22px 20px;
    display: none;
    box-shadow: 0 16px 30px -22px rgba(30, 26, 23, .5);
  }
  .nav.is-open { display: flex; }
  .nav__mark { display: none; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; border-radius: var(--r-2); }
  .nav a.is-active { background: var(--brick-sf); }

}

/* Ниже этой ширины две колонки уже тесные. */
@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; gap: 44px; }
  .duo .sec__h { min-height: 0; }
}

@media (max-width: 680px) {
  .svc__grid { grid-template-columns: 1fr; }
  .req__list { grid-template-columns: 1fr; }
}

/* Телефон. */
@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }

  h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.024em; }
  .sec__h { font-size: clamp(1.42rem, 6.4vw, 1.75rem); max-width: 18ch; }
  .lede { font-size: 1.02rem; margin-top: 18px; }
  .sec { padding: clamp(44px, 11vw, 64px) 0; }
  .hero { padding: clamp(26px, 7vw, 44px) 0 clamp(30px, 8vw, 48px); }

  /* Знак с анимацией встречает первым, заголовок идёт следом. */
  .brandshow { order: -1; padding-top: 0; gap: 16px; }
  .brandshow__mark { width: min(52%, 172px); }
  .brandshow__word { width: min(72%, 236px); }

  .cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
  .btn { justify-content: center; padding: 15px 20px; }
  /* Значок и надпись остаются строкой, номер переносится под них. */
  .btn--line { flex-wrap: wrap; justify-content: center; row-gap: 4px; padding-block: 13px; }
  .btn__num { width: 100%; text-align: center; margin-left: 0; }

  /* Колонки с метками уже: на узком экране каждый пиксель на счету. */
  .aud, .steps li { grid-template-columns: 42px minmax(0, 1fr); gap: 2px 12px; padding: 15px 0; }
  .svc { grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; }
  .svc__ico .ico { width: 28px; height: 28px; }

  .faq summary { grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 0 10px; padding: 15px 0; }
  .faq details { margin-left: -12px; padding-inline: 12px 14px; }
  .faq details p { padding: 0 26px 18px 44px; }
  .faq__q { font-size: .97rem; }

  .contact__btns { width: 100%; }
  .contact__btns .btn { flex: 1 1 100%; }
  .contact__alt { gap: 12px 22px; margin-top: 20px; }

  .req { margin-top: 34px; }
  .req__list > div { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; }
  .req__list dd { text-align: left; }
  .req__panel { padding-inline: 16px; }

  .status__list > div { padding: 11px 0; }

  .ftr { padding: 44px 0 34px; }
  .ftr__legal { gap: 6px 16px; font-size: .82rem; }
  .totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* Пальцем надо попадать: у всех кнопок и иконок зона не меньше 44 пикселей. */
@media (hover: none), (max-width: 880px) {
  .icon-btn { width: 40px; height: 40px; }
  .lang button { padding: 11px 12px; }
  .ftr__soc { gap: 6px; }
  .ftr__soc a { padding: 11px; margin: -11px 0; }
  .contact__alt a { padding-block: 7px; }
  .copy { width: 38px; height: 38px; margin: -8px -8px -8px 0; }
  .copy::after { -webkit-mask-size: 15px; mask-size: 15px; }
}

/* Узкие экраны: надпись из шапки уходит, остаётся только знак. Полный
   логотип с надписью там уже не помещается рядом с переключателями,
   а сразу под шапкой он и так показан крупно. */
@media (max-width: 370px) {
  .wrap { padding-inline: 16px; }
  .logo { width: 32px; overflow: hidden; }
  .logo__svg { height: 30px; }
  .lang button { padding: 11px 8px; font-size: .68rem; }
  .icon-btn { width: 36px; height: 36px; }
  .hdr__tools { gap: 4px; }
  .faq summary { grid-template-columns: 28px minmax(0, 1fr) 24px; gap: 0 8px; }
  .faq details p { padding-left: 36px; padding-right: 20px; }
  .aud, .steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 2px 10px; }
  .totop { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .lang__pill, .nav__mark { transition: none; }
  .bs-l, .bs-ring, .bs-dia, .bs-w, .bs-dot, .brandshow__mark { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
  .totop { transition: none; }
  .ico__feed, .ico__lines rect, .ico__bars rect,
  .ico__cap, .ico__tassel, .ico__eyes, .ico__gear { animation: none !important; transform: none !important; }
}

@media print {
  .hdr, .ftr__soc, .toast, .skip,   body { background: #fff; color: #000; }
  .reveal, .hero__lead h1, .hero__lead .lede, .hero__lead .cta, .record { opacity: 1; transform: none; animation: none; }
  .status, .record { background: #fff; color: #000; }
  .status h2 { color: #000; }
}
