/* ============================================================
   MERUS — styles.css  (раунд 3, единственная тема «Золото»)
   Акцент задаётся в theme.css. Хардкод HEX только в :root базовой палитры.

   Раунд 3: декоративный паттерн арки убран отовсюду (арка остаётся только
   в логотипе, когда появится финальный знак) — ни разделителей, ни
   маркеров списков, ни водяных знаков с аркой больше нет.

   TODO (шрифты): лицензионные Neue Montreal / Söhne (заголовки),
   PP Neue Montreal Book / Inter (текст). Интерим: Space Grotesk + Inter.
   ============================================================ */

:root {
  --color-graphite: #2B2E31;
  --color-chalk: #F7F5F2;
  --color-grey-aux: #8A8D89;

  --bg: var(--color-graphite);
  --on: var(--color-chalk);
  --muted: #9EA19D;                    /* второстепенный текст на графите (~5.3:1) */
  --surface: #33373A;                  /* карточка */
  --surface-2: #3B4044;                /* приподнятая карточка / инпут hover */
  --hair: rgba(247, 245, 242, 0.13);
  --hair-strong: rgba(247, 245, 242, 0.22);

  --font-display: "Space Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 0.2s;
  --z-header: 100;
  --z-fab: 60;
  --z-info: 120;
  --z-dialog: 200;

  color-scheme: dark;              /* нативные контролы/скроллбары — в тёмной теме */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--on);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;   /* свой :active/:focus-visible вместо серой вспышки */
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em; background: var(--hair); padding: 0.1em 0.4em; border-radius: 4px;
}
strong { font-weight: 700; color: var(--on); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--color-accent); color: var(--accent-ink);
  padding: 10px 16px; font-weight: 600; border-radius: 6px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Плашка «перевод готовится» ---------- */
.lang-ribbon {
  background: var(--color-accent-veil);
  border-bottom: 1px solid var(--hair);
  color: var(--on);
  font-size: 0.86rem;
  text-align: center;
  padding: 9px var(--gutter);
}
.lang-ribbon[hidden] { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 24px; border: 1px solid transparent; border-radius: 9px;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn-accent { background: var(--color-accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0) scale(0.985); }
.btn-ghost { border-color: var(--hair-strong); color: var(--on); background: none; }
.btn-ghost:hover { border-color: var(--color-accent); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-xl { padding: 21px 38px; font-size: 1.15rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: default; filter: none; transform: none; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; }
.logo-svg { height: 40px; width: auto; display: block; }
.logo-word { fill: var(--color-chalk); font-family: var(--font-display); }
.logo-desc { fill: var(--color-accent); font-family: var(--font-display); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(38, 41, 44, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
  transition: padding var(--dur) var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding-block: 15px; }
.site-header.scrolled .header-inner { padding-block: 9px; }
.site-header.scrolled .logo-svg { height: 34px; }

.header-meta {
  display: none; flex-direction: column; gap: 1px;
  font-size: 0.78rem; color: var(--muted); line-height: 1.45;
}

.nav-desktop { display: none; margin-left: auto; align-items: center; gap: 22px; }
.nav-desktop > a { text-decoration: none; font-size: 0.95rem; color: var(--on); transition: color var(--dur) var(--ease); }
.nav-desktop > a:hover { color: var(--color-accent); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-display); font-size: 0.85rem; }
.lang-switch a {
  text-decoration: none; color: var(--muted); padding: 5px 8px; border-radius: 6px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang-switch a:hover { color: var(--on); }
.lang-switch a[aria-current="page"] { color: var(--accent-ink); background: var(--color-accent); }

.burger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: none; border: 1px solid var(--hair-strong); border-radius: 8px; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--on); transition: transform var(--dur) var(--ease), opacity var(--dur) 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); }

.nav-mobile { display: flex; flex-direction: column; gap: 6px; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--hair); }
.nav-mobile > a { text-decoration: none; padding: 14px 4px; font-size: 1.05rem; color: var(--on); border-bottom: 1px solid var(--hair); }
.nav-mobile .lang-switch--mobile { padding: 12px 0 4px; gap: 6px; font-size: 1rem; }
.nav-mobile .lang-switch--mobile a { padding: 8px 14px; border: 1px solid var(--hair-strong); }
.nav-mobile .btn { margin-top: 12px; }
.nav-mobile[hidden] { display: none; }

/* ---------- Секции ---------- */
section { padding-block: clamp(40px, 6vw, 76px); position: relative; }
.section-no {
  font-family: var(--font-display); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.22em; color: var(--color-accent); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 5vw, 2.9rem); letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.section-lead { margin-top: 16px; max-width: 56ch; font-size: 1.03rem; color: var(--muted); }
.section-head { display: flex; align-items: flex-start; gap: 4px; flex-wrap: wrap; }
.eyebrow {
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent);
}

/* ---------- Reveal ----------
   Базово контент ВИДЕН. Прячем только когда JS подтверждён (класс .js на <html>)
   и пользователь не просил уменьшить движение. app.js добавляет .in + предохранитель. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(6px); }
  .js .reveal.in {
    opacity: 1; transform: none;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }
}

/* ---------- Инфо-подсказка «?» ---------- */
.infodot {
  position: relative;
  display: inline-grid; place-content: center;
  width: 26px; height: 26px; flex: none;
  margin-left: 6px; vertical-align: middle;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  color: var(--color-accent);
  background: var(--color-accent-veil);
  border: 1px solid var(--color-accent);
  border-radius: 999px; cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* расширенная зона нажатия до ~48px без влияния на раскладку */
.infodot::after { content: ""; position: absolute; inset: -12px; }
.infodot:hover { background: color-mix(in srgb, var(--color-accent) 26%, transparent); }
.infodot:active { transform: scale(0.92); }
.infodot[aria-expanded="true"] { background: var(--color-accent); color: var(--accent-ink); }
.section-head .infodot { margin-top: 6px; }

.info-portal {
  position: fixed; z-index: var(--z-info);
  max-width: min(320px, calc(100vw - 24px));
  background: var(--surface-2);
  color: var(--on);
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem; line-height: 1.55;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.info-portal[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .info-portal:not([hidden]) { animation: info-in 0.14s var(--ease); }
  @keyframes info-in { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }
}

/* ---------- Маркер пункта списка (простая точка — без паттерна) ---------- */
.dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dot-list li { position: relative; padding-left: 22px; }
.dot-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%;
  background-color: var(--color-accent);
}

/* ============================ HERO ============================
   Фото — full-bleed фон всей секции (не карточка в рамке), текст
   поверх со скримом для читаемости. Плейсхолдер меняется на реальное
   фото простой заменой background в .ph-image--hero. */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 9vw, 96px); }
.hero-grid { position: relative; z-index: 2; display: grid; gap: clamp(32px, 6vw, 60px); }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -0.03em; margin: 16px 0 14px; text-wrap: balance; }
.hero-tagline { font-size: 1.1rem; color: var(--on); max-width: 46ch; margin: 0 0 22px; }
.hero-list { margin: 0; }
.hero-list li { font-size: 1.04rem; }

.hero-more { margin: 0 0 30px; }
.hero-more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--color-accent); font-size: 0.92rem; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.hero-more summary::-webkit-details-marker { display: none; }
.hero-more summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--dur) var(--ease); margin-top: -2px;
}
.hero-more[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.hero-more .hero-list { margin-top: 16px; }

.hero-action {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
  padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair);
}
.hero-action-main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1 1 300px; }
.cta-note { font-size: 0.9rem; color: var(--muted); max-width: 46ch; }
.hero-contacts {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  font-size: 0.95rem; padding-top: 16px; border-top: 1px solid var(--hair); width: 100%;
}
.hero-contacts a, .hero-contacts span.tel { color: var(--on); text-decoration: none; display: inline-block; padding: 4px 0; }
.hero-contacts a:hover { color: var(--color-accent); }

.hero-visual { position: absolute; inset: 0; z-index: 0; }
.ph-image {
  width: 100%; height: 100%;
  background: radial-gradient(120% 120% at 78% 15%, #3A3F43 0%, #24272A 55%, #1F2225 100%);
}
.ph-image--hero {
  background-image: url("photos/hero-living-room.jpg");
  background-size: cover;
  background-position: center right;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    var(--color-graphite) 0%, rgba(43, 46, 49, 0.95) 32%,
    rgba(43, 46, 49, 0.6) 60%, rgba(43, 46, 49, 0.22) 100%);
}

/* ============================ § 01 — О НАС ============================ */
.about-grid { margin-top: 40px; display: grid; gap: 32px; }
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: radial-gradient(120% 120% at 25% 0%, #3A3F43 0%, #24272A 60%, #1F2225 100%);
  display: flex; align-items: flex-end; padding: 18px;
}
.about-photo-caption {
  font-size: 0.8rem; color: var(--on); background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px; border-radius: 999px;
}
.about-photo--temp {
  background-image: linear-gradient(0deg, rgba(20, 22, 24, 0.75), rgba(20, 22, 24, 0.15) 45%), url("photos/about-placeholder.jpg");
  background-size: cover; background-position: center;
}
.about-body { display: grid; gap: 16px; align-content: start; }
.about-body p { color: var(--muted); font-size: 1.02rem; }
.about-founder { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--on); }

/* ============================ § 02 — ГАРАНТИИ ============================ */
.trust .section-title { max-width: 24ch; }
.trust-grid { margin-top: 42px; display: grid; gap: 26px; }
.trust-item { padding-top: 20px; border-top: 2px solid var(--color-accent); }
.trust-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem); color: var(--color-accent);
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.trust-item p:last-child { color: var(--muted); }
.trust-item .infodot { margin-top: 10px; margin-left: 0; }

/* ============================ § 03 — УСЛУГИ (сетка карточек) ============================ */
.svc-grid { margin-top: 40px; display: grid; gap: 18px; grid-template-columns: 1fr; }
.svc-card {
  grid-column: span 1;
  border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); overflow: hidden;
}
.svc-card--highlight { border-color: var(--color-accent); }
.svc-card--open { grid-column: 1 / -1; }
.svc-card-media {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, #40454A, #2C2F33);
}
.svc-card-media svg { width: 40px; height: 40px; color: var(--muted); opacity: 0.6; }
.svc-card-media--photo { display: block; }
.svc-card-media--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card-head {
  width: 100%; display: block; text-align: left;
  padding: 20px 22px; background: none; border: none; cursor: pointer; color: var(--on);
}
.svc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.svc-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.svc-card-tag {
  display: inline-block; margin-left: 10px; font-family: var(--font-body);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--color-accent);
  padding: 3px 8px; border-radius: 999px; vertical-align: middle;
}
.svc-card-summary { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.svc-card-chevron { width: 22px; height: 22px; flex: none; color: var(--color-accent); transition: transform var(--dur) var(--ease); }
.svc-card-head[aria-expanded="true"] .svc-card-chevron { transform: rotate(180deg); }
.svc-card-body { padding: 0 22px 24px; }
.svc-card-body[hidden] { display: none; }
.svc-story { color: var(--on); font-size: 1rem; margin-bottom: 18px; }
.svc-included { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.svc-zones { display: grid; gap: 10px; }
.svc-zone { border: 1px solid var(--hair); border-radius: 10px; padding: 4px 16px; }
.svc-zone-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding-block: 12px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  -webkit-tap-highlight-color: transparent;
}
.svc-zone-title::-webkit-details-marker { display: none; }
.svc-zone-title::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 1.5px solid var(--color-accent); border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.svc-zone[open] > .svc-zone-title::after { transform: rotate(-135deg); }
.svc-zone .checklist { padding-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li {
  position: relative; padding-left: 20px; font-size: 0.95rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background-color: var(--color-accent);
}
.svc-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 0.9rem; color: var(--muted); }
.svc-draft { margin-top: 12px; font-size: 0.82rem; color: var(--muted); font-style: italic; }
.svc-collapse { margin-top: 20px; width: 100%; }

/* ============================ КАРУСЕЛИ ============================ */
.carousel { margin-top: 40px; position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  list-style: none; margin: 0; padding: 4px var(--gutter) 4px;
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 auto; width: clamp(258px, 78vw, 320px);
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column;
}
.carousel--center .carousel-track { padding-inline: max(var(--gutter), calc(50% - 170px)); }
.carousel--center .carousel-slide { width: clamp(258px, 78vw, 340px); scroll-snap-align: center; text-align: center; align-items: center; }

.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.carousel-btn {
  width: 46px; height: 46px; display: grid; place-content: center;
  border: 1px solid var(--hair-strong); border-radius: 999px; background: none;
  color: var(--on); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; }
.carousel-btn[disabled]:hover { border-color: var(--hair-strong); color: var(--on); }

/* --- process step: таймлайн, а не карточка-твин с преимуществами --- */
.step { border-top: 2px solid var(--color-accent); border-radius: 4px; }
.step-no {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border: 1.5px solid var(--color-accent); border-radius: 50%;
}
.carousel--center .step-no { margin-inline: auto; }
.step-no span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--color-accent); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step .infodot { margin-top: 16px; margin-left: 0; }

/* --- addon card --- */
.addon-media {
  aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(135deg, #40454A, #2C2F33);
  display: grid; place-items: center;
}
.addon-media svg { width: 36px; height: 36px; color: var(--muted); opacity: 0.6; }

/* --- слайдер «до / после» на карточке доп. услуги ---
   Плейсхолдер-градиенты — заменить .compare-before/.compare-after на
   background-image: url(...) с реальными фото, когда они появятся;
   сам слайдер (перетаскивание) готов и трогать не нужно. */
.addon-media--compare {
  position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none;
}
.compare-layer {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.compare-after { background: linear-gradient(135deg, #4A4038, #2C2F33); }
.compare-before {
  overflow: hidden; width: 50%; border-right: 2px solid var(--color-accent);
  background: linear-gradient(135deg, #3A3D33, #22241F);
}
.compare-tag {
  position: absolute; top: 8px; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on); background: rgba(0, 0, 0, 0.45); padding: 3px 8px; border-radius: 999px;
  pointer-events: none;
}
.compare-before .compare-tag { left: 8px; }
.compare-after > .compare-tag { right: 8px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 3;
  transform: translateX(-50%); pointer-events: none;
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.compare-handle::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
  font-size: 0.7rem; color: var(--accent-ink); z-index: 4; letter-spacing: 2px;
}
.addon-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.addon-desc { color: var(--muted); font-size: 0.9rem; margin-top: 6px; flex: 1; }
.addon-price { font-family: var(--font-display); font-weight: 600; color: var(--color-accent); margin-top: 14px; }
.addon-price span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--muted); }

/* --- subscription card --- */
.sub-card { background: var(--color-accent-veil); border-color: var(--color-accent); }
.sub-badge {
  align-self: flex-start; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--color-accent); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px;
}
.sub-example { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 0.85rem; color: var(--muted); display: grid; gap: 4px; }
.sub-example strong { color: var(--on); }
.sub-example .sub-savings strong { color: var(--color-accent); }
.sub-cta { margin-top: 16px; }

/* --- benefit --- */
.benefit {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 55%);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.benefit:hover { transform: translateY(-3px); border-color: var(--hair-strong); }
.benefit-no {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; color: var(--muted); opacity: 0.55;
}
.benefit-icon-badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-accent-veil); margin-bottom: 16px;
}
.carousel--center .benefit-icon-badge { margin-inline: auto; }
.benefit-icon { width: 26px; height: 26px; color: var(--color-accent); }
.benefit h3 { font-size: 1.12rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }
.benefit-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; margin-left: 0;
  width: auto; height: auto; border-radius: 999px; padding: 7px 14px 7px 16px;
  background: none; border: 1px solid var(--hair-strong); color: var(--color-accent);
  font-size: 0.82rem; font-weight: 600; position: static;
}
.benefit-more:hover { background: var(--color-accent-veil); border-color: var(--color-accent); }
.benefit-more svg { width: 15px; height: 15px; flex: none; }
.benefit-more::after { content: none; }

/* На больших экранах преимущества — сеткой, без карусельной механики */
@media (min-width: 960px) {
  .carousel--grid-lg .carousel-viewport { overflow: visible; }
  .carousel--grid-lg .carousel-track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    overflow: visible; padding-inline: 0; scroll-snap-type: none;
  }
  .carousel--grid-lg .carousel-slide { width: auto; }
  .carousel--grid-lg .carousel-nav { display: none; }
  .carousel--grid-lg { margin-inline: auto; max-width: var(--wrap); padding-inline: var(--gutter); }
}

/* ============================ CTA В СЕРЕДИНЕ ============================ */
.midcta { padding-block: clamp(28px, 7vw, 76px); }
.midcta-inner {
  background: var(--color-accent-veil);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 20px;
}
.midcta h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -0.02em; }
.midcta p { color: var(--muted); margin-top: 10px; max-width: 52ch; }

/* ============================ ОТЗЫВЫ ============================ */
.reviews-grid { margin-top: 42px; columns: 1; column-gap: 22px; }
.review-card {
  break-inside: avoid; margin-bottom: 22px; padding: 22px;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--surface);
}
.review-nick { font-family: var(--font-display); font-weight: 600; color: var(--color-accent); margin-bottom: 10px; }
.review-text { font-size: 0.97rem; }
.reviews-flag, .faq-flag {
  display: inline-block; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border: 1px dashed var(--muted); padding: 4px 10px; border-radius: 999px;
}

/* карточка «живого» отзыва — вид рукописного бланка */
.review-card--hw {
  background: repeating-linear-gradient(var(--color-chalk) 0 30px, #E7E3DA 30px 31px);
  color: #2B2E31;
  border: 1px solid #D8D3C7;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.6deg);
  padding: 26px 24px 22px;
}
.review-hw-badge {
  display: inline-block; font-family: var(--font-display); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6b6250; border: 1px solid #b7ad95; border-radius: 4px; padding: 3px 8px; margin-bottom: 12px;
}
.review-hw-lines { font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive; font-size: 1.05rem; line-height: 30px; }
.review-hw-meta { margin-top: 14px; font-size: 0.82rem; color: #6b6250; display: flex; justify-content: space-between; }
.review-hw-stars { color: #C9A227; letter-spacing: 2px; }
.review-hw-scan { margin-bottom: 12px; border-radius: 6px; border: 1px solid #cfc7b3; aspect-ratio: 3 / 2; background: #ECE7DA; display: grid; place-items: center; font-size: 0.72rem; color: #6b6250; padding: 8px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .review-card--hw { transform: none; } }

/* ============================ FAQ ============================ */
.faq-list { margin-top: 36px; display: grid; gap: 10px; max-width: 820px; }
.faq-item { border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--on); text-align: left;
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--color-accent); transition: transform var(--dur) var(--ease); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ============================ ЗАКРЫТИЕ ============================ */
.closing { text-align: center; }
.closing-inner { display: grid; justify-items: center; gap: 22px; }
.closing .section-title { max-width: 16ch; }
.closing p { color: var(--muted); max-width: 52ch; }

/* ============================ FOOTER ============================ */
.site-footer { padding-block: clamp(46px, 7vw, 78px); border-top: 1px solid var(--hair); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand .logo-svg { height: 46px; }
.footer-h { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col p { margin-bottom: 6px; }
.footer-col a { color: var(--on); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.footer-social { display: flex; flex-direction: column; gap: 4px; }
.footer-social a { padding: 8px 0; }
.footer-fine { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.footer-legal { color: var(--muted); font-size: 0.84rem; }

/* ============================ FAB «СВЯЗАТЬСЯ» ============================ */
.fab {
  position: fixed; z-index: var(--z-fab);
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab-channels { display: flex; flex-direction: column; gap: 10px; }
.fab-channels[hidden] { display: none; }
.fab-channel {
  width: 46px; height: 46px; display: grid; place-content: center;
  background: var(--surface-2); border: 1px solid var(--hair-strong); border-radius: 999px;
  color: var(--on); text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.fab-channel svg { width: 22px; height: 22px; }
.fab-channel:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
.fab-toggle {
  width: 56px; height: 56px; display: grid; place-content: center;
  background: var(--color-accent); color: var(--accent-ink);
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur) var(--ease);
}
.fab-toggle svg { width: 26px; height: 26px; }
.fab-toggle:hover { transform: scale(1.05); }
.fab-toggle:active { transform: scale(0.96); }
.fab-icon-close { display: none; }
.fab-toggle[aria-expanded="true"] .fab-icon-open { display: none; }
.fab-toggle[aria-expanded="true"] .fab-icon-close { display: block; }

/* ============================ ПОПАП КАЛЬКУЛЯТОРА ============================ */
.calc-dialog {
  z-index: var(--z-dialog);
  border: none; padding: 0; background: transparent;
  max-width: 560px; width: calc(100% - 28px);
  max-height: calc(100dvh - 40px);
  overflow: visible;
  color: var(--on);
}
.calc-dialog::backdrop { background: rgba(18, 19, 21, 0.62); backdrop-filter: blur(2px); }
.calc {
  background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  max-height: calc(100dvh - 40px); overflow-y: auto;
  display: grid; gap: 20px;
}
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.calc-head h2 { font-family: var(--font-display); font-size: 1.3rem; }
.calc-close {
  width: 40px; height: 40px; flex: none; display: grid; place-content: center;
  background: none; border: 1px solid var(--hair-strong); border-radius: 10px; color: var(--on); cursor: pointer;
}
.calc-close:hover { border-color: var(--color-accent); color: var(--color-accent); }
.calc-close svg { width: 20px; height: 20px; }
.calc-intro { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: no-preference) {
  .calc-dialog[open] { animation: calc-in 0.24s var(--ease); }
  @keyframes calc-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
}

/* ---------- Поля форм ---------- */
.field { display: grid; gap: 8px; border: none; padding: 0; margin: 0; }
.field > label, .field > legend { font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; padding: 0; }
.field-note { font-weight: 400; font-family: var(--font-body); color: var(--muted); }
.field input[type="text"], .field select {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--on);
  background: var(--bg); border: 1px solid var(--hair-strong); border-radius: 9px;
  transition: border-color var(--dur) var(--ease);
}
.field input[type="text"]:focus, .field select:focus { border-color: var(--color-accent); }
.field select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field-hint { font-size: 0.84rem; color: var(--muted); }
.field-error { color: #E7897F; font-size: 0.84rem; }
.field [aria-invalid="true"] { border-color: #E7897F !important; }

input[type="range"] { width: 100%; accent-color: var(--color-accent); }
.range-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
#c-area-out { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--color-accent); }

/* --- степпер количества санузлов --- */
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-content: center;
  background: var(--bg); border: 1px solid var(--hair-strong); border-radius: 9px;
  color: var(--on); font-size: 1.2rem; cursor: pointer; line-height: 1;
  transition: border-color var(--dur) var(--ease);
}
.stepper-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.stepper-value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; min-width: 1.5ch; text-align: center; font-variant-numeric: tabular-nums; }

.checkbox-col { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.addon-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 8px;
  cursor: pointer; transition: background-color var(--dur) var(--ease);
}
.addon-row:hover { background: var(--bg); }
.addon-row-media {
  width: 40px; height: 40px; flex: none; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #40454A, #2C2F33); display: grid; place-items: center;
}
.addon-row-media svg { width: 18px; height: 18px; color: var(--muted); opacity: 0.7; }
.addon-row-name { flex: 1; font-size: 0.95rem; }
.addon-row-price { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--color-accent); white-space: nowrap; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.radio-row label, .checkbox-col label {
  display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 0.96rem; cursor: pointer;
}
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-accent); flex: none; }

.calc-consent { font-size: 0.8rem; color: var(--muted); }
.form-status {
  padding: 13px 15px; border-radius: 9px; font-size: 0.93rem;
  background: var(--color-accent-veil); border: 1px solid var(--color-accent);
}
.form-status[hidden] { display: none; }

/* ---------- Экран «Ваш заказ» ---------- */
.calc-order[hidden] { display: none; }
.order-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 10px; border-bottom: 1px solid var(--hair); font-size: 0.98rem;
}
.order-line strong { font-family: var(--font-display); }
.order-sub { font-size: 0.85rem; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.order-addons-h { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.order-addon-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; padding-block: 4px; color: var(--muted); }
.order-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--color-accent);
}
.order-executors { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); }
.order-note { font-size: 0.82rem; color: var(--muted); }
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.order-actions .btn-ghost { flex: 1; }
.order-actions .btn-accent { flex: 2; }

/* ============================ АДАПТИВ ============================ */
@media (min-width: 620px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { columns: 2; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-action { flex-wrap: nowrap; }
  .hero-contacts {
    flex-direction: column; align-items: flex-start; gap: 4px;
    width: auto; padding-top: 0; padding-left: 28px; border-top: none; border-left: 1px solid var(--hair);
  }
  .hero-contacts-sep { display: none; }
}
@media (max-width: 619px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(43, 46, 49, 0.85) 0%, rgba(43, 46, 49, 0.92) 60%, var(--color-graphite) 100%);
  }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .nav-desktop { display: flex; }
  .burger, .nav-mobile { display: none; }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
  .midcta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
}
@media (min-width: 1040px) {
  .header-meta { display: flex; }
  .reviews-grid { columns: 3; }
}

/* Средний CTA-блок на мобильном — только маленькая кнопка, без большого текста */
@media (max-width: 899px) {
  .midcta { padding-block: 28px; }
  .midcta-inner { padding: 0; background: none; border: none; border-radius: 0; justify-items: center; }
  .midcta-copy { display: none; }
  .midcta-inner .btn { padding: 12px 22px; font-size: 0.95rem; }
}

/* Закреплённая панель «Рассчитать стоимость» — только на мобильном/планшете,
   где кнопка в шапке скрыта под гамбургером. На десктопе кнопка уже всегда
   на виду в липкой шапке (.site-header { position: sticky }), эта панель не нужна. */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
    padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(38, 41, 44, 0.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--hair);
  }
  body { padding-bottom: 74px; }
  .fab { bottom: calc(70px + max(16px, env(safe-area-inset-bottom))); }
}

/* ---------- Мобильный проход: плотнее шрифты и отступы ---------- */
@media (max-width: 599px) {
  body { font-size: 16px; line-height: 1.55; }
  section { padding-block: clamp(40px, 10vw, 64px); }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-lead { font-size: 0.96rem; margin-top: 12px; }
  .hero h1 { margin: 12px 0 20px; }
  .hero-list { margin-bottom: 22px; }
  .hero-list li { font-size: 0.98rem; }
  .hero-action { padding: 18px; gap: 14px; }
  p, .checklist li, .addon-desc, .benefit p, .step p { line-height: 1.5; }
  .about-body p { font-size: 0.96rem; }
  .svc-card-summary, .addon-desc { font-size: 0.9rem; }
}

section[id], :target { scroll-margin-top: 84px; }
