/* ==========================================================================
   1. ТОКЕНЫ. Тема клиента = правка только этого раздела.
   Светлая тема — :root по умолчанию. Тёмная — класс theme-dark на <html>
   (или на отдельной секции, чтобы сделать её «инверсной»).
   ========================================================================== */
:root,
.theme-light {
  --bg: #efebe4;            /* фон страницы */
  --surface: #f8f6f2;       /* карточки, поля */
  --surface-2: #e5dfd5;     /* фон чередующихся секций */
  --text: #1c1a17;          /* основной текст */
  --muted: #57514a;         /* второстепенный текст (≥4.5:1 на bg, surface, surface-2) */
  --accent: #9c4426;        /* единственный акцент: кнопки, ссылки, метки */
  --accent-contrast: #ffffff; /* текст на акценте */
  --line: #d3cabd;          /* границы, разделители */
  --shadow-color: 30 20 10; /* RGB для теней */
  color-scheme: light;
}

.theme-dark {
  --bg: #1d1b18;
  --surface: #262320;
  --surface-2: #211f1c;
  --text: #f1ece5;
  --muted: #b5ada2;
  --accent: #e0916f;
  --accent-contrast: #1d1b18;
  --line: #3a3530;
  --shadow-color: 0 0 0;
  color-scheme: dark;
}

:root {
  /* Шрифты: см. fonts.css и README (пары под настроение) */
  --font-head: "Raleway", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-head: 500;
  --ls-head: -0.015em;

  /* Радиусы */
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --radius-btn: 2px;

  /* Отступы (4-pt шкала) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --gap: clamp(16px, 0.9vw + 12px, 24px);
  --section-y: clamp(64px, 5vw + 44px, 128px);
  --container: 1200px;
  --gutter: clamp(16px, 3vw + 4px, 40px);
  --header-h: 68px;

  /* Типографическая шкала (375 → 1440) */
  --fs-xs: 0.8125rem;                                  /* 13 */
  --fs-sm: 0.9375rem;                                  /* 15 */
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem); /* 16–17 */
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);   /* 17–20 */
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.1875rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2rem, 1.25rem + 3.4vw, 4.25rem);

  /* Движение */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* Производные токены — пересчитываются для любой темы автоматически */
:root,
.theme-light,
.theme-dark {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --accent-hover: color-mix(in srgb, var(--accent) 86%, var(--text));
  --shadow-sm: 0 1px 2px rgb(var(--shadow-color) / 0.06), 0 2px 8px rgb(var(--shadow-color) / 0.05);
  --shadow-md: 0 2px 6px rgb(var(--shadow-color) / 0.06), 0 14px 36px rgb(var(--shadow-color) / 0.1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

/* ==========================================================================
   2. БАЗА
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.is-locked { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.theme-dark, .theme-light { background-color: var(--bg); color: var(--text); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  letter-spacing: var(--ls-head);
  line-height: 1.12;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
p { text-wrap: pretty; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[tabindex="-1"]:focus { box-shadow: none; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.icon, .ph__icon, .review__quote { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. РАСКЛАДКА
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.section-head { display: grid; gap: var(--sp-4); max-width: 720px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 768px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-7); }
  .section-head--split > .section-head__aside { grid-row: 1 / span 3; grid-column: 2; align-self: end; }
}
.section-head p { color: var(--muted); font-size: var(--fs-lg); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Планшет: нечётная последняя карточка в grid--3 растягивается на всю ширину (без «сироты») */
@media (min-width: 600px) and (max-width: 959.98px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid--3 > .service:last-child:nth-child(odd), .grid--3 > .member:last-child:nth-child(odd) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid--3 > .service:last-child:nth-child(odd) .media, .grid--3 > .member:last-child:nth-child(odd) .media { aspect-ratio: auto; min-height: 100%; }
  .hero__art { max-width: 400px; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.lead { font-size: var(--fs-lg); color: var(--muted); }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* ==========================================================================
   4. КНОПКИ, БЕЙДЖИ, ССЫЛКИ
   ========================================================================== */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { --btn-bd: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--radius-btn); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--ghost { --btn-bg: transparent; }
.btn--light { --btn-bg: #fff; --btn-fg: #16120f; --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #f1ece6; --btn-bd: #f1ece6; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.5); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgb(255 255 255 / 0.08); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--icon { width: 52px; padding: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge .icon { width: 14px; height: 14px; color: var(--accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.checklist { display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 0.15em; color: var(--accent); }

/* ==========================================================================
   5. ДЕКОРАТИВНЫЕ ПЛЕЙСХОЛДЕРЫ (вместо фото) и МЕДИА
   .media — рамка с пропорцией; внутри либо <img>, либо .ph
   ========================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ratio, 4 / 3); background: var(--surface-2); isolation: isolate; }
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--square { --ratio: 1; }
.media--portrait { --ratio: 4 / 5; }
.media--wide { --ratio: 16 / 9; }

.ph {
  --c1: color-mix(in srgb, var(--accent) 24%, var(--surface));
  --c2: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--c1), transparent 60%), linear-gradient(160deg, var(--c2), var(--surface-2));
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}
.ph::before { content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.ph__icon { width: 44px; height: 44px; position: relative; opacity: 0.8; stroke-width: 1.4; }
.ph__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px);
  color: var(--text); font-size: var(--fs-xs); font-weight: 700;
}
/* концентрические кольца */
.ph--1::before { background: repeating-radial-gradient(circle at 78% 28%, transparent 0 22px, color-mix(in srgb, var(--accent) 22%, transparent) 22px 23px); }
/* диагональные полосы */
.ph--2 { background: linear-gradient(200deg, var(--c1), var(--c2) 70%); }
.ph--2::before { background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 14%, transparent) 14px 15px); }
/* точечная сетка */
.ph--3 { background: radial-gradient(90% 80% at 0% 100%, var(--c1), transparent 65%), var(--c2); }
.ph--3::before { background-image: radial-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1.2px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 85%); mask-image: linear-gradient(135deg, #000 20%, transparent 85%); }
/* арки */
.ph--4 { background: linear-gradient(180deg, var(--c2), var(--c1)); }
.ph--4::before { opacity: 1; background: radial-gradient(circle at 50% 120%, transparent 0 34%, color-mix(in srgb, var(--accent) 16%, transparent) 34% 35%, transparent 35% 48%, color-mix(in srgb, var(--accent) 16%, transparent) 48% 49%, transparent 49% 62%, color-mix(in srgb, var(--accent) 16%, transparent) 62% 63%, transparent 63%); }
/* насыщенная (акцентная) плитка */
.ph--accent { --c1: color-mix(in srgb, var(--accent) 70%, #fff); background: radial-gradient(110% 90% at 100% 0%, var(--c1), transparent 60%), var(--accent); color: var(--accent-contrast); }
.ph--accent::before { background: repeating-radial-gradient(circle at 20% 110%, transparent 0 26px, color-mix(in srgb, var(--accent-contrast) 22%, transparent) 26px 27px); }
.ph--accent .ph__icon { opacity: 0.9; }

/* ==========================================================================
   6. COMPONENT: header
   ========================================================================== */
/* Фон и blur — на ::before, а не на самой шапке: backdrop-filter/filter/transform
   на .site-header делают её containing block для position: fixed, и мобильное
   меню .nav (fixed внутри шапки) схлопывается до высоты шапки. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.menu-open::before { background: var(--bg); }
.header__inner { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1; margin-right: auto; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); font-size: 1rem; }
.logo__sub { display: block; margin-top: 4px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--muted); }

.nav__list { display: flex; gap: var(--sp-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link, .logo__sub { white-space: nowrap; }
.nav__footer { display: none; }
.header__cta { display: none; }

.burger {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text);
}
.burger__box { position: relative; width: 22px; height: 14px; }
.burger__box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease), opacity 160ms var(--ease), top 260ms var(--ease); }
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 959.98px) {
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: var(--sp-6);
    padding: var(--sp-5) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__link { width: 100%; min-height: 60px; padding: 0; border-radius: 0; font-family: var(--font-head); font-size: 1.375rem; font-weight: var(--fw-head); justify-content: space-between; }
  .nav__link:hover { background: transparent; color: var(--accent); }
  .nav__footer { display: grid; gap: var(--sp-4); margin-top: auto; }
  .nav__footer .muted { font-size: var(--fs-sm); }
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .logo { margin-right: 0; }
  .nav { margin-inline: auto; }
}

/* ==========================================================================
   17. COMPONENT: faq (аккордеон на <details>)
   ========================================================================== */
.faq__layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .faq__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; } .faq__layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--fs-lg); line-height: 1.4;
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { border-radius: 8px; }
.faq__toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform 300ms var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq__toggle .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 56px var(--sp-5) 0; color: var(--muted); display: grid; gap: var(--sp-3); }

/* ==========================================================================
   18. COMPONENT: booking (форма записи)
   ========================================================================== */
.booking__layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .booking__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: center; } }
.booking__info { display: grid; gap: var(--sp-5); }
.booking__info .section-head { margin-bottom: 0; }
.booking__contact { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
.booking__contact a { color: var(--text); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.booking__contact a:hover { color: var(--accent); }

.form { display: grid; gap: var(--sp-4); padding: clamp(24px, 2vw + 16px, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form__title { font-size: var(--fs-h3); }
.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 700; }
.field__label .req { color: var(--accent); }
.field__control {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__control::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field__control:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.field__control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
.field__control:user-invalid { border-color: #c62828; }
.theme-dark .field__control:user-invalid { border-color: #ff8a80; }
textarea.field__control { min-height: 104px; resize: vertical; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field__select .field__control { padding-right: 44px; cursor: pointer; }
.field__control[type="date"] { cursor: pointer; }
.field__control[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; min-height: 44px; }
.consent input {
  flex: none; width: 32px; height: 32px; margin: -4px 0 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; border: 1.5px solid color-mix(in srgb, var(--text) 30%, var(--line)); border-radius: 9px; background: var(--bg) center / 20px no-repeat;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.consent input:hover { border-color: var(--accent); }
.consent input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.theme-dark .consent input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0d07' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.consent input:focus-visible { box-shadow: var(--focus); }
.consent span { padding-top: 2px; }
.form__success {
  display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: var(--fs-sm);
}
.form__success[hidden] { display: none; }
.form__success .icon { color: var(--accent); width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .form__success:not([hidden]) { animation: panel-in 360ms var(--ease); } }

/* ==========================================================================
   20. COMPONENT: page-head (заголовок внутренней страницы)
   ========================================================================== */
.page-head { padding-block: clamp(40px, 4vw + 20px, 88px) clamp(32px, 3vw + 16px, 64px); background: radial-gradient(50% 80% at 100% 0%, var(--accent-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-head__inner { display: grid; gap: var(--sp-4); max-width: 780px; }
.page-head p { font-size: var(--fs-lg); color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); opacity: 0.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ==========================================================================
   22. COMPONENT: footer
   ========================================================================== */
.site-footer { padding-block: var(--sp-8) var(--sp-5); background: var(--surface); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__about { display: grid; gap: var(--sp-4); justify-items: start; max-width: 340px; color: var(--muted); }
.footer__about .logo { color: var(--text); }
.footer__title { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   23. COMPONENT: sticky-cta (липкая кнопка на мобиле)
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--sp-2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.sticky-cta .btn--primary { flex: 1; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) { .has-sticky-cta .site-footer { padding-bottom: calc(var(--sp-5) + 76px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ==========================================================================
   24. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ. Класс reveal-ready ставит script.js —
   без JS контент виден сразу.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* === Клиент === */

/* Плашка концепта: обязательна на каждой странице демо (RULES.md), убирается в рабочей версии */
.demo-notice { background: var(--surface-2); color: var(--muted); font-size: 0.75rem; line-height: 1.35; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .demo-notice { font-size: 0.8125rem; } }

/* ==========================================================================
   «Отвес» — архитектурная подача: тонкие линии, крупные цифры, острые углы
   ========================================================================== */
h1, h2, h3, h4, .h1, .h2, .h3 { font-variant-numeric: lining-nums; }
h1, .h1 { font-weight: 500; letter-spacing: -0.025em; }
h2, .h2 { font-weight: 500; letter-spacing: -0.02em; }
h3, .h3 { font-weight: 600; }
.num { font-family: var(--font-head); font-variant-numeric: lining-nums tabular-nums; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }

.eyebrow { color: var(--muted); letter-spacing: 0.16em; font-weight: 600; }
.eyebrow::before { width: 28px; height: 1px; background: var(--accent); }
.eyebrow__n { color: var(--accent); font-variant-numeric: tabular-nums; }

.btn { letter-spacing: 0.02em; }
.btn--primary:hover { box-shadow: none; }
.btn--ghost { --btn-bd: color-mix(in srgb, var(--text) 30%, var(--line)); }

/* Шапка */
.logo { gap: 12px; font-size: 1.0625rem; letter-spacing: 0.22em; font-weight: 700; }
.logo__mark { width: 36px; height: 36px; border-radius: 3px; }
.logo__mark .icon { width: 22px; height: 22px; stroke-width: 2; }
.logo__sub { letter-spacing: 0.02em; margin-top: 5px; }
.header__phone { display: none; }
@media (min-width: 960px) {
  .nav__link { border-radius: 2px; }
  .header__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
  .header__phone:hover { color: var(--accent); }
  .header__phone .icon { width: 18px; height: 18px; color: var(--accent); }
}
@media (min-width: 960px) and (max-width: 1199.98px) { .header__phone { display: none; } }

/* Заголовок секции: слева номер и заголовок, справа пояснение */
.shead { display: grid; gap: var(--sp-4); margin-bottom: clamp(32px, 3vw + 16px, 64px); }
.shead h2 { max-width: 20ch; }
.shead p { color: var(--muted); font-size: var(--fs-lg); max-width: 52ch; }
@media (min-width: 960px) {
  .shead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sp-7); align-items: end; }
  .shead > .eyebrow { grid-column: 1 / -1; }
  .shead p { padding-bottom: 6px; }
}
.section--line { border-top: 1px solid var(--line); }

/* Плитки-заглушки вместо фото: «чертёжная» сетка + подпись помещения */
.media { border-radius: var(--radius); }
.ph {
  --c1: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --c2: var(--surface-2);
  background: linear-gradient(155deg, var(--c1), var(--c2) 70%);
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
}
.ph::before {
  opacity: 1;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
}
.ph::after { content: ""; position: absolute; inset: 14%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; }
.ph__icon, .ph > .icon { width: 40px; height: 40px; position: relative; z-index: 1; stroke-width: 1.4; opacity: 0.85; }
.ph__label { border-radius: 2px; left: 12px; bottom: 12px; font-weight: 600; letter-spacing: 0.02em; }
.ph--stone { --c1: color-mix(in srgb, var(--text) 10%, var(--surface)); --c2: color-mix(in srgb, var(--text) 4%, var(--surface-2)); color: var(--muted); }
.ph--clay { --c1: color-mix(in srgb, var(--accent) 30%, var(--surface)); --c2: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.ph--dark { --c1: #3a332d; --c2: #24211d; color: #e7c5b3; }
.ph--dark::before { background-image: linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px); }
/* «до»: бетон и штриховка */
.ph--raw { --c1: #b9b2a8; --c2: #8f877d; color: #2b2723; }
.ph--raw::before { background-image: repeating-linear-gradient(135deg, rgb(0 0 0 / 0.08) 0 1px, transparent 1px 12px); background-size: auto; }
.ph--raw::after { border-color: rgb(0 0 0 / 0.18); border-style: dashed; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(32px, 4vw + 16px, 80px) 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--container) + var(--gutter) * 2) - var(--gutter) * 2) / 4) 100%;
  background-position: max(var(--gutter), (100vw - var(--container)) / 2) 0;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 92%); mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
  opacity: 0.7;
}
.hero__top { display: grid; gap: var(--sp-5); }
.hero__top > div:first-child { display: grid; gap: var(--sp-4); justify-items: start; }
.hero__title { font-size: clamp(2.125rem, 1.2rem + 4.2vw, 5rem); line-height: 1.02; max-width: 14ch; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__side { display: grid; gap: var(--sp-5); align-content: end; }
.hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 46ch; }
.hero__side .btn-row .btn { flex: 1 1 auto; }
@media (min-width: 960px) {
  .hero__top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--sp-7); align-items: end; }
  .hero__side { padding-bottom: 10px; }
  .hero__side .btn-row .btn { flex: 1 1 100%; }
}
.hero__photo { margin-top: clamp(32px, 3vw + 16px, 56px); position: relative; }
.hero__photo .media { --ratio: 4 / 3; border-radius: var(--radius); }
@media (min-width: 600px) { .hero__photo .media { --ratio: 16 / 9; } }
@media (min-width: 1200px) { .hero__photo .media { --ratio: 21 / 9; } }
.hero__caption { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 2px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: var(--fs-xs); font-weight: 600; }
.hero__caption::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* Полоса фактов с крупными цифрами */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--text); margin-top: 0; }
.facts > div { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.facts > div:nth-child(even) { padding-left: var(--sp-4); border-left: 1px solid var(--line); }
.facts dt { order: 2; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.facts dd { order: 1; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); }
.facts dd small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
@media (min-width: 960px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > div { padding: var(--sp-6) var(--sp-5); border-bottom: 0; }
  .facts > div:first-child { padding-left: 0; }
  .facts > div + div { border-left: 1px solid var(--line); }
}
.hero-wrap { padding-bottom: var(--section-y); }

/* ---------- ГАРАНТИИ: «спецификация» в линиях ---------- */
.why { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .why { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-8); } .why .shead { grid-template-columns: 1fr; margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); } }
.why .shead { margin-bottom: 0; }
.spec { display: grid; border-top: 1px solid var(--text); }
.spec__item { display: grid; gap: var(--sp-3); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.spec__value { font-size: clamp(2.5rem, 1.8rem + 2.8vw, 4.25rem); color: var(--text); }
.spec__value span { color: var(--accent); }
.spec__item h3 { font-size: var(--fs-h4); display: flex; align-items: center; gap: 10px; }
.spec__item h3 .icon { color: var(--accent); width: 20px; height: 20px; }
.spec__item p { color: var(--muted); max-width: 44ch; }
@media (min-width: 600px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__item { padding: var(--sp-6) var(--sp-5) var(--sp-6) 0; }
  .spec__item:nth-child(even) { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
}

/* ---------- ВИДЫ РЕМОНТА: каталог строками ---------- */
.kinds { border-top: 1px solid var(--text); counter-reset: kind; }
.kind { counter-increment: kind; display: grid; gap: var(--sp-4); padding-block: var(--sp-5); border-bottom: 1px solid var(--line); position: relative; }
.kind__media { --ratio: 16 / 9; }
.kind__body { display: grid; gap: var(--sp-2); align-content: start; }
.kind__body h3 { font-size: var(--fs-h3); display: flex; align-items: baseline; gap: 12px; }
.kind__body h3::before { content: counter(kind, decimal-leading-zero); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }
.kind__body p { color: var(--muted); max-width: 52ch; }
.kind__tags { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.kind__tags li { display: inline-flex; align-items: center; gap: 6px; }
.kind__tags .icon { width: 16px; height: 16px; color: var(--accent); }
.kind__price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.kind__cost { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 600; font-variant-numeric: lining-nums; white-space: nowrap; }
.kind__cost small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
@media (min-width: 768px) {
  .kind { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: var(--sp-6); align-items: start; }
  .kind__media { --ratio: 4 / 3; grid-row: span 2; }
  .kind__price { align-self: end; }
}
@media (min-width: 1100px) {
  .kind { grid-template-columns: 300px minmax(0, 1fr) 220px; padding-block: var(--sp-6); align-items: center; }
  .kind__media { grid-row: auto; }
  .kind__price { flex-direction: column; align-items: flex-start; justify-content: center; align-self: stretch; padding-left: var(--sp-5); border-left: 1px solid var(--line); }
}
.kind .media img { transition: transform 700ms var(--ease); }
.kind:hover .media img { transform: scale(1.03); }

/* ---------- ДО / ПОСЛЕ ---------- */
.works { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .works { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-8); align-items: center; } .works .shead { grid-template-columns: 1fr; margin-bottom: var(--sp-5); } }
.works .shead { margin-bottom: var(--sp-5); }
.pairs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-btn); width: max-content; max-width: 100%; }
.pairs__tab { min-height: 44px; padding: 0 18px; border: 0; background: transparent; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.pairs__tab + .pairs__tab { border-left: 1px solid var(--line); }
.pairs__tab[aria-selected="true"] { background: var(--accent); color: var(--accent-contrast); }
html:not(.js) .pairs { display: none; }
.pair { display: grid; gap: var(--sp-4); }
.pair + .pair { margin-top: var(--sp-6); }
.js .pair + .pair { margin-top: 0; }
.pair[hidden] { display: none; }
.pair__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--fs-sm); color: var(--muted); }
.pair__meta b { color: var(--text); font-weight: 600; }
.works__aside { display: grid; gap: var(--sp-5); justify-items: start; }
.works__aside p { color: var(--muted); }

.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--surface-2); cursor: ew-resize; }
.ba__layer { position: absolute; inset: 0; isolation: isolate; }
.ba__layer > img, .ba__layer > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 12px; z-index: 3; padding: 4px 10px; border-radius: 2px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }
.ba__tag--before { left: 12px; background: rgb(20 18 16 / 0.72); color: #fff; }
.ba__tag--after { right: 12px; background: var(--accent); color: var(--accent-contrast); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 44px; margin-left: -22px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }
.ba__knob { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1c1a17; box-shadow: 0 4px 18px rgb(0 0 0 / 0.28); transition: transform var(--dur) var(--ease); }
.ba__knob .icon { width: 22px; height: 22px; }
.ba__handle:focus-visible { box-shadow: none; }
.ba__handle:focus-visible .ba__knob { box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px #fff; }
.ba.is-dragging .ba__knob { transform: scale(1.08); }
.ba__hint { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); }
html:not(.js) .ba__handle { display: none; }

/* ---------- ЭТАПЫ: таймлайн ---------- */
.process { display: grid; gap: var(--sp-7); }
.process__side { display: grid; gap: var(--sp-5); align-content: start; }
.process__side .shead { margin-bottom: 0; grid-template-columns: 1fr; }
.process__side .media { --ratio: 4 / 3; }
@media (min-width: 960px) { .process { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8); } .process__side { position: sticky; top: calc(var(--header-h) + 32px); } }
.tl { counter-reset: tl; position: relative; }
.tl__item { counter-increment: tl; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--sp-4); padding-bottom: var(--sp-6); }
.tl__item::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: var(--line); }
.tl__item:last-child { padding-bottom: 0; }
.tl__item:last-child::before { display: none; }
.tl__marker { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--text); border-radius: 50%; background: var(--bg); font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; font-variant-numeric: lining-nums; }
.tl__marker::before { content: counter(tl, decimal-leading-zero); }
.tl__item:last-child .tl__marker { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.tl__body { display: grid; gap: var(--sp-2); grid-column: 2; grid-row: 2; padding-top: 4px; }
.tl__when { grid-column: 2; grid-row: 1; padding-top: 6px; }
.tl__marker { grid-column: 1; grid-row: 1 / span 2; }
.tl__when { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tl__body h3 { font-size: var(--fs-h3); }
.tl__body p { color: var(--muted); }
.tl__pay { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--fs-sm); font-weight: 600; }
.tl__pay .icon { width: 18px; height: 18px; color: var(--accent); }
@media (min-width: 600px) { .tl__item { grid-template-columns: 140px 56px minmax(0, 1fr); } .tl__item::before { left: calc(140px + var(--sp-4) + 27px); } .tl__when { grid-column: 1; grid-row: 1; padding-top: 20px; text-align: right; } .tl__marker { grid-column: 2; grid-row: 1; align-self: start; } .tl__body { grid-column: 3; grid-row: 1; padding-top: 14px; } }

/* ---------- СМЕТА: лист документа ---------- */
.est { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .est { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8); align-items: start; } .est .shead { grid-template-columns: 1fr; } }
.est .shead { margin-bottom: var(--sp-5); }
.est__lists { display: grid; gap: var(--sp-5); }
.est__lists h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.est__out li { display: flex; gap: var(--sp-3); color: var(--muted); }
.est__out li::before { content: ""; flex: none; width: 12px; height: 1px; margin-top: 0.8em; background: var(--muted); }
.est__out { display: grid; gap: var(--sp-2); }
.sheet { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2vw + 12px, 40px); box-shadow: var(--shadow-sm); overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--text); font-size: var(--fs-sm); }
.sheet__head b { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 600; }
.sheet__head span { color: var(--muted); }
.sheet__table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.sheet__table th, .sheet__table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sheet__table thead th { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sheet__table td:last-child, .sheet__table th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.sheet__table tbody th { font-weight: 600; }
.sheet__table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; margin-top: 2px; }
.sheet__table tfoot th, .sheet__table tfoot td { border-bottom: 0; padding-top: var(--sp-4); font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 600; }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); }
.sheet__foot .sheet__note { margin: 0; flex: 1 1 220px; max-width: 44ch; }
.sheet__stamp { flex: none; transform: rotate(-6deg); padding: 6px 12px; border: 2px solid var(--accent); border-radius: 3px; color: var(--accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; pointer-events: none; }
.sheet__note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- ОТЗЫВЫ: журнальная раскладка ---------- */
.voices { display: grid; gap: var(--sp-6); border-top: 1px solid var(--text); padding-top: var(--sp-6); }
.voice { display: grid; gap: var(--sp-4); align-content: start; }
.voice blockquote p { font-family: var(--font-head); font-weight: 400; font-size: var(--fs-h3); line-height: 1.4; letter-spacing: -0.01em; }
.voice--main blockquote p { font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2.125rem); line-height: 1.3; font-weight: 400; }
.voice--main blockquote p::before { content: "«"; color: var(--accent); }
.voice--main blockquote p::after { content: "»"; color: var(--accent); }
.voice__mark { display: block; font-family: var(--font-head); font-size: 4rem; line-height: 0.6; color: var(--accent); height: 28px; }
.voice__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-sm); color: var(--muted); }
.voice__meta b { color: var(--text); font-weight: 600; }
.voice--small { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.voice--small:first-of-type { border-top: 0; }
@media (min-width: 960px) {
  .voices { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); }
  .voices__side { display: grid; gap: var(--sp-6); padding-left: var(--sp-6); border-left: 1px solid var(--line); }
  .voice--small { padding-top: 0; border-top: 0; }
  .voice--small + .voice--small { padding-top: var(--sp-6); border-top: 1px solid var(--line); }
}
.voices__side { display: grid; gap: var(--sp-5); }

/* ---------- FAQ ---------- */
.faq__layout { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .faq__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-8); align-items: start; } .faq__layout .shead { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__layout .shead { margin-bottom: 0; }
.faq { border-top: 1px solid var(--text); counter-reset: faq; }
.faq__item { counter-increment: faq; }
.faq__q { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h4); justify-content: flex-start; }
.faq__q::before { content: counter(faq, decimal-leading-zero); flex: none; width: 32px; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.06em; }
.faq__q > span:first-of-type { flex: 1; }
.faq__toggle { border-radius: 2px; width: 36px; height: 36px; }
.faq__body > div { padding: 0 48px var(--sp-5) 32px; }

/* ---------- КОНТАКТЫ ---------- */
.contact { display: grid; gap: var(--sp-6); border-top: 1px solid var(--text); padding-top: var(--sp-6); }
.contact__phone { display: inline-block; font-family: var(--font-head); font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.75rem); font-weight: 400; letter-spacing: -0.02em; text-decoration: none; font-variant-numeric: lining-nums; line-height: 1.1; }
.contact__phone:hover { color: var(--accent); }
.contact__main { display: grid; gap: var(--sp-5); align-content: start; }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: clamp(88px, 20%, 120px) minmax(0, 1fr); gap: var(--sp-3); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.contact__list li > span:first-child { color: var(--muted); }
.contact__msgs { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.contact__cta { display: grid; gap: var(--sp-4); align-content: start; padding: clamp(24px, 2vw + 16px, 44px); background: var(--text); color: var(--bg); border-radius: var(--radius); position: relative; overflow: hidden; isolation: isolate; }
.contact__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.contact__cta h3 { font-size: var(--fs-h2); font-weight: 500; }
.contact__cta p { color: rgb(241 236 229 / 0.78); }
.contact__cta .btn { justify-self: start; }
.contact__cta :focus-visible { box-shadow: 0 0 0 3px var(--text), 0 0 0 5px #fff; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); } }

.socials { display: flex; gap: var(--sp-2); }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--text); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* Подвал */
.site-footer { background: var(--surface-2); }
.footer__bottom a { text-decoration: none; }

/* ---------- Внутренняя страница: шапка ---------- */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; isolation: isolate; padding-block: clamp(28px, 3vw + 12px, 64px) clamp(28px, 3vw + 12px, 56px); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc((min(100vw, var(--container) + var(--gutter) * 2) - var(--gutter) * 2) / 4) 100%; background-position: max(var(--gutter), (100vw - var(--container)) / 2) 0; opacity: 0.6; pointer-events: none; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); }
.breadcrumbs ol { gap: 0 var(--sp-2); }

/* ---------- ПОРТФОЛИО ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter__btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.filter__btn:hover { border-color: var(--text); }
.filter__btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter__btn span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.filter__btn[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
html:not(.js) .filter { display: none; }
.filter__status { margin: calc(var(--sp-4) * -1) 0 var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }
.objects { display: grid; gap: var(--sp-6) var(--gap); }
@media (min-width: 640px) { .objects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .objects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.obj { position: relative; min-width: 0; display: grid; gap: var(--sp-3); align-content: start; }
.obj[hidden] { display: none; }
.obj .media { --ratio: 4 / 3; }
.obj__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 2px; background: rgb(20 18 16 / 0.72); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.obj__count .icon { width: 14px; height: 14px; }
.obj__type { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.obj h2 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
.obj__open { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; }
.obj__open::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.obj__open:focus-visible { box-shadow: none; }
.obj:has(.obj__open:focus-visible) .media { box-shadow: var(--focus); }
.obj:hover h2 { color: var(--accent); }
.obj .media img { transition: transform 700ms var(--ease); }
.obj:hover .media img { transform: scale(1.03); }
.obj__params { display: flex; flex-wrap: wrap; row-gap: var(--sp-2); min-width: 0; border-top: 1px solid var(--line); padding-top: var(--sp-3); font-size: var(--fs-sm); }
.obj__params div { padding-right: var(--sp-3); }
.obj__params div + div { padding-left: var(--sp-3); border-left: 1px solid var(--line); }
.obj__params dt { font-size: var(--fs-xs); color: var(--muted); }
.obj__params dd { font-weight: 600; }
.objects__empty { padding: var(--sp-6) 0; color: var(--muted); }

/* ---------- Модальные окна (<dialog>): отступ — на внутреннем блоке ---------- */
.modal { margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; box-shadow: var(--shadow-md); overscroll-behavior: contain; }
.modal::backdrop { background: rgb(20 18 16 / 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 260ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
html:has(.modal[open]) { overflow: hidden; }
.modal__inner { position: relative; display: grid; gap: var(--sp-4); padding: clamp(24px, 2vw + 16px, 40px); }
.modal__title { font-size: var(--fs-h3); padding-right: 44px; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--text); }
.modal__close:hover { border-color: var(--text); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__note { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: var(--fs-sm); }
.summary { display: grid; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.summary div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; }

/* Галерея объекта */
.modal--gallery { width: min(1080px, calc(100% - 24px)); background: var(--bg); }
.modal--gallery .modal__inner { gap: var(--sp-4); padding: 0 0 clamp(16px, 2vw, 28px); }
.gal__stage { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
@media (min-width: 768px) { .gal__stage { aspect-ratio: auto; height: min(62svh, 640px); } }
.gal__stage > img, .gal__stage > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__stage > .ph { display: none; }
.gal__stage.is-noimg > .ph { display: grid; }
.gal__stage.is-noimg > img { display: none; }
.gal__arrow { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 0; border-radius: 2px; background: rgb(248 246 242 / 0.92); color: #1c1a17; box-shadow: var(--shadow-sm); }
.gal__arrow:hover { background: #fff; }
.gal__arrow .icon { width: 22px; height: 22px; }
.gal__arrow--prev { left: 12px; }
.gal__arrow--next { right: 12px; }
.gal__counter { position: absolute; right: 12px; bottom: 12px; z-index: 3; padding: 4px 10px; border-radius: 2px; background: rgb(20 18 16 / 0.72); color: #fff; font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.gal__info { display: grid; gap: var(--sp-3); padding-inline: clamp(16px, 2vw + 8px, 32px); }
.gal__info h2 { font-size: var(--fs-h3); padding-right: 0; }
.gal__info p { color: var(--muted); }
.gal__thumbs { display: flex; gap: var(--sp-2); padding-inline: clamp(16px, 2vw + 8px, 32px); overflow-x: auto; }
.gal__thumb { flex: none; width: 88px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: var(--surface-2); position: relative; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb .ph { position: absolute; inset: 0; }
.gal__thumb .ph::after { inset: 18%; }
.gal__thumb[aria-current="true"] { border-color: var(--accent); }
.modal--gallery .modal__close { top: 12px; right: 12px; background: rgb(248 246 242 / 0.92); border-color: transparent; }

/* ---------- КАЛЬКУЛЯТОР ---------- */
.calc { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-7); } }
.calc__main { display: grid; gap: var(--sp-5); min-width: 0; }
.progress { display: grid; gap: var(--sp-3); margin-bottom: clamp(24px, 2vw + 12px, 40px); }
.progress__bar { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.progress__fill { position: absolute; inset: 0 auto 0 0; width: var(--progress, 20%); background: var(--accent); transition: width 360ms var(--ease); }
.progress__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.progress__steps li { display: grid; gap: 2px; }
.progress__steps li b { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--muted); font-variant-numeric: lining-nums; }
.progress__steps li[aria-current="step"] b, .progress__steps li.is-done b { color: var(--accent); }
.progress__steps li[aria-current="step"] { color: var(--text); font-weight: 600; }
.progress__steps .progress__name { display: none; }
@media (min-width: 640px) { .progress__steps .progress__name { display: block; } }
html:not(.js) .progress, html:not(.js) .calc__nav [data-back], html:not(.js) .calc__nav [data-next], html:not(.js) .estimate { display: none; }

.calc__form { display: grid; gap: var(--sp-5); }
.step { border: 0; padding: 0; min-width: 0; display: grid; gap: var(--sp-5); }
.step[hidden] { display: none; }
.step__legend { display: grid; gap: var(--sp-2); padding: 0; margin-bottom: var(--sp-5); }
.step__kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.step__title { font-size: var(--fs-h2); }
.step__title:focus { outline: none; box-shadow: none; }
.step__hint { color: var(--muted); }
html:not(.js) .step + .step { padding-top: var(--sp-6); border-top: 1px solid var(--line); }

.opts { display: grid; gap: var(--sp-3); }
@media (min-width: 600px) { .opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--sp-3); align-items: start; min-height: 64px; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.opt:hover { border-color: color-mix(in srgb, var(--text) 40%, var(--line)); }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.opt__icon { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--accent); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.opt__icon .icon { width: 22px; height: 22px; }
.opt__title { font-weight: 600; line-height: 1.35; padding-top: 1px; }
.opt__meta { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:has(input:checked) .opt__icon { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.opt:has(input:focus-visible) { box-shadow: var(--focus); }
.opt--check .opt__icon .icon { opacity: 0; transition: opacity var(--dur) var(--ease); }
.opt--check .opt__icon { width: 28px; height: 28px; margin-top: 1px; }
.opt--check .opt__icon .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.opt--check:has(input:checked) .opt__icon .icon { opacity: 1; }
.opt--check { grid-template-columns: 28px minmax(0, 1fr); }
.opt--compact { min-height: 52px; align-items: center; grid-template-columns: auto minmax(0, 1fr); padding: 12px var(--sp-4); }
.opt--compact .opt__icon { grid-row: auto; width: 32px; height: 32px; }
.opt--compact .opt__icon .icon { width: 18px; height: 18px; }

.area { display: grid; gap: var(--sp-5); padding: clamp(20px, 2vw + 12px, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.area__top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.area__value { display: flex; align-items: baseline; gap: 8px; }
.area__value .field__control { width: 120px; min-height: 60px; font-family: var(--font-head); font-size: 2rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; text-align: center; padding: 6px 10px; -moz-appearance: textfield; }
.area__value .field__control::-webkit-outer-spin-button, .area__value .field__control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area__unit { font-family: var(--font-head); font-size: 1.5rem; }
.range { --fill: 22%; width: 100%; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range:focus-visible { box-shadow: none; }
.range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
.range::-moz-range-track { height: 3px; background: var(--line); }
.range::-moz-range-progress { height: 3px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-sm); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.area__scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-top: -8px; }
.area__presets { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: var(--fs-sm); font-weight: 600; }
.chip:hover { border-color: var(--text); }
html:not(.js) .area__presets, html:not(.js) .range, html:not(.js) .area__scale { display: none; }

.calc__nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.calc__nav [data-next], .calc__nav [type="submit"] { margin-left: auto; }
.calc__nav [hidden] { display: none; }
.calc__error { flex: 1 1 100%; min-height: 0; color: #a3261b; font-size: var(--fs-sm); font-weight: 600; }
.calc__error:empty { display: none; }
@media (max-width: 479.98px) { .calc__nav .btn { flex: 1 1 0; padding-inline: 16px; } .calc__nav [data-next], .calc__nav [type="submit"] { margin-left: 0; } }

/* Живая оценка */
.estimate { display: grid; gap: var(--sp-4); padding: var(--sp-5); background: var(--text); color: var(--bg); border-radius: var(--radius); }
.estimate__title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(241 236 229 / 0.7); }
.estimate__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.estimate__big div { display: grid; gap: 2px; }
.estimate__big dt { font-size: var(--fs-xs); color: rgb(241 236 229 / 0.7); }
.estimate__big dd { font-family: var(--font-head); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; line-height: 1.15; white-space: nowrap; }
.estimate__list { display: grid; border-top: 1px solid rgb(241 236 229 / 0.18); font-size: var(--fs-sm); }
.estimate__list div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 8px 0; border-bottom: 1px solid rgb(241 236 229 / 0.12); }
.estimate__list dt { color: rgb(241 236 229 / 0.7); }
.estimate__list dd { font-weight: 600; text-align: right; }
.estimate__note { font-size: var(--fs-xs); color: rgb(241 236 229 / 0.7); }
.estimate__line { font-size: var(--fs-sm); color: rgb(241 236 229 / 0.85); }
@media (max-width: 1023.98px) {
  .estimate { grid-template-columns: minmax(0, 1fr); padding: var(--sp-4); gap: var(--sp-3); }
  .estimate__list, .estimate__note, .estimate__title { display: none; }
}
@media (min-width: 1024px) { .estimate { position: sticky; top: calc(var(--header-h) + 24px); padding: var(--sp-6); } .estimate__line { display: none; } .estimate__big { grid-template-columns: 1fr; gap: var(--sp-3); } .estimate__big div + div { padding-top: var(--sp-3); border-top: 1px solid rgb(241 236 229 / 0.18); } .estimate__big dd { font-size: 2.125rem; } }
@media (max-width: 1023.98px) { .calc__aside { order: -1; } }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.consent a { color: var(--text); }
.step__title { display: block; }
.modal .btn-row .btn { flex: 1 1 auto; }
@media (max-width: 479.98px) { .summary div { grid-template-columns: 104px minmax(0, 1fr); } }
.page-head__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.page-head__inner > * { max-width: 780px; }
.opt { align-content: start; }

/* Фото загружено (img стоит сразу за плиткой) — иконку заглушки прячем, подпись .ph__label оставляем.
   Если фото нет, script.js удаляет img, и иконка снова видна. */
:has(> .ph + img) > .ph > .icon,
:has(> .ph + img) > .ph > .ph__icon { display: none; }

/* Галерея из одного фото: без стрелок и миниатюр */
.gal__arrow[hidden] { display: none; }
.gal__thumbs:has(> :only-child) { display: none; }

/* Плашка концепта: ссылка назад на mallarion.site */
.demo-notice .container { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.demo-notice__back { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.demo-notice__back:hover { text-decoration-thickness: 2px; }
