/* ==========================================================================
   ФЛОРИДИЗ · v10 «Образец сезона» (гибрид A+B)
   Тёплый личный архив флориста-кутюрье + кинематографичная эмоция
   в двух ключевых точках: HERO (push-in, letterbox) и ГАЛЕРЕЯ (filmic-монтаж).
   Шрифты: Prata (титулы) + Manrope (тело/UI) + JetBrains Mono (микро-метки).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ И ПАЛИТРА (тёплый архив)
   -------------------------------------------------------------------------- */
:root {
  /* Палитра */
  --paper:      #F4F0E8; /* тёплая архивная бумага — основной фон */
  --paper-deep: #ECE6DA; /* бумага чуть глубже — чередование секций */
  --ink:        #1B1A17; /* тёплый чёрный — основной текст */
  --ink-soft:   #4A4640; /* приглушённый текст */
  --ink-mute:   #837B6E; /* подписи, мета */
  --sage:       #7F8A6B; /* шалфей — эко-акцент */
  --sage-deep:  #5E6A4C;
  --passe:      #D8CEC0; /* паспарту, линии, рамки */
  --passe-soft: #E4DCCF;
  --wine:       #6E3F35; /* винно-бордовый — CTA, важные детали */
  --wine-deep:  #5A3129;
  --brass:      #B7A36F; /* латунь — микро-метки, дозированно */

  /* Кино-зона (hero/галерея): тёплый зал */
  --film-black: #14110E; /* тёплая «темнота» letterbox */
  --film-light: #F6F1E8; /* свет экрана — титры на тёмном */

  /* Типографика */
  --font-title: 'Prata', Georgia, 'Times New Roman', serif;
  --font-body:  'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Метрики */
  --maxw: 1240px;
  --maxw-text: 720px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  /* Тайминги анимаций (киноплавность) */
  --ease-cine: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. СБРОС И БАЗА
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: .005em;
}

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

/* Видимые focus-состояния (доступность) */
:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   3. УТИЛИТЫ И ОБЩИЕ ПАТТЕРНЫ
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 130px);
  position: relative;
}

.section--paper-deep { background: var(--paper-deep); }

/* Архивная метка раздела: моноширь + номер + засечка */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}
.eyebrow .num { color: var(--brass); }

.section-title {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  max-width: 16ch;
}
.section-lead {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 19px);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: transform .35s var(--ease-cine), background-color .35s var(--ease-soft), color .35s var(--ease-soft), border-color .35s var(--ease-soft);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--wine);
  color: var(--film-light);
}
.btn--primary:hover { background: var(--wine-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Призрачная кнопка на тёмном (кино-hero) */
.btn--ghost-light {
  background: transparent;
  color: var(--film-light);
  border: 1px solid rgba(246,241,232,.5);
}
.btn--ghost-light:hover { background: var(--film-light); color: var(--film-black); border-color: var(--film-light); }

/* --------------------------------------------------------------------------
   4. ШАПКА
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .45s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .45s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
/* Поверх кино-hero — прозрачная со светлым текстом */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 110;
}
.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-title);
  font-size: 21px;
  letter-spacing: .04em;
  color: var(--film-light);
  transition: color .45s var(--ease-soft);
  line-height: 1;
}
.brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(246,241,232,.6);
  margin-top: 4px;
  transition: color .45s var(--ease-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(246,241,232,.85);
  position: relative;
  padding: 4px 0;
  transition: color .35s var(--ease-soft);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease-cine);
}
.nav__link:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { padding: 11px 22px; font-size: 14px; }

/* Иконка мессенджера в шапке */
.msg-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(246,241,232,.45);
  border-radius: 50%;
  color: var(--film-light);
  transition: background-color .35s, color .35s, border-color .35s;
}
.msg-icon:hover { background: var(--film-light); color: var(--film-black); }
.msg-icon svg { width: 19px; height: 19px; }

/* Состояние «прокручено»: непрозрачная бумажная шапка */
.header.is-scrolled {
  background: rgba(244,240,232,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--passe);
  box-shadow: 0 1px 0 rgba(27,26,23,.03);
}
.header.is-scrolled .brand__name { color: var(--ink); }
.header.is-scrolled .brand__tag { color: var(--ink-mute); }
.header.is-scrolled .nav__link { color: var(--ink-soft); }
.header.is-scrolled .nav__link:hover { color: var(--ink); }
.header.is-scrolled .msg-icon { border-color: var(--passe); color: var(--ink); }
.header.is-scrolled .msg-icon:hover { background: var(--ink); color: var(--paper); }
.header.is-scrolled .btn--ghost-light { color: var(--ink); border-color: var(--ink); }
.header.is-scrolled .btn--ghost-light:hover { background: var(--ink); color: var(--paper); }
.header.is-scrolled .burger span { background: var(--ink); }

/* Бургер */
.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--film-light);
  border-radius: 2px;
  transition: transform .4s var(--ease-cine), opacity .3s, background-color .45s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. МОБИЛЬНОЕ МЕНЮ (fixed full-width overlay)
   ВАЖНО: inset:0 + width:100%, без justify-self — иначе «проступает» сбоку.
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;             /* full-width, full-height */
  width: 100%;
  z-index: 105;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform .5s var(--ease-cine);
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__link {
  font-family: var(--font-title);
  font-size: clamp(28px, 8vw, 40px);
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--passe);
}
.mobile-menu__link .mm-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  margin-right: 14px;
  vertical-align: middle;
}
.mobile-menu__foot {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__contacts {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .02em;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   6. КИНО-HERO (сигнатура 1: push-in 1.0→1.06 + letterbox + проявление титра)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: var(--film-black);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Слой кадров (слайды) */
.hero__stage { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft);
}
.hero__slide.is-active { opacity: 1; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filmic-грейдинг: тёплый свет / прохладная тень + лёгкий контраст */
  filter: saturate(1.02) contrast(1.04) brightness(.98);
  /* медленный push-in — задаётся через .hero.is-animating .is-active .hero__img */
  transform: scale(1.0);
}
/* push-in работает на активном кадре */
.hero.is-animating .hero__slide.is-active .hero__img {
  animation: heroPushIn 9s var(--ease-cine) forwards;
}
@keyframes heroPushIn {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* Затемняющая вуаль/градиент для контраста текста (доступность) */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,14,.52) 0%, rgba(20,17,14,.06) 28%, rgba(20,17,14,0) 48%, rgba(20,17,14,.75) 100%),
    linear-gradient(90deg, rgba(20,17,14,.68) 0%, rgba(20,17,14,.22) 48%, rgba(20,17,14,0) 74%);
}

/* Лёгкое плёночное зерно (атмосфера кино) */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Letterbox — тонкие кинематографические поля */
.hero__bar {
  position: absolute;
  left: 0; right: 0;
  height: clamp(26px, 5vh, 52px);
  background: var(--film-black);
  z-index: 4;
  transition: height .8s var(--ease-cine);
}
.hero__bar--top { top: 0; }
.hero__bar--bot { bottom: 0; }

/* Контент hero */
.hero__inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(56px, 10vh, 96px);
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(246,241,232,.78);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }

.hero__title {
  color: var(--film-light);
  font-size: clamp(36px, 7vw, 92px);
  line-height: 1.04;
  max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero__title .em { font-style: italic; color: #F1E4D2; }

.hero__sub {
  color: rgba(246,241,232,.9);
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 52ch;
  margin-top: 26px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.hero__micro {
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(246,241,232,.7);
  display: flex; align-items: center; gap: 9px;
}
.hero__micro::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Маркеры слайдов */
.hero__dots {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 10vh, 96px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(246,241,232,.6);
  background: transparent;
  transition: background-color .4s, transform .4s;
}
.hero__dot.is-active { background: var(--brass); border-color: var(--brass); transform: scale(1.2); }

/* Проявление контента hero (титр) */
.hero [data-hero-in] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-cine), transform 1s var(--ease-cine);
}
.hero.is-ready [data-hero-in] { opacity: 1; transform: none; }
.hero.is-ready [data-hero-in="1"] { transition-delay: .15s; }
.hero.is-ready [data-hero-in="2"] { transition-delay: .35s; }
.hero.is-ready [data-hero-in="3"] { transition-delay: .55s; }
.hero.is-ready [data-hero-in="4"] { transition-delay: .75s; }
.hero.is-ready [data-hero-in="5"] { transition-delay: .95s; }

/* --------------------------------------------------------------------------
   7. РАБОТЫ — АРХИВНАЯ СТЕНА + КИНО-МОНТАЖ (сигнатура 2 + 3)
   curated wall: ритм общий→деталь→рука; «раскрытие кальки» на карточках.
   -------------------------------------------------------------------------- */
.works__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 18px;
  border: 1px solid var(--passe);
  border-radius: 100px;
  background: transparent;
  transition: background-color .35s, color .35s, border-color .35s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Архивная стена: 12-колоночная сетка с разным ритмом кадров */
.works-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.work {
  position: relative;
  grid-column: span 4;
  background: var(--passe-soft);
  overflow: hidden;
  border-radius: var(--radius);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
}
/* Ритм планов: общий (широкий) → деталь (узкий, выше) → рука */
.work--wide { grid-column: span 8; }
.work--tall { grid-column: span 4; }
.work--full { grid-column: span 12; }

.work__frame {
  position: relative;
  overflow: hidden;
  /* паспарту — тонкая внутренняя рамка архива */
  outline: 1px solid var(--passe);
  outline-offset: -1px;
}
.work__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* единый filmic-грейдинг галереи */
  filter: saturate(1.02) contrast(1.03);
  transition: transform 1.1s var(--ease-cine), filter .6s var(--ease-soft);
}
.work:hover .work__media { transform: scale(1.045); }

/* Аспекты для разных планов (против CLS — фиксируем через aspect-ratio) */
.work__frame--landscape { aspect-ratio: 4 / 3; }
.work__frame--portrait  { aspect-ratio: 3 / 4; }
.work__frame--wide      { aspect-ratio: 16 / 9; }
.work__frame--square    { aspect-ratio: 1 / 1; }

/* СИГНАТУРА 3: «раскрытие кальки» — полупрозрачный калечный слой с 2 строками голосом Анны */
.work__calque {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 26px);
  background:
    linear-gradient(180deg, rgba(244,240,232,0) 30%, rgba(33,30,26,.05) 55%, rgba(20,17,14,.82) 100%);
  opacity: 0;
  transition: opacity .55s var(--ease-soft);
}
/* «Калька» поверх: лёгкая тёплая плёнка, проявляется на hover/focus/тапе */
.work__calque::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244,240,232,.14);
  backdrop-filter: saturate(1.1);
  opacity: 0;
  transition: opacity .55s var(--ease-soft);
}
.work:hover .work__calque,
.work:focus-within .work__calque,
.work.is-revealed .work__calque { opacity: 1; }

.work__cap {
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  transition: transform .55s var(--ease-cine);
}
.work:hover .work__cap,
.work:focus-within .work__cap,
.work.is-revealed .work__cap { transform: translateY(0); }

.work__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
}
.work__line {
  font-family: var(--font-title);
  font-size: clamp(17px, 1.6vw, 23px);
  color: var(--film-light);
  line-height: 1.2;
  margin-bottom: 8px;
}
.work__voice {
  font-size: 14px;
  color: rgba(246,241,232,.88);
  line-height: 1.45;
  font-style: italic;
  max-width: 38ch;
}
/* Кнопка-расширение (для зума в лайтбокс) */
.work__open {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20,17,14,.55);
  color: var(--film-light);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .4s, transform .4s, background-color .3s;
}
.work:hover .work__open,
.work:focus-within .work__open { opacity: 1; transform: scale(1); }
.work__open:hover { background: var(--wine); }
.work__open svg { width: 17px; height: 17px; }

/* Постоянная мини-подпись под кадром (видна без наведения — «реально и сделано ею») */
.work__strip {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 1;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--film-light);
  background: linear-gradient(180deg, rgba(20,17,14,0), rgba(20,17,14,.7));
  transition: opacity .4s;
}
.work:hover .work__strip,
.work:focus-within .work__strip,
.work.is-revealed .work__strip { opacity: 0; }

.work.is-hidden { display: none; }

.works__more { margin-top: 44px; text-align: center; }

/* --------------------------------------------------------------------------
   8. ОБ АННЕ
   -------------------------------------------------------------------------- */
.anna {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.anna__media { position: relative; }
.anna__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  outline: 1px solid var(--passe);
  outline-offset: -1px;
}
.anna__sub {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 44%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(27,26,23,.16);
}
.anna__name {
  font-size: clamp(28px, 4vw, 48px);
  margin-top: 8px;
}
.anna__body { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--ink-soft); margin-top: 22px; }
.anna__quote {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--wine);
  padding-left: 22px;
  margin: 28px 0;
}
.anna__sign {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 20px;
  color: var(--wine);
}
.anna__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  border-top: 1px solid var(--passe);
  padding-top: 28px;
}
.stat__num {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--ink);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
  display: block;
}

/* --------------------------------------------------------------------------
   9. УСЛУГИ (мягкая группировка)
   -------------------------------------------------------------------------- */
.services__groups { display: grid; gap: clamp(40px, 5vw, 64px); margin-top: 48px; }
.svc-group__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--passe);
}
.svc-group__name {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.6vw, 32px);
}
.svc-group__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.2vw, 30px); }
.svc {
  background: var(--paper);
  border: 1px solid var(--passe);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  transition: transform .4s var(--ease-cine), border-color .4s, box-shadow .4s;
}
.section--paper-deep .svc { background: var(--paper-deep); }
.svc:hover {
  transform: translateY(-4px);
  border-color: var(--passe);
  box-shadow: 0 16px 36px rgba(27,26,23,.07);
}
.svc__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--brass);
}
.svc__title {
  font-family: var(--font-title);
  font-size: clamp(19px, 1.9vw, 25px);
  margin: 12px 0 12px;
  line-height: 1.18;
}
.svc__desc { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.svc__extra {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-mute);
  font-style: italic;
  border-top: 1px dashed var(--passe);
  padding-top: 12px;
}
.svc__extra b { font-style: normal; color: var(--ink-soft); font-weight: 600; }

.services__foot {
  margin-top: 46px;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. ПРОЦЕСС (залог заботы — инженерная зона, моноширь уместна)
   -------------------------------------------------------------------------- */
.process__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-top: 48px; counter-reset: step; }
.step {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  position: relative;
}
.step__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.step__title {
  font-family: var(--font-title);
  font-size: clamp(18px, 1.7vw, 22px);
  margin-bottom: 12px;
  line-height: 1.15;
}
.step__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.process__note {
  margin-top: 42px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--ink);
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   11. ЭКО
   -------------------------------------------------------------------------- */
.eco { position: relative; overflow: hidden; }
.eco .container { position: relative; z-index: 2; }
.eco__head { max-width: 40ch; }
.eco__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); margin-top: 48px; }
.eco-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  border-bottom: 3px solid var(--sage);
}
.eco-card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sage-deep);
  letter-spacing: .12em;
}
.eco-card__title {
  font-family: var(--font-title);
  font-size: clamp(18px, 1.7vw, 22px);
  margin: 12px 0 12px;
  line-height: 1.2;
}
.eco-card__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* Декоративная веточка-эвкалипт в углу эко-блока */
.eco__sprig {
  position: absolute;
  top: -30px; right: -40px;
  width: clamp(180px, 24vw, 340px);
  opacity: .14;
  z-index: 1;
  pointer-events: none;
  transform: rotate(8deg);
}

/* --------------------------------------------------------------------------
   12. ОТЗЫВЫ
   -------------------------------------------------------------------------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 30px); margin-top: 48px; }
.review {
  background: var(--paper);
  border: 1px solid var(--passe);
  border-radius: var(--radius);
  padding: clamp(26px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
}
.section--paper-deep .review { background: var(--paper-deep); }
.review__mark {
  font-family: var(--font-title);
  font-size: 58px;
  line-height: .6;
  color: var(--passe);
  margin-bottom: 16px;
}
.review__text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.review__author {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--passe);
}
.review__name { font-weight: 600; font-size: 15px; }
.review__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 5px;
  display: block;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq__list { margin-top: 48px; max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--passe); }
.faq-item:first-child { border-top: 1px solid var(--passe); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 26px 0;
  font-family: var(--font-title);
  font-size: clamp(18px, 1.7vw, 23px);
  color: var(--ink);
  line-height: 1.3;
}
.faq-q__icon {
  flex: none;
  width: 28px; height: 28px;
  position: relative;
  margin-top: 4px;
}
.faq-q__icon::before, .faq-q__icon::after {
  content: "";
  position: absolute;
  background: var(--wine);
  transition: transform .4s var(--ease-cine), opacity .4s;
}
.faq-q__icon::before { top: 13px; left: 4px; width: 20px; height: 2px; }
.faq-q__icon::after  { top: 4px; left: 13px; width: 2px; height: 20px; }
.faq-item.is-open .faq-q__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s var(--ease-cine);
}
.faq-a__inner {
  padding: 0 48px 28px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   14. КОНТАКТЫ + ФОРМА
   -------------------------------------------------------------------------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: rgba(244,240,232,.7); }
.contact .eyebrow::before { background: var(--brass); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact__title { color: var(--paper); font-size: clamp(30px, 4.4vw, 52px); }
.contact__lead { color: rgba(244,240,232,.78); margin-top: 22px; max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); }

.contact__channels { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(244,240,232,.14);
  transition: padding-left .35s var(--ease-cine);
}
.channel:hover { padding-left: 8px; }
.channel__ic {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244,240,232,.3);
  display: grid; place-items: center;
  color: var(--paper);
}
.channel__ic svg { width: 20px; height: 20px; }
.channel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,240,232,.55);
  display: block;
}
.channel__val { font-size: 17px; color: var(--paper); margin-top: 2px; }
.contact__primary-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--brass);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* Форма */
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 44px); }
.form__title { font-family: var(--font-title); font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 8px; }
.form__hint { font-size: 14px; color: var(--ink-mute); margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 9px;
}
.field__label .req { color: var(--wine); }
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--passe);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .3s, background-color .3s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--wine);
  background: var(--paper);
}
.input.is-invalid, .select.is-invalid { border-color: var(--wine); background: #f7ece9; }
.textarea { resize: vertical; min-height: 96px; }
.field__error {
  display: none;
  font-size: 12.5px;
  color: var(--wine);
  margin-top: 7px;
}
.field.has-error .field__error { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__submit { width: 100%; margin-top: 8px; }
.form__legal { font-size: 12.5px; color: var(--ink-mute); margin-top: 16px; text-align: center; }

/* Сообщение «Спасибо» */
.form__success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form__success.is-shown { display: block; animation: fadeUp .6s var(--ease-cine); }
.form__success-mark {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--sage);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: var(--paper);
}
.form__success-mark svg { width: 26px; height: 26px; }
.form__success-title { font-family: var(--font-title); font-size: 26px; margin-bottom: 10px; }
.form__success-text { color: var(--ink-soft); font-size: 15px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   15. ПОДВАЛ
   -------------------------------------------------------------------------- */
.footer { background: var(--film-black); color: rgba(246,241,232,.8); padding-block: clamp(48px, 6vw, 80px); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,241,232,.12);
}
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__brand img { width: 46px; height: 46px; object-fit: contain; }
.footer__brand-name { font-family: var(--font-title); font-size: 22px; color: var(--film-light); letter-spacing: .04em; }
.footer__slogan { font-family: var(--font-title); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); color: rgba(246,241,232,.85); max-width: 30ch; line-height: 1.4; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.footer__nav { display: flex; flex-direction: column; gap: 11px; }
.footer__nav a, .footer__contacts a, .footer__contacts span { font-size: 14.5px; color: rgba(246,241,232,.78); transition: color .3s; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--film-light); }
.footer__contacts { display: flex; flex-direction: column; gap: 11px; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(246,241,232,.25);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(246,241,232,.8);
  transition: background-color .3s, color .3s, border-color .3s;
}
.footer__social a:hover { background: var(--film-light); color: var(--film-black); border-color: var(--film-light); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(246,241,232,.55);
}
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: var(--film-light); }

/* --------------------------------------------------------------------------
   16. ЛАЙТБОКС (стоп-кадр)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,17,14,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 70px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-soft), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  transform: scale(.96);
  transition: transform .5s var(--ease-cine);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap {
  position: absolute;
  bottom: clamp(24px, 5vw, 50px);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246,241,232,.85);
}
.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(246,241,232,.4);
  color: var(--film-light);
  display: grid; place-items: center;
  transition: background-color .3s, color .3s;
}
.lightbox__close:hover { background: var(--film-light); color: var(--film-black); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(246,241,232,.4);
  color: var(--film-light);
  display: grid; place-items: center;
  transition: background-color .3s, color .3s;
}
.lightbox__nav:hover { background: var(--film-light); color: var(--film-black); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }

/* --------------------------------------------------------------------------
   17. REVEAL-АНИМАЦИИ ПО СКРОЛЛУ (контент в DOM сразу; JS добавляет класс)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-cine), transform .9s var(--ease-cine);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* Без JS — весь контент виден сразу (фолбэк дублируется в <noscript>) */

/* --------------------------------------------------------------------------
   18. АДАПТИВ
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .anna { grid-template-columns: 1fr; }
  .anna__sub { position: static; width: 50%; margin-top: 18px; border-width: 0; box-shadow: none; }
  .process__grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .eco__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: flex; }
  .header__cta { gap: 8px; }
  .works-wall { grid-template-columns: repeat(6, 1fr); }
  .work, .work--wide, .work--tall { grid-column: span 3; }
  .work--full { grid-column: span 6; }
  .svc-list { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .works__head { flex-direction: column; align-items: flex-start; }
  .works-wall { grid-template-columns: 1fr; }
  .work, .work--wide, .work--tall, .work--full { grid-column: 1 / -1; }
  .work__frame--portrait, .work__frame--landscape, .work__frame--wide, .work__frame--square { aspect-ratio: 4 / 3; }
  /* На мобильном калька раскрыта по умолчанию (нет hover) — подписи видны */
  .work__calque { opacity: 1; }
  .work__cap { transform: none; }
  .work__strip { display: none; }
  .anna__stats { grid-template-columns: 1fr; gap: 22px; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat__label { margin-top: 0; }
  .process__grid { grid-template-columns: 1fr; }
  .step { border-top-width: 1px; }
  .eco__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__dots { display: none; }
  .lightbox__nav { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   19. PREFERS-REDUCED-MOTION — полная деградация анимаций
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  /* Контент сразу виден, без сдвигов */
  .reveal, .hero [data-hero-in] { opacity: 1 !important; transform: none !important; }
  .hero.is-animating .hero__slide.is-active .hero__img { animation: none !important; transform: scale(1.02); }
  .work__media { transform: none !important; }
  /* Калька доступна на hover/focus без движения, но появляется мгновенно */
}
