/* ============================================================
   Hygge Haus — дизайн-система сайта
   Палитра и типографика взяты из утверждённого варианта A.
   ============================================================ */

:root {
  /* Основные */
  --green:        #1a3328;   /* глубокий лесной — главный бренд-цвет */
  --green-deep:   #112019;   /* почти чёрно-зелёный — футер, подложки */
  --green-soft:   #244435;   /* приподнятая зелёная поверхность (карточки) */

  /* Золото */
  --gold:         #c9a76a;   /* тёплое золото из логотипа */
  --gold-soft:    #e0c896;   /* высветленное золото (на тёмном) */
  --gold-dark:    #a8854c;   /* приглушённое золото (на светлом) */

  /* Кремовые / бумажные */
  --cream:        #f4eee0;   /* самая светлая тёплая бумага */
  --cream-2:      #ebe4d4;   /* песочный */
  --sand:         #e8e0d0;   /* светлый текст с тёплой ноткой */
  --paper:        #f0e9d7;   /* заголовочный кремовый */

  /* Текст */
  --ink:          #1a3328;   /* основной тёмный текст */
  --ink-mute:     rgba(26, 51, 40, 0.66);
  --cream-mute:   rgba(232, 224, 208, 0.72);

  /* Линии */
  --line-dark:    rgba(232, 224, 208, 0.14);
  --line-light:   rgba(26, 51, 40, 0.14);

  --radius:       12px;
  --radius-sm:    10px;
  --maxw:         1280px;

  --shadow-gold:  0 8px 24px -8px rgba(201,167,106,0.55), 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  --shadow-green: 0 8px 24px -8px rgba(26,51,40,0.45), 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
  --shadow-card:  0 30px 60px -28px rgba(17,32,25,0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--gold);
  z-index: 9999;
  transition: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

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

h1, h2, h3, h4, p { margin: 0; }

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

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

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Утилиты типографики ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.eyebrow .line { width: 32px; height: 1px; background: var(--gold); }

.section-head { max-width: 720px; }
.section-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-top: 22px;
}
.section-title .soft { color: var(--gold-dark); font-weight: 500; }
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 22px;
  color: var(--ink-mute);
  font-weight: 400;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 17px 30px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-gold { background: var(--gold); color: var(--green); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-soft); }

.btn-green { background: var(--green); color: var(--cream); box-shadow: var(--shadow-green); }
.btn-green:hover { transform: translateY(-2px); background: var(--green-soft); }

.btn-ghost-light {
  background: rgba(255,255,255,0.04);
  color: var(--sand);
  border: 1px solid rgba(232,224,208,0.25);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(232,224,208,0.5); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-light);
}
.btn-ghost-dark:hover { border-color: var(--green); background: rgba(26,51,40,0.04); }

/* ============================================================
   ХЕДЕР
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo { height: 180px; width: auto; max-width: 420px; transition: height 0.4s var(--ease); margin-left: -30px; object-fit: contain; }

.site-nav { display: flex; gap: 38px; align-items: center; }
.mobile-nav-extras { display: none; }
.nav-phone-mobile { display: none; }
.nav-lang-mobile { display: none; }
.nav-lang-burger { display: none; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-mute);
  position: relative;
  transition: color 0.2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.nav-active { color: var(--gold); }
.site-nav a.nav-active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 24px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
  font-size: 12px; font-weight: 600;
  color: var(--cream-mute);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}
.lang-switch a:hover { color: var(--paper); }
.lang-switch a.lang-active {
  color: var(--green);
  background: var(--gold);
}
.scrolled .lang-switch a { color: var(--ink-mute); }
.scrolled .lang-switch a.lang-active { color: var(--green); background: var(--gold); }
.scrolled .lang-switch a:hover { color: var(--ink); }
.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  text-decoration: none;
}
.site-header.scrolled .header-phone { color: var(--ink); text-shadow: none; }
.header-cta {
  padding: 11px 20px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Состояние «прокручено» */
.site-header.scrolled {
  height: 60px;
  background: var(--cream);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-light);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.12);
}
.site-header.scrolled .logo { height: 54px; max-width: 180px; margin-left: -14px; }
.site-header.scrolled .site-nav a { color: var(--ink-mute); }
.site-header.scrolled .site-nav a:hover { color: var(--ink); }
.site-header.scrolled .site-nav a.nav-active { color: var(--green); }
.site-header.scrolled .header-phone { color: var(--ink); }

/* ============================================================
   HERO — вариант A
   ============================================================ */
.hero {
  position: relative;
  background: var(--green);
  color: var(--sand);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
/* лёгкая фактура панелей как в логотипе */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(50,80,60,0.35), transparent 60%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 72px 80px 0;
  padding-left: max(48px, calc((100vw - var(--maxw)) / 2 + 48px));
  position: relative;
  z-index: 2;
}
/* Hero entrance choreography */
.hero-copy .hero-eyebrow,
.hero-copy h1,
.hero-copy .hero-sub,
.hero-copy .hero-actions {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.8s var(--ease-out-expo) forwards;
}
.hero-copy .hero-eyebrow { animation-delay: 0.15s; }
.hero-copy h1              { animation-delay: 0.3s; }
.hero-copy .hero-sub       { animation-delay: 0.5s; }
.hero-copy .hero-actions   { animation-delay: 0.65s; }

.hero-photo {
  opacity: 0;
  animation: heroPhotoIn 1s var(--ease-out-expo) 0.4s forwards;
}
.hero-badge {
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  animation: heroBadgeIn 0.6s var(--ease-out-expo) 1s forwards;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroPhotoIn {
  from { opacity: 0; clip-path: polygon(30% 0, 100% 0, 100% 100%, 18% 100%); }
  to   { opacity: 1; clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes heroBadgeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-eyebrow { color: var(--gold); margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-wrap: balance;
}
.hero h1 .soft { color: var(--gold); font-weight: 500; }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-mute);
  margin-top: 28px;
  max-width: 480px;
  font-weight: 400;
}
.hero-actions { margin-top: 46px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  z-index: 1;
  /* чистый диагональный стык вместо фузи-градиента — без полос и пикселей */
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* плашка с цифрой поверх фото */
.hero-badge {
  position: absolute;
  left: 48px; bottom: 36px;
  z-index: 2;
  background: rgba(17,32,25,0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,167,106,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.hero-badge .num {
  font-size: 32px; font-weight: 700; color: var(--gold-soft);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.hero-badge .lbl { font-size: 12px; color: var(--cream-mute); margin-top: 8px; letter-spacing: 0.02em; }

/* ============================================================
   СЕКЦИИ — общая ритмика
   ============================================================ */
section { position: relative; }
.pad { padding: 120px 0; }
.band-green { background: var(--green); color: var(--sand); }
.band-deep  { background: var(--green-deep); color: var(--sand); }
.band-cream { background: var(--cream); color: var(--ink); }
.band-cream2 { background: var(--cream-2); color: var(--ink); }

.band-green .eyebrow, .band-deep .eyebrow { color: var(--gold); }
.band-green .section-title, .band-deep .section-title { color: var(--paper); }
.band-green .section-title .soft, .band-deep .section-title .soft { color: var(--gold); }
.band-green .section-lead, .band-deep .section-lead { color: var(--cream-mute); }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* фоновый архитектурный скетч в секции «Полный цикл» */
#services {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(244,238,224,0.70), rgba(244,238,224,0.82)),
    url('assets/sketch-fullcycle.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ---- split-раскладка: текст слева, сетка иконок справа ---- */
.services-split {
  display: grid;
  grid-template-columns: 0.82fr 1.55fr;
  gap: 72px;
  align-items: center;
}
.services-intro .section-title { margin-top: 20px; }
.services-intro .section-lead { margin-top: 20px; max-width: 380px; }
.services-btn {
  margin-top: 36px;
  border-radius: 999px;
  padding: 16px 30px;
}

/* ============================================================
   ФОТО-АККОРДЕОН (вертикальные плитки, раскрытие по наведению)
   ============================================================ */
#services-tiles { margin-top: 72px; }
.tiles {
  display: flex;
  gap: 6px;
  height: 540px;
  width: 100%;
}
.tile {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--green);
  transition: flex 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tile:hover { flex: 3 1 0%; }
.tile image-slot { width: 100%; height: 100%; display: block; }
.tile > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.tile:hover > img { transform: scale(1.04); }
/* тёмная вуаль + читаемость подписи */
.tile::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,32,25,0.20) 0%, rgba(17,32,25,0.05) 35%, rgba(17,32,25,0.78) 100%);
  pointer-events: none;
  transition: background 0.5s var(--ease);
  z-index: 2;
}
.tile:hover::after {
  background: rgba(17,32,25,0.78);
}
.tile-body {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 24px 18px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}
.tile-title {
  font-size: clamp(11px, 1.2vw, 17px); font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile:hover .tile-title { white-space: normal; }
.tile-desc {
  margin: 8px 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.05s;
}
.tile:hover .tile-desc { max-height: 400px; opacity: 1; }
.tile-desc p {
  font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.tile-desc ul {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.tile-desc ul li {
  font-size: 12.5px; font-weight: 500; line-height: 1.4;
  color: var(--gold-soft);
  padding-left: 14px;
  position: relative;
}
.tile-desc ul li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
}

/* fade-in ряда плиток */
.tiles.reveal .tile { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), flex 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.tiles.reveal.in .tile { opacity: 1; transform: none; }
.tiles.reveal.in .tile:nth-child(2) { transition-delay: 0.07s; }
.tiles.reveal.in .tile:nth-child(3) { transition-delay: 0.14s; }
.tiles.reveal.in .tile:nth-child(4) { transition-delay: 0.21s; }
.tiles.reveal.in .tile:nth-child(5) { transition-delay: 0.28s; }
.tiles.reveal.in .tile:nth-child(6) { transition-delay: 0.35s; }
.tiles.reveal.in .tile:nth-child(7) { transition-delay: 0.42s; }

.services-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 34px 26px;
  border-left: 1px solid var(--line-light);
  transition: transform 0.3s var(--ease);
}
.feature:nth-child(3n+1) { border-left: none; }
.feature:nth-child(n+4) { border-top: 1px solid var(--line-light); }
.feature:hover { transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  color: var(--green);
}
.feature-title {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.25;
}
.feature-desc {
  font-size: 13.5px; color: var(--ink-mute); line-height: 1.45;
  max-width: 220px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.service-num {
  font-size: 13px; font-weight: 600; color: var(--gold-dark);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.service-icon {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--green);
}
.service-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin-top: 6px;
}
.service-card p {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-mute);
  margin-top: 12px;
}
.service-tags {
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service-tag {
  font-size: 12.5px; font-weight: 500;
  color: var(--green);
  background: rgba(26,51,40,0.06);
  border-radius: 999px;
  padding: 6px 13px;
}

/* ============================================================
   ЭТАПЫ РАБОТ
   ============================================================ */
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.step {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.step:last-child { border-right: none; }
.step:not(:first-child) { padding-left: 28px; }
.step .step-num {
  font-size: 13px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.12em; font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 22px; font-weight: 600; color: var(--paper);
  margin-top: 18px; letter-spacing: -0.02em;
}
.step p {
  font-size: 14.5px; line-height: 1.6; color: var(--cream-mute);
  margin-top: 12px;
}
.step .tick {
  position: absolute; top: 36px; right: 28px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); opacity: 0.4;
}
.step:last-child .tick { right: 0; }

/* ============================================================
   ПРОЕКТЫ / ГАЛЕРЕЯ
   ============================================================ */
.gallery {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px 20px;
  background: linear-gradient(0deg, rgba(17,32,25,0.85) 0%, transparent 100%);
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery figcaption .t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.gallery figcaption .m { font-size: 13px; color: var(--cream-mute); margin-top: 4px; }

.g-wide { grid-column: span 4; grid-row: span 2; }
.g-tall { grid-column: span 2; grid-row: span 2; }
.g-sq   { grid-column: span 3; grid-row: span 1; }

/* ---- Фильтр по категориям ---- */
.projects-filter {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-pill {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-pill:hover { border-color: var(--green); }
.filter-pill.is-active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

/* ---- Сетка проектов с фильтром ---- */
.project-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project-card.is-hidden {
  display: none;
}
.project-photo {
  height: 300px;
  overflow: hidden;
}
.project-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-photo img { transform: scale(1.05); }
.project-cat {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--green);
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
}
.project-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 24px 22px;
  background: linear-gradient(0deg, rgba(17,32,25,0.9) 0%, rgba(17,32,25,0.0) 100%);
  color: var(--paper);
}
.project-info .t { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.project-info .m { font-size: 13.5px; color: var(--cream-mute); margin-top: 5px; }

/* ============================================================
   СТРАНИЦА ГАЛЕРЕИ
   ============================================================ */
.gallery-hero {
  padding: 150px 0 70px;
  background: var(--green);
  color: var(--sand);
}
.gallery-hero .eyebrow { color: var(--gold); }
.gallery-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600; line-height: 1.02;
  letter-spacing: -0.035em; color: var(--paper);
  margin-top: 18px;
}
.gallery-hero h1 .soft { color: var(--gold); font-weight: 500; }
.gallery-hero p {
  font-size: 18px; line-height: 1.6; color: var(--cream-mute);
  margin-top: 18px; max-width: 560px;
}

.gal-filter {
  position: sticky; top: 76px; z-index: 50;
  background: rgba(244,238,224,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
  padding: 18px 0;
}
.gal-filter .container {
  display: flex; flex-direction: column; gap: 12px;
}
.filter-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
}
.filter-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dark);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills .filter-pill { padding: 9px 16px; font-size: 13.5px; }
.gal-count {
  align-self: flex-end;
  font-size: 13px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* Описание вида работ */
.work-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  overflow: hidden;
}
.work-desc.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.work-desc-inner {
  overflow: hidden;
}
.work-desc-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--green);
  color: var(--cream);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 14px;
}
.work-desc-card .wdc-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,167,106,0.15);
  border-radius: 10px;
}
.work-desc-card .wdc-icon svg {
  width: 22px; height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-desc-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600;
  margin: 0 0 6px;
  color: var(--gold-soft);
}
.work-desc-card p {
  font-size: 14px; line-height: 1.6;
  margin: 0;
  color: var(--cream-mute);
}
.work-desc-card .wdc-list {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 8px;
  list-style: none; padding: 0;
}
.work-desc-card .wdc-list li {
  font-size: 12.5px; font-weight: 500;
  color: var(--gold);
  display: flex; align-items: center; gap: 5px;
}
.work-desc-card .wdc-list li::before {
  content: ''; width: 4px; height: 4px;
  background: var(--gold); border-radius: 50%;
}
.gal-empty {
  display: none;
  text-align: center;
  padding: 80px 0 100px;
  font-size: 17px; color: var(--ink-mute);
}
.link-reset {
  background: none; border: none; cursor: pointer;
  color: var(--green); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

.gal-grid {
  columns: 4;
  column-gap: 16px;
  padding: 40px 0 100px;
}
.gal-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green);
  cursor: zoom-in;
  display: block;
}
.gal-item.is-hidden { display: none; }
.gal-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-item .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--green); background: var(--gold);
  border-radius: 999px; padding: 5px 12px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gal-item:hover .tag { opacity: 1; transform: none; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,18,14,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
}
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,224,208,0.25);
  color: var(--sand);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px;
  transition: background 0.2s;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox .lb-close { top: 28px; right: 28px; }
.lightbox .lb-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center; color: var(--cream-mute); font-size: 14px;
  letter-spacing: 0.02em;
}

@media (max-width: 1080px) {
  .gal-grid { columns: 3; }
}
@media (max-width: 720px) {
  .gal-grid { columns: 2; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; }
  .gal-filter { top: 60px; padding: 12px 0; }
  .gal-count { width: 100%; margin: 6px 0 0; align-self: flex-start; }
  .filter-group { grid-template-columns: 1fr; gap: 6px; }
  .filter-pills .filter-pill { padding: 7px 12px; font-size: 12px; }
  .gallery-hero { padding: 90px 0 40px; }
  .gallery-hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .gallery-hero p { font-size: 14px; }
  .lightbox .lb-nav { width: 40px; height: 40px; }
  .work-desc-card { flex-direction: column; gap: 12px; padding: 16px; }
  .work-desc-card h3 { font-size: 15px; }
  .work-desc-card p { font-size: 13px; }
}
@media (max-width: 420px) {
  .gal-grid { columns: 1; }
}

/* ============================================================
   ПОЛОСА ЦИФР
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 0 36px;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat .v {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 14px; color: var(--cream-mute);
  margin-top: 14px; line-height: 1.45;
}

/* ============================================================
   ОТЗЫВ
   ============================================================ */
.quote-wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 120px; line-height: 0.6; color: var(--gold);
  height: 60px;
}
.quote-text {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-top: 12px;
}
.quote-author {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--cream-mute);
}
.quote-author .ln { width: 28px; height: 1px; background: var(--gold); }
.quote-author b { color: var(--sand); font-weight: 600; }

/* ============================================================
   CTA / ФОРМА ЗАЯВКИ
   ============================================================ */
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.cta-form h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.cta-form p.note { font-size: 14px; color: var(--ink-mute); margin-top: 10px; }
.form-row { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.field label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 7px;
}
.field input, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,167,106,0.18);
}
.cta-form .btn { width: 100%; margin-top: 8px; }
.cta-form .legal { font-size: 12px; color: var(--ink-mute); margin-top: 16px; text-align: center; line-height: 1.5; }

.cta-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 18px; }
.cta-points li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; color: var(--ink); }
.cta-points .ck {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 1px;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer { background: var(--green-deep); color: var(--cream-mute); padding: 80px 0 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo { height: 64px; margin-bottom: 22px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-phone { font-size: 19px; font-weight: 600; color: var(--sand); font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a {
  color: var(--cream-mute); text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
/* Default reveal — visible by default, enhanced by JS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: none; }

/* Steps: staggered sequential reveal */
.steps .step.reveal { transition-duration: 0.6s; }
.steps .step.reveal:nth-child(1) { transition-delay: 0s; }
.steps .step.reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.24s; }
.steps .step.reveal:nth-child(4) { transition-delay: 0.36s; }

/* Step tick: pulse on reveal */
.step .tick { transition: opacity 0.4s ease 0.3s, transform 0.4s var(--ease-out-expo) 0.3s; transform: scale(0); }
.step.reveal.in .tick { opacity: 1; transform: scale(1); }

/* Stats: each stat slides up with stagger */
.stats .stat.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.stats .stat.reveal.in { opacity: 1; transform: none; }
.stats .stat.reveal:nth-child(1) { transition-delay: 0s; }
.stats .stat.reveal:nth-child(2) { transition-delay: 0.1s; }
.stats .stat.reveal:nth-child(3) { transition-delay: 0.2s; }
.stats .stat.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Quote: fade + subtle scale */
.quote-wrap.reveal { opacity: 0; transform: scale(0.97); }
.quote-wrap.reveal.in { opacity: 1; transform: scale(1); }

/* Counter animation for stat values */
.stat .v { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .quote-wrap.reveal { opacity: 1; transform: none; transition: none; }
  .step .tick { transform: scale(1); opacity: 0.4; transition: none; }
  .hero-copy .hero-eyebrow,
  .hero-copy h1,
  .hero-copy .hero-sub,
  .hero-copy .hero-actions,
  .hero-photo,
  .hero-badge { opacity: 1; transform: none; animation: none; }
  .hero-photo { clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%); }
  .scroll-progress { display: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* ---- Бургер-меню (мобильная навигация) ---- */
.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  position: relative; z-index: 200;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
  border-radius: 2px;
}
.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); }
.scrolled .burger span { background: var(--ink); }

/* ---- Планшет (до 1080px) ---- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 130px 48px 60px; }
  .hero-photo { height: 460px; clip-path: none; }
  .hero-photo { animation: none; opacity: 1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-split { grid-template-columns: 1fr; gap: 44px; }
  .services-intro .section-lead { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line-dark); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-wide, .g-tall, .g-sq { grid-column: span 2; grid-row: span 1; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(1), .stat:nth-child(2) { padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .cta { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Tiles: 3 columns on tablet */
  .tiles { height: 420px; }
  .tile-title { font-size: clamp(10px, 1.5vw, 15px); }
}

/* ---- Мобильный (до 720px) ---- */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .pad { padding: 64px 0; }

  /* Хедер: бургер-меню */
  .burger { display: block; z-index: 200; }
  .burger span { background: var(--cream); }
  .scrolled .burger span { background: var(--ink); }
  .burger.is-open span { background: var(--cream) !important; }
  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    z-index: 180;
    background: var(--green);
    display: flex;
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 32px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
  }
  .site-nav a {
    font-size: 24px; font-weight: 600;
    color: var(--cream) !important;
  }
  .site-nav a::after { display: none; }
  .site-nav a:hover { color: var(--gold) !important; }
  .nav-lang-burger {
    display: flex !important; gap: 10px; margin-top: 20px;
  }
  .nav-lang-burger a {
    font-size: 16px !important; font-weight: 600 !important;
    color: var(--cream-mute) !important; padding: 10px 20px !important;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
    text-decoration: none !important;
  }
  .nav-lang-burger a.lang-active {
    color: var(--green) !important; background: var(--gold) !important;
    border-color: var(--gold) !important;
  }

  /* Hide desktop header elements on mobile */
  .header-phone {
    display: block !important;
    font-size: 13px !important; font-weight: 600 !important;
    color: var(--cream) !important; text-shadow: none !important;
  }
  .site-header.scrolled .header-phone { color: var(--ink) !important; }
  .header-cta { display: none !important; }
  .lang-switch { display: none !important; }

  /* Show mobile extras inside burger menu */
  .mobile-nav-extras {
    display: flex !important;
    flex-direction: column; align-items: center;
    position: fixed; bottom: 80px; left: 0; right: 0;
    z-index: 190; gap: 16px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
  }
  .mobile-nav-extras.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s;
  }
  .mobile-nav-extras .nav-phone-mobile {
    display: block !important;
    font-size: 20px !important; font-weight: 700 !important;
    color: var(--gold) !important; text-decoration: none;
  }
  .mobile-nav-extras .nav-lang-mobile {
    display: flex !important; gap: 8px;
  }
  .mobile-nav-extras .nav-lang-mobile a {
    font-size: 15px !important; font-weight: 600 !important;
    color: var(--cream-mute) !important; padding: 8px 16px !important;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; text-decoration: none;
  }
  .mobile-nav-extras .nav-lang-mobile a.lang-active {
    color: var(--green) !important; background: var(--gold) !important; border-color: var(--gold);
  }
  .site-header .logo { height: 150px; margin-left: -10px; }
  .site-header { height: 70px; }
  .site-header.scrolled { height: 75px; }
  .site-header.scrolled .logo { height: 110px; margin-left: -10px; }

  /* Hero */
  .hero-copy { padding: 100px 20px 40px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-sub { font-size: 15px; margin-top: 18px; }
  .hero-actions { margin-top: 28px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-photo { height: 320px; }
  .hero-badge { left: 20px; bottom: 20px; padding: 14px 18px; }
  .hero-badge .num { font-size: 24px; }
  .hero-badge .lbl { font-size: 11px; }

  /* Услуги */
  .services-features { grid-template-columns: 1fr; }
  .feature { border-left: none !important; border-top: 1px solid var(--line-light) !important; padding: 24px 0; }
  .feature:first-child { border-top: none !important; }
  .services-btn { width: 100%; text-align: center; }

  /* Этапы */
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .step { border-right: none; padding: 24px 0; padding-left: 0 !important; }
  .step h3 { font-size: 18px; }

  /* Проекты */
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .projects-filter { gap: 8px; }
  .projects-filter .filter-pill { font-size: 12px; padding: 8px 14px; }

  /* Tiles: вертикальный скролл */
  .tiles {
    height: auto;
    flex-direction: column;
    gap: 4px;
  }
  .tile {
    height: 180px;
    flex: none;
  }
  .tile:hover { flex: none; }
  .tile-body { padding: 16px; }
  .tile-title { font-size: 15px !important; white-space: normal; }
  .tile-desc { max-height: none; opacity: 1; }
  .tile-desc p { font-size: 12px; }
  .tile-desc ul { display: none; }
  .tile::after {
    background: linear-gradient(180deg, rgba(17,32,25,0.1) 0%, rgba(17,32,25,0.8) 100%);
  }
  .tile:hover::after {
    background: rgba(17,32,25,0.78);
  }
  .tile:hover .tile-desc ul { display: flex; }

  /* Статистика */
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat { padding: 0 20px; }
  .stat .v { font-size: clamp(32px, 8vw, 44px); }
  .stat .l { font-size: 12.5px; margin-top: 8px; }

  /* Отзыв */
  .quote-text { font-size: 18px !important; }
  .quote-author { flex-direction: column; gap: 8px; text-align: center; }
  .quote-author .ln { display: none; }

  /* CTA / Форма */
  .cta { gap: 32px; }
  .cta-form { padding: 28px 20px; }
  .cta-form h3 { font-size: 20px; }
  .cta-points li { font-size: 14px; }

  /* Футер */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Попап */
  .popup-card { max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 95vh; padding: 28px 20px; }
  .popup-overlay.is-open { align-items: flex-end; }
  .popup-header h2 { font-size: 22px; }

  /* Лайтбокс */
  .lightbox { padding: 16px; }
  .lightbox .lb-close { top: 12px; right: 12px; }
  .lightbox .lb-nav { width: 40px; height: 40px; font-size: 20px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
  .lightbox .lb-cap { font-size: 12px; bottom: 12px; padding: 0 48px; }

  /* Секция titles */
  .section-title { font-size: clamp(28px, 7vw, 40px) !important; }
  .section-lead { font-size: 15px; }
  .eyebrow { font-size: 10px; }

  /* Scroll progress тоньше */
  .scroll-progress { height: 2px; }
}

/* ---- Маленький мобильный (до 420px) ---- */
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-photo { height: 240px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .stat { padding: 0; border-left: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 24px; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .tile { height: 160px; }
  .project-card .project-photo { height: 220px; }
}

/* ============================================================
   Попап — форма заявки
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 18, 14, 0);
  backdrop-filter: blur(0px);
  visibility: hidden;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, visibility 0s 0.35s;
}
.popup-overlay.is-open {
  background: rgba(10, 18, 14, 0.72);
  backdrop-filter: blur(8px);
  visibility: visible;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, visibility 0s 0s;
}

.popup-card::-webkit-scrollbar { display: none; }
.popup-card {
  position: relative;
  background: var(--cream);
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.popup-overlay.is-open .popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 28px; line-height: 1;
  color: var(--ink-mute); cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.popup-close:hover {
  background: rgba(26, 51, 40, 0.08);
  color: var(--ink);
}

.popup-header {
  margin-bottom: 24px;
}
.popup-header .eyebrow {
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.popup-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 10px;
}
.popup-header p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
}

.popup-form {
  display: flex; flex-direction: column; gap: 16px;
}
.popup-field {
  display: flex; flex-direction: column; gap: 5px;
}
.popup-field label {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.popup-field input,
.popup-field select,
.popup-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.popup-field input:focus,
.popup-field select:focus,
.popup-field textarea:focus {
  border-color: var(--green);
}
.popup-field textarea {
  resize: vertical;
  min-height: 60px;
}

.popup-submit {
  margin-top: 4px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}

.popup-legal {
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  margin: 0;
}

.popup-points {
  list-style: none; padding: 0;
  margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--line-light);
  padding-top: 18px;
}
.popup-points li {
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.popup-points .ck {
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

/* ============================================================
   Cookie-баннер
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 3000;
  background: var(--green);
  color: var(--cream);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .container {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1; min-width: 240px;
  font-size: 14px; line-height: 1.55;
  margin: 0; color: var(--cream-mute);
}
.cookie-banner p a {
  color: var(--gold); text-decoration: underline; text-underline-offset: 3px;
}
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions button {
  font-family: inherit; font-size: 13px; font-weight: 600;
  border: none; border-radius: 8px; padding: 10px 20px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.cookie-accept {
  background: var(--gold); color: var(--green);
}
.cookie-accept:hover { background: var(--gold-soft); }
.cookie-decline {
  background: rgba(255,255,255,0.1); color: var(--cream);
}
.cookie-decline:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 720px) {
  .cookie-banner .container { flex-direction: column; gap: 14px; }
  .cookie-banner p { font-size: 13px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1; }
}
