/* ============================================================
   ПАРКФОРМА — светлый природный премиум
   Palette: тёплая бумага / лесной зелёный / латунный акцент
   Type: Playfair Display (display) + Manrope (body) + JetBrains Mono (labels)
   ============================================================ */

:root {
  --paper: #F5F2EA;
  --paper-2: #ECE7DB;
  --surface: #FFFFFF;
  --ink: #1D241D;
  --ink-70: #47524A;
  --green: #2E5A40;
  --green-hover: #24492F;
  --green-deep: #1B3326;
  --green-night: #14261C;
  --amber: #C08A3E;
  --line: rgba(29, 36, 29, 0.14);
  --line-light: rgba(245, 242, 234, 0.18);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius-lg: 24px;
  --radius-md: 16px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

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

/* Нативный плавный скролл только без JS: с Lenis он конфликтует
   (браузер доанимирует каждый кадр, скролл становится вязким) */
html:not(.has-js) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Зернистость плёнки поверх всего, очень деликатно */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.045;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }

::selection { background: var(--green); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Типографика секций ---------- */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  margin-bottom: 22px;
}
.section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.section-label--light { color: rgba(245, 242, 234, 0.75); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title em { color: var(--green); }
.section-title--light { color: var(--paper); }
.section-title--light em { color: #D8B478; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-note {
  max-width: 340px;
  font-size: 15px;
  color: var(--ink-70);
  padding-bottom: 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(46, 90, 64, 0.55);
}
.btn--primary:hover { background: var(--green-hover); box-shadow: 0 14px 28px -12px rgba(46, 90, 64, 0.65); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--ghost-light {
  border: 1px solid rgba(245, 242, 234, 0.45);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(245, 242, 234, 0.12); border-color: rgba(245, 242, 234, 0.7); }

.btn--outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn__icon { width: 20px; height: 20px; }

/* ---------- Прелоадер ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--green-night);
}
/* без JS прелоадер не показываем вовсе */
html.has-js .preloader { display: flex; }
.preloader__inner { text-align: center; }
.preloader__word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.preloader__word em { color: #D8B478; }
.preloader__bar {
  display: block;
  width: min(220px, 50vw);
  height: 1.5px;
  margin: 22px auto 0;
  background: rgba(245, 242, 234, 0.2);
  overflow: hidden;
}
.preloader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #D8B478;
  transform: scaleX(0);
  transform-origin: left;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: var(--paper);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header--scrolled {
  color: var(--ink);
  background: rgba(245, 242, 234, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header--scrolled .header__inner { padding-block: 12px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.logo em { font-weight: 500; }
.logo__mark { width: 30px; height: 30px; color: currentColor; }
.header--scrolled .logo__mark { color: var(--green); }

.nav { display: flex; gap: 30px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  padding-block: 6px;
  transition: opacity 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transition: right 0.3s var(--ease-out);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.header__phone:hover { opacity: 1; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--green-night);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 600;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-light);
}
.mobile-menu__footer { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu__phone { font-family: var(--font-mono); font-size: 18px; }

/* ---------- Хиро ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: clip;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 26, 18, 0.82) 0%, rgba(15, 26, 18, 0.35) 42%, rgba(15, 26, 18, 0.08) 70%),
    linear-gradient(100deg, rgba(15, 26, 18, 0.35) 0%, rgba(15, 26, 18, 0) 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
}
.hero__label {
  color: rgba(245, 242, 234, 0.85);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #D8B478;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 8.2vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__title em { color: #D8B478; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__sub {
  max-width: 480px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(245, 242, 234, 0.88);
  margin-bottom: 38px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 110px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(245, 242, 234, 0.7);
  font-size: 11px;
}
.hero__hint span:first-child { writing-mode: vertical-rl; }
.hero__hint-line {
  width: 1.5px;
  height: 56px;
  background: rgba(245, 242, 234, 0.35);
  position: relative;
  overflow: hidden;
}
.hero__hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #D8B478;
  animation: hintDrop 2.2s var(--ease-out) infinite;
}
@keyframes hintDrop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Бегущая строка ---------- */

.marquee {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(20px, 3vw, 30px);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding-inline: clamp(22px, 3vw, 40px);
}
.marquee__item--serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--green);
}
.marquee__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Манифест ---------- */

.manifesto { padding-block: clamp(90px, 13vw, 170px); }
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.6vw, 3.05rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  max-width: 30ch;
}
.manifesto__text .word { opacity: 0.16; transition: opacity 0.4s linear; }
.manifesto__text .word.is-lit { opacity: 1; }

.inline-chip {
  display: inline-block;
  width: 2.4em;
  height: 1em;
  border-radius: 999px;
  object-fit: cover;
  vertical-align: -0.12em;
  margin-inline: 0.08em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: clamp(64px, 8vw, 110px);
}
.stats__item {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stats__num {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stats__cap { font-size: 14px; color: var(--ink-70); }

/* ---------- Каталог ---------- */

.catalog { padding-block: 0 clamp(90px, 12vw, 160px); }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.card--wide { grid-column: span 2; }
.card__media {
  height: 100%;
  aspect-ratio: 3 / 3.6;
}
.card--wide .card__media { aspect-ratio: 2 / 1.2; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 26, 18, 0.78) 0%, rgba(15, 26, 18, 0.18) 42%, rgba(15, 26, 18, 0) 65%);
  transition: opacity 0.4s;
}
.card__body {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: var(--paper);
}
.card__count {
  display: inline-block;
  font-size: 11px;
  color: rgba(245, 242, 234, 0.75);
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
}
.card__arrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 242, 234, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.card__arrow svg { width: 20px; height: 20px; }
.card:hover .card__arrow { opacity: 1; transform: none; }

.catalog__cta {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 56px);
  flex-wrap: wrap;
}
.catalog__cta-note { font-size: 14px; color: var(--ink-70); }

/* ---------- Проекты ---------- */

.projects {
  background: var(--green-deep);
  color: var(--paper);
  padding-block: clamp(90px, 12vw, 160px);
  border-radius: clamp(28px, 4vw, 48px);
  margin-inline: clamp(8px, 1vw, 16px);
}
.projects__list {
  margin-top: clamp(56px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 130px);
}
.project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.project__media {
  grid-column: 1 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
}
.project--reverse .project__media { grid-column: 6 / 13; order: 2; }
.project__media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.project__meta { grid-column: 8 / 13; }
.project--reverse .project__meta { grid-column: 1 / 6; order: 1; }
.project__index {
  color: #D8B478;
  font-size: 13px;
  display: block;
  margin-bottom: 14px;
}
.project__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}
.project__desc {
  color: rgba(245, 242, 234, 0.78);
  font-size: 15.5px;
  margin-bottom: 28px;
  max-width: 40ch;
}
.project__facts {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
}
.project__facts dt {
  font-size: 10.5px;
  color: rgba(245, 242, 234, 0.55);
  margin-bottom: 6px;
}
.project__facts dd {
  font-size: 19px;
  font-weight: 500;
  color: var(--paper);
}

/* ---------- Производство ---------- */

.production { padding-block: clamp(90px, 12vw, 160px); }
.production__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.production__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}
.production__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.production__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(245, 242, 234, 0.94);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 11.5px;
}
.production__list {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.production__list li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.production__list h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.production__list p { font-size: 14.5px; color: var(--ink-70); }

/* ---------- Процесс ---------- */

.process {
  background: var(--paper-2);
  padding-block: clamp(90px, 12vw, 150px);
  border-block: 1px solid var(--line);
}
.process__track { margin-top: clamp(56px, 7vw, 90px); position: relative; }
.process__line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.process__line-fill {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  position: relative;
}
.process__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--green);
  font-size: 13px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.process__step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process__step p { font-size: 14px; color: var(--ink-70); max-width: 24ch; }

/* ---------- Заказчики ---------- */

.clients { padding-block: clamp(90px, 12vw, 160px); }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -28px rgba(29, 36, 29, 0.35);
}
.client-card__icon {
  width: 30px;
  height: 30px;
  color: var(--green);
  margin-bottom: 20px;
}
.client-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.client-card p { font-size: 14px; color: var(--ink-70); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding-block: clamp(90px, 11vw, 150px);
  color: var(--paper);
  overflow: clip;
}
.cta__media {
  position: absolute;
  inset: 0;
}
.cta__media img {
  position: absolute;
  top: -9%;
  left: 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 26, 18, 0.92) 30%, rgba(15, 26, 18, 0.66) 100%);
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  gap: clamp(48px, 6vw, 90px);
  align-items: center;
}
.cta__sub {
  margin-top: 20px;
  max-width: 42ch;
  color: rgba(245, 242, 234, 0.85);
}
.cta__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
}
.cta__contact {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: none;
  width: fit-content;
  border-bottom: 1px solid rgba(245, 242, 234, 0.25);
  padding-bottom: 4px;
  transition: border-color 0.25s;
}
.cta__contact:hover { border-color: #D8B478; }
.cta__messengers { display: flex; gap: 14px; margin-top: 28px; }
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 234, 0.35);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.25s, border-color 0.25s;
}
.msg-btn:hover { background: rgba(245, 242, 234, 0.12); border-color: rgba(245, 242, 234, 0.6); }
.msg-btn svg { width: 18px; height: 18px; }

.cta__form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.cta__form-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field__opt { color: var(--ink-70); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(29, 36, 29, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 90, 64, 0.15);
}
.field textarea { resize: vertical; min-height: 84px; }
.field__error {
  display: none;
  font-size: 12.5px;
  color: #B23A2E;
  margin-top: 5px;
}
.field.has-error input { border-color: #B23A2E; }
.field.has-error .field__error { display: block; }

.cta__form-note {
  font-size: 12px;
  color: var(--ink-70);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}
.cta__form-success {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px;
}
.cta__form-success[hidden] { display: none; }
.cta__form-success svg { width: 56px; height: 56px; color: var(--green); }
.cta__form-success p { font-size: 16px; line-height: 1.5; }

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

.footer {
  background: var(--green-night);
  color: rgba(245, 242, 234, 0.85);
  padding-top: clamp(56px, 7vw, 90px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.logo--footer { color: var(--paper); }
.logo--footer .logo__mark { color: #D8B478; }
.footer__tagline {
  margin-top: 18px;
  font-size: 14.5px;
  max-width: 34ch;
  color: rgba(245, 242, 234, 0.6);
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-size: 15px;
  width: fit-content;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__nav a:hover { opacity: 1; }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__contacts .mono { text-transform: none; font-size: 15px; letter-spacing: 0.03em; }
.footer__contacts p { color: rgba(245, 242, 234, 0.6); font-size: 14px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
  color: rgba(245, 242, 234, 0.55);
}
.footer__up {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid;
  place-items: center;
  transition: background-color 0.25s, transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.footer__up:hover { background: rgba(245, 242, 234, 0.1); transform: translateY(-3px); }
.footer__up svg { width: 20px; height: 20px; }

/* ---------- Reveal-заготовки (включаются JS-ом) ---------- */

html.has-js .reveal-hero { opacity: 0; }

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

@media (max-width: 1080px) {
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }

  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .card__media { aspect-ratio: 3 / 3.2; }

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

  .project,
  .project--reverse { display: flex; flex-direction: column; align-items: stretch; }
  .project__media, .project--reverse .project__media { order: 0; aspect-ratio: 16 / 10; }
  .project__meta { order: 1; }

  .production__grid { grid-template-columns: 1fr; }
  .production__media { aspect-ratio: 16 / 11; max-height: 480px; }

  .process__line { display: none; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }

  .cta__inner { grid-template-columns: 1fr; }
  .cta__form { max-width: 560px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .header__phone { display: none; }

  .hero__scrim {
    background:
      linear-gradient(to top, rgba(15, 26, 18, 0.9) 0%, rgba(15, 26, 18, 0.62) 50%, rgba(15, 26, 18, 0.28) 80%, rgba(15, 26, 18, 0.12) 100%);
  }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }

  .hero__cta .btn { width: 100%; }
  .hero__hint { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }

  .catalog__grid { grid-template-columns: 1fr; gap: 14px; }
  .card--wide { grid-column: auto; }
  .card__media, .card--wide .card__media { aspect-ratio: 4 / 3.4; }

  .clients__grid { grid-template-columns: 1fr; }

  .process__steps { grid-template-columns: 1fr; }
  .process__step p { max-width: none; }

  .project__facts { flex-wrap: wrap; gap: 18px 28px; }

  .cta__messengers { flex-wrap: wrap; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .hero__hint-line::after { animation: none; }
  html.has-js .reveal,
  html.has-js .reveal-hero { opacity: 1; transform: none; }
  .manifesto__text .word { opacity: 1; }
}
