/* ═══════════════════════════════════════════════════════════
   VaLux Cleaning Services — стили
   Палитра: белый/кремовый + янтарный + коричневый (как в референсе)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Цвета */
  --paper:        #FFFFFF;
  --paper-warm:   #FFF4E3;
  --paper-warm-2: #FBEFDA;
  --brown:        #8A7350;
  --brown-deep:   #5B4A33;
  --brown-darker: #3A2E1F;
  --accent:       #F5A623;
  --accent-light: #FFC868;
  --accent-text:  #B9740A;
  --ink:          #241D14;
  --muted:        #6E6E62;
  --muted-light:  rgba(255,255,255,.78);
  --line:         rgba(138,115,80,.18);
  --danger:       #C23B2E;

  /* Шрифты */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ритм */
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 18px;
  --radius-sm: 12px;

  /* Движение */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .55s;

  --shadow-sm: 0 2px 10px rgba(90,70,45,.08);
  --shadow-md: 0 14px 40px rgba(90,70,45,.12);
  --shadow-lg: 0 30px 70px rgba(60,45,25,.20);
}

/* ── Сброс ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

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

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--brown-darker);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ── Общие элементы секций ─────────────────────────────── */
.section { padding-block: var(--section-y); position: relative; }

.section-head { max-width: 660px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.section-head .lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.eyebrow.dark { color: var(--brown); }

.gold { color: var(--accent-text); }

/* Янтарное подчёркивание в заголовке — рисуется, когда блок появляется */
.underline-gold { position: relative; white-space: nowrap; }
.underline-gold::after {
  content: ""; position: absolute; left: 0; bottom: -.12em;
  width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) .5s;
}
.is-visible .underline-gold::after,
.reveal.is-visible.underline-gold::after { transform: scaleX(1); }

/* ── Кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 13px 24px; font-size: 15px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #2B1C00;
  box-shadow: 0 10px 26px rgba(245,166,35,.36);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(245,166,35,.46); }

.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-3px); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* ── Шапка ─────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 18px;
  transition: padding .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  padding-block: 10px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(60,45,25,.14);
}

.header-inner { display: flex; align-items: center; gap: 28px; }

.brand { flex-shrink: 0; }
.brand-logo { height: 94px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand-logo { height: 72px; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; color: rgba(255,255,255,.92);
  font-size: 16.5px; font-weight: 500; padding-block: 4px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--accent-light); }

.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .nav a:hover { color: var(--brown-deep); }
.site-header.scrolled .nav a.active { color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-phone {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-size: 16.5px; font-weight: 600;
  transition: color .25s var(--ease);
}
.header-phone svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.header-phone:hover { color: var(--accent-light); }
.site-header.scrolled .header-phone { color: var(--ink); }
.site-header.scrolled .header-phone:hover { color: var(--brown-deep); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, background-color .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header.scrolled .burger span { background: var(--ink); }

/* ── 1. Главный экран ──────────────────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding-top: 140px; padding-bottom: clamp(60px, 10vw, 110px);
  background: var(--brown-darker);
  overflow: hidden; isolation: isolate;
}

/* Фото гостиной (assets/hero-room.jpg) — своя фотография, без сторонних
   авторских прав. Заполняет всю сцену; смещение к 30% по горизонтали
   сохраняет диван и плед в кадре на широких экранах. */
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("assets/hero-room.jpg");
  background-size: cover;
  background-position: 30% 62%;
  background-repeat: no-repeat;
}
.hero-bg::after {
  /* Тёмная дымка поверх фото — держит белый текст читаемым справа,
     слева остаётся светло, чтобы диван и цветы были хорошо видны. */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(20,14,8,.06) 0%,
      rgba(20,14,8,.18) 38%,
      rgba(18,12,7,.64) 66%,
      rgba(15,10,6,.78) 100%),
    linear-gradient(to top, rgba(15,10,6,.55) 0%, rgba(15,10,6,0) 30%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; }
.glow-1 { width: 46vw; height: 46vw; right: -8vw; top: -12vw; background: rgba(245,166,35,.28); }
.glow-2 { width: 34vw; height: 34vw; left: 14vw; bottom: -14vw; background: rgba(255,244,227,.18); }

.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; margin-left: auto; text-align: left; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  color: #fff; margin-bottom: 16px;
}
.hero-sub {
  color: var(--muted-light); font-size: clamp(16px, 1.7vw, 18px);
  max-width: 520px; margin-bottom: 24px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-trust li {
  display: flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.85); font-size: 14.5px; font-weight: 500;
}
.hero-trust li::before {
  content: ""; flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.6 16.2-3.8-3.8 1.4-1.4 2.4 2.4 6.8-6.8L17.8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.6 16.2-3.8-3.8 1.4-1.4 2.4 2.4 6.8-6.8L17.8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Девушка: стоит слева снизу, вписана в сцену.
   --px — горизонтальный сдвиг (на телефоне -50%, чтобы отцентровать)
   --py — вертикальный сдвиг, им управляет параллакс из script.js */
.hero-woman {
  --px: 0px;
  --py: 0px;
  position: absolute; left: clamp(8px, 2.2vw, 48px); bottom: 0; z-index: 1;
  height: clamp(420px, 81vh, 780px); width: auto;
  /* Тень почти без вертикального сдвига — иначе она падает под фигуру
     и читается как грязное пятно на полу. */
  filter: drop-shadow(-6px 2px 26px rgba(20,14,8,.38));
  opacity: 0;
  transform: translate(var(--px), calc(var(--py) + 40px)) scale(.98);
  animation: heroRise 1.2s var(--ease) .25s forwards;
  will-change: transform;
  pointer-events: none;

  /* Фото обрезано по бёдра (ног в кадре нет).
     Растворять низ маской НЕЛЬЗЯ: тёмная одежда исчезает и сквозь неё
     проступает пол, а яркие перчатки, метёлка и бутылка на той же высоте
     остаются плотными — получается «призрачное тело с висящими руками».
     Поэтому срез сажаем ровно на нижнюю кромку блока (bottom: 0) — это
     читается как обычная обрезка фото рамкой кадра. */
}
@keyframes heroRise {
  to { opacity: 1; transform: translate(var(--px), var(--py)) scale(1); }
}

/* Лёгкое затемнение у нижней кромки — только чтобы «закрыть» край сцены.
   Раньше полоса была высокой и плотной и накладывалась на растворяющийся
   низ фигуры, из-за чего появлялось грязное пятно. */
.hero-woman + .hero-fade { pointer-events: none; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 76px; z-index: 1;
  background: linear-gradient(transparent, rgba(15,10,6,.2));
}

/* ── 2. Почему мы ──────────────────────────────────────── */
.why { background: var(--paper); position: relative; overflow: hidden; }
.why .wrap { position: relative; z-index: 1; }

/* ── Тёплый «жидкий» фон в разделе «Why VaLux» ─────────────
   Размытые пятна фирменных цветов, искажённые SVG-турбулентностью —
   похоже на воду, снятую сверху, только в палитре сайта (без синего). */
.why-warp {
  position: absolute; inset: -10% -10% -10% -10%; z-index: 0;
  filter: url(#warpFilter);
  opacity: .68;
}
.why-warp-blob {
  position: absolute; border-radius: 50%; filter: blur(48px);
  animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.why-warp-blob-1 {
  width: 46%; height: 70%; left: -8%; top: -12%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 72%);
  animation-name: warpDrift1; animation-duration: 26s;
}
.why-warp-blob-2 {
  width: 40%; height: 60%; right: -6%; top: 6%;
  background: radial-gradient(circle, var(--paper-warm) 0%, transparent 70%);
  animation-name: warpDrift2; animation-duration: 32s;
}
.why-warp-blob-3 {
  width: 50%; height: 55%; left: 28%; bottom: -18%;
  background: radial-gradient(circle, var(--brown) 0%, transparent 75%);
  opacity: .5;
  animation-name: warpDrift3; animation-duration: 38s;
}
@keyframes warpDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6%, 8%) scale(1.12); }
}
@keyframes warpDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-8%, 6%) scale(1.08); }
}
@keyframes warpDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4%, -6%) scale(1.1); }
}
.why-grid {
  display: grid; gap: clamp(26px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.why-item { text-align: center; }
.why-icon {
  display: grid; place-items: center;
  width: 82px; height: 82px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(150deg, #FFF7E0, #F6EBCB);
  box-shadow: inset 0 0 0 1px rgba(245,166,35,.24);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-item:hover .why-icon { transform: translateY(-6px) rotate(-4deg); box-shadow: inset 0 0 0 1px rgba(245,166,35,.55), 0 14px 30px rgba(245,166,35,.22); }
.why-item h3 { font-size: 19px; margin-bottom: 9px; }
.why-item p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ── 3. Услуги ─────────────────────────────────────────── */
.services {
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
  /* запас сверху под световую зону — короче, чем раньше: лампа теперь
     стоит прямо над «OUR SERVICES», а не в отрыве от него. */
  padding-top: clamp(90px, 12vw, 135px);
}
.services .wrap { position: relative; z-index: 2; }
.services .section-head .lede { color: var(--muted); }

/* ── «Лампа» над «Our Services» ────────────────────────────
   Тёмная зона + два узких луча света. Ключевое отличие от прошлой
   версии: у зоны НЕТ жёстких краёв — снизу она растворяется в кремовый
   фон длинным градиентом, по бокам уходит за пределы экрана, скруглений
   нет. Именно рамка прямоугольника раньше читалась как «квадрат». */
.lamp {
  position: absolute; left: 0; right: 0; top: 0;
  height: clamp(115px, 15vw, 168px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Меньше сплошного коричневого — тает в крем гораздо раньше, чтобы
     акцент падал на саму лампу, а не на тёмную плашку под ней. */
  background: linear-gradient(to bottom,
    var(--brown-darker) 0%,
    var(--brown-darker) 16%,
    rgba(58,46,31,.62) 38%,
    rgba(58,46,31,.28) 60%,
    rgba(58,46,31,.08) 80%,
    rgba(58,46,31,0) 100%);
}

/* Лучи: ширину задаёт только угол конического градиента (≈13° от
   вертикали), ширина контейнера на неё не влияет. */
.lamp-beams {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: min(80vw, 460px);
  transform: translateX(-50%) scaleY(.75);
  transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 0deg,
    transparent 158deg,
    rgba(245,166,35,.30) 164deg,
    rgba(255,200,104,.75) 172deg,
    rgba(255,224,160,1) 180deg,
    rgba(255,200,104,.75) 188deg,
    rgba(245,166,35,.30) 196deg,
    transparent 202deg,
    transparent 360deg
  );
  filter: blur(10px);
  opacity: 0;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.lamp.is-visible .lamp-beams { opacity: .95; transform: translateX(-50%) scaleY(1); }

/* Тёплое пятно вокруг источника — крупнее прежнего, чтобы лампа читалась
   с первого взгляда, а не терялась на тёмном фоне. */
.lamp-glow {
  position: absolute; left: 50%; top: 4px; width: min(76vw, 420px); height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255,200,104,.95), transparent 68%);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.lamp.is-visible .lamp-glow { opacity: 1; }

/* Сама лампа — яркая светящаяся полоса у верхней кромки, крупнее прежней */
.lamp-core {
  position: absolute; left: 50%; top: 8px; width: 3.4rem; height: 15px;
  transform: translateX(-50%);
  background: var(--accent-light); border-radius: 999px; filter: blur(9px);
  opacity: 0;
  transition: width 1.2s var(--ease), opacity 1.2s var(--ease);
}
.lamp.is-visible .lamp-core { width: 13.5rem; opacity: 1; }

.lamp-line {
  position: absolute; left: 50%; top: 14px; width: 3.4rem; height: 2.5px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0;
  transition: width 1.2s var(--ease), opacity 1.2s var(--ease);
}
.lamp.is-visible .lamp-line { width: 17rem; opacity: 1; }

.cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.card {
  position: relative; overflow: hidden;
  padding: 34px 30px 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,166,35,.5);
}

.card-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 20px;
  border-radius: 15px;
  background: linear-gradient(150deg, #FFF7E0, #F6EBCB);
  border: 1px solid rgba(245,166,35,.3);
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { transform: scale(1.08) rotate(-5deg); }

.card h3 { font-size: 22px; margin-bottom: 11px; color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; }
.card-photo { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 20px; }

.card-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #2B1C00; background: var(--accent-light);
  padding: 5px 11px; border-radius: 999px;
}

.addons {
  margin-top: 44px; padding: 32px clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background: rgba(255,255,255,.6);
  border: 1px dashed rgba(245,166,35,.45);
  text-align: center;
}
.addons h3 { font-size: 20px; margin-bottom: 18px; color: var(--accent-text); }
.addons ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.addons li {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.addons li:hover { background: var(--paper-warm); border-color: var(--accent); transform: translateY(-2px); }

/* ── 4. Что входит ─────────────────────────────────────── */
.included { background: var(--paper-warm-2); }
.rooms { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.room {
  padding: 32px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(245,166,35,.45); }
.room-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: var(--brown);
}
.room-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.room h3 { font-size: 20px; margin-bottom: 14px; }
.room ul { display: grid; gap: 9px; }
.room li {
  position: relative; padding-left: 24px;
  font-size: 14.5px; color: var(--muted); line-height: 1.5;
}
.room li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.6 16.2-3.8-3.8 1.4-1.4 2.4 2.4 6.8-6.8L17.8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.6 16.2-3.8-3.8 1.4-1.4 2.4 2.4 6.8-6.8L17.8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── 5. Как это работает ───────────────────────────────── */
.how { background: var(--paper); overflow: hidden; }

/* ── Текущие линии на фоне «Как это работает» ──────────────
   Тот же приём, что в React-компоненте с framer-motion, но на чистом
   SVG + CSS: длинные кривые «текут» за счёт анимации stroke-dashoffset.
   Никаких зависимостей и сборки. */
.flow-paths {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.flow-paths svg { width: 100%; height: 100%; display: block; }
.flow-paths path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  animation-name: flowPath;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes flowPath {
  from { stroke-dashoffset: var(--dash-from); }
  to   { stroke-dashoffset: var(--dash-to); }
}

/* Содержимое секции всегда поверх линий */
.how .wrap { position: relative; z-index: 1; }
.steps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 36px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 50%;
  font-family: var(--display); font-size: 23px; font-weight: 700;
  color: var(--brown-darker);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 8px 20px rgba(245,166,35,.32);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
/* соединительная линия между шагами */
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 62px; right: -17px; width: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
}

/* ── 6. Доверие ────────────────────────────────────────── */
.trust { background: var(--brown); color: #fff; }
.trust-grid { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: 1.15fr .85fr; align-items: center; }
.trust h2 { font-size: clamp(29px, 4vw, 44px); margin-bottom: 16px; color: #fff; }
.trust .lede { color: var(--muted-light); margin-bottom: 28px; }
.trust-list { display: grid; gap: 13px; margin-bottom: 34px; }
.trust-list li {
  position: relative; padding-left: 34px;
  font-size: 15.5px; color: rgba(255,255,255,.92);
}
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: .1em;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(245,166,35,.22); border: 1px solid rgba(245,166,35,.55);
}
.trust-list li::after {
  content: ""; position: absolute; left: 5px; top: .38em;
  width: 12px; height: 12px; background: var(--accent-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.6 16.2-3.8-3.8 1.4-1.4 2.4 2.4 6.8-6.8L17.8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.6 16.2-3.8-3.8 1.4-1.4 2.4 2.4 6.8-6.8L17.8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: 30px 22px; border-radius: var(--radius); text-align: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.stat:hover { transform: translateY(-5px); border-color: rgba(245,166,35,.55); }
.stat-num {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 46px); color: var(--accent-light); line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13.5px; color: var(--muted-light); }

/* ── Отзывы (пока скрыты) ──────────────────────────────── */
.reviews { background: var(--paper); }
.review-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stars { color: var(--accent); font-size: 18px; letter-spacing: 3px; margin-bottom: 14px; }
.review blockquote { font-size: 15.5px; color: var(--ink); line-height: 1.65; margin-bottom: 18px; }
.review figcaption { display: grid; gap: 2px; font-size: 14px; }
.review figcaption strong { font-weight: 600; }
.review figcaption span { color: var(--muted); }

/* ── 7. Зона обслуживания ──────────────────────────────── */
.areas { background: var(--paper); }
.area-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.area-grid li {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px; border-radius: var(--radius-sm);
  background: var(--paper-warm-2); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.area-grid li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22s7-5.8 7-11a7 7 0 1 0-14 0c0 5.2 7 11 7 11Zm0-8.6a2.6 2.6 0 1 1 0-5.2 2.6 2.6 0 0 1 0 5.2Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22s7-5.8 7-11a7 7 0 1 0-14 0c0 5.2 7 11 7 11Zm0-8.6a2.6 2.6 0 1 1 0-5.2 2.6 2.6 0 0 1 0 5.2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.area-grid li:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); background: #fff; }

/* ── 8. Форма заявки ───────────────────────────────────── */
.quote { background: var(--paper-warm); color: var(--ink); }
.quote-wrap { display: grid; gap: clamp(36px, 5vw, 60px); grid-template-columns: .9fr 1.1fr; align-items: start; }
.quote h2 { font-size: clamp(30px, 4.2vw, 46px); color: var(--ink); margin-bottom: 16px; }
.quote .lede { color: var(--muted); margin-bottom: 30px; }

.quote-direct { display: grid; gap: 12px; }
.direct-card {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.direct-card:hover { border-color: var(--accent); transform: translateX(4px); }
.direct-card svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.direct-card span { display: grid; gap: 1px; font-size: 13px; color: var(--muted); min-width: 0; }
.direct-card strong { font-size: 16px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.policy-note {
  margin-top: 24px; padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
}
.policy-note h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .03em; color: var(--ink); margin-bottom: 12px;
}
.policy-note ul { display: grid; gap: 9px; }
.policy-note li {
  position: relative; padding-left: 18px;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
}
.policy-note li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.quote-form {
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid; gap: 18px;
}
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field i { color: var(--accent-text); font-style: normal; }

.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper-warm-2); color: var(--ink);
  font-size: 15px; resize: vertical;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(36,29,20,.42); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245,166,35,.22);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241D14' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
  padding-right: 40px;
}
.field select option { background: #fff; color: var(--ink); }
.field input.invalid, .field select.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194,59,46,.16); }

.form-error { color: var(--danger); font-size: 14px; font-weight: 500; }
.form-actions { display: grid; gap: 12px; }
.wa-icon { width: 20px; height: 20px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.55; }
.form-note a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Подвал ────────────────────────────────────────────── */
.site-footer { background: var(--brown); color: rgba(255,255,255,.82); padding-top: clamp(52px, 7vw, 80px); }
.footer-grid { display: grid; gap: clamp(30px, 4vw, 48px); grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.footer-logo { height: 78px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; max-width: 320px; }
.footer-llc { font-size: 13px; color: rgba(255,255,255,.6); }

.footer-col h3 { font-size: 16px; color: #fff; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; padding-block: 6px; transition: color .25s var(--ease), transform .25s var(--ease); }
.footer-col a:hover { color: var(--accent-light); transform: translateX(4px); }

.footer-contact { display: flex; align-items: flex-start; gap: 11px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 8px; fill: none; stroke: var(--accent-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact.static { display: flex; font-size: 14.5px; padding-block: 6px; }
.footer-contact span { overflow-wrap: anywhere; }

.socials { display: flex; gap: 11px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.socials a:hover svg { color: var(--brown-darker); }

.footer-bottom {
  margin-top: clamp(38px, 5vw, 56px); padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  text-align: center; font-size: 13.5px; color: rgba(255,255,255,.65);
}

/* ── Плавающие элементы ────────────────────────────────── */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 30px rgba(37,211,102,.42);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab-wa svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fab-wa:hover { transform: scale(1.09); box-shadow: 0 14px 38px rgba(37,211,102,.55); }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

.mobile-bar { display: none; }

/* ── Анимация появления при скролле ────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }
.reveal[data-delay="6"] { transition-delay: .42s; }

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

@media (max-width: 1080px) {
  .trust-grid { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-woman { height: clamp(380px, 76vh, 680px); left: 8px; }
  /* На планшетной ширине (901–1080px) девушка всё ещё стоит слева и уже
     довольно крупная — тексту нужно оставаться справа, а не растягиваться
     на всю ширину, иначе заголовок наезжает прямо на фигуру. */
  .hero-copy { max-width: min(560px, 58%); }
}

@media (max-width: 900px) {
  /* На узком и высоком экране текст стоит по центру, а не справа —
     нужна ровная тёмная дымка по всей ширине, а не сдвинутая вправо. */
  .hero-bg { background-position: 22% top; }
  .hero-bg::after {
    background:
      linear-gradient(rgba(15,10,6,.4), rgba(15,10,6,.32) 40%, rgba(15,10,6,.62) 100%);
  }

  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: 95;
    flex-direction: column; gap: 0;
    padding: 96px 24px 28px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transform: translateY(-100%); transition: transform .45s var(--ease);
    box-shadow: 0 20px 50px rgba(60,45,25,.22);
  }
  .nav.open { transform: translateY(0); }
  .nav a { color: var(--ink); padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:hover { color: var(--brown-deep); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .header-actions { margin-left: auto; }

  /* Пока открыто мобильное меню, панель всегда белая — бургер должен
     стать тёмным независимо от прокрутки, иначе он потеряется на белом. */
  .nav.open ~ .header-actions .burger span { background: var(--ink); }

  /* На телефоне девушка встаёт под текстом. Нижний отступ всегда больше её
     роста, иначе она налезает на строчки «Free quote / Eco-friendly / Supplies». */
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 386px; text-align: center; }
  /* max-width сбрасываем: ограничение из блока выше (901–1080px) рассчитано
     на текст рядом с девушкой, а на телефоне ей отведено место снизу. */
  .hero-copy { max-width: 100%; text-align: center; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-woman { left: 50%; --px: -50%; height: 330px; }

  .steps .step:not(:last-child)::after { display: none; }
  .site-footer { padding-bottom: 84px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; inset: auto 0 0 0; z-index: 96;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    background: rgba(58,46,31,.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .mobile-bar .btn { padding: 13px 16px; font-size: 14.5px; }
  .fab-wa { bottom: 88px; right: 16px; width: 52px; height: 52px; }
  .fab-wa svg { width: 27px; height: 27px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .lamp-core { width: 2.2rem; }
  .lamp.is-visible .lamp-core { width: 8.5rem; }
  .lamp.is-visible .lamp-line { width: 11rem; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; }
  .addons ul { gap: 8px; }
  .addons li { font-size: 13px; padding: 8px 14px; }
}

@media (max-width: 400px) {
  .hero-woman { height: 270px; }
  .hero { padding-bottom: 322px; }
}

@media (max-width: 340px) {
  .area-grid { grid-template-columns: 1fr; }
}

/* ── Уважение к системной настройке «меньше движения» ──── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* сохраняем --px, иначе на телефоне девушка съедет из центра */
  .hero-woman { opacity: 1; transform: translate(var(--px), 0) scale(1); }
  .underline-gold::after { transform: scaleX(1); }
}

/* ── Печать ────────────────────────────────────────────── */
@media print {
  .site-header, .fab-wa, .mobile-bar, .hero-woman { display: none; }
  body { background: #fff; color: #000; }
}
