/* ============================================================
   DEV-STACK — «Свет на грани» (VISUAL-CONCEPT v3)
   Токены предварительные: калибруются на живом макете hero.
   ============================================================ */

/* 1. Дизайн-токены */
:root {
  /* Основа */
  --pearl: #FBFAF7;
  --pearl-deep: #F4F2EC;
  --silk: #FFFFFF;
  --ink: #1C2420;
  --smoke: #646F68;  /* затемнено с #6E7A73 до AA ≥4.5:1 (калибровка HEX) */

  /* Изумруд */
  --emerald: #0F7B5F;
  --emerald-soft: #7FBCA9;
  --emerald-tint: #EDF5F1;
  --emerald-deep: #0A5843;

  /* Серебристо-золотистый (полутон, не металл) */
  --silver-gold: #CDBF9D;
  --silver-gold-soft: #E7E0CE;
  --platinum: #D9D7D0;

  /* Glint — маленький градиент преломлённого света */
  --glint: linear-gradient(100deg, #BFE3FF, #E8DFFF 30%, #FFE9F0 65%, #FFF6DC);

  /* Геометрия */
  --facet: 12px;          /* facet-cut 10–14px */
  --radius: 0;
  --shadow-card: 0 10px 30px rgba(28, 36, 32, 0.07);

  /* Типографика */
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --text-base: 16px;
  --text-sm: 15px;

  /* Ритм */
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 84px;

  /* Движение */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Сброс и база */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--emerald-tint); color: var(--ink); }

/* Клавиатурная навигация */
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--pearl);
  padding: 10px 16px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--pearl); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* 3. Типографика */
/* Заголовки H1/H2 — на Inter (решение Павла после калибровки). */
h1, h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
/* H1 — чуть жирнее (решение Павла на калибровке hero) */
h1 { font-weight: 600; }

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Ключевое слово изумрудом (только в H1/H2, и только как акцент) */
.kw { color: var(--emerald-deep); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
}

.mono-num {
  font-family: var(--font-mono);
  color: var(--smoke); /* AA ≥4.5:1; тёплый silver-gold — только в линиях и точках */
  font-weight: 500;
}

/* 4. Секции */
.section { padding-block: var(--space-section); scroll-margin-top: calc(var(--header-h) + 8px); }
.section--alt { background: var(--pearl-deep); }

/* Разделитель секции: facet-line + моно-номер */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head .facet-line { flex: 0 0 64px; }
.section-head__title { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.section-head__title h2 { font-weight: 500; }

/* 5. facet-line / facet-cut / тени */
.facet-line {
  height: 1px;
  background: linear-gradient(90deg, var(--platinum), var(--silver-gold-soft), var(--platinum));
}
.facet-line--accent {
  background: linear-gradient(90deg, var(--emerald-soft), var(--emerald), var(--emerald-soft));
}

.facet-cut {
  clip-path: polygon(0 0, calc(100% - var(--facet)) 0, 100% var(--facet), 100% 100%,
                     0 100%);
}

/* 6. Кнопки */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              border-color 0.25s, background-color 0.25s, color 0.25s;
  overflow: hidden;
  text-decoration: none;
}
/* фаска на правых углах, как у знака (срезаны верхний и нижний правый угол) */
.btn { clip-path: polygon(0 0, calc(100% - var(--facet)) 0, 100% var(--facet), 100% calc(100% - var(--facet)), calc(100% - var(--facet)) 100%, 0 100%); }

.btn--primary {
  background: var(--emerald);
  color: var(--pearl);
  box-shadow: 0 8px 24px rgba(15, 123, 95, 0.22);
}
.btn--primary:hover {
  background: var(--emerald-deep);
  color: var(--pearl);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 123, 95, 0.28);
}
/* glint по верхнему ребру при hover */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -45%;
  width: 34%; height: 2.5px;
  background: var(--glint);
  opacity: 0;
  transition: opacity 0.2s, left 0.6s var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover::after { opacity: 1; left: 115%; }

.btn--secondary {
  background: var(--silk);
  color: var(--ink);
  border-color: var(--platinum);
  box-shadow: 0 4px 14px rgba(28, 36, 32, 0.05);
}
.btn--secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald-deep);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 14px; --facet: 9px; }

.btn:active { transform: translateY(0); }

/* Отправка формы: кнопка заблокирована и не реагирует на курсор */
.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.btn--primary:disabled::after { display: none; }

/* 7. Чипы */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.chip--tint { background: var(--emerald-tint); color: var(--emerald-deep); }
.chip--neutral { background: var(--pearl-deep); color: var(--smoke); border: 1px solid var(--platinum); }

/* 8. Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--pearl) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--platinum) 60%, transparent);
  box-shadow: 0 6px 24px rgba(28, 36, 32, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__lockup { height: 60px; width: auto; display: block; }
.brand__lockup--footer { height: 46px; }

.site-nav { margin-inline-start: auto; align-self: stretch; }
/* align-items: center — ссылки по центру; height: 100% нужен, чтобы пункт-подменю
   растянулся на всю высоту шапки и панель встала ровно по её нижнему краю
   (без магических чисел под --header-h). */
.site-nav__list { display: flex; align-items: center; gap: 4px; height: 100%; }
.site-nav__link {
  display: inline-block;
  padding: 8px 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 2px;
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--emerald-soft), var(--emerald));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.site-nav__link:hover { color: var(--emerald-deep); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { opacity: 1; transform: scaleX(1); }
.site-nav__link.is-active { color: var(--emerald-deep); }

/* Подменю «Экосистема» — паттерн disclosure: кнопка с aria-expanded + список
   ссылок. Раскрывается и без JS (:hover, :focus-within) — контент доступен
   всегда; JS добавляет aria-expanded, Escape и закрытие по клику вне.
   Панель растянута вниз от нижнего края шапки, поэтому зазора нет и hover
   не рвётся при переводе курсора с триггера на список. */
.site-nav__item--drop { position: relative; align-self: stretch; display: flex; align-items: center; }
.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.site-nav__caret { width: 8px; height: 5px; flex-shrink: 0; transition: transform 0.25s var(--ease-out); }
.site-nav__item--drop:hover .site-nav__caret,
.site-nav__item--drop:focus-within .site-nav__caret { transform: rotate(180deg); }

.site-nav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1;
}
/* Раскрытие подменю. Базово (скрипт не загрузился) работают наведение и фокус —
   так подменю доступно и мышью, и клавиатурой даже без JS. */
.site-nav__item--drop:hover .site-nav__panel,
.site-nav__item--drop:focus-within .site-nav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Когда скрипт подменю загрузился, состояние ведёт только .is-open (класс
   nav-drop-js ставит сам скрипт). Иначе :hover/:focus-within спорили бы с
   Escape и кликом-закрытием, а aria-expanded расходился бы с тем, что видно:
   панель раскрыта, а скринридеру сообщено «закрыто».
   Псевдоклассы обёрнуты в :where() — он обнуляет их вклад в специфичность.
   Без этого :hover/:focus-within давали бы (0,5,0) и перебивали .is-open
   с его (0,4,0): панель оставалась бы скрытой при открытом состоянии. */
.nav-drop-js .site-nav__item--drop:where(:hover, :focus-within) .site-nav__panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav-drop-js .site-nav__item--drop.is-open .site-nav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-drop-js .site-nav__item--drop:where(:hover, :focus-within) .site-nav__caret { transform: none; }
.nav-drop-js .site-nav__item--drop.is-open .site-nav__caret { transform: rotate(180deg); }
.site-nav__sublist {
  min-width: 244px;
  padding: 8px 0;
  background: var(--pearl);
  border: 1px solid var(--platinum);
  box-shadow: 0 18px 40px rgba(28, 36, 32, 0.1);
}
.site-nav__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav__sublink:hover { color: var(--emerald-deep); background: var(--emerald-tint); }
.site-nav__ext { width: 11px; height: 11px; flex-shrink: 0; color: var(--smoke); }
/* Якорь технологий отделён от внешних продуктов: другая природа ссылки. */
.site-nav__subitem--sep {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--platinum) 60%, transparent);
}

.header__actions { display: flex; align-items: center; gap: 16px; }

/* CTA «Обсудить задачу» в шапке — всегда в одну строку */
.header__cta { white-space: nowrap; }

/* На средних экранах, где меню ещё видно (1200–1279), чуть теснее шаг,
   чтобы CTA в одну строку умещался без оверфлоу */
@media (max-width: 1279px) {
  .header__inner { gap: 16px; }
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--platinum);
  cursor: pointer;
}
.burger__line {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Мобильное меню: absolute сразу под шапкой (не fixed: у шапки backdrop-filter,
   который превратил бы fixed-потомка в containing-block-ловушку высотой с шапку) */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pearl);
  padding: 24px 0 40px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  border-top: 1px solid var(--platinum);
  box-shadow: 0 24px 48px rgba(28, 36, 32, 0.12);
}
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__link {
  display: block;
  padding: 15px 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--platinum) 55%, transparent);
}
/* Группа «Экосистема» в бургере: моно-заголовок + ссылки. Раскрытия нет
   намеренно — на тач-экранах скрытые под тапом ссылки хуже видимых. */
.mobile-menu__group-head { margin-bottom: 2px; color: var(--smoke); }
.mobile-menu__sublist { display: flex; flex-direction: column; }
.mobile-menu__link--sub { padding-left: 14px; font-size: 1.05rem; }
.mobile-menu__ext { margin-left: 6px; color: var(--smoke); }
.mobile-menu__cta { margin-top: 28px; width: 100%; }

/* ============================================================
   9. Hero (веха 1 — калибровка HEX)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(4.5rem, 9vw, 8rem);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* инженерная сетка: линии ink 3–4%, шаг 64px, радиальное затухание */
.grid-engineer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 36, 32, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 36, 32, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 68% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 85% at 68% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero__copy { max-width: 780px; }

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.35rem);
  /* line-height 1.06 → 1.10 → 1.14 → 1.20 (пробные шаги для сравнения) */
  line-height: 1.20;
}
/* Термин «AI-решения» не разрывается внутри (после дефиса) — переносится только целиком. */
.hero h1 .kw { white-space: nowrap; }
/* Управляемые переносы H1: на широком десктопе три строки по композиции маркетолога,
   на планшетах/телефонах — естественный перенос (элементы скрыты). */
.hero h1 br.hero-h1-br { display: none; }
@media (min-width: 1200px) {
  .hero h1 br.hero-h1-br { display: inline; }
  /* H1 получает свободное пространство справа; подзаголовок и факты остаются узкими. */
  .hero__copy { max-width: 1080px; }
  .hero__facts { max-width: 780px; }
}

.hero__sub {
  margin-top: 3.1rem;
  max-width: 620px;
  font-size: clamp(1.02rem, 1.6vw, 1.19rem);
  line-height: 1.62;
  color: var(--smoke);
}
/* Ключевое слово «Работает.» в подзаголовке hero — темнее и весом 600. */
.hero__sub strong {
  font-weight: 650;
  color: var(--ink);
}
/* Промежуточный акцент «Внедряем»: нарастание серый → тёмно-серый → ink. */
.hero__sub .hero__sub-mid {
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 55%, var(--smoke));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.5rem;
}

/* строка фактов-якорей: моно, тихо */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--smoke);
}
.hero__facts .fact-sep { margin-inline: 14px; color: var(--silver-gold); }

/* грань со скользящим светом */
.hero-facet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* ребро-грань: тонкая диагональная линия-фаска в правой части hero */
.hero-facet__edge {
  position: absolute;
  top: -20%;
  right: 9%;
  width: 1px;
  height: 140%;
  background: linear-gradient(to bottom, transparent, var(--emerald-soft) 30%, var(--emerald) 50%, var(--emerald-soft) 70%, transparent);
  transform: rotate(-14deg);
  opacity: 0.5;
}
/* свет, скользящий по грани (цикл 12s) */
.hero-facet__beam {
  position: absolute;
  top: -15%;
  right: 7%;
  width: 120px;
  height: 4px;
  background: var(--glint);
  filter: blur(1px);
  opacity: 0;
  transform: rotate(-14deg);
  animation: hero-beam 12s ease-in-out infinite;
  animation-delay: 1.2s;
}
@keyframes hero-beam {
  0%   { opacity: 0; transform: translateY(-10%) rotate(-14deg); }
  8%   { opacity: 0.85; }
  38%  { opacity: 0.2; transform: translateY(640%) rotate(-14deg); }
  55%  { opacity: 0; transform: translateY(760%) rotate(-14deg); }
  100% { opacity: 0; transform: translateY(760%) rotate(-14deg); }
}

/* вторая линия «фаски», тише — чтобы грань читалась как деталь, а не украшение */
.hero-facet__edge--2 {
  right: 21%;
  height: 90%;
  top: 10%;
  opacity: 0.28;
  transform: rotate(-14deg);
}

/* glint-точка в углу: появляется при загрузке один раз */
.hero-facet__glint {
  position: absolute;
  top: 13%;
  right: 5.5%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glint);
  box-shadow: 0 0 14px 2px rgba(232, 223, 255, 0.55);
  opacity: 0;
  animation: hero-glint-in 0.6s ease-out 0.9s forwards;
}
@keyframes hero-glint-in {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.85; transform: scale(1); }
}

/* ============================================================
   10. Плейсхолдеры секций в сборке (в финале отсутствуют)
   ============================================================ */
.dev-build {
  border: 1px dashed color-mix(in srgb, var(--platinum) 70%, transparent);
  border-radius: 0;
  padding: 56px clamp(20px, 4vw, 40px);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.dev-build .mono-label { color: var(--silver-gold); }

/* ============================================================
   11. Футер
   ============================================================ */
.site-footer {
  background: var(--pearl-deep);
  border-top: 1px solid var(--silver-gold-soft);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2.25rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__formula {
  margin-top: 1.25rem;
  max-width: 340px;
  font-size: var(--text-sm);
  color: var(--smoke);
}
.footer__col-head { margin-bottom: 1.1rem; color: var(--smoke); }
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list a {
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer__list a:hover {
  color: var(--emerald-deep);
  border-bottom-color: color-mix(in srgb, var(--emerald) 40%, transparent);
}

/* Юр. реквизиты — внутри колонки бренда, под формулой (через одну пустую строку) */
.footer__legal {
  margin-top: 1.55rem; /* ≈ одна пустая строка */
  max-width: 340px;
  display: grid;
  gap: 6px;
}
.footer__legal p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--smoke);
}
.footer__legal a { color: var(--smoke); text-decoration: underline; text-decoration-color: var(--silver-gold); }
.footer__legal a:hover { color: var(--emerald-deep); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid color-mix(in srgb, var(--silver-gold-soft) 80%, transparent);
  padding-top: 1.4rem;
}
.footer__bottom a { color: var(--smoke); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__bottom a:hover { color: var(--emerald-deep); border-bottom-color: var(--emerald-soft); }
/* «Настройки cookie» — ссылка-кнопка в стиле соседних ссылок */
.footer__cookie-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  cursor: pointer;
  line-height: 1.4;
}
.footer__cookie-btn:hover { color: var(--emerald-deep); border-bottom-color: var(--emerald-soft); }
.footer__cookie-btn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.footer__copy { margin-inline-start: auto; color: var(--smoke); }

/* ============================================================
   12. Появление секций (только с JS; без JS контент виден)
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ============================================================
   13. Адаптив
   ============================================================ */
/* Полное меню + крупный логотип физически не влезают уже на 1024–1199:
   на этих ширинах (планшеты, узкие окна) переключаем шапку на бургер. */
@media (max-width: 1199px) {
  .site-nav { display: none; }
  .header__cta { display: none; }
  .header__actions { margin-inline-start: auto; } /* бургер — справа */
  .burger { display: flex; }
}

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  /* Высота логотипа ограничена шириной экрана: знак + DEV-STACK + подпись
     должны помещаться рядом с бургером (контейнер − поля 2×20px − бургер 44px − gap 24px).
     viewBox 360×64 → ширина = высота × 360/64. Подпись «Экспертный инжиниринг» НЕ скрываем. */
  .brand__lockup { height: min(45px, calc((100vw - 108px) * 64 / 360)); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__copy { margin-inline-start: 0; width: 100%; }
  .hero__facts { flex-direction: column; gap: 8px; }
  .hero__facts .fact-sep { display: none; }
}

/* Безопасность движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-facet__glint { opacity: 0.85; }
  .hero-facet__beam { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   14. Секция 02 — Направления; общие сетки и карточки
   ============================================================ */
.section-title {
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(2.5rem, 4vw, 3.5rem);
}

/* Карточка (silk, фаска угла, рамка platinum, тень; hover — facet-line + подъём 2px) */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--silk);
  border: 1px solid var(--platinum);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  clip-path: polygon(0 0, calc(100% - var(--facet)) 0, 100% var(--facet), 100% 100%,
                     var(--facet) 100%, 0 calc(100% - var(--facet)));
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-soft), var(--emerald), var(--emerald-soft));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(28, 36, 32, 0.1);
}
.card:hover::before { opacity: 1; }

.card__tag { margin-bottom: 1.1rem; }
.card h3 { margin-bottom: 0.9rem; font-size: 1.3rem; }
.card p + p { margin-top: 0.9rem; }
.card p { font-size: var(--text-sm); line-height: 1.65; color: var(--ink); }

.card__link { margin-top: auto; padding-top: 1.1rem; }
.card__link a { font-weight: 600; font-size: 14.5px; }
.card--eco p { font-size: 14px; }

/* Чипы */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.3rem;
}

/* Тихая строка 1С */
.quiet-line {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--smoke);
  text-align: center;
}
.quiet-line a { color: var(--smoke); border-bottom: 1px solid var(--emerald-soft); }
.quiet-line a:hover { color: var(--emerald-deep); }

/* ============================================================
   15. Секция 03 — Принципы (тезисы без карточек, facet-line)
   ============================================================ */
.principles { margin-top: clamp(0.5rem, 1vw, 1rem); }
.principle { padding-top: 1.5rem; border-top: 1px solid var(--platinum); }
.principle__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver-gold);
  margin-bottom: 0.75rem;
}
.principle h3 { margin-bottom: 0.8rem; font-size: 1.18rem; }
.principle p { color: var(--smoke); max-width: 46ch; }

/* ============================================================
   16. Секция 04 — Проекты (метрики крупным моно)
   ============================================================ */
.card--case .metric {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--emerald);
  line-height: 1.3;
  margin: 0 0 1rem;
}
.metric--flag { position: relative; display: inline-flex; align-items: center; }
.metric--flag::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--emerald-soft), var(--emerald));
}
/* glint на грани флагманской метрики — один раз, по появлению */
.js .metric--flag .metric__glint {
  position: absolute;
  left: -12px; bottom: -8px;
  width: 34px; height: 3px;
  background: var(--glint);
  opacity: 0;
  filter: blur(0.5px);
}
.js .card.is-revealed .metric__glint { animation: metric-glint 0.7s ease-out 0.9s forwards; }
@keyframes metric-glint {
  0%   { opacity: 0; transform: translateX(0); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(210px); }
}

/* ============================================================
   17. Секция 05 — тёмная вставка (техконтур) + экосистема
   ============================================================ */
.tech-band {
  background: var(--ink);
  padding-block: clamp(2rem, 4vw, 3rem);
  margin-block: clamp(0.5rem, 1vw, 1rem);
}
.tech-band__lead {
  color: var(--pearl);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.tech-band__note {
  margin-top: 1.5rem;
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--pearl) 55%, transparent);
}
.chips--dark { margin-top: 0; }
.chip--dark {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--pearl) 30%, transparent);
  color: var(--pearl);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.chip--dark-accent {
  border-color: color-mix(in srgb, var(--emerald-soft) 60%, transparent);
  color: var(--emerald-soft);
}
.tech-band .container { position: relative; }

.ecosystem { margin-top: clamp(3rem, 6vw, 5rem); }
.ecosystem__head { font-size: 1.4rem; }
.ecosystem__intro {
  margin-top: 0.6rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
  max-width: 620px;
  color: var(--smoke);
}
.card--eco .card__link { margin-top: 1rem; }

/* ============================================================
   18. Секция 06 — Основатель (узкая врезка)
   ============================================================ */
.founder { background: var(--pearl-deep); border-block: 1px solid color-mix(in srgb, var(--platinum) 60%, transparent); }
.founder__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.founder__photo { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.founder__img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--platinum);
  box-shadow: 0 4px 14px rgba(28, 36, 32, 0.08);
}
.founder__name { font-weight: 600; text-align: center; line-height: 1.3; }
.founder__role { margin-top: 0.2rem; font-size: 10px; }
.founder__thesis {
  font-weight: 600;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 40ch;
}
.founder__bio {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: var(--smoke);
  font-size: var(--text-sm);
}

/* ============================================================
   19. Секция 07 — Доверие (тихая полоса)
   ============================================================ */
.trust { padding-block: clamp(2rem, 4vw, 3rem); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  padding: 0 clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid color-mix(in srgb, var(--platinum) 70%, transparent);
}
.trust__item:first-child { padding-left: 0; }
.trust__item:last-child { border-right: 0; }
.trust__tag { margin-bottom: 0.8rem; font-size: 10px; }
.trust__fact { font-size: 14.5px; line-height: 1.55; }
.trust__fact a { font-weight: 600; white-space: nowrap; }

/* ============================================================
   20. Секция 08 — Контакт: форма и мини-FAQ
   ============================================================ */
/* Секция 08 — Контакт: форма и мини-FAQ */
#contact {
  /* Верхний отступ как у остальных секций, нижний — заметно меньше:
     под формой с примечанием не должно оставаться большого пустого хвоста. */
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.contact__intro {
  margin-top: -1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 640px;
  color: var(--smoke);
  font-size: 1.02rem;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

/* Форма */
.lead-form { display: flex; flex-direction: column; gap: 1.2rem; }
/* display:flex выше перебивает UA-стиль [hidden] — форма обязана скрываться целиком */
.lead-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field__label { font-weight: 600; font-size: 14px; }
.field__optional { font-weight: 400; color: var(--smoke); font-size: 13px; }
/* Звёздочка обязательного поля и сноска под формой */
.required-star { color: var(--emerald-deep); }
.lead-form__required-note {
  margin: -0.2rem 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--smoke);
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--silk);
  border: 1px solid var(--platinum);
  border-radius: 0;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: color-mix(in srgb, var(--smoke) 75%, transparent); }
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--emerald-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald-soft) 22%, transparent);
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.field--check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  flex: none;
  border: 1.5px solid var(--platinum);
  background: var(--silk);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}
.field--check input[type="checkbox"]:checked {
  background: var(--emerald);
  border-color: var(--emerald);
}
.field--check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23FBFAF7' stroke-width='2' d='M2 6.5 4.8 9 10 3.4'/%3E%3C/svg%3E") center/10px no-repeat;
}
.field--check span { font-size: 13.5px; color: var(--smoke); line-height: 1.5; }
.field--check span a { text-decoration: underline; text-decoration-color: var(--emerald-soft); text-underline-offset: 2px; }

.lead-form__submit { align-self: flex-start; margin-top: 0.4rem; }
.lead-form__note { margin-top: 0.2rem; color: var(--smoke); font-size: 10.5px; letter-spacing: 0.12em; text-transform: none; }
.lead-form__error {
  font-size: 14px;
  color: #9c3d2e;
  border-left: 2px solid #c96a4b;
  padding-left: 12px;
}

/* Контейнер согласия: label-чекбокс + строка ошибки под ним */
.field-consent { display: flex; flex-direction: column; gap: 0.4rem; }

/* Ошибки валидации полей: подсказка под полем + подсветка самого поля */
.field__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #9c3d2e;
}
.field.is-invalid input[type="text"],
.field.is-invalid input[type="email"],
.field.is-invalid input[type="tel"],
.field.is-invalid textarea {
  border-color: #c96a4b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #c96a4b 18%, transparent);
}
.field-consent.is-invalid input[type="checkbox"] { border-color: #c96a4b; }

/* honeypot: вне поля зрения, невидим людям */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Экран успеха */
.lead-success {
  border: 1px solid color-mix(in srgb, var(--emerald-soft) 55%, transparent);
  background: var(--emerald-tint);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.lead-success h3 { font-size: 1.3rem; }
.lead-success p { margin-top: 0.6rem; color: var(--ink); }

/* FAQ */
.faq__head { margin-bottom: 1.1rem; }
.faq-item {
  border-bottom: 1px solid color-mix(in srgb, var(--platinum) 75%, transparent);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  color: var(--emerald);
  transition: transform 0.25s var(--ease-out);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--emerald-deep); }
.faq-item summary:focus-visible { outline-offset: 4px; }
.faq-item__answer {
  padding: 0 0 1.3rem;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--smoke);
  max-width: 60ch;
}
.faq-item__answer p + p { margin-top: 0.7rem; }

/* ============================================================
   21. Адаптив секций 02–08
   ============================================================ */
/* Полоса доверия без пункта «Пресса» (РБК скрыт до заполнения профиля) */
.trust__grid--compact { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child { grid-column: 1 / -1; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .trust__grid--compact { grid-template-columns: 1fr; }
  .trust__grid--compact .trust__item:nth-child(n+2) { border-top: 1px solid color-mix(in srgb, var(--platinum) 70%, transparent); padding-top: 1.4rem; }
  .trust__grid--compact .trust__item:nth-child(2), .trust__grid--compact .trust__item:nth-child(3) { border-right: 0; }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--platinum) 70%, transparent); padding-top: 1.4rem; }
  .trust__item { padding-inline: 1rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .founder__inner { grid-template-columns: 1fr; }
  .founder__photo { flex-direction: row; justify-content: flex-start; gap: 1.1rem; }
  .founder__name, .founder__role { text-align: left; }
}

@media (max-width: 639px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item:first-child { padding-inline: 0; border-right: 0; }
  .trust__item:nth-child(n+2) { border-top: 1px solid color-mix(in srgb, var(--platinum) 70%, transparent); padding-top: 1.2rem; }
  .tech-band__note { font-size: 11px; }
  .card--case .metric { font-size: 1.3rem; }
}

/* ============================================================
   22. Страница /pricing
   ============================================================ */
.pricing h1 { margin-bottom: 1.5rem; }
.pricing__intro {
  max-width: 640px;
  color: var(--smoke);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.price-rows { margin: 0; padding: 0; }
.price-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: baseline;
  border-top: 1px solid var(--platinum);
  padding-block: clamp(1.4rem, 2.6vw, 2rem);
  transition: background-color 0.25s;
}
.price-rows > :last-child { border-bottom: 1px solid var(--platinum); }
.price-row:hover { background: color-mix(in srgb, var(--emerald-tint) 45%, transparent); }

.price-row__num { font-size: 15px; }
.price-row__body h3 { font-size: 1.16rem; line-height: 1.35; }
.price-row__body p {
  margin-top: 0.55rem;
  max-width: 62ch;
  color: var(--smoke);
  font-size: 14.5px;
  line-height: 1.6;
}
.price-row__price {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--emerald);
  white-space: nowrap;
  text-align: right;
}

.price-note {
  margin-top: 1.75rem;
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 12px;
  line-height: 1.7;
  max-width: 70ch;
  color: var(--smoke);
}

.pricing__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--silver-gold-soft) 90%, transparent);
  background: var(--pearl-deep);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.pricing__cta p {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.45;
  max-width: 42ch;
}

@media (max-width: 719px) {
  .price-row { grid-template-columns: 40px minmax(0, 1fr); }
  .price-row__num { grid-row: 1; }
  .price-row__body { grid-column: 2; }
  .price-row__price { grid-column: 2; text-align: left; }
  .pricing__cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   23. Юридические страницы /privacy и /consent (текст — как был)
   ============================================================ */
.legal {
  max-width: 860px;
  width: 100%;
  min-width: 0;
  background: var(--silk);
  border: 1px solid var(--platinum);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3.25rem);
}
.legal__title {
  margin: 0 0 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.legal__block {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.legal__block + .legal__block { margin-top: 1.6rem; }
.legal__block h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin: 1.4rem 0 0.6rem;
  text-transform: none;
  letter-spacing: 0;
}
.legal__block strong { font-weight: 600; }
.legal__block p { margin: 0 0 0.8rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13.5px;
}
.data-table td {
  border: 1px solid var(--platinum);
  padding: 10px 13px;
  vertical-align: top;
  line-height: 1.6;
}
.data-table td.label {
  width: 34%;
  font-weight: 600;
  background: var(--pearl-deep);
}
.data-table td.value { white-space: pre-line; text-align: justify; }

@media (max-width: 639px) {
  .data-table td.label { width: 100%; display: block; }
  .data-table td.value { display: block; }
  .data-table tr { display: block; margin-bottom: 8px; }
}


/* ============================================================
   24. 404 и cookie-уведомление (Метрика — после согласия)
   ============================================================ */
.notfound { text-align: center; padding-block: 4rem; }
.notfound h1 { margin: 1rem 0; }
.notfound > p { color: var(--smoke); }
.notfound__actions { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.cookie-panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 300;
  width: min(92vw, 780px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding: 16px 22px;
  background: var(--silk);
  border: 1px solid var(--platinum);
  box-shadow: 0 18px 48px rgba(28, 36, 32, 0.16);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.cookie-panel__text { flex: 1 1 320px; font-size: 13.5px; line-height: 1.55; color: var(--smoke); }
.cookie-panel__text a { text-decoration: underline; text-decoration-color: var(--emerald-soft); text-underline-offset: 2px; }
.cookie-panel__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-panel .btn { padding: 10px 16px; font-size: 13.5px; }
.cookie-panel__later {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; color: var(--smoke);
  text-decoration: underline; text-decoration-color: var(--silver-gold); text-underline-offset: 2px;
}
.cookie-panel__later:hover { color: var(--ink); }

/* ============================================================
   25. Ссылки-упоминания брендов (первое упоминание в секции) и hero-факты
   ============================================================ */
/* «Тихая» ссылка внутри текста/заголовка: наследует цвет, деликатное подчёркивание */
.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--emerald-soft) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.text-link:hover {
  color: var(--emerald-deep);
  text-decoration-color: var(--emerald);
}

/* ссылки в моно-факт-строке hero */
.fact-link {
  color: var(--smoke);
  border-bottom: 1px solid color-mix(in srgb, var(--silver-gold) 85%, transparent);
  transition: color 0.2s, border-color 0.2s;
}
.fact-link:hover { color: var(--emerald-deep); border-bottom-color: var(--emerald); }

/* Искра анимированного знака — только для тех, кто не отказался от движения */
@media (prefers-reduced-motion: reduce) {
  .brand__spark { display: none; }
}
