/* ==========================================================================
   DAIC — ПРЕМИАЛЬНЫЙ СТИЛЬ: ВАРИАНТ vC1X (OLD MONEY)
   Соответствие: PREMIUM.md, VARIANTS-P.md, PLAN.md, CONTENT-v3.md, FIX-RESTRUCTURE.md
   ========================================================================== */

:root {
  /* Фирменная палитра (PLAN.md, PREMIUM.md) */
  --color-noir: #11100F;
  --color-graphite: #242321;
  --color-ivory: #F4E9D8;
  --color-champagne: #C7AF84;
  --color-warm-stone: #B9B1A5;

  /* Линии в темных блоках */
  --color-dark-line: rgba(244, 233, 216, 0.16);
  --color-dark-line-soft: rgba(244, 233, 216, 0.08);

  /* Шрифты (только EB Garamond и Cardo, без гротесков) */
  --font-serif: 'EB Garamond', Garamond, Georgia, serif;
  --font-cardo: 'Cardo', Georgia, serif;

  /* Фирменные кривые движения (PREMIUM.md) */
  --ease-main: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mask: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-fade: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   БАЗОВЫЙ СБРОС И ТИПОГРАФИКА
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  background-color: var(--color-noir);
  color: var(--color-ivory);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  background-color: var(--color-noir);
  color: var(--color-ivory);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  overflow-x: clip;
  min-height: 100vh;
}

/* Контейнер и сетка 12 колонок */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 7vw, 100px);
  padding-right: clamp(20px, 7vw, 100px);
}

/* Зернистость пленки */
.site-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.038;
  z-index: 9999;
}

.site-noise svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Рубрики и подписи (EB Garamond капитель) */
.rubric {
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--color-warm-stone);
  display: inline-block;
  line-height: 1.2;
}

/* Тонкие линии и двойные разделители (1px + 3px + 1px) */
.thin-rule {
  width: 100%;
  height: 1px;
  background-color: var(--color-dark-line);
}

.row-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-dark-line);
  margin-top: 24px;
  margin-bottom: 24px;
}

/* ==========================================================================
   КНОПКИ И ССЫЛКИ (PREMIUM.md раздел 4)
   ========================================================================== */
.btn-primary {
  position: relative;
  display: inline-block;
  border: 1px solid var(--color-champagne);
  border-radius: 0;
  padding: 18px 40px;
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 16px;
  line-height: 1;
  color: var(--color-ivory);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-champagne);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s var(--ease-hover);
  z-index: 0;
}

.btn-primary:hover::before {
  clip-path: inset(0 0 0 0);
}

.btn-primary span {
  position: relative;
  z-index: 1;
  transition: color 0.5s var(--ease-hover);
}

.btn-primary:hover span {
  color: var(--color-noir);
}

/* Текстовые ссылки с прорисовывающимся подчеркиванием */
.link-underlined {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 16px;
  color: var(--color-ivory);
  text-decoration: none;
  padding-bottom: 4px;
  line-height: 1.2;
}

.link-underlined::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-main);
}

.link-underlined:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   1. ПЕРВЫЙ ЭКРАН (ГЕРОЙ)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 36px) 0;
  background-color: var(--color-noir);
  overflow: hidden;
}

/* Деликатный мотив бренда */
.hero-motif-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-motif {
  width: 100%;
  max-width: 900px;
  height: auto;
  overflow: visible;
}

.motif-arc {
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
}

html.js .motif-arc {
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.4s var(--ease-main);
}

html.js .hero-section.is-revealed .motif-arc {
  stroke-dashoffset: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Логотип на первом экране — вариант Cartier: Pinyon Script без стрелки */
.hero-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(120px, 11vw, 168px);
  text-align: center;
  margin: 0 auto clamp(18px, 2.4vh, 28px);
  flex-shrink: 0;
  user-select: none;
}

.hero-logo-mark {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--color-ivory);
  white-space: nowrap;
}

.hero-logo-sub {
  font-family: var(--font-serif);
  font-variant-caps: normal;
  font-weight: 500;
  font-size: max(11px, 0.08em);
  text-transform: uppercase;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--color-warm-stone);
  margin-top: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
}

html.js .hero-logo {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease-main), transform 1.2s var(--ease-main);
}

html.js .hero-section.is-revealed .hero-logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.04s;
}

/* Построчное раскрытие заголовка маской */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--color-ivory);
  margin-bottom: clamp(28px, 4.5vh, 44px);
  max-width: 18ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.line-mask {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
}

html.js .line-inner {
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-main);
}

html.js .hero-section.is-revealed .line-inner {
  transform: translateY(0);
}

html.js .hero-section.is-revealed .line-mask:nth-child(1) .line-inner {
  transition-delay: 0.18s;
}

html.js .hero-section.is-revealed .line-mask:nth-child(2) .line-inner {
  transition-delay: 0.30s;
}

/* Процесс «что мы делаем» под заголовком: цепочка со стрелками */
.hero-steps {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 24px);
}

.hero-step {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  padding: 0;
  box-sizing: border-box;
}

.hero-step-num {
  display: block;
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--color-champagne);
  margin-bottom: 8px;
}

.hero-step-name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-ivory);
  margin-bottom: 10px;
}

.hero-step-desc {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-warm-stone);
}

/* Стрелка между блоками: тонкая линия 1px Champagne, opacity ~0.6, длина ~40–56px */
.hero-arrow {
  flex: 0 0 auto;
  display: block;
  width: 44px;
  height: 10px;
  margin-top: calc(15px * 1.55 + 8px + (clamp(22px, 1.8vw, 27px) * 1.15 / 2) - 5px);
  opacity: 1;
}

.hero-arrow-svg {
  display: block;
  width: 44px;
  height: 10px;
  overflow: visible;
}

.hero-arrow-path {
  stroke: var(--color-champagne);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  fill: none;
}

/* Появление цепочки процесса: по очереди слева направо (шаг ~0.12s, кривая cubic-bezier(0.16,1,0.3,1)) */
html.js .hero-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-main), transform 0.8s var(--ease-main);
}

html.js .hero-arrow {
  opacity: 0;
  transition: opacity 0.6s var(--ease-main);
}

html.js .hero-arrow-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.6s var(--ease-main);
}

html.js .hero-section.is-revealed .hero-step {
  opacity: 1;
  transform: translateY(0);
}

html.js .hero-section.is-revealed .hero-arrow {
  opacity: 1;
}

html.js .hero-section.is-revealed .hero-arrow-path {
  stroke-dashoffset: 0;
}

/* Задержки по очереди слева направо: блок → стрелка → блок... */
html.js .hero-section.is-revealed .hero-step:nth-child(1) {
  transition-delay: 0.42s;
}

html.js .hero-section.is-revealed .hero-arrow:nth-child(2) {
  transition-delay: 0.54s;
}
html.js .hero-section.is-revealed .hero-arrow:nth-child(2) .hero-arrow-path {
  transition-delay: 0.54s;
}

html.js .hero-section.is-revealed .hero-step:nth-child(3) {
  transition-delay: 0.66s;
}

html.js .hero-section.is-revealed .hero-arrow:nth-child(4) {
  transition-delay: 0.78s;
}
html.js .hero-section.is-revealed .hero-arrow:nth-child(4) .hero-arrow-path {
  transition-delay: 0.78s;
}

html.js .hero-section.is-revealed .hero-step:nth-child(5) {
  transition-delay: 0.90s;
}

html.js .hero-section.is-revealed .hero-arrow:nth-child(6) {
  transition-delay: 1.02s;
}
html.js .hero-section.is-revealed .hero-arrow:nth-child(6) .hero-arrow-path {
  transition-delay: 1.02s;
}

html.js .hero-section.is-revealed .hero-step:nth-child(7) {
  transition-delay: 1.14s;
}

.hero-swipe-hint {
  display: none;
}

html.js .hero-swipe-hint {
  opacity: 0;
  transition: opacity 0.6s var(--ease-main) 1.20s;
}

html.js .hero-section.is-revealed .hero-swipe-hint {
  opacity: 0.7;
}

/* ==========================================================================
   2. ПО ОТДЕЛАМ (#agents)
   Сетка отделов 3x2 (desktop) / аккордеон (mobile/tablet)
   ========================================================================== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--color-ivory);
  margin-top: 8px;
}

.section-agents {
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: clamp(120px, 18vh, 220px);
  background-color: var(--color-graphite);
}

.section-lead {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--color-warm-stone);
  margin-top: 12px;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.lead-touch {
  display: inline;
}

.lead-hover {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .lead-touch {
    display: none;
  }
  .lead-hover {
    display: inline;
  }
}

.depts-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: clamp(48px, 6vh, 80px);
}

.dept {
  position: relative;
  border-top: 1px solid var(--color-dark-line);
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  box-sizing: border-box;
}

/* Линия сверху Champagne 40%, прорисовывается слева направо */
.dept::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(199, 175, 132, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-main) 0s;
  z-index: 2;
  pointer-events: none;
}

.dept-head {
  position: relative;
  background: none;
  border: none;
  padding: 28px 48px 28px 0;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  display: block;
  cursor: pointer;
}

.dept-num {
  display: block;
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.08em;
  font-size: 16px;
  color: var(--color-champagne);
  margin-bottom: 8px;
}

.dept-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 400;
  color: var(--color-ivory);
  line-height: 1.05;
}

.dept-note {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--color-warm-stone);
  margin-top: 6px;
  line-height: 1.35;
}

.dept-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-champagne);
  transition: transform 0.4s var(--ease-main);
  pointer-events: none;
}

.dept.is-open .dept-toggle,
.dept-head[aria-expanded="true"] .dept-toggle {
  transform: translateY(-50%) rotate(45deg);
}

/* Раскрывающийся блок: без JS открыт, с JS (html.js) — CSS Grid 0fr -> 1fr */
.dept-body {
  margin: 0;
  padding: 0;
}

.dept-body-inner {
  min-height: 0;
  padding-bottom: 28px;
}

html.js .dept-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-main) 0s;
}

html.js .dept-body-inner {
  overflow: hidden;
}

/* Аккордеон по клику для всех экранов */
html.js .dept.is-open .dept-body,
html.js .dept-head[aria-expanded="true"] + .dept-body {
  grid-template-rows: 1fr;
  transition-delay: 0s;
}

.dept-label {
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--color-warm-stone);
  margin-bottom: 12px;
}

.dept-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dept-list li {
  position: relative;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--color-ivory);
  padding-left: 18px;
}

.dept-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-champagne);
  font-family: var(--font-serif);
}

/* Анимация элементов списка под html.js */
html.js .dept-label,
html.js .dept-list li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-main) 0s, transform 0.45s var(--ease-main) 0s;
}

html.js .dept.is-open .dept-label,
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-label,
html.js .dept.is-open .dept-list li,
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li {
  opacity: 1;
  transform: translateY(0);
}

html.js .dept.is-open .dept-label,
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-label {
  transition-delay: 0.04s;
}

html.js .dept.is-open .dept-list li:nth-child(1),
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li:nth-child(1) { transition-delay: 0.06s; }
html.js .dept.is-open .dept-list li:nth-child(2),
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li:nth-child(2) { transition-delay: 0.10s; }
html.js .dept.is-open .dept-list li:nth-child(3),
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li:nth-child(3) { transition-delay: 0.14s; }
html.js .dept.is-open .dept-list li:nth-child(4),
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li:nth-child(4) { transition-delay: 0.18s; }
html.js .dept.is-open .dept-list li:nth-child(5),
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li:nth-child(5) { transition-delay: 0.22s; }
html.js .dept.is-open .dept-list li:nth-child(6),
html.js .dept-head[aria-expanded="true"] + .dept-body .dept-list li:nth-child(6) { transition-delay: 0.26s; }

/* ==========================================================================
   КОМПЬЮТЕР: Hover и раскрытие отделов
   (@media (hover: hover) and (pointer: fine) and (min-width: 901px))
   ========================================================================== */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  /* Линия сверху Champagne 40% при наведении */
  .dept:hover::before,
  .dept:focus-within::before {
    transform: scaleX(1);
    transition-delay: 0.12s;
  }

  .dept.is-open::before,
  .dept:has(.dept-head[aria-expanded="true"])::before {
    transform: scaleX(1);
    transition-delay: 0s;
  }

  /* Поворот «+» на 45° при наведении */
  .dept:hover .dept-toggle,
  .dept:focus-within .dept-toggle {
    transform: translateY(-50%) rotate(45deg);
    transition-delay: 0.12s;
  }

  .dept.is-open .dept-toggle,
  .dept-head[aria-expanded="true"] .dept-toggle {
    transform: translateY(-50%) rotate(45deg);
    transition-delay: 0s;
  }

  /* Раскрытие сетки при наведении с задержкой 0.12s для защиты от дёрганья */
  html.js .dept:hover .dept-body,
  html.js .dept:focus-within .dept-body {
    grid-template-rows: 1fr;
    transition-delay: 0.12s;
  }

  /* Фиксация кликом остаётся без задержки */
  html.js .dept.is-open .dept-body,
  html.js .dept-head[aria-expanded="true"] + .dept-body {
    grid-template-rows: 1fr;
    transition-delay: 0s;
  }

  /* Элементы внутри при наведении */
  html.js .dept:hover .dept-label,
  html.js .dept:focus-within .dept-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
  }

  html.js .dept:hover .dept-list li,
  html.js .dept:focus-within .dept-list li {
    opacity: 1;
    transform: translateY(0);
  }

  html.js .dept:hover .dept-list li:nth-child(1),
  html.js .dept:focus-within .dept-list li:nth-child(1) { transition-delay: 0.16s; }
  html.js .dept:hover .dept-list li:nth-child(2),
  html.js .dept:focus-within .dept-list li:nth-child(2) { transition-delay: 0.20s; }
  html.js .dept:hover .dept-list li:nth-child(3),
  html.js .dept:focus-within .dept-list li:nth-child(3) { transition-delay: 0.24s; }
  html.js .dept:hover .dept-list li:nth-child(4),
  html.js .dept:focus-within .dept-list li:nth-child(4) { transition-delay: 0.28s; }
  html.js .dept:hover .dept-list li:nth-child(5),
  html.js .dept:focus-within .dept-list li:nth-child(5) { transition-delay: 0.32s; }
  html.js .dept:hover .dept-list li:nth-child(6),
  html.js .dept:focus-within .dept-list li:nth-child(6) { transition-delay: 0.36s; }
}

/* ==========================================================================
   3. ФИНАЛ (#contact)
   «Intelligence. Applied.», симметричная редакторская подача
   ========================================================================== */
.section-contact {
  padding-top: clamp(140px, 22vh, 260px);
  padding-bottom: clamp(120px, 18vh, 220px);
  background-color: var(--color-noir);
  text-align: center;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-motto {
  font-family: var(--font-cardo);
  font-style: italic;
  font-size: 20px;
  color: var(--color-champagne);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--color-ivory);
  max-width: 22ch;
  margin-bottom: 24px;
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--color-warm-stone);
  max-width: 50ch;
  margin-bottom: 44px;
}

.contact-action-wrap {
  margin-bottom: 64px;
}

.contact-details {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 8px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.contact-label {
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--color-warm-stone);
}

.contact-val {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-ivory);
}

/* ==========================================================================
   ПОДВАЛ
   Тонкая линия сверху, строка DAIC / Developer AI Company · 2026
   ========================================================================== */
.site-footer {
  padding-top: 36px;
  padding-bottom: 52px;
  background-color: var(--color-noir);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--color-warm-stone);
}

.footer-year {
  color: var(--color-champagne);
}

/* ==========================================================================
   АДАПТИВНОСТЬ: ПЛАНШЕТ И МОБИЛЬНЫЙ (375×812)
   ========================================================================== */
/* 600–900px: горизонтальная цепочка «блок → стрелка → блок…» */
@media (min-width: 600px) and (max-width: 900px) {
  .hero-steps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(4px, 0.8vw, 8px);
    margin-left: -28px;
    margin-right: -28px;
    width: calc(100% + 56px);
  }

  .hero-step {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-step-name {
    font-size: clamp(16.5px, 2.3vw, 22px);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 8px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .hero-step-desc {
    font-size: clamp(14px, 1.8vw, 15px);
    line-height: 1.4;
  }

  .hero-arrow {
    width: clamp(14px, 2.4vw, 28px);
    height: 10px;
    margin-top: calc(15px * 1.55 + 8px + (clamp(16.5px, 2.3vw, 22px) * 1.15 / 2) - 5px);
  }

  .hero-arrow-svg {
    width: 100%;
    height: 100%;
  }

  .hero-arrow-path {
    vector-effect: non-scaling-stroke;
  }
}

@media (max-width: 900px), (hover: none) {
  .depts-grid {
    margin-top: 36px;
  }

  .dept::before {
    display: none;
  }

  .dept-head {
    padding: 24px 36px 24px 0;
  }

  .dept-body-inner {
    padding-bottom: 24px;
  }
}

@media (max-width: 599px) {
  .hero-logo {
    font-size: clamp(104px, 30vw, 124px);
    margin-bottom: clamp(16px, 2vh, 22px);
  }

  .hero-steps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-self: stretch;
    width: auto;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-left: calc(-1 * clamp(20px, 7vw, 100px));
    margin-right: calc(-1 * clamp(20px, 7vw, 100px));
    padding-left: clamp(20px, 7vw, 100px);
    padding-right: clamp(20px, 7vw, 100px);
    scroll-padding-left: clamp(20px, 7vw, 100px);
  }

  .hero-steps::-webkit-scrollbar {
    display: none;
  }

  .hero-step {
    flex: 0 0 78%;
    min-width: 78%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .hero-step-name {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .hero-step-desc {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 10px;
    margin-top: calc(15px * 1.55 + 8px + (22px * 1.15 / 2) - 5px);
    scroll-snap-align: none;
  }

  .hero-arrow-svg {
    width: 100%;
    height: 100%;
  }

  .hero-arrow-path {
    vector-effect: non-scaling-stroke;
  }

  .hero-swipe-hint {
    display: block;
    font-family: var(--font-serif);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.08em;
    font-size: 13px;
    color: var(--color-warm-stone);
    margin-top: 14px;
    align-self: flex-start;
    pointer-events: none;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  .btn-primary {
    width: 100%;
    padding: 16px 24px;
  }

  .contact-rows {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION (PREMIUM.md раздел 5)
   Всё видно сразу, без прорисовок и анимаций
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .line-inner {
    transform: none !important;
    transition: none !important;
  }

  .motif-arc {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .hero-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-arrow {
    opacity: 1 !important;
    transition: none !important;
  }

  .hero-arrow-path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .hero-swipe-hint {
    opacity: 0.7 !important;
    transition: none !important;
  }

  .dept::before {
    display: none !important;
  }

  .dept-head {
    transform: none !important;
    transition: none !important;
  }

  .dept-toggle {
    transition: none !important;
  }

  .dept-body,
  html.js .dept-body {
    grid-template-rows: 1fr !important;
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  .dept-body-inner {
    overflow: visible !important;
  }

  .dept-label,
  .dept-list li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
