/* ============================================================
   HITECH.DOM v3 — светлый премиум «архитектурный журнал»
   Палитра: тёплая бумага / графитовый текст / затемнённая латунь
   Типографика: Cormorant Garamond 300 (дисплей) + Manrope (текст)
   Анимации: 0.9–1.1s, cubic-bezier(0.16, 1, 0.3, 1) — как в v2
   Глубина на светлом: мягкие тени + волосяные рамки
   Подход: mobile-first
   ============================================================ */

:root {
  --bg: #f5f2ec;             /* тёплая бумага — ведущий тон */
  --bg-card: #fffdf9;        /* карточки и панели */
  --bg-tint: #ece7dd;        /* секция-передышка потемнее */
  --dark: #16181a;           /* подвал, текст на фото */
  --ink: #1b1c1e;            /* заголовки */
  --text: #3c3d3a;           /* основной текст, ~9:1 на бумаге */
  --text-dim: #6b6860;       /* подписи, ≥4.5:1 на бумаге */
  --brass: #8a6a39;          /* латунь, затемнена под светлый фон */
  --brass-deep: #75592e;     /* hover/мелкий текст латунью, ≥4.5:1 */
  --line: rgba(27, 28, 30, .14);        /* 1px волосяные линии */
  --line-strong: rgba(27, 28, 30, .34);
  --shadow-card: 0 28px 60px -34px rgba(27, 28, 30, .35);
  --shadow-soft: 0 16px 44px -28px rgba(27, 28, 30, .3);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 1s;
}

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

html { scroll-behavior: smooth; }

/* отступ якорных целей под фиксированную шапку */
[id] { scroll-margin-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: 880px; }

/* ============================================================
   Анимации появления — тайминги и кривые как в v2
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* раскрытие заголовка маской снизу вверх, строка за строкой */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.line > i {
  display: block;
  font-style: normal;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
}
.is-in .line:nth-child(2) > i { transition-delay: .1s; }
.is-in .line > i { transform: none; }

/* фото открывается из-за панели цвета светлого фона */
.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transition: transform 1.1s var(--ease);
  z-index: 2;
}
.img-reveal img {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.img-reveal.is-shown::after { transform: translateY(-101%); }
.img-reveal.is-shown img { transform: scale(1); }
/* в hero фон тёмный — шторка тоже тёмная, без светлой вспышки */
.hero .img-reveal::after { background: var(--dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line > i, .img-reveal::after, .img-reveal img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .img-reveal::after { display: none; }
}

/* ============================================================
   Кнопки — тонкие, сдержанные
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn--lg { min-height: 58px; padding: 17px 38px; }

.btn--solid { background: var(--brass); color: #fff; }
.btn--solid:hover { background: var(--brass-deep); }

/* ghost живёт на фото и в тёмном подвале — светлый контур */
.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn--outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}

.btn--dark {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--dark:hover { border-color: var(--brass); color: var(--brass-deep); }

.btn--line {
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 2px;
  min-height: 48px;
}
.btn--line:hover { color: var(--brass-deep); border-color: var(--brass); }

/* ============================================================
   Шапка: прозрачная над фото → светлая при скролле
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .6s var(--ease), box-shadow .6s var(--ease);
}
.header.is-scrolled {
  background: rgba(245, 242, 236, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.header__logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .3em;
  color: #fff;
  transition: color .6s var(--ease);
}
.header__logo span { color: var(--brass); }
.is-scrolled .header__logo { color: var(--ink); }

.header__nav { display: none; }
.header__phone { display: none; }
.header__cta { display: none; }

.header__burger {
  position: relative;
  margin-left: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.header__burger span {
  display: block;
  width: 26px;
  height: 1px;
  background: #fff;
  margin: 4.5px 0;
  transition: transform .5s var(--ease), background .6s var(--ease);
}
.is-scrolled .header__burger span { background: var(--ink); }
.header__burger[aria-expanded="true"] span {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  background: var(--ink);
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.header__nav.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 36px;
  background: var(--bg);
}
.header__nav.is-open > a {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  color: var(--ink);
  padding: 9px 0;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--line);
}
.header__nav.is-open > a:hover { color: var(--brass-deep); }
.header__nav-extra {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.header__nav-phone {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .06em;
}

/* ============================================================
   Hero — фото с тёмным градиентом, светлый текст
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--dark);
}
.hero__media {
  position: absolute;
  inset: -3%;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 60%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(22,24,26,.6) 0%, rgba(22,24,26,.28) 36%, rgba(22,24,26,.52) 68%, rgba(22,24,26,.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 4;
  padding: 0 22px 44px;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.hero__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #cfa96d;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 11.5vw, 108px);
  line-height: 1.04;
  font-weight: 300;
  color: #f7f4ee;
  letter-spacing: .01em;
  margin-bottom: 24px;
}
.hero__sub {
  max-width: 520px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(238, 234, 226, .82);
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.hero__trust {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  padding: 0 22px 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(238, 234, 226, .6);
}
.hero__trust i {
  width: 44px;
  height: 1px;
  background: rgba(238, 234, 226, .35);
}
.hero__trust a:hover { color: #cfa96d; }

/* ============================================================
   Общие секции
   ============================================================ */
.section { padding: 96px 0; }
.section--light { background: var(--bg-card); }
.section--light-b { background: var(--bg-tint); }

.section__head { margin-bottom: 56px; max-width: 720px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 20px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7.5vw, 64px);
  line-height: 1.1;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: .015em;
}
.section__lead {
  margin-top: 22px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 560px;
}
.section__head--center .section__lead { margin-inline: auto; }

/* ============================================================
   Подход (3 УТП)
   ============================================================ */
.approach {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.approach__grid { display: grid; gap: 48px; }
.approach__item svg {
  width: 40px;
  height: 40px;
  color: var(--brass);
  margin-bottom: 22px;
}
.approach__item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--ink);
}
.approach__item p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 400px;
}

/* ============================================================
   Проекты
   ============================================================ */
.projects { border-bottom: 1px solid var(--line); }
.projects__grid { display: grid; gap: 64px; }
.project__media {
  position: relative;
  background: var(--bg-tint);
  box-shadow: var(--shadow-soft);
}
.project__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project__media.is-shown img { transition: transform .8s var(--ease); }
.project:hover .project__media.is-shown img { transform: scale(1.05); }
.project__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 8px 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(6px);
  color: var(--brass-deep);
  border: 1px solid rgba(138, 106, 57, .35);
}
.project__body { padding-top: 26px; }
.project__name {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
}
.project__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.project:hover .project__name::after { transform: scaleX(1); }
.project__desc {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 20px;
  max-width: 520px;
}
.project__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.project__specs li { display: flex; flex-direction: column; gap: 2px; }
.project__specs b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}
.project__specs span {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.project__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   Квиз — белая карточка с мягкой тенью
   ============================================================ */
.quiz { border-bottom: 1px solid var(--line); }
.quiz__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 40px 26px 30px;
}
.quiz__progress {
  height: 1px;
  background: var(--line);
  margin-bottom: 16px;
  overflow: hidden;
}
.quiz__progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--brass);
  transition: width .9s var(--ease);
}
.quiz__counter {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quizIn .9s var(--ease); }
@keyframes quizIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.quiz__q {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 26px;
}
.quiz__options { display: grid; gap: 12px; }
.quiz__opt {
  min-height: 56px;
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .5s var(--ease), color .5s var(--ease), background .5s var(--ease);
}
.quiz__opt:hover { border-color: var(--brass); }
.quiz__opt.is-checked {
  border-color: var(--brass);
  background: rgba(138, 106, 57, .08);
  color: var(--ink);
}
.quiz__form { display: grid; gap: 14px; }
.quiz__form input,
.cta__form input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  outline: none;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color .5s var(--ease);
}
.quiz__form input::placeholder,
.cta__form input::placeholder { color: var(--text-dim); }
.quiz__form input:focus,
.cta__form input:focus { border-color: var(--brass); }
.quiz__form input.is-error,
.cta__form input.is-error { border-color: #b0492f; }
.quiz__msgr, .cta__msgr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quiz__msgr .quiz__opt, .cta__msgr .quiz__opt {
  min-height: 48px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 8px;
}
.quiz__submit { margin-top: 8px; }
.quiz__legal {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
/* ---------- чекбокс согласия на обработку ПД (152-ФЗ) ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}
.consent__box {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent__mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line-strong);
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.consent__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .4s var(--ease);
}
.consent__box:checked ~ .consent__mark {
  background: var(--brass);
  border-color: var(--brass);
}
.consent__box:checked ~ .consent__mark::after { transform: rotate(45deg) scale(1); }
.consent__box:focus-visible ~ .consent__mark {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.consent__text {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
.consent__text a {
  color: var(--brass-deep);
  border-bottom: 1px solid currentColor;
  transition: color .5s var(--ease);
}
.consent__text a:hover { color: var(--ink); }
/* заблокированная кнопка до согласия */
.btn:disabled {
  opacity: .45;
  pointer-events: none;
}

.quiz__back {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .5s var(--ease);
}
.quiz__back:hover { color: var(--brass-deep); }
.quiz__done { text-align: center; padding: 26px 0 14px; }
.quiz__done svg {
  width: 54px;
  height: 54px;
  color: var(--brass);
  margin: 0 auto 22px;
}
.quiz__done p { color: var(--text-dim); max-width: 380px; margin-inline: auto; }

/* ============================================================
   Этапы — белая секция, цифры-призраки как в v2
   ============================================================ */
.steps__list { display: grid; gap: 26px; }
.steps__item {
  position: relative;
  padding: 64px 26px 36px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.steps__ghost {
  position: absolute;
  top: -10px;
  right: 6px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 220px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(27, 28, 30, .16);
  pointer-events: none;
  user-select: none;
}
.steps__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 14px;
}
.steps__item h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.steps__item > p:last-child {
  position: relative;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 380px;
}
.steps__note {
  margin-top: 64px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.steps__note-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.steps__note ul { display: grid; gap: 10px; }
.steps__note li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
}
.steps__note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 12px;
  height: 1px;
  background: var(--brass);
}

/* ============================================================
   Почему мы — тонированная секция-передышка
   ============================================================ */
.why__layout { display: grid; gap: 52px; }
.why__lead {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 24px 0 16px;
}
.why__text > p:last-child {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
}
.why__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}
.why__stats li {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why__stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}
.why__stats b .count { font: inherit; }
.why__stats li > span {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================================
   Наши работы
   ============================================================ */
.works { border-bottom: 1px solid var(--line); }
.works__grid { display: grid; gap: 20px; }
.works__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-tint);
  box-shadow: var(--shadow-soft);
}
.works__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.works__item:hover img { transform: scale(1.05); }
.works__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 52px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(22,24,26,.85));
  color: #f5f2ec;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.works__item figcaption b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
}
.works__item figcaption span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, .75);
}

/* ============================================================
   Instagram / образ жизни — белая секция
   ============================================================ */
.insta { background: var(--bg-card); border-bottom: 1px solid var(--line); }
.insta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.insta__item {
  overflow: hidden;
  background: var(--bg-tint);
  box-shadow: var(--shadow-soft);
}
.insta__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.insta__item:hover img { transform: scale(1.05); opacity: .88; }
.insta__action { margin-top: 44px; text-align: center; }
.insta__action .btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.insta__action .btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
  background: transparent;
}
.insta__note {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ============================================================
   Полный цикл
   ============================================================ */
.cycle { border-bottom: 1px solid var(--line); }
.cycle__grid { display: grid; gap: 44px; }
.cycle__item { padding-top: 26px; border-top: 1px solid var(--line); }
.cycle__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .38em;
  color: var(--brass-deep);
  display: block;
  margin-bottom: 14px;
}
.cycle__item h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.cycle__item p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 420px;
}

/* ============================================================
   Финальный CTA
   ============================================================ */
.cta__layout { display: grid; gap: 48px; }
.cta__text > p {
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.8;
}
.cta__phone {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 7vw, 44px);
  color: var(--ink);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
  transition: color .5s var(--ease);
}
.cta__phone:hover { color: var(--brass-deep); }
.cta__hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.cta__form {
  display: grid;
  gap: 14px;
  background: var(--bg-card);
  padding: 30px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.cta__form.is-done { text-align: center; padding: 52px 24px; }
.cta__done-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
}
.cta__form.is-done p { color: var(--text-dim); }

/* ============================================================
   Подвал — тёмный якорь страницы
   ============================================================ */
.footer {
  background: var(--dark);
  color: #d9d4cb;
  padding: 68px 0 116px;
}
.footer__grid { display: grid; gap: 38px; }
.footer__logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .3em;
  color: #fff;
}
.footer__logo span { color: #c5a36e; }
.footer__tag {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 300;
  color: #8f8c85;
}
.footer__geo {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #c5a36e;
}
.footer__head {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #8f8c85;
  margin-bottom: 18px;
}
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 15.5px; transition: color .5s var(--ease); }
.footer__col a:hover { color: #c5a36e; }
.footer__col a small {
  font-size: 11.5px;
  color: #8f8c85;
  margin-left: 6px;
}
.footer__col p { font-size: 13.5px; font-weight: 300; color: #8f8c85; }
.footer__social { display: flex; gap: 20px; }
.footer__social a {
  font-size: 13.5px;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(217, 212, 203, .25);
  padding-bottom: 2px;
}
.footer__insta { font-size: 13.5px; color: #c5a36e; }
.footer__legal {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(217, 212, 203, .16);
  font-size: 11px;
  color: #8f8c85;
}

/* ============================================================
   Sticky CTA (mobile) — светлая панель с тенью вверх
   ============================================================ */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  background: rgba(255, 253, 249, .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -16px 40px -24px rgba(27, 28, 30, .35);
  transform: translateY(100%);
  transition: transform .8s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.sticky-cta__call {
  width: 76px;
  display: grid;
  place-items: center;
  background: var(--brass);
  color: #fff;
}
.sticky-cta__call svg { width: 21px; height: 21px; }

/* ============================================================
   Лайтбокс — тёмный просмотрщик, как в v2
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 10, 11, .96);
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  margin: 0;
  max-width: min(1140px, 92vw);
  text-align: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  object-fit: contain;
}
.lightbox__stage figcaption {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(217, 212, 203, .55);
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  font-size: 32px;
  font-weight: 200;
  color: #f0ece4;
  z-index: 2;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 24px;
  color: #f0ece4;
  z-index: 2;
  transition: color .5s var(--ease);
}
.lightbox__nav:hover { color: #c5a36e; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ============================================================
   Планшет: 768px+
   ============================================================ */
@media (min-width: 768px) {
  .section { padding: 136px 0; }

  .hero__content { padding-bottom: 64px; }
  .hero__actions { flex-direction: row; gap: 18px; }
  .hero__sub { font-size: 16.5px; }
  .hero__trust { padding-bottom: 40px; }
  .hero__media img { object-position: center 65%; }

  .approach { padding: 104px 0; }
  .approach__grid { grid-template-columns: repeat(3, 1fr); gap: 44px; }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 88px 44px;
  }
  .project--flag { grid-column: 1 / -1; }
  .project--flag .project__media img { aspect-ratio: 16 / 8.5; }
  .project--flag .project__specs { grid-template-columns: repeat(4, 1fr); }

  .quiz__card { padding: 52px 60px 40px; }
  .quiz__options { grid-template-columns: repeat(2, 1fr); }
  .quiz__msgr, .cta__msgr { grid-template-columns: repeat(4, 1fr); }

  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .steps__item {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 72px 30px 44px;
  }
  .steps__item:last-child { border-right: 0; }
  .steps__ghost { font-size: 240px; top: -16px; right: 10px; }
  .steps__note { grid-template-columns: auto 1fr; align-items: start; gap: 48px; padding-top: 36px; }
  .steps__note ul { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .works__grid { grid-template-columns: repeat(2, 1fr); }

  .insta__grid { grid-template-columns: repeat(4, 1fr); }

  .cycle__grid { grid-template-columns: repeat(3, 1fr); }

  .cta__layout { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
  .cta__form { padding: 38px 34px; }

  .footer { padding: 88px 0 60px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }

  .sticky-cta { display: none; }
}

/* ============================================================
   Десктоп: 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  .header__inner { padding: 22px; }
  .header__nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: 64px;
  }
  .header__nav > a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    transition: color .5s var(--ease);
    padding: 6px 0;
  }
  .header__nav > a:hover { color: #fff; }
  .is-scrolled .header__nav > a { color: var(--text); }
  .is-scrolled .header__nav > a:hover { color: var(--ink); }
  .header__nav-extra { display: none; }
  .header__phone {
    display: block;
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #fff;
    transition: color .6s var(--ease);
  }
  .is-scrolled .header__phone { color: var(--ink); }
  .header__cta {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 24px;
  }
  .is-scrolled .header__cta {
    color: var(--ink);
    border-color: var(--line-strong);
  }
  .is-scrolled .header__cta:hover {
    color: var(--brass-deep);
    border-color: var(--brass);
  }
  .header__burger { display: none; }

  .works__grid { grid-template-columns: repeat(3, 1fr); }

  .project__body { padding-top: 30px; }

  .project--flag {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
  }
  .project--flag .project__media { height: 100%; box-shadow: none; }
  .project--flag .project__media img { aspect-ratio: auto; height: 100%; }
  .project--flag .project__body {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .project--flag .project__name { font-size: 36px; }
}
