/* ==========================================================================
   Иван Игнатов — лендинг
   Токены → база → типографика → компоненты → секции → адаптив → motion
   ========================================================================== */

:root {
  /* Цвета */
  --ink: #0F0F0F;
  --white: #FFFFFF;
  --paper: #F3F3F1;
  --yellow: #FFE23D;
  --green: #38B54A;
  --grey-dark: #5F5F5F;
  --grey: #8E8E8E;
  --hairline-dark: #3A3A3A;
  --hairline-mid: #2A2A2A;

  /* Шрифты */
  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Сетка */
  --container: 1440px;
  --pad-x: clamp(16px, 4.4vw, 80px);
  /* Отступ горизонтальных лент: на широких экранах они начинаются
     там же, где колонка контейнера, а не у края окна. */
  --strip-pad: max(var(--pad-x), calc((100% - var(--container)) / 2 + var(--pad-x)));
  --section-y: clamp(64px, 8vw, 120px);
  --band-y: clamp(56px, 7vw, 104px);

  /* Линии */
  --rule: 2px solid var(--ink);
  --rule-dark: 2px solid var(--hairline-mid);

  /* Фото */
  --photo-filter: grayscale(1) contrast(1.06);
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

/* Якорные переходы: цель не должна уезжать под липкую шапку. */
:target,
section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

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

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}
.section--white :focus-visible,
.section--paper :focus-visible,
.section--yellow :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Фоновые режимы секций */
.section--ink { background: var(--ink); color: var(--white); }
.section--white { background: var(--white); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--yellow { background: var(--yellow); color: var(--ink); }

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  /* Кегль подобран так, чтобы авторская разбивка H1 на четыре строки
     держалась во всём диапазоне: строка «следуют решения» — самая длинная. */
  font-size: clamp(40px, 5.7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.h2--formula { font-size: clamp(32px, 4.2vw, 60px); max-width: 1100px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.h2--approach { font-size: clamp(34px, 4.6vw, 68px); line-height: 0.94; margin-bottom: clamp(36px, 4.4vw, 60px); }
.h2--cta { font-size: clamp(34px, 5.4vw, 84px); line-height: 0.94; letter-spacing: -0.01em; max-width: 1200px; margin-bottom: clamp(40px, 5vw, 72px); }

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1;
  overflow-wrap: break-word;
}
.h3--why {
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.05;
  margin-bottom: clamp(20px, 2.2vw, 30px);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow--yellow {
  color: var(--yellow);
  font-size: clamp(13px, 1.45vw, 21px);
  margin-bottom: clamp(20px, 3vw, 40px);
}
.eyebrow--grey {
  color: var(--grey);
  font-size: clamp(13px, 1.4vw, 19px);
  margin-bottom: clamp(16px, 2vw, 26px);
}

.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label--muted { color: var(--grey-dark); margin-bottom: 12px; }
.label--grey { color: var(--grey); font-weight: 500; font-size: 11px; margin-bottom: 6px; }
.label--yellow { color: var(--yellow); margin-bottom: 8px; }
.label--section {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.24em;
  margin-bottom: clamp(18px, 2vw, 28px);
}
.label--second { margin-top: clamp(40px, 5vw, 72px); }

.accent-green { color: var(--green); }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.1vw, 17px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 20px 34px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--white); color: var(--ink); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 18px 32px;
}
.btn--outline:hover { background: var(--white); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--white); font-size: 15px; padding: 18px 30px; min-height: 48px; }
.btn--dark:hover { background: var(--yellow); color: var(--ink); }

.btn--compact { font-size: 14px; padding: 14px 22px; min-height: 48px; }

/* --------------------------------------------------------------------------
   Маркерные обводки
   -------------------------------------------------------------------------- */

.marker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.marker-word {
  position: relative;
  display: inline-block;
  padding: 0 0.1em;
}
.marker-word .marker {
  /* Овал прижат к слову: выше начинается следующая строка H1,
     штрих не должен заходить на её прописные. */
  inset: auto;
  left: -9%;
  top: -8%;
  width: 118%;
  height: 128%;
  overflow: visible;
}

/* --------------------------------------------------------------------------
   Фото
   -------------------------------------------------------------------------- */

.photo {
  position: relative;
  width: 100%;
  filter: var(--photo-filter);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo--portrait { aspect-ratio: 4 / 5; }
/* Вертикальный кадр в горизонтальном окне: держим лицо в кадре. */
.photo--focus-mid img { object-position: center 32%; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--fill { height: 100%; min-height: 520px; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 2px solid transparent;
  padding: 22px 0;
  transition: padding 0.22s ease, border-color 0.22s ease;
}
.site-header.is-scrolled {
  padding: 10px 0;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}
.site-header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 24px);
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.8vw, 28px);
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  /* тап-зона наравне с кнопкой шапки, высоту шапки это не меняет */
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--yellow); }

/* --------------------------------------------------------------------------
   1. Первый экран
   -------------------------------------------------------------------------- */

/* Видео-фон: под тёмной вуалью, чтобы текст оставался читаемым. */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 7vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.82);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
}
.hero__inner { position: relative; z-index: 1; }
/* Надзаголовок идёт отдельной строкой во всю ширину — по правке заказчика. */
.hero__eyebrow {
  margin-bottom: clamp(18px, 2.4vw, 34px);
}
/* В одну строку — только там, где строка реально помещается. */
@media (min-width: 1025px) {
  .hero__eyebrow { white-space: nowrap; }
}
@media (max-width: 560px) {
  .hero__eyebrow { letter-spacing: 0.16em; }
}
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-start;
}
.hero__text { flex: 1 1 520px; min-width: 280px; }
.hero__media { flex: 1 1 380px; min-width: 260px; position: relative; }

.hero__lead {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 640px;
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.5;
  text-wrap: pretty;
}
/* Заказчик просил кнопки друг под другом, а не в ряд. */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 48px);
  max-width: 460px;
}
.hero__actions .btn { flex: 0 0 auto; width: 100%; }

.quote-bubble {
  position: relative;
  padding: clamp(20px, 2.4vw, 34px) clamp(22px, 2.6vw, 36px) clamp(30px, 3vw, 44px);
}
.quote-bubble--hero {
  margin: -8% 0 0 -4%;
  width: min(108%, 520px);
}
.quote-bubble--green {
  margin-top: clamp(36px, 4vw, 56px);
  width: min(100%, 560px);
  padding: clamp(22px, 2.4vw, 34px) clamp(24px, 2.6vw, 36px) clamp(32px, 3vw, 46px);
}
.quote-bubble__text {
  position: relative;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(22px, 2.25vw, 33px);
  line-height: 1.22;
  color: var(--yellow);
  text-wrap: pretty;
}
/* Текст белый, обводка облака остаётся зелёной. */
.quote-bubble__text--green {
  color: var(--white);
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   2. Цифры доверия
   -------------------------------------------------------------------------- */

.stats { padding: clamp(40px, 5vw, 72px) 0; }
.stats .label--section {
  font-size: clamp(13px, 1.25vw, 18px);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.stat { border-top: var(--rule); padding-top: 14px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5.6vw, 96px);
  line-height: 0.9;
}
.stat__value--nowrap { white-space: nowrap; }
.stat__caption {
  margin-top: 10px;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.35;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Задачи
   -------------------------------------------------------------------------- */

.tasks { padding: var(--section-y) 0; }
.tasks .h2 { max-width: 1000px; }
/* Заказчик просил галочки вместо плюсов и текст без рамок. */
.tasks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 48px);
}
.task {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.task__check {
  position: relative;
  flex: 0 0 auto;
  width: clamp(28px, 2.4vw, 34px);
  height: clamp(22px, 1.9vw, 26px);
  margin-top: 3px;
}
.task__check svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.task__text {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.35;
  font-weight: 500;
  text-wrap: pretty;
}
.tasks__next {
  margin-top: clamp(28px, 3vw, 44px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

/* --------------------------------------------------------------------------
   4. Авторская формула
   -------------------------------------------------------------------------- */

.formula { padding: var(--section-y) 0; }
.formula__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
}
.formula__item {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1;
}
.formula__arrow {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
}
/* Разрыв строки после третьего компонента: заказчик просил по три в строке. */
.formula__break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
}
.formula__note {
  margin-top: clamp(36px, 4vw, 60px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: var(--rule);
  max-width: 820px;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   5. «Зелёный» подход
   -------------------------------------------------------------------------- */

.approach { padding: var(--section-y) 0 0; }
.approach__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 72px);
}
.approach__body {
  flex: 1 1 520px;
  min-width: 280px;
  padding-bottom: clamp(56px, 7vw, 110px);
}
/* Заказчик просил фото слева, текст справа. */
.approach__media { flex: 1 1 340px; min-width: 260px; align-self: stretch; order: -1; }

.principles { display: grid; gap: clamp(24px, 2.6vw, 38px); }
.principle {
  display: flex;
  gap: clamp(16px, 1.8vw, 28px);
  align-items: flex-start;
  border-top: var(--rule-dark);
  padding-top: clamp(18px, 2vw, 26px);
}
.principle__num {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 0.9;
  color: var(--white);
  flex: 0 0 auto;
}
.principle__text { line-height: 1.45; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   6. Направления работы
   -------------------------------------------------------------------------- */

.directions { padding: var(--section-y) 0; }
.directions .h2 { margin-bottom: clamp(40px, 5vw, 72px); }

.direction {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: var(--rule);
}
.direction + .direction { padding-top: clamp(40px, 5vw, 72px); }
.direction--last { border-bottom: 0; padding-bottom: 0; }
.direction__media { flex: 1 1 360px; min-width: 260px; }
.direction__body { flex: 1 1 440px; min-width: 280px; }
.direction--reverse .direction__media { order: 2; }
.direction--reverse .direction__body { order: 1; }

.direction__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(14px, 1.6vw, 22px);
}
.direction__num {
  font-family: var(--font-hand);
  font-weight: 700;
  /* Заказчик просил вдвое крупнее. */
  font-size: clamp(58px, 6vw, 88px);
  line-height: 0.8;
  color: var(--grey-dark);
}
.direction__desc {
  margin-bottom: clamp(20px, 2.2vw, 30px);
  line-height: 1.5;
  max-width: 560px;
  text-wrap: pretty;
}

.topics {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 18px 30px;
  margin: -10px -22px clamp(18px, 2.2vw, 28px);
}
.topics__list {
  position: relative;
  display: grid;
  gap: 8px;
}
.topics__list li {
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 500;
  line-height: 1.3;
}
.topics .marker { overflow: visible; }

.result {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(18px, 2vw, 26px);
  margin-bottom: clamp(20px, 2.2vw, 28px);
}
.result .label { margin-bottom: 8px; }
.result__text { line-height: 1.4; font-weight: 500; text-wrap: pretty; }

/* Заказчик просил формат через стрелки, без рамок. */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(10px, 1.2vw, 18px);
  margin-bottom: clamp(24px, 2.6vw, 32px);
}
.flow__step {
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 1.25;
}
.flow__arrow {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1;
  color: var(--grey-dark);
}

/* --------------------------------------------------------------------------
   7. Форматы
   -------------------------------------------------------------------------- */

.formats { padding: var(--section-y) 0; }
.formats__grid {
  display: grid;
  /* Спецификация: шесть пунктов в две колонки. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Заказчик просил убрать полоски — ритм держат отступы. */
  gap: clamp(22px, 2.6vw, 34px) clamp(24px, 3vw, 56px);
}
.format {
  display: flex;
  gap: 16px;
  align-items: center;
}
.format__mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.format__plus {
  position: relative;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}
.format__text {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.3;
  font-weight: 500;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   8. Опыт и доверие
   -------------------------------------------------------------------------- */

.experience { padding: var(--section-y) 0; }
.experience__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 3.4vw, 64px);
  align-items: flex-start;
}
.credentials { flex: 1 1 440px; min-width: 280px; }
/* Заказчик просил убрать полоски. */
.credentials { display: grid; gap: clamp(16px, 1.9vw, 24px); }
.credentials li {
  display: flex;
  gap: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-wrap: pretty;
}
.credentials__plus {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  flex: 0 0 auto;
}

.why {
  flex: 1 1 400px;
  min-width: 280px;
  background: var(--yellow);
  padding: clamp(26px, 3vw, 44px);
}
.why__list { display: grid; gap: 12px; }
.why__list li {
  line-height: 1.35;
  font-weight: 500;
  padding-left: 18px;
  border-left: var(--rule);
}

/* --------------------------------------------------------------------------
   9. Клиенты и проекты
   -------------------------------------------------------------------------- */

.clients { padding: var(--band-y) 0; }
/* Заказчик просил логотипы цветными и без рамок. */
.logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px) clamp(20px, 2.6vw, 44px);
  align-items: center;
}
.logo {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logos--corporate .logo img { max-height: 56px; }
.logos--projects .logo img { max-height: 68px; }
/* Квадратные знаки оптически мельче горизонтальных логотипов — компенсируем. */
.logos--corporate .logo--mark img { max-height: 70px; }
.logos--projects .logo--mark img { max-height: 82px; }

/* --------------------------------------------------------------------------
   10. Отзывы
   -------------------------------------------------------------------------- */

.testimonials { padding: var(--section-y) 0; }
.testimonials__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px clamp(24px, 3vw, 48px);
}
.testimonials__head .h2 { margin-bottom: 0; }

/* Лента прокручивается вручную: автокарусели на сайте нет нигде. */
.testimonials__strip {
  /* Ширина карточки — доля видимой полосы, а не vw: тогда следующая карточка
     всегда выглядывает из-за края и ленту видно как ленту. При vw на ширинах
     около 1460–1500px три карточки вставали впритык и лента читалась сеткой. */
  --gap: clamp(14px, 1.6vw, 24px);
  --per-view: 3.35;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  align-items: stretch;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 4px var(--pad-x) clamp(16px, 2vw, 28px) var(--strip-pad);
  /* Без этого mandatory-snap сам уводит ленту вправо и съедает левый отступ. */
  scroll-padding-inline-start: var(--strip-pad);
  scrollbar-width: thin;
}

.testimonial {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 272px;
  max-width: 460px;
  scroll-snap-align: start;
  background: var(--paper);
  border: var(--rule);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
}
/* Формат по правкам заказчика: фото → ФИО → должность → отзыв. */
.testimonial__photo {
  width: clamp(72px, 7vw, 92px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 2px dashed var(--grey-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial__photo span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.testimonial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial__caption {
  display: grid;
  gap: 6px;
  padding-bottom: clamp(14px, 1.6vw, 20px);
  border-bottom: var(--rule);
}
.testimonial__name .fill { white-space: normal; }
.testimonial__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.testimonial__role {
  font-size: 13px;
  line-height: 1.3;
  color: var(--grey-dark);
}
.testimonial__quote {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.4;
  font-weight: 500;
  text-wrap: pretty;
  flex: 1 1 auto;
}
/* Свёрнутое состояние: длинные отзывы обрезаются, разворачивает кнопка. */
.testimonial__quote[data-clamped] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}
.testimonial__more {
  align-self: flex-start;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 4px 0;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.testimonial__more:hover { background: var(--yellow); }

/* Стрелки прокрутки ленты */
.strip-nav { display: flex; gap: 2px; }
.strip-btn {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.strip-btn:hover { background: var(--yellow); color: var(--ink); }
.strip-btn:disabled { background: var(--paper); color: var(--grey-dark); cursor: default; }

/* --------------------------------------------------------------------------
   11. Галерея и канал
   -------------------------------------------------------------------------- */

.gallery { padding: var(--band-y) 0; }
.gallery .label--section { margin-bottom: clamp(20px, 2.4vw, 32px); }
.gallery__strip {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 var(--strip-pad) clamp(24px, 3vw, 40px);
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--strip-pad);
  overscroll-behavior-x: contain;
}
.gallery__item {
  flex: 0 0 clamp(260px, 30vw, 420px);
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
  filter: var(--photo-filter);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.gallery__item--contain { background: var(--paper); }
.gallery__item--contain img { object-fit: contain; }

.channel {
  border: 2px solid var(--yellow);
  padding: clamp(24px, 2.8vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
  justify-content: space-between;
}
.channel__text { flex: 1 1 340px; min-width: 260px; }
.channel__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1;
}
.channel__desc {
  margin-top: 12px;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.45;
  color: var(--grey);
  max-width: 520px;
  text-wrap: pretty;
}
.channel .btn { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   12. Контакты и форма
   -------------------------------------------------------------------------- */

.contacts {
  padding: var(--section-y) 0 clamp(56px, 7vw, 100px);
  overflow: hidden;
}
.contacts__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 72px);
  align-items: flex-start;
}

.lead-form {
  flex: 1 1 460px;
  min-width: 280px;
  display: grid;
  gap: clamp(18px, 2vw, 26px);
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--hairline-dark);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 0;
  min-height: 48px;
  width: 100%;
}
.field textarea { resize: vertical; }
/* #6E6E6E из прототипа не проходил AA на чёрном — подняли до токена grey. */
.field input::placeholder,
.field textarea::placeholder { color: var(--grey); opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--yellow);
  box-shadow: 0 3px 0 -1px var(--yellow);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #E5484D; }

.field-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.field-check input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--yellow);
  margin: 0;
}
.field-check label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey);
  cursor: pointer;
}
.field-check a { color: var(--yellow); text-decoration: underline; }

.lead-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.lead-form__actions .btn { font-size: 16px; padding: 20px 36px; }
.lead-form__alt {
  font-size: 15px;
  color: var(--white);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.lead-form__alt:hover { color: var(--yellow); }
.lead-form__status {
  font-size: 15px;
  line-height: 1.4;
  color: var(--yellow);
  min-height: 1px;
}

.contact-card {
  flex: 1 1 380px;
  min-width: 280px;
  display: grid;
  gap: clamp(20px, 2.2vw, 30px);
}
.contact-list { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.contact-list li { border-top: 2px solid var(--hairline-dark); padding-top: 14px; }
.contact-list__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 34px);
  color: var(--white);
  line-height: 1.05;
  display: inline-block;
}
.contact-list__value:hover { color: var(--yellow); }
.contact-list__value--nowrap { white-space: nowrap; }
.contact-list__value--mail { font-size: clamp(20px, 2vw, 30px); overflow-wrap: anywhere; }

.qr { display: flex; gap: 16px; align-items: center; }
.qr__code {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  background: var(--white);
}
.qr__hint {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey);
  max-width: 220px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   13. Футер
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 44px);
  border-top: var(--rule);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 56px);
  justify-content: space-between;
}
.site-footer__brand { flex: 1 1 320px; min-width: 260px; }
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.site-footer__tagline {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--grey-dark);
  max-width: 360px;
  text-wrap: pretty;
}
.site-footer__nav,
.site-footer__contacts {
  flex: 0 1 auto;
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
}
.site-footer__nav a,
.site-footer__contacts a { font-size: 15px; font-weight: 500; }
.site-footer__nav a:hover,
.site-footer__contacts a:hover { color: var(--grey-dark); }
.site-footer__tg { border-bottom: 2px solid var(--yellow); }

.site-footer__bottom {
  margin-top: clamp(28px, 3vw, 48px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--grey-dark);
}
.site-footer__legal { font-family: var(--font-mono); font-size: 12px; }
.site-footer__bottom a { text-decoration: underline; }
.site-footer__bottom a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Правовые страницы (оферта, политика конфиденциальности)
   -------------------------------------------------------------------------- */

.doc-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 60px); }
.doc-hero__eyebrow { margin-bottom: clamp(14px, 1.8vw, 22px); }
.doc-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
  max-width: 20ch;
}
.doc-hero__meta {
  margin-top: clamp(20px, 2.4vw, 32px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 2px solid var(--hairline-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(24px, 3vw, 48px);
  font-size: 15px;
  color: var(--grey);
}

.doc { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
/* Колонка текста прижата к левому краю сетки, как всё остальное на сайте. */
.doc__inner {
  max-width: calc(820px + var(--pad-x) * 2);
  margin-left: 0;
  margin-right: auto;
}
.doc__lead {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  font-weight: 500;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: var(--rule);
  text-wrap: pretty;
}
.doc__section { padding-top: clamp(32px, 4vw, 56px); }
.doc__section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.05;
  margin-bottom: clamp(16px, 1.8vw, 24px);
  overflow-wrap: break-word;
}
.doc__section p,
.doc__section li {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  text-wrap: pretty;
}
.doc__section p + p { margin-top: 14px; }
.doc__clauses { display: grid; gap: 14px; }
.doc__clauses > li { display: flex; gap: 12px; align-items: baseline; }
.doc__num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--grey-dark);
  min-width: 3.2em;
}
.doc__bullets { display: grid; gap: 10px; margin-top: 12px; padding-left: 0; }
.doc__bullets > li { display: flex; gap: 12px; align-items: baseline; }
.doc__bullets > li::before {
  content: "—";
  flex: 0 0 auto;
  color: var(--grey-dark);
}
.doc__note {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: clamp(20px, 2.4vw, 32px);
  border: var(--rule);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
}
.doc__requisites {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.doc__requisites > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(15, 15, 15, 0.12);
}
.doc__requisites dt {
  flex: 0 0 clamp(160px, 22vw, 240px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-top: 3px;
}
.doc__requisites dd {
  flex: 1 1 240px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.doc a:not(.btn) {
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}
.doc a:not(.btn):hover { background: var(--yellow); }

/* Всё, что нужно подставить или подтвердить перед публикацией. */
.fill {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.32em;
  font-weight: 600;
  white-space: nowrap;
}
.fill--wrap { white-space: normal; }

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.doc-back:hover { color: var(--yellow); }

/* --------------------------------------------------------------------------
   Фото с мероприятий
   -------------------------------------------------------------------------- */

.photos { padding: var(--section-y) 0; }
.photos__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px clamp(24px, 3vw, 48px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.photos__head .h2 { margin-bottom: 0; }

/* Переключатель подборок: «Нуар» — чёрно-белое, «Эмоции» — в цвете. */
.photos__tabs { display: flex; gap: 0; }
.photos__tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 clamp(20px, 2.2vw, 30px);
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  border: var(--rule);
  border-radius: 0;
  cursor: pointer;
}
.photos__tab + .photos__tab { border-left: 0; }
.photos__tab:hover { background: var(--yellow); }
.photos__tab.is-active { background: var(--ink); color: var(--white); }

/* Колоночная раскладка: кадры сохраняют свои пропорции и ничего не режется. */
.photos__grid {
  column-count: 3;
  column-gap: clamp(10px, 1.2vw, 18px);
}
.photos__item {
  break-inside: avoid;
  margin: 0 0 clamp(10px, 1.2vw, 18px);
}
.photos__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.photos__open img {
  width: 100%;
  height: auto;
  display: block;
  filter: var(--photo-filter);
}
.photos__open:hover img { filter: grayscale(1) contrast(1.14) brightness(1.06); }

/* Подборка «Эмоции» показывается как есть — в цвете. */
.photos__grid--color .photos__open img { filter: none; }
.photos__grid--color .photos__open:hover img { filter: contrast(1.06) brightness(1.04); }
.photos__grid[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Просмотр фото
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 15, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 24px);
  padding: clamp(56px, 7vw, 88px) clamp(12px, 2vw, 32px);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - clamp(150px, 18vw, 220px));
  width: auto;
  height: auto;
  object-fit: contain;
  filter: var(--photo-filter);
}
/* Снимок из «Эмоций» открывается в цвете. */
.lightbox--color .lightbox__stage img { filter: none; }
.lightbox__caption {
  font-size: 15px;
  line-height: 1.4;
  color: var(--grey);
  text-align: center;
  max-width: 60ch;
}
.lightbox__close,
.lightbox__nav {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--hairline-dark);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lightbox__close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  font-size: 26px;
}
body.is-lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Мобильное меню
   -------------------------------------------------------------------------- */

.burger {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger__box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.burger__line,
.burger__line::before,
.burger__line::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  content: '';
}
.burger__line { top: 6px; }
.burger__line::before { top: -6px; }
.burger__line::after { top: 6px; }

.burger[aria-expanded='true'] { background: var(--yellow); border-color: var(--yellow); }
.burger[aria-expanded='true'] .burger__line { background: transparent; }
.burger[aria-expanded='true'] .burger__line::before,
.burger[aria-expanded='true'] .burger__line::after {
  top: 0;
  background: var(--ink);
}
.burger[aria-expanded='true'] .burger__line::before { transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__line::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(72px + env(safe-area-inset-top, 0px)) var(--pad-x) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vw, 48px);
}
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  padding: clamp(16px, 4vw, 22px) 0;
  border-bottom: 2px solid var(--hairline-dark);
}
.mobile-menu__nav a:first-child { border-top: 2px solid var(--hairline-dark); }
.mobile-menu__nav a:hover,
.mobile-menu__nav a:active { color: var(--yellow); }

.mobile-menu__foot { display: grid; gap: 14px; justify-items: stretch; }
.mobile-menu__contact {
  font-size: 17px;
  color: var(--grey);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.mobile-menu__contact:hover { color: var(--yellow); }

/* Пока меню открыто, страница под ним не прокручивается. */
body.is-menu-open { overflow: hidden; }

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

@media (max-width: 1100px) {
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .approach__media { flex: 1 1 100%; }
  .photo--fill { min-height: 420px; }
  .photos__grid { column-count: 2; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .strip-nav { display: none; }
  .btn__wide { display: none; }
  .burger { display: inline-flex; }
  .site-header__inner { justify-content: space-between; gap: 12px; }
  .site-header .btn--compact { margin-left: auto; }

  .topics { margin-left: 0; margin-right: 0; }
  .direction--reverse .direction__media { order: 0; }
  .direction--reverse .direction__body { order: 0; }
  .quote-bubble--hero { margin-left: 0; width: 100%; }
  .qr { align-items: flex-start; }
}

@media (max-width: 1199px) {
  .testimonials__strip { --per-view: 2.35; }
}

@media (max-width: 860px) {
  .testimonials__head { align-items: flex-start; }
  .photos__head { align-items: flex-start; }
  .testimonials__strip { --per-view: 1.25; }
}

@media (max-width: 700px) {
  .formats__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .doc__requisites dt { flex: 1 1 100%; }
  .doc__clauses > li { display: block; }
  .doc__num { display: block; margin-bottom: 4px; }
}

@media (max-width: 560px) {
  .site-header__name { font-size: 15px; letter-spacing: 0.14em; }
  .h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .h2, .h2--formula, .h2--approach { font-size: clamp(32px, 8.4vw, 40px); }
  .h2--cta { font-size: clamp(32px, 9vw, 44px); }

  .btn { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .channel .btn { flex: 1 1 100%; }
  .lead-form__actions .btn { flex: 1 1 100%; }

  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos--corporate .logo img { max-height: 34px; }
  .logos--projects .logo img { max-height: 40px; }
  .logos--corporate .logo--mark img { max-height: 44px; }
  .logos--projects .logo--mark img { max-height: 50px; }
  .logo { min-height: 84px; padding: 10px; }

  .formula__chain { flex-direction: column; align-items: flex-start; gap: 6px; }
  .formula__break { display: none; }
  .formula__arrow { transform: rotate(90deg); margin-left: 12px; }

  .principle { gap: 14px; }
  .site-footer__inner { gap: 28px; }
  .lightbox { gap: 6px; padding: 64px 10px 24px; }
  .lightbox__nav { width: 48px; height: 48px; }
  .site-footer__nav a,
  .site-footer__contacts a { padding: 8px 0; }
  .site-footer__bottom a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Анимация появления (включается скриптом)
   -------------------------------------------------------------------------- */

/* Сдвиг задаётся отдельным свойством translate, а не transform:
   иначе он затирал бы поворот стрелок формулы на мобильном. */
.js-reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.55s ease, translate 0.55s ease;
}
.js-reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal { opacity: 1; translate: 0 0; }
}

/* Отзывы с абзацами: отступ между абзацами внутри цитаты. */
.testimonial__quote p + p { margin-top: 0.7em; }
/* Свёрнутая цитата не растягивается по высоте ленты: иначе скрипт не видит
   переполнения и не показывает «Читать ещё» у длинных отзывов. */
.testimonial__quote[data-clamped] { flex: 0 0 auto; }
/* Рамка-заглушка нужна, только пока фото нет. */
.testimonial__photo:has(img) { border: 0; }
/* Пока один отзыв развёрнут, соседние карточки не тянутся за ним по высоте. */
.testimonials__strip:has([data-more][aria-expanded="true"]) { align-items: flex-start; }
/* В отзывах имя пишется как обычно: с заглавной, дальше строчными. */
.testimonial__name { text-transform: none; letter-spacing: 0.01em; }


/* --------------------------------------------------------------------------
   Уведомление о cookie — небольшая плашка в углу, не перекрывает контент
   -------------------------------------------------------------------------- */
.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(15, 15, 15, 0.92);
  color: #CFCFCF;
  border: 1px solid var(--hairline-dark);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-note.is-visible { opacity: 1; transform: none; }
.cookie-note__text { margin: 0; }
.cookie-note__text a { color: inherit; text-decoration: underline; }
.cookie-note__text a:hover { color: var(--white); }
.cookie-note__btn {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cookie-note__btn:hover,
.cookie-note__btn:focus-visible { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@media (max-width: 560px) {
  .cookie-note { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-note { transition: none; }
}
