/* ==== Портал Потолков: светлая тема по логотипу — белый, чёрный, золото ==== */
:root {
  color-scheme: light;
  --bg: #F7F6F3;
  --paper: #FFFFFF;
  --paper-2: #F1EFEB;
  --ink: #16130F;
  --ink-2: #5C554B;
  --line: #E3DFD8;
  --line-strong: #CFC8BD;
  --field-line: #8C8476;
  --gold: #A37C3A;
  --gold-2: #7E6029;
  --gold-3: #9A763A;
  --gold-light: #E9CF96;
  --on-gold: #15120D;
  --gold-fill: #D9B878;
  --btn-bg: #D9B878; --btn-bg-hover: #CFAC65; --btn-bg-active: #C4A058; --btn-ink: #15120D;
  --btn-line: #8C8476; --btn-line-hover: #16130F; --btn-tint: rgba(22, 19, 15, .06); --btn-tint-active: rgba(22, 19, 15, .11);
  --green: var(--gold);
  --green-d: var(--gold-2);
  --amber: var(--gold-light);
  --night: #16130F;
  --on-night: #F3EFE7;
  --on-night-2: #B5AC9E;
  --danger: #B3261E;
  --on-photo: #FFFFFF;
  --ink-on-gold-2: #3F382E;  /* второстепенный текст на золоте, 6.1:1 */
  --star: #A37C3A;           /* звёзды рейтинга на белой карточке, 4:1 */
  --ink-soft: #2E2923;       /* текст в карточках, 14.4:1 на белом */

  --f-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Montserrat", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --gut: clamp(16px, 4vw, 40px);
  /* Шкала отступов: 8 / 16 / 24 + колоночный и «заголовок → контент» */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px;
  --col-gap: clamp(32px, 6vw, 88px);
  --head-gap: clamp(32px, 4vw, 48px);
  --section-y: clamp(56px, 9vw, 120px);
  --maxw: 1180px;
  --r: .2rem;
  --ease: cubic-bezier(.23, 1, .32, 1);

  --shadow: 0 1px 2px rgba(22, 19, 15, .06), 0 18px 40px -22px rgba(22, 19, 15, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 88px; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--gold-3) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6471 var(--f-body); /* 17/28 */
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--gold); color: var(--on-gold); }
input, textarea { caret-color: var(--gold); }
::placeholder { color: #7A7266; opacity: 1; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: var(--r); }
.on-night :focus-visible, .night :focus-visible { outline-color: var(--amber); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.1429; } /* 56/64 */
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; } /* 40/48 */
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.3; letter-spacing: -.01em; }
p { text-wrap: pretty; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }
.measure { max-width: 66ch; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }

/* ==== Кнопки ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--f-body); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink);
  transition: transform .16s var(--ease), background-color .18s ease, color .18s ease, border-color .18s ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .btn:not(:disabled):hover { background: var(--btn-bg-hover); } }
.btn:not(:disabled):active { transform: scale(.96); background: var(--btn-bg-active); }
/* Кнопка с обводкой: тонкая тёплая рамка, без заливки; при наведении рамка темнеет и появляется лёгкий тон */
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--btn-line); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:not(:disabled):hover { background: var(--btn-tint); border-color: var(--btn-line-hover); } }
.btn.ghost:not(:disabled):active { background: var(--btn-tint-active); border-color: var(--btn-line-hover); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn svg { width: 20px; height: 20px; flex: none; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==== Шапка ==== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.hbar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.25rem/1 var(--f-head); }
.logo svg { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: .98rem; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--paper-2); } }
.nav a[aria-current="page"] { background: rgba(217, 184, 120, .28); color: var(--gold-2); }
.hphone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.15; }
.hphone b { font-weight: 600; font-size: 1.05rem; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .burger:hover { background: var(--paper-2); } }

/* Пункты меню по центру шапки: логотип слева, телефон справа */
@media (min-width: 1101px) {
  .hbar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hbar .logo { justify-self: start; }
  .nav { margin: 0; justify-self: center; }
  .hphone { justify-self: end; }
}

@media (max-width: 1100px) {
  .burger { display: inline-grid; place-items: center; }
  .hphone { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; margin: 0; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
}

/* ==== Hero: заглушка на всю ширину, текст по центру ==== */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: min(calc(100dvh - 73px), 860px); padding-block: clamp(56px, 9vw, 112px); color: #fff; overflow: hidden; background: #1b1612; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--night); }
.hero-media svg, .hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s linear; }
.hero-media video.is-playing { opacity: 1; }

.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(23, 17, 13, .44), rgba(23, 17, 13, .66)); }
.hero-copy { display: grid; justify-items: center; gap: 22px; text-align: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.1053; max-width: 20ch; } /* 76/84 */
.hero-copy .lead { color: #F3EEE6; max-width: 46ch; }
.hero-copy .cta-row { justify-content: center; margin-top: 8px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .hero .btn.ghost:hover { background: rgba(255, 255, 255, .22); border-color: #fff; color: #fff; } }
.hero .btn.ghost:active { background: rgba(255, 255, 255, .3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.proof li { display: grid; gap: 2px; padding: 0 clamp(18px, 3vw, 36px); text-align: center; color: #F3EEE6; }
.proof li + li { border-inline-start: 1px solid rgba(255, 255, 255, .35); }
.proof b { font: 600 1.125rem/1.2 var(--f-head); color: #fff; }
.proof span { font-size: .875rem; line-height: 1.4; color: #F3EEE6; }
@media (max-width: 640px) { .proof { gap: 14px 0; } .proof li { padding: 0 14px; } .proof li:nth-child(3) { flex-basis: 100%; border-inline-start: 0; } }

/* ==== Калькулятор: тёмно-зелёная подложка, белые плитки ==== */
.calc-section, .tinted { background: radial-gradient(120% 70% at 50% 0%, rgba(176, 138, 69, .14), transparent 62%), var(--paper-2); color: var(--ink); border-block: 1px solid var(--line); }
.calc-section .lead, .calc-empty, .calc-note { color: var(--ink-2); }
.calc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; color: var(--ink); }
.calc-empty { margin-top: 28px; }
.calc-note { font-size: .92rem; }
.brands-block { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 20px; }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.brand { background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s var(--ease); border-radius: var(--r); padding: 22px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 8px; animation: brand-in .28s var(--ease) both; }
.brand h4 { margin: 0; font: 600 1.15rem/1.2 var(--f-body); }
.brand .total { font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--f-head); font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--gold-2); letter-spacing: -.02em; }
@media (hover: hover) and (pointer: fine) { .brand:hover { border-color: var(--gold-3); } }
.brand .rate { color: var(--ink-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.brand p { color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.brand .btn { width: 100%; margin-top: 8px; }
@keyframes brand-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) { .calc-panel { grid-template-columns: 1fr; } }

/* ==== Формы ==== */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1rem/1.3 var(--f-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field-line); border-radius: var(--r);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { min-height: 112px; resize: vertical; }
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { border-color: var(--ink-2); } }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 69, .25); }
input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .88rem; min-height: 1.2em; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.form-ok { padding: 14px 16px; border-radius: var(--r); background: rgba(176, 138, 69, .12); color: var(--gold-2); font-weight: 500; }

.lead-form { display: grid; gap: 16px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .lead-form .row { grid-template-columns: 1fr; } }

/* ==== Список типов потолков ==== */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; transition: background-color .2s var(--ease); }
.row-link:hover { background: var(--paper); }
.row-link h3 { grid-column: 1; }
.row-link p { grid-column: 1; color: var(--ink-2); max-width: 52ch; font-size: 1rem; }
.row-link .meta { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; font-weight: 600; white-space: nowrap; }
.row-link .meta { color: var(--gold-2); }
.row-link .meta .ico { color: var(--gold); transition: transform .25s var(--ease); }
.row-link:hover .meta .ico { transform: translateX(4px); }
@media (max-width: 560px) { .row-link .meta { grid-column: 1; grid-row: auto; } }

/* ==== Портфолио ==== */
.works { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.work { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper); display: grid; }
.work svg, .work img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; background: var(--line); }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; color: #fff; font-size: .95rem; background: linear-gradient(to top, rgba(26, 20, 16, .78), transparent); }
.work figcaption b { font-weight: 600; display: block; }
.work:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.works:not(.all) { grid-auto-rows: 230px; }
.works:not(.all) .work svg, .works:not(.all) .work img { position: absolute; inset: 0; min-height: 0; }
.works:not(.all) .work { position: relative; }
.work:nth-child(2), .work:nth-child(3) { grid-column: span 2; }
.works.all .work:nth-child(n) { grid-column: span 2; grid-row: auto; }
.works.all .work:nth-child(1) svg, .works.all .work:nth-child(1) img { min-height: 0; }
.works.all .work img { aspect-ratio: 4 / 3; height: auto; min-height: 0; object-position: 50% 30%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); background: var(--line); }
@media (max-width: 760px) {
  .works, .works.all { grid-template-columns: 1fr 1fr; }
  .work:nth-child(1), .works.all .work:nth-child(n) { grid-column: span 2; grid-row: auto; }
  .work:nth-child(2), .work:nth-child(3) { grid-column: span 1; }
  .work:nth-child(1) svg { min-height: 260px; }
}
@media (max-width: 460px) { .works, .works.all { grid-template-columns: 1fr; } .work:nth-child(n) { grid-column: auto !important; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: transparent; font: 500 .95rem/1 var(--f-body); color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease); }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* ==== Доп. услуги ==== */

/* ==== Отзывы ==== */
.draft-note { font-size: .85rem; color: var(--gold-2); background: rgba(176, 138, 69, .12); padding: 8px 12px; border-radius: var(--r); width: fit-content; }

/* ==== FAQ ==== */

/* ==== Блок заявки ==== */
.contacts-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.contacts-list li { display: flex; gap: 12px; align-items: flex-start; }
.contacts-list .ico { color: var(--gold); margin-top: 3px; }

/* ==== Внутренние страницы ==== */
.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(1.55rem, 4.4vw, 3rem); margin-bottom: 18px; max-width: 18ch; }
.page-art { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.page-art svg { width: 100%; height: auto; }
.page-art img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 35%; }
.work-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 32px); display: grid; gap: 18px; }
.work-list h2 { font-size: 1.5rem; }
.work-list small { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.more-link { margin-top: 24px; }
@media (max-width: 880px) { .page-hero-grid { grid-template-columns: 1fr; } }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-hidden] { margin-inline: 6px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 6vw, 80px); }
.facts dl { margin: 0; display: grid; }
.facts dt { font-weight: 600; padding-top: 16px; }
.facts dd { margin: 0; padding: 4px 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; }
.ticks .ico { color: var(--gold); margin-top: 3px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font: 500 1.2rem/1.25 var(--f-head); padding-bottom: 14px; }
.price-table th, .price-table td { text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { border-bottom: 1px solid var(--line-strong); font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { color: var(--gold-2); }
.tablewrap { overflow-x: auto; }

/* ==== Подвал ==== */

/* ==== Мобильная панель звонка ==== */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .callbar .btn { min-height: 48px; padding: 0 10px; gap: 8px; font-size: .9375rem; white-space: nowrap; }
  body { padding-bottom: 72px; }
}

/* ==== Прочее ==== */
.center { text-align: center; }
.thanks { min-height: 60dvh; display: grid; place-items: center; text-align: center; }
.thanks .wrap { display: grid; gap: 20px; justify-items: center; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; max-width: 70ch; }
.map-ph { aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--paper-2); border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--ink-2); text-align: center; padding: 20px; }

/* ==== Мозаика «Какой потолок вам подойдёт» ==== */
.tile-art { position: absolute; inset: 0; }
.tile-art svg, .tile-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.photo-cap { position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(26, 20, 16, .86), rgba(26, 20, 16, .55) 55%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.photo-cap b { font: 500 1.1rem/1.25 var(--f-head); letter-spacing: -.01em; }
.photo-cap span { font-weight: 600; color: var(--gold-light); font-variant-numeric: tabular-nums; white-space: nowrap; }


/* ==== Страница потолка ==== */
.fit-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.fit-row li { display: flex; gap: 10px; }
.fit-row .ico { color: var(--gold); margin-top: 3px; }
.others { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 8px; }
.others .tile { grid-column: span 2; }
.others .tile:nth-child(-n+2) { grid-column: span 3; }
.calc-panel.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .fit-row { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .others .tile, .others .tile:nth-child(-n+2) { grid-column: span 1; }
  .others .tile:first-child { grid-column: span 2; }
  .others .tile .photo-cap { padding: 40px 12px 12px; }
  .others .tile .photo-cap b { font-size: 1.1rem; }
  .calc-panel.two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==== Шапка над первым экраном: стекло, серая над фото, белая после него ==== */
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero .site-header:not(.is-solid) { color: #fff; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.has-hero .site-header:not(.is-solid):not(.is-grey) { background: rgba(255, 255, 255, .10); border-bottom-color: rgba(255, 255, 255, .22); }
.has-hero .site-header.is-grey { background: rgba(48, 46, 43, .74); border-bottom-color: rgba(255, 255, 255, .12); }
.has-hero .site-header:not(.is-solid) .nav a[aria-current="page"] { background: rgba(217, 184, 120, .3); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .has-hero .site-header:not(.is-solid) .nav a:hover,
  .has-hero .site-header:not(.is-solid) .burger:hover { background: rgba(217, 184, 120, .3); color: #fff; }
}
.has-hero .site-header:not(.is-solid) .burger { color: #fff; }
.has-hero .site-header:not(.is-solid) :focus-visible { outline-color: var(--amber); }
.has-hero .site-header.is-solid { box-shadow: 0 10px 24px -18px rgba(22, 19, 15, .35); }
.has-hero .hero { min-height: min(100dvh, 940px); padding-top: calc(73px + clamp(56px, 9vw, 112px)); }
.has-hero .hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: -1; background: linear-gradient(to bottom, rgba(23, 17, 13, .45), transparent); }
@media (max-width: 1100px) { .has-hero .site-header:not(.is-solid) .nav { color: var(--ink); } }

/* ==== Логотип без фона: тёмная версия на белом, светлая на стекле и в подвале ==== */
.logo-img { display: block; height: 56px; width: auto; }
.site-header .logo-on-dark { display: none; }
.has-hero .site-header:not(.is-solid) .logo-on-light { display: none; }
.has-hero .site-header:not(.is-solid) .logo-on-dark { display: block; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .45)); }
@media (max-width: 720px) { .logo-img { height: 48px; } }

/* ==== Светлая тема: шапка белая, над видео стекло и серая ==== */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); color: var(--ink); }
.has-hero .site-header.is-solid { background: #fff; }
.has-hero .site-header:not(.is-solid):not(.is-grey) { background: rgba(255, 255, 255, .10); }
@media (max-width: 1100px) { .nav { background: var(--paper); } }

/* ==== Каталог-карусель на главной ==== */
/* Раскладка: заголовок слева, управление справа на одной базовой линии; лента выходит за поля, первая карточка на краю контента */
.cat {
  /* Семантические роли карусели, указывают на общие токены сайта */
  --cat-surface: var(--paper); --cat-text: var(--ink); --cat-text-2: var(--ink-2); --cat-price: var(--gold-2);
  --cat-ctrl-line: var(--field-line); --cat-ctrl-ink: var(--ink); --cat-rail: var(--line); --cat-thumb: var(--gold-2);
  --cat-shadow: 0 1px 2px rgba(22, 19, 15, .06), 0 0 0 1px rgba(22, 19, 15, .06);
  --cat-shadow-hover: 0 0 0 1px rgba(22, 19, 15, .08), var(--shadow);
  --cat-gap: 16px; --cat-edge: var(--gut); }
.cat-track {
  list-style: none; margin: 0; padding: 4px var(--cat-edge) 8px;
  display: flex; gap: var(--cat-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--cat-edge);
  scrollbar-width: none;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-card { flex: 0 0 clamp(248px, 27vw, 340px); scroll-snap-align: start; display: flex; }
.cat-link { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
.cat-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.cat-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 16px 18px; }
.cat-price { margin-top: auto; padding-top: 8px; }
.cat-progress { margin-top: 24px; height: 2px; background: var(--cat-rail); position: relative; overflow: hidden; }
.cat-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; transform-origin: left center; transform: scaleX(.2); background: var(--cat-thumb); }
@media (max-width: 760px) {
  .cat-card { flex-basis: 78%; }
}
/* Типографика карточек: Montserrat для названия, Montserrat для текста и цены. Три роли, три явно разных размера. */
.cat-body h3 { font: 500 1.125rem/1.25 var(--f-head); letter-spacing: -.01em; text-wrap: balance; }
.cat-short { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cat-price { font: 600 1.0625rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Цвета карусели только через роли */
.cat-link { background: var(--cat-surface); color: var(--cat-text); }
.cat-short { color: var(--cat-text-2); }
.cat-price { color: var(--cat-price); }
/* Поверхности и состояния карусели */
.cat-link { border-radius: var(--r); overflow: hidden; border: 1px solid transparent;
  box-shadow: var(--cat-shadow); }
.cat-pic::after { content: ""; position: absolute; inset: 0; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; pointer-events: none; }
.cat-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: var(--r); border: 1.5px solid var(--cat-ctrl-line); background: var(--cat-surface); color: var(--cat-ctrl-ink);
  -webkit-tap-highlight-color: transparent; }
.cat-btn .ico { width: 20px; height: 20px; stroke-width: 2; }
.cat-btn[aria-disabled="true"] { opacity: .38; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .cat-btn:not([aria-disabled="true"]):hover { background: var(--cat-ctrl-ink); color: var(--cat-surface); border-color: var(--cat-ctrl-ink); }
  .cat-link:hover { box-shadow: var(--cat-shadow-hover); }
}
.cat-btn:not([aria-disabled="true"]):active { transform: scale(.96); }
/* Движение карусели: только отклик на действие, без входных анимаций */
.cat-btn { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease, transform 160ms var(--ease); }
.cat-link { transition: box-shadow 200ms ease; }
.cat-pic img { transition: transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cat-link:hover .cat-pic img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-btn:not([aria-disabled="true"]):active { transform: none; }
  .cat-pic img { transition: none; }
}
/* Доступность: ссылка «Все потолки» с полем нажатия 44px, фокус карточки не обрезается лентой */
.cat-link:focus-visible { outline-offset: 2px; }
/* ==== Карусель: стрелки поверх ленты по центру фото, «Все потолки» кнопкой под лентой ==== */
.cat { --cat-card: clamp(248px, 27vw, 340px); --cat-arrow: 56px; }
.cat-card { flex-basis: var(--cat-card); }
.cat-stage { position: relative; }
.cat-btn { position: absolute; z-index: 2; top: calc(4px + var(--cat-card) * .625 - var(--cat-arrow) / 2);
  width: var(--cat-arrow); height: var(--cat-arrow); border-radius: 50%; border: 1px solid transparent;
  background: var(--cat-surface); color: var(--cat-ctrl-ink);
  box-shadow: 0 0 0 1px rgba(22, 19, 15, .08), 0 8px 24px -8px rgba(22, 19, 15, .35); }
.cat-btn.prev { inset-inline-start: max(8px, calc(var(--gut) - var(--cat-arrow) / 2)); }
.cat-btn.next { inset-inline-end: max(8px, calc(var(--gut) - var(--cat-arrow) / 2)); }
.cat-btn .ico { width: 24px; height: 24px; }
.cat-btn[aria-disabled="true"] { opacity: 0; pointer-events: none; }
.cat-btn[aria-disabled="true"]:focus-visible { opacity: .38; }
@media (hover: hover) and (pointer: fine) {
  .cat-btn:not([aria-disabled="true"]):hover { background: var(--cat-ctrl-ink); color: var(--cat-surface); border-color: var(--cat-ctrl-ink); }
}
/* «Все потолки» справа от заголовка, по центру высоты блока заголовка, правый край — край сетки */
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--col-gap); margin-bottom: var(--head-gap); }
.cat-more { flex: none; margin: 0; }
@media (max-width: 760px) {
  .cat { --cat-card: calc((100vw - 2 * var(--gut)) * .78); --cat-arrow: 44px; }
  .cat-head { flex-direction: column; align-items: flex-start; }
}

/* ==== Замер бесплатно / Свои мастера: раскладка ==== */
.ms-sec { position: relative; padding-block: 0 clamp(64px, 9vw, 112px); }
.ms-ruler { height: 52px; overflow: hidden; }
.ms-ruler .claims-ruler { display: block; width: 3000px; max-width: none; height: 52px; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(48px, 7vw, 88px); }
.ms-main, .ms-side { display: grid; gap: 18px; align-content: start; }
.ms-side { padding-inline-start: clamp(24px, 4vw, 56px); border-inline-start: 1px solid var(--line-strong); padding-top: 10px; }
.ms-main .btn { width: fit-content; margin-top: 8px; }
.ms-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 4px; }
@media (max-width: 860px) {
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-side { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line-strong); padding-top: 32px; }
}

/* ==== Наши работы: гармошка ==== */
.wk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.wk-head .section-head { margin: 0; }
.acc { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; height: clamp(380px, 44vw, 540px); }
.acc-item { position: relative; flex: 1 1 0; min-width: 56px; overflow: hidden; }
.acc-item[data-open] { flex-grow: 6; }
.acc-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-btn { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: start; }
.acc-title { position: absolute; inset-inline-start: 0; inset-block-end: 0; padding: 20px 18px; }
.acc-item:not([data-open]) .acc-title { writing-mode: vertical-rl; transform: rotate(180deg); inset-block: auto 0; padding: 18px 16px; white-space: nowrap; }
.acc-item[data-open] .acc-title { padding-bottom: 64px; max-width: 40ch; }
.acc-panel { position: absolute; z-index: 2; inset-inline: 0; inset-block-end: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 0 18px 14px; pointer-events: none; }
.acc-panel a { pointer-events: auto; }
.acc-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 760px) {
  .acc { flex-direction: column; height: auto; }
  .acc-item { flex: none; height: 64px; min-width: 0; }
  .acc-item[data-open] { height: min(72vw, 360px); }
  .acc-item:not([data-open]) .acc-title { writing-mode: horizontal-tb; transform: none; padding: 0 16px; height: 64px; display: flex; align-items: center; }
  .wk-head .btn { width: 100%; }
}
/* Типографика: замер и мастера */
.ms-main h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.ms-side .ms-h3 { font-size: clamp(1.35rem, 2.1vw, 1.65rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.ms-main > p { font-size: 1.125rem; line-height: 1.6; max-width: 52ch; }
.ms-side > p { font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.ms-main .ticks, .ms-side .ticks { font-size: 1rem; line-height: 1.45; }
.ms-link { font: 600 1rem/1.2 var(--f-body); text-underline-position: from-font; text-decoration-thickness: from-font; text-underline-offset: .2em; }
.ms-link .ico { width: 18px; height: 18px; }
/* Типографика: гармошка работ */
.acc-title { font: 600 .9375rem/1.3 var(--f-body); }
.acc-item[data-open] .acc-title { font: 500 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--f-head); letter-spacing: -.01em; text-wrap: balance; }
.acc-kind { font: 500 .875rem/1.3 var(--f-body); }
.acc-link { font: 600 1rem/1.2 var(--f-body); text-underline-position: from-font; text-decoration-thickness: from-font; text-underline-offset: .2em; white-space: nowrap; }
.acc-link .ico { width: 18px; height: 18px; }
/* Цвет: семантические роли блоков */
.ms-sec { --ms-text: var(--ink); --ms-text-2: var(--ink-2); --ms-rule: var(--line-strong); --ms-ruler: var(--gold-3); --ms-icon: var(--gold); color: var(--ms-text); }
.ms-ruler { color: var(--ms-ruler); }
.ms-side { border-color: var(--ms-rule); }
.ms-main > p, .ms-side > p { color: var(--ms-text-2); }
.ms-sec .ticks .ico { color: var(--ms-icon); }
.ms-link { color: var(--ms-text); }
.acc {
  --acc-on-photo: var(--on-photo); --acc-kind: var(--gold-light);
  --acc-scrim-strong: rgba(22, 19, 15, .82); --acc-scrim-text: rgba(22, 19, 15, .72); --acc-scrim-dim: rgba(22, 19, 15, .62);
}
.acc-item::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--acc-scrim-strong) 0, var(--acc-scrim-text) 140px, transparent 62%); }
.acc-item:not([data-open])::after { background: linear-gradient(to top, var(--acc-scrim-strong) 0, var(--acc-scrim-dim) 280px, rgba(22, 19, 15, .3) 100%); }
.acc-btn, .acc-title { color: var(--acc-on-photo); }
.acc-kind { color: var(--acc-kind); }
.acc-link { color: var(--acc-on-photo); }
.acc-btn { z-index: 3; } .acc-panel { z-index: 4; }
/* Поверхности и состояния: гармошка и ссылки */
.acc-item { border-radius: var(--r); background: var(--paper-2); }
.acc-item > img { outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.acc-btn { -webkit-tap-highlight-color: transparent; }
.acc-btn:focus-visible { outline: 2px solid var(--acc-on-photo); outline-offset: -6px; border-radius: var(--r); }
.acc-link .ico, .ms-link .ico { stroke-width: 2; transition: transform 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .acc-link:hover, .ms-link:hover { text-decoration-color: currentColor; }
  .acc-link:hover .ico, .ms-link:hover .ico { transform: translateX(3px); }
  .ms-link:hover { color: var(--gold-2); }
}
.acc-link:active, .ms-link:active { transform: scale(.96); }
.acc-link, .ms-link { transition: color 150ms ease, transform 150ms var(--ease); }
.acc-link:focus-visible { outline-color: var(--acc-on-photo); }
/* Движение гармошки: раскрытие ease-in-out (элемент меняет форму на месте), подпись появляется после раскрытия */
.acc { --acc-ease: cubic-bezier(.77, 0, .175, 1); }
.acc-item { transition: flex-grow 420ms var(--acc-ease), height 380ms var(--acc-ease); }
.acc-panel:not([hidden]) { transition: opacity 220ms ease-out 160ms, transform 220ms ease-out 160ms; }
@starting-style { .acc-panel:not([hidden]) { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .acc-item, .acc-panel:not([hidden]) { transition: none; }
  .acc-link .ico, .ms-link .ico { transition: none; }
  .acc-link:active, .ms-link:active { transform: none; }
  @media (hover: hover) and (pointer: fine) { .acc-link:hover .ico, .ms-link:hover .ico { transform: none; } }
}
/* Доступность гармошки: кнопки внутри заголовков (шаблон APG), фокус с тёмной подложкой виден на любом фото */
.acc-h { margin: 0; font: inherit; }
.acc-btn:focus-visible { outline: 2px solid var(--acc-on-photo); outline-offset: -8px; box-shadow: inset 0 0 0 6px var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==== Нижняя часть главной: раскладка ==== */
/* Заодно сделаем: заголовок слева, 4 услуги сеткой 2×2 справа */

/* Отзывы: ссылки на одной линии с заголовком; ведущий отзыв слева, четыре компактных справа 2×2 */


/* Заявка: одна панель, линейка по верхнему краю, контакты слева, форма справа */
/* Типографика нижних разделов: Montserrat для заголовков, Montserrat для всего остального */
.ex-name { font: 500 1.125rem/1.25 var(--f-head); letter-spacing: -.01em; }
.ex-short { font-size: .9375rem; line-height: 1.5; text-wrap: pretty; }
.faq-call { font: 600 1.25rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.faq-hours { font-size: .9375rem; }
.contacts-list { font-size: 1rem; line-height: 1.5; }
.contacts-list .num { font: 600 1.125rem/1.3 var(--f-body); font-variant-numeric: tabular-nums; }
.cta-form input, .cta-form textarea { font-size: 1rem; }
/* Цвет нижних разделов: только семантические роли поверх общих токенов */
.ex-sec, .faq-sec, .cta-sec {
  --sec-text: var(--ink); --sec-text-2: var(--ink-2); --sec-accent: var(--gold-2); --sec-mark: var(--gold);
  --sec-rule: var(--line); --sec-rule-strong: var(--line-strong); --sec-surface: var(--paper); --sec-ruler: var(--gold-3);
}
.ex-name, .faq-call { color: var(--sec-text); }
.ex-short, .faq-hours { color: var(--sec-text-2); }
.ex-link .ico { color: var(--sec-accent); }
.faq-call .ico, .contacts-list .ico { color: var(--sec-mark); }
/* Поверхности и состояния нижних разделов */
.ex-link .ico { stroke-width: 2; }
@media (hover: hover) and (pointer: fine) {
  .ex-link:hover .ex-name, .faq-call:hover { color: var(--sec-accent); }
  .ex-link:hover .ico { transform: translateX(4px); }
}
.ex-link .ico { transition: transform 150ms var(--ease); }
.ex-name, .faq-call { transition: color 150ms ease; }
@media (prefers-reduced-motion: reduce) {
  .ex-link .ico, .ex-name, .faq-call { transition: none; }
  @media (hover: hover) and (pointer: fine) { .ex-link:hover .ico { transform: none; } }
}

/* ==== Отзывы: факты о компании слева, карусель на фото справа ==== */

  padding: clamp(28px, 4vw, 48px) 18%; overscroll-behavior-x: contain; }
  background: rgba(22, 19, 15, .58); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  background: rgba(22, 19, 15, .4); border: 1.5px solid rgba(255, 255, 255, .55); transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease, transform 160ms var(--ease); -webkit-tap-highlight-color: transparent; }

/* ==== Заодно сделаем: вертикальный список в белой панели на подложке, как у калькулятора ==== */
.ex-sec .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.ex-list { list-style: none; margin: 0; padding: 0 var(--ex-pad); background: var(--paper); border-radius: var(--r); }
.ex-list li + li { border-top: 1px solid var(--sec-rule); }
.ex-link { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; align-items: center; gap: 6px clamp(16px, 3vw, 40px); padding: 22px 0; text-decoration: none; }
.ex-link .ico { justify-self: end; }
@media (max-width: 700px) {
  .ex-link { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; }
  .ex-link .ex-name { grid-column: 1; grid-row: 1; }
  .ex-link .ex-short { grid-column: 1; grid-row: 2; }
  .ex-link .ico { grid-column: 2; grid-row: 1 / span 2; }
}
/* Типографика списка услуг: название — Montserrat 500, описание — Montserrat 400 */
.ex-sec .ex-name { font: 500 clamp(1.125rem, 1.6vw, 1.3rem)/1.25 var(--f-head); letter-spacing: -.01em; text-wrap: balance; }
.ex-sec .ex-short { font: 400 .9375rem/1.55 var(--f-body); max-width: 52ch; text-wrap: pretty; }
/* Цвет списка услуг: панель и подзаголовок через роли */
.ex-sec { --ex-panel: var(--paper); --ex-pad: clamp(20px, 3vw, 32px); }
.ex-list { background: var(--ex-panel); }
.ex-sec .lead { color: var(--sec-text-2); }
/* Поверхность и состояния списка услуг: панель как у калькулятора; строка подсвечивается тоном, стрелка сдвигается */
.ex-list { border: 1px solid var(--line); }
.ex-list li { margin-inline: calc(-1 * var(--ex-pad)); }
.ex-link { padding-inline: var(--ex-pad); transition: background-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.ex-list li:first-child .ex-link { border-radius: var(--r) var(--r) 0 0; }
.ex-list li:last-child .ex-link { border-radius: 0 0 var(--r) var(--r); }
@media (hover: hover) and (pointer: fine) { .ex-link:hover { background: var(--btn-tint); } }
.ex-link:active { background: var(--btn-tint-active); }
/* Доступность списка услуг: кольцо фокуса внутри строки, чтобы не заходило на соседние строки и край панели */
.ex-link:focus-visible { outline-offset: -3px; }

/* ==== Вызовите замерщика: подложка как у калькулятора, слева заголовок и телефон, справа форма в белой панели ==== */
.cta-sec { --cta-pad: clamp(20px, 3vw, 36px); }
.cta-form { padding: var(--cta-pad); }
/* Типографика заявки: заголовок → подзаголовок → «позвонить» (крупный номер) → мелкая справка */
.cta-form .field label { font: 600 .9375rem/1.3 var(--f-body); }
.cta-form .check { font-size: .875rem; line-height: 1.5; }
/* Цвет заявки через роли раздела */
.cta-sec { --cta-panel: var(--paper); --cta-mark: var(--gold-2); }
.cta-form { background: var(--cta-panel); }
/* Поверхность и состояния заявки: панель формы как у калькулятора; телефон-ссылка с откликом */
.cta-form { border: 1px solid var(--line); border-radius: var(--r); }
.cta-form .btn[type=submit] { min-height: 56px; width: 100%; }
/* Движение заявки: поля и телефон меняют только цвет за 150ms; при «уменьшить движение» кнопка не сжимается */

/* ==== Карточка заявки: шапка, ровные поля, одна сетка иконок ==== */
/* Поля не растягиваются по высоте соседа, пустые строки ошибок не добавляют отступов */
.field { align-content: start; }
.field .err:empty { min-height: 0; margin-top: -6px; }
.lead-form > .err:empty { min-height: 0; margin-top: -16px; }
.lead-form .row { align-items: start; }

.cta-form { position: relative; padding: clamp(24px, 3.4vw, 40px); }
.cta-form-head { display: grid; gap: 6px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.cta-form-t { font: 500 clamp(1.3rem, 2vw, 1.55rem)/1.2 var(--f-head); letter-spacing: -.01em; color: var(--sec-text); }
.cta-form-head p { font-size: .9375rem; line-height: 1.5; color: var(--sec-text-2); }
.cta-form .lead-form { gap: 20px; }
.cta-form .lead-form .row { gap: 20px; }
.cta-form .field { gap: 8px; }
.cta-form .field label { color: var(--sec-text); }
.cta-form .req { color: var(--gold-2); }
.cta-form input[type=text], .cta-form input[type=tel], .cta-form textarea { background: var(--bg); border-width: 1px; }
.cta-form input[type=text]:focus-visible, .cta-form input[type=tel]:focus-visible, .cta-form textarea:focus-visible { background: var(--paper); }
.cta-form textarea { min-height: 120px; }
.cta-form .check { align-items: center; gap: 12px; }
.cta-form .check input { width: 20px; height: 20px; margin: 0; }
.cta-form .check a { color: var(--sec-text); text-underline-offset: .2em; }

/* Иконки слева: один размер и одна колонка, номер выделен размером текста, а не иконкой */
/* Подсказка в полях на тёплом фоне поля: темнее, чтобы держать 4.5:1 */
.cta-sec { --cta-placeholder: #736B5F; }
.cta-form ::placeholder { color: var(--cta-placeholder); }

/* ==== Сетка и ритм: единые отступы, шаг «заголовок → контент», базовая сетка 4px ==== */
/* Межколоночные отступы: 16 внутри групп, 24 в строках списков, колоночный между колонками */
.calc-panel { gap: var(--sp-2); }
.cta-form .lead-form { gap: var(--sp-3); }
.cta-form .lead-form .row { gap: var(--sp-2); }
.ex-link { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) auto; column-gap: var(--sp-3); }
.ms-grid, .ct-grid { column-gap: var(--col-gap); }
@media (max-width: 960px) { .ms-grid, .ct-grid { row-gap: var(--head-gap); } }

/* Один шаг от заголовка раздела до контента */
.section-head, .ex-sec .section-head { margin-bottom: var(--head-gap); }
.wk-head { margin-bottom: var(--head-gap); }
.cat-head .section-head, .wk-head .section-head { margin-bottom: 0; }

/* Блок замера: линейка входит в общий верхний отступ раздела */
.ms-sec { padding-bottom: var(--section-y); }
.ms-grid { padding-top: max(var(--sp-1), calc(var(--section-y) - 52px)); }

/* Базовая сетка 4px: высота строки кратна 4 */
.lead, .section-head .lead { line-height: 1.6; }                 /* 20/32 */
.cat-short, .ex-sec .ex-short, .cta-form-head p { line-height: 1.6; }   /* 15/24 */
.cat-body h3, .ex-sec .ex-name { line-height: 1.3333; }          /* 18/24 */
.field label, .cta-form .field label { font-size: .9375rem; line-height: 1.6; }   /* 15/24 */
.ms-main > p { line-height: 1.5556; }                            /* 18/28 */
.ms-side > p { line-height: 1.5; }                               /* 16/24 */

.tel-box { position: relative; display: flex; align-items: stretch; }
.tel-cc { position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; align-items: center; gap: 8px; padding-inline: 14px 0; pointer-events: none; }
.tel-box input { padding-inline-start: 72px; }
@media (max-width: 880px) {
}
/* Заявка v3: типографика. Заголовок карточки = заголовок раздела; подписи полей мелкие, внутри поля, как в примере */
.cta-form .cta-form-t { font: 500 clamp(1.6rem, 2.6vw, 2.125rem)/1.1765 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }  /* 34/40 */
.cta-form-head p { font-size: 1rem; line-height: 1.5; max-width: 44ch; text-wrap: pretty; }                                          /* 16/24 */
.cta-form .field label { font: 500 .8125rem/1.2308 var(--f-body); }                                                                  /* 13/16 */
.cta-form input[type=text], .cta-form input[type=tel], .cta-form textarea { font: 400 1rem/1.5 var(--f-body); }                     /* 16/24 */
.tel-cc, .cta-form input[type=tel] { font-variant-numeric: tabular-nums; }
.tel-cc span { font: 500 1rem/1.5 var(--f-body); }
.cta-form .check { font-size: .8125rem; line-height: 1.5385; }                                                                       /* 13/20 */
/* Заявка v3: цвет через роли */
.cta-sec { --cta-field: var(--bg); --cta-label: var(--ink-2); --cta-frame: var(--gold-light); --cta-photo-line: var(--line-strong); }
.cta-form .field label { color: var(--cta-label); }
.tel-cc span { color: var(--sec-text); }
/* Заявка v3: поверхности */
/* Фото в паспарту: внешняя тонкая линия + золотистая рамка внутри с отступом 14px */

/* Поля как в примере: подпись мелко внутри поля сверху, ввод ниже */
.cta-form .field { position: relative; display: block; }
.cta-form .field > label { position: absolute; z-index: 1; inset-inline-start: 15px; top: 9px; pointer-events: none; }
.cta-form input[type=text], .cta-form input[type=tel], .cta-form textarea { min-height: 60px; padding: 27px 14px 7px; background: var(--cta-field); }
.cta-form textarea { min-height: 120px; padding-top: 30px; }
.cta-form .field .err:not(:empty) { margin-top: 6px; }
.cta-form .field .err:empty { margin-top: 0; }

/* Телефон: флаг и +7 на одной линии с вводом */
.tel-cc { align-items: flex-end; padding-block-end: 7px; padding-inline-start: 15px; }
.tel-cc .flag { width: 21px; height: 15px; margin-block-end: 4px; border-radius: 2px; flex: none; }
.cta-form .tel-box input { padding-inline-start: 74px; }

/* Кнопка и согласие под ней, как в примере */
.cta-form .btn[type=submit] { min-height: 56px; width: 100%; margin-top: 4px; }
.cta-form .lead-form .check { margin-top: -8px; align-items: flex-start; }
.cta-form .check input { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .btn:not(:disabled):active { transform: none; } }
/* Контакты: две колонки (контакты и карта) */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 880px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==== Заявка v4: фото — подложка раздела, слева текст, справа компактная карточка ==== */
.cta-bg { position: relative; isolation: isolate; color: #fff; padding-block: clamp(48px, 5.6vw, 72px);
  background: linear-gradient(90deg, rgba(22, 19, 15, .84) 0%, rgba(22, 19, 15, .66) 55%, rgba(22, 19, 15, .5) 100%),
              url("img/cta-bg.webp") center / cover no-repeat, var(--night); }
@media (max-width: 880px) {
  .cta-bg { background: linear-gradient(180deg, rgba(22, 19, 15, .8) 0%, rgba(22, 19, 15, .7) 100%), url("img/cta-bg-800.webp") center / cover no-repeat, var(--night); }
}
.cta-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--col-gap); align-items: center; }
.cta-left { display: grid; gap: 16px; align-content: center; }
.cta-left h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); text-wrap: balance; }
.cta-left .lead { color: #fff; max-width: 36ch; font-size: clamp(1.05rem, 1.4vw, 1.15rem); line-height: 1.55; text-wrap: pretty; }
.cta-call { display: grid; gap: 10px; margin-top: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .35); }
.cta-call-k { font: 500 .9375rem/1.4 var(--f-body); color: #fff; }
.cta-phone { display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; text-decoration: none; color: #fff;
  font: 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.15 var(--f-head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: var(--r); transition: color 150ms ease; }
.cta-phone .ico { width: 24px; height: 24px; flex: none; stroke-width: 2; color: var(--gold-light); }
@media (hover: hover) and (pointer: fine) { .cta-phone:hover { color: var(--gold-light); } }
.cta-meta { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font: 400 .9375rem/1.5 var(--f-body); color: #fff; }
.cta-meta li { display: flex; gap: 12px; align-items: center; }
.cta-meta .ico { width: 20px; height: 20px; flex: none; stroke-width: 1.8; color: var(--gold-light); }
.cta-bg :focus-visible { outline-color: var(--on-photo); }
@media (max-width: 880px) { .cta-split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-items: start; } }

/* Карточка компактнее: меньше отступы, ниже поля, короче заголовок */
.cta-form { width: 100%; padding: clamp(18px, 2.2vw, 26px); border-top-width: 3px; box-shadow: 0 18px 48px -16px rgba(0, 0, 0, .5); }
.cta-form-head { padding-bottom: 14px; margin-bottom: 16px; gap: 4px; }
.cta-form .cta-form-t { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; }  /* 24/30 → 4px-сетка: 24/32 */
.cta-form-head p { font-size: .9375rem; line-height: 1.6; }
.cta-form .lead-form { gap: var(--sp-2); }
.cta-form input[type=text], .cta-form input[type=tel] { min-height: 56px; padding-block: 25px 6px; }
.cta-form textarea { min-height: 88px; padding-top: 27px; }
.cta-form .btn[type=submit] { min-height: 52px; margin-top: 0; }
.cta-form .lead-form .check { margin-top: -4px; }
/* Карточка заявки: без золотой полосы сверху, скругление мягче (поля внутри остаются 0.2rem) */
.cta-sec { --r-card: 20px; }
.cta-form { border: 1px solid var(--line); border-radius: var(--r-card); }

/* ==== Отзывы v2: раскладка по референсу ==== */
.rv2 { --rv-card: calc((100% - 3 * var(--sp-3)) / 4); --rv-arrow: 56px; }
.rv2-head { display: grid; justify-items: start; gap: var(--sp-2); text-align: start; margin-bottom: var(--head-gap); }
.rv2-links { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 20px; }
.rv2-links a { display: inline-flex; align-items: center; min-height: 44px; }
.rv2-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.rv2-track { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; gap: var(--sp-3); overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; align-items: stretch; }
.rv2-track::-webkit-scrollbar { display: none; }
.rv2-item { flex: 0 0 var(--rv-card); scroll-snap-align: start; display: flex; }
.rv2-fig { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 22px; width: 100%; }
.rv2-who { display: flex; align-items: center; gap: 12px; padding-inline-start: 18px; }
/* Отзывы v2: типографика. Заголовок → ссылки → подпись слева → текст облачка → имя → место */
.rv2-head h2 { text-wrap: balance; }   /* размер и межбуквенный как у остальных заголовков разделов */          /* 48/56 */
.rv2-links a { font: 600 1rem/1.5 var(--f-body); text-underline-position: from-font; text-decoration-thickness: from-font; text-underline-offset: .2em; }
.rv2-bubble p { margin: 0; font: 400 .9375rem/1.6 var(--f-body); text-wrap: pretty; }                                          /* 15/24 */
.rv2-id { display: grid; }
.rv2-id cite { font: 600 1rem/1.5 var(--f-body); font-style: normal; }                                                         /* 16/24 */
.rv2-place { font: 400 .8125rem/1.5385 var(--f-body); }                                                                        /* 13/20 */
.rv2-ava { font: 600 1.125rem/1 var(--f-head); }
/* Отзывы v2: цвет. Раздел в мягком золоте, карточки белые, текст тёмный */
.rv2 { --rv-text: var(--ink); --rv-text-2: var(--ink-on-gold-2); --rv-card-bg: var(--paper); --rv-card-text: var(--ink-soft);
  --rv-ava-bg: var(--ink); --rv-ava-text: var(--gold-light);
  color: var(--rv-text); }
.rv2-head h2, .rv2-links a, .rv2-id cite { color: var(--rv-text); }
.rv2-place { color: var(--rv-text-2); }
.rv2-bubble { background: var(--rv-card-bg); color: var(--rv-card-text); }
.rv2-ava { background: var(--rv-ava-bg); color: var(--rv-ava-text); }
.rv2 :focus-visible { outline-color: var(--ink); }
.rv2-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.rv2-stars svg { width: 18px; height: 18px; fill: var(--star); }
.rv2-stars svg.off { fill: var(--line-strong); }
/* Отзывы v2: поверхности. Облачко с хвостиком внизу слева, круглый аватар, стрелки без рамки */
.rv2 { --rv-radius: var(--r); }
.rv2-bubble { position: relative; margin: 0; padding: 22px 24px 24px; border-radius: var(--rv-radius); border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(22, 19, 15, .06), 0 14px 32px -20px rgba(22, 19, 15, .45); }
.rv2-bubble::after { content: ""; position: absolute; inset-inline-start: 24px; bottom: -11px; width: 22px; height: 12px;
  background: var(--rv-card-bg); clip-path: polygon(0 0, 100% 0, 0 100%); }
.rv2-ava { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; }
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Отзывы v2: движение. Стрелки отвечают за 150ms, ползунок идёт за прокруткой без своей анимации */

/* ==== Ленты каталога и отзывов тянутся мышью ==== */
@media (hover: hover) and (pointer: fine) {
  .cat-track, .rv2-track { cursor: grab; }
}
.cat-track.is-dragging, .rv2-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.cat-track.is-dragging *, .rv2-track.is-dragging * { pointer-events: none; }

/* ==== Карточки производителей: логотип в круге справа от названия ==== */
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.brand-logo { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22, 19, 15, .05); overflow: hidden; }
.brand-logo img { width: 42px; height: auto; max-height: 30px; object-fit: contain; }
.brand-logo-text { font: 600 .9375rem/1 var(--f-head); color: var(--gold-2); background: var(--paper-2); letter-spacing: .02em; }

/* ==== Частые вопросы v3: заголовок и контакты слева, список с линиями справа ==== */
.faq-sec { --faq-line: var(--line-strong); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: start; }
.faq-head { display: grid; justify-items: start; align-content: start; gap: var(--sp-2); }
@media (min-width: 961px) { .faq-head { position: sticky; top: 104px; } }
@media (max-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--head-gap); } }
.faq-head h2 { font: 600 clamp(1.75rem, 3.2vw, 2.75rem)/1.1818 var(--f-body); letter-spacing: -.02em; color: var(--sec-text); hyphens: none; }   /* 44/52 */
.faq-head h2 span { display: block; white-space: nowrap; }
.faq-lead { max-width: 34ch; font-size: 1rem; line-height: 1.5; color: var(--sec-text-2); }
.faq details { border-bottom: 1px solid var(--faq-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: 64px; padding-block: 16px; font: 600 1.0625rem/1.4118 var(--f-body); color: var(--sec-text); -webkit-tap-highlight-color: transparent; }  /* 17/24 */
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; order: 2; flex: none; width: 24px; height: 24px; color: var(--sec-text);
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }
.faq details[open] summary::before { background-size: 14px 2px, 2px 0; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r); }
.faq-a p { margin: 0; padding: 0 40px 24px 0; max-width: 62ch; font-size: 1rem; line-height: 1.5; color: var(--sec-text-2); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--sec-accent); } .faq summary:hover::before { color: var(--sec-accent); } }
.faq summary, .faq summary::before { transition: color 150ms ease; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: color 150ms ease, background-size 200ms var(--ease); }
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 240ms var(--ease), content-visibility 240ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
  .faq details[open] .faq-a { transition: opacity 200ms ease-out 60ms; }
  @starting-style { .faq details[open] .faq-a { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .faq summary, .faq summary::before { transition: none; } }

/* Телефон под вопросами: значок слева от номера, одной строкой по центру */
.faq-call { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; min-height: 44px; width: fit-content; text-decoration: none; }
.faq-call .ico { width: 22px; height: 22px; flex: none; }
.faq-call .num { white-space: nowrap; }


/* ==== Ритм фонов: белый и бежевый по очереди, золото только в акцентах ====
   Разделы в <main> красятся по порядку, тёмные (первый экран и заявка) пропускаются.
   Главная: белый, бежевый, белый… Внутренние страницы начинаются с бежевой шапки, дальше белый, бежевый… */
main > section:nth-child(odd of :not(.hero, .cta-sec, .thanks)) { background: var(--paper); border-block: 0; }
main > section:nth-child(even of :not(.hero, .cta-sec, .thanks)) { background: var(--paper-2); border-block: 1px solid var(--line); }
main:has(> .page-hero) > section:nth-child(odd of :not(.hero, .cta-sec, .thanks)) { background: var(--paper-2); border-block: 1px solid var(--line); }
main:has(> .page-hero) > section:nth-child(even of :not(.hero, .cta-sec, .thanks)) { background: var(--paper); border-block: 0; }
/* Список допуслуг: панель контрастна фону раздела */
main > .ex-sec:nth-child(odd of :not(.hero, .cta-sec, .thanks)) { --ex-panel: var(--paper-2); }
main > .ex-sec:nth-child(even of :not(.hero, .cta-sec, .thanks)) { --ex-panel: var(--paper); }

/* ==== Отзывы v3: без левой колонки, 4 карточки в сетке сайта, стрелки как в каталоге ==== */
/* Лента между стрелок: стрелки стоят слева и справа от отзывов, не на карточках */
.rv2-stage { position: relative; width: min(100% - 2 * (var(--rv-arrow) + 24px), var(--maxw)); margin-inline: auto; }
@media (max-width: 1100px) { .rv2 { --rv-card: calc((100% - 2 * var(--sp-3)) / 3); } }
@media (max-width: 860px) { .rv2 { --rv-card: calc((100% - var(--sp-3)) / 2); } }
@media (max-width: 560px) {
  .rv2 { --rv-card: 84%; --rv-arrow: 44px; }
}
.rv2-btn { position: absolute; z-index: 2; top: calc(50% - var(--rv-arrow) / 2 - 24px); width: var(--rv-arrow); height: var(--rv-arrow); display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid transparent; background: var(--paper); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px rgba(22, 19, 15, .08), 0 8px 24px -8px rgba(22, 19, 15, .35); }
.rv2-btn.prev { inset-inline-start: calc(-1 * (var(--rv-arrow) + 12px)); }
.rv2-btn.next { inset-inline-end: calc(-1 * (var(--rv-arrow) + 12px)); }
.rv2-btn .ico { width: 24px; height: 24px; }
.rv2-btn[aria-disabled="true"] { opacity: 0; pointer-events: none; }
.rv2-btn[aria-disabled="true"]:focus-visible { opacity: .38; }
@media (hover: hover) and (pointer: fine) { .rv2-btn:not([aria-disabled="true"]):hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.rv2-btn:not([aria-disabled="true"]):active { transform: scale(.96); }
.rv2-btn { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease, transform 160ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .rv2-btn { transition: none; } .rv2-btn:not([aria-disabled="true"]):active { transform: none; } }

/* На телефоне боковых полей нет: лента на всю ширину, стрелки парой под лентой */
@media (max-width: 560px) {
  .rv2-stage { width: min(100% - 2 * var(--gut), var(--maxw)); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
  .rv2-track { flex: 0 0 100%; }
  .rv2-btn { position: static; inset: auto; }
  .rv2-btn[aria-disabled="true"] { opacity: .38; pointer-events: none; }
}

/* ==== Движение сайта ====
   Кривая --ease-out: быстрый старт, мягкая остановка. Интерфейс 150–260 мс, появление разделов 600 мс, первый экран 700 мс.
   Двигаются только transform/translate и opacity. Без JS и при «меньше движения» всё видно сразу. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
[data-count] { font-variant-numeric: tabular-nums; }

/* Первый экран: заголовок, подзаголовок, кнопки и факты по очереди. Чистый CSS, контент не зависит от скрипта. */
@keyframes rise-in { from { opacity: 0; translate: 0 20px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: 60ms; }
  .hero-copy > :nth-child(2) { animation-delay: 160ms; }
  .hero-copy > :nth-child(3) { animation-delay: 260ms; }
  .hero-copy > :nth-child(4) { animation-delay: 360ms; }

  /* Появление при прокрутке: скрипт помечает только то, что ниже экрана */
  .js [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity 600ms var(--ease-out) var(--d, 0ms), translate 600ms var(--ease-out) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; translate: none; }
  .js .section-head[data-reveal], .js .rv2-head[data-reveal], .js .faq-head[data-reveal] { translate: 0 16px; }
  .js .section-head[data-reveal].is-in, .js .rv2-head[data-reveal].is-in, .js .faq-head[data-reveal].is-in { translate: none; }

  /* Фото проявляются после загрузки */
  .js img.fade-img { opacity: 0; transition: opacity 500ms ease-out; }
  .js img.fade-img.is-loaded { opacity: 1; }
}

/* Карточки каталога: подъём, тень, фото чуть крупнее. Нажатие сжимает карточку. Hover только на мыши. */
.cat-link { transition: box-shadow 250ms ease, transform 250ms var(--ease-out); }
.cat-pic img { transition: transform 500ms var(--ease-out); }
.cat-price { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .cat-link:hover { transform: translateY(-4px); }
  .cat-link:hover .cat-pic img { transform: scale(1.04); }
  .cat-link:hover .cat-price { color: var(--gold-2); }
  .cat-link:hover:active { transform: translateY(-4px) scale(.98); }
}
.cat-link:active { transform: scale(.98); transition-duration: 120ms; }

/* Меню на десктопе: золотая линия выезжает слева при наведении */
@media (min-width: 1101px) {
  .nav a { position: relative; }
  .nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left center; transition: transform 250ms var(--ease-out); pointer-events: none; }
  .nav a[aria-current="page"]::after { display: none; }
  .has-hero .site-header:not(.is-solid) .nav a::after { background: var(--gold-light); }
}
@media (min-width: 1101px) and (hover: hover) {
  .nav a:not([aria-current]):hover, .has-hero .site-header:not(.is-solid) .nav a:not([aria-current]):hover { background: transparent; }
  .nav a:hover::after { transform: scaleX(1); }
}

/* Шапка при прокрутке: мягкая тень снизу и логотип на 12% меньше. Высота шапки та же, страница не прыгает. */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: linear-gradient(rgba(22, 19, 15, .09), rgba(22, 19, 15, 0)); opacity: 0; transition: opacity 250ms ease; }
.site-header.is-scrolled::after { opacity: 1; }
.has-hero .site-header:not(.is-solid)::after { opacity: 0; }
.logo-img { transform-origin: left center; transition: transform 300ms var(--ease-out); }
.site-header.is-scrolled .logo-img { transform: scale(.88); }

/* Мобильное меню: выезжает на 8 px и проявляется, закрывается быстрее, чем открывается */
@media (max-width: 1100px) {
  .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }
  .nav.open { visibility: visible; opacity: 1; transform: none;
    transition: opacity 220ms ease-out, transform 260ms var(--ease-out), visibility 0s; }
}
/* Бургер превращается в крестик */
.burger-ico path { transform-box: fill-box; transform-origin: center; transition: transform 260ms var(--ease-out), opacity 150ms ease; }
.burger[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .b2 { opacity: 0; }
.burger[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }
.burger { transition: background-color 150ms ease, transform 120ms ease; }
.burger:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .cat-link:active, .cat-link:hover, .cat-link:hover:active, .burger:active { transform: none; }
  .cat-link:hover .cat-pic img { transform: none; }
  .nav, .nav.open { transform: none; }
}

/* ==== Подвал: тёмный, 4 колонки, рейтинг, соцсети, маршрут, нижняя строка ====
   Роли цвета через токены подвала. Иерархия: заголовок колонки 16/600 с золотой чертой, ссылки 15/400 светлые,
   справочный текст 15/400 приглушённый, телефоны 600 моноширинными цифрами. */
.site-footer {
  --f-bg: var(--night); --f-text: var(--on-night); --f-text-2: var(--on-night-2); --f-accent: var(--gold-light);
  --f-line: rgba(255, 255, 255, .12); --f-ctrl-line: rgba(255, 255, 255, .28); --f-surface: rgba(255, 255, 255, .06); --f-surface-hover: rgba(255, 255, 255, .1);
  background: var(--f-bg); color: var(--f-text); border-top: 1px solid var(--f-line);
  padding-block: clamp(56px, 7vw, 80px) clamp(32px, 4vw, 48px); }
@media (max-width: 1100px) { .site-footer { padding-bottom: 104px; } }   /* место под нижнюю панель «Позвонить / Заказать замер» */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--head-gap) var(--col-gap); align-items: start; }
@media (max-width: 960px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.fcol { display: grid; gap: var(--sp-2); align-content: start; justify-items: start; }
.fh { width: fit-content; min-width: 88px; margin: 0 0 4px; padding-bottom: 8px; font: 600 1rem/1.5 var(--f-body); color: var(--f-text);
  background: linear-gradient(var(--f-accent), var(--f-accent)) left bottom / 100% 2px no-repeat; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fcol li { font-size: .9375rem; line-height: 1.6; color: var(--f-text-2); overflow-wrap: anywhere; }
.fcol .fhours { gap: 0; }
.fcol a { color: var(--f-text); text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.fcol a.num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Соцсети значками и кнопка маршрута */
.fcol .fsoc { display: flex; gap: 10px; }
.fsoc-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--f-ctrl-line); }
.fsoc-link .ico { width: 20px; height: 20px; stroke-width: 1.6; }
.froute { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--f-ctrl-line); font: 500 .9375rem/1.2 var(--f-body); }
.froute .ico { width: 18px; height: 18px; color: var(--f-accent); }

/* Нижняя строка: реквизиты слева, политика и «Наверх» справа */
.fbase { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--f-line); font-size: .8125rem; line-height: 1.6; color: var(--f-text-2); }
.fbase p { margin: 0; text-wrap: pretty; }
.fbase-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.fbase a { color: var(--f-text-2); text-underline-offset: .2em; }
.fbase .ftop { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--f-text); font-weight: 500; text-decoration: none; }
.ftop .ico { width: 18px; height: 18px; }
@media (max-width: 560px) { .fbase { flex-direction: column; align-items: flex-start; } }

/* Состояния: наведение только на мыши, нажатие 0.96, переходы 150 мс */
@media (hover: hover) and (pointer: fine) {
  .fcol a:hover { color: var(--f-accent); text-decoration-line: underline; }
  /* значок и текст тёмные на золоте: селектор сильнее общего .fcol a:hover, иначе всё золотое и значок пропадает */
  .fcol .fsoc-link:hover, .fcol .froute:hover { color: var(--f-bg); background: var(--f-accent); border-color: var(--f-accent); text-decoration: none; }
  .fcol .froute:hover .ico { color: var(--f-bg); }
  .fbase a:hover, .fbase .ftop:hover { color: var(--f-accent); }
}
.fcol a, .fbase a { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.fsoc-link:active, .froute:active, .fbase .ftop:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .fcol a, .fbase a { transition: none; }
  .fsoc-link:active, .froute:active, .fbase .ftop:active { transform: none; }
}

/* ==== Карточки отзывов выделяются на любом фоне ====
   Край белой карточки на бежевом был 1,15:1, на белом 1:1: форма держалась только на слабой тени.
   Тёплый контур и тень с оттенком фона дают явную границу и на белых, и на бежевых разделах. */
.rv2 { --rv-card-line: var(--line-strong); }
.rv2-bubble { border-color: var(--rv-card-line);
  box-shadow: 0 1px 2px rgba(60, 45, 20, .06), 0 14px 30px -16px rgba(60, 45, 20, .32); }
/* хвостик с тем же контуром: подложка цвета линии чуть больше белого треугольника */
.rv2-bubble::before { content: ""; position: absolute; inset-inline-start: 23px; bottom: -13px; width: 25px; height: 14px;
  background: var(--rv-card-line); clip-path: polygon(0 0, 100% 0, 0 100%); }

/* ==== Исправления по проверке главной ==== */
/* Калькулятор: один ориентировочный итог над полотнами, карточки брендов без цен */
.calc-sum { margin: 0; font: 400 1rem/1.5 var(--f-body); color: var(--ink-2); }
.calc-sum b { display: block; font: 500 clamp(1.75rem, 3vw, 2.25rem)/1.2 var(--f-head); color: var(--gold-2); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-sum span { font-variant-numeric: tabular-nums; }
.brand { grid-template-rows: auto 1fr auto; }
/* Ловушка для роботов: поле есть в форме, но людям его не видно */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Печать: всё содержимое видно сразу, без анимаций появления; нижняя панель не печатается */
@media print {
  [data-reveal], .js [data-reveal] { opacity: 1 !important; translate: none !important; }
  .callbar, .burger, .hero-media { display: none !important; }
  .site-header { position: static !important; }
}
/* Телефон: ссылки подвала удобнее нажимать пальцем, кнопки первого экрана одной ширины */
@media (max-width: 760px) {
  .fcol ul:not(.fsoc) { gap: 0; }
  .fcol ul:not(.fsoc) a { display: inline-flex; align-items: center; min-height: 44px; }
  .fbase a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 560px) {
  .hero-copy .cta-row { display: grid; width: min(100%, 320px); }
  .hero-copy .cta-row .btn { width: 100%; }
}
/* Цифра в «10 видов» того же размера и цвета, что слово рядом (а не как подпись .proof span) */
.proof b [data-count] { font: inherit; color: inherit; line-height: inherit; }

/* ==== Мобильная версия: по итогам проверки 320 / 375 / 414 ==== */
/* Нижняя панель уходит, пока человек печатает: не закрывает поля и кнопку отправки, в том числе над клавиатурой Android */
@media (max-width: 1100px) {
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .callbar { transition: transform 200ms var(--ease-out), opacity 150ms ease; }
  .is-typing .callbar { transform: translateY(110%); opacity: 0; pointer-events: none; }
  /* Открытое меню: страница под ним не прокручивается */
  .menu-open { overflow: hidden; }
}
/* Галочка согласия: вся строка нажимается, высота не меньше 44 px */
.cta-form .check { min-height: 44px; }
/* Мгновенный отклик на касание у ссылок, вопросов и карточек, не только у кнопок */
a, button, summary, label, [role="button"] { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }
/* С viewport-fit=cover страница заходит под вырез: в альбомной ориентации отодвигаем содержимое от выреза */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* --- правки заказчика: главная, каталог, комнаты --- */
.ms-grid--solo { grid-template-columns: minmax(0, 1fr); }
.ms-grid--solo .ms-main > p { max-width: 62ch; }
.rows--pics .row-link { grid-template-columns: clamp(96px, 16vw, 168px) minmax(0, 1fr) auto; column-gap: clamp(16px, 3vw, 28px); }
.rows--pics .row-link .row-pic { grid-column: 1; grid-row: 1 / span 2; display: block; aspect-ratio: 4 / 3; border-radius: var(--r, 8px); overflow: hidden; background: var(--paper); }
.rows--pics .row-link .row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.rows--pics .row-link:hover .row-pic img { transform: scale(1.04); }
.rows--pics .row-link h3, .rows--pics .row-link p { grid-column: 2; }
.rows--pics .row-link .meta { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 560px) {
  .rows--pics .row-link { grid-template-columns: 88px minmax(0, 1fr); }
  .rows--pics .row-link .meta { grid-column: 2; grid-row: auto; }
}
.room-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.room-card { display: grid; align-content: start; gap: 8px; padding: 22px 22px 24px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r, 8px); }
.room-card h3 { font-size: 1.25rem; line-height: 1.25; }
.room-card p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.room-n { font: 600 .8125rem/1 var(--f-head); letter-spacing: .08em; color: var(--gold-2); }
@media (max-width: 960px) { .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .room-grid { grid-template-columns: 1fr; } }
.rows--pics .row-link .row-pic svg { width: 100%; height: 100%; display: block; }

/* --- онлайн-помощник --- */
.pc { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; font-family: var(--f-body); }
.pc * { box-sizing: border-box; }
.pc-fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--night, #16130F); color: #fff; font: 600 .9375rem/1 var(--f-body); cursor: pointer; box-shadow: 0 8px 24px rgba(22, 19, 15, .28); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pc-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 19, 15, .32); }
.pc-fab:focus-visible, .pc-x:focus-visible, .pc-form button:focus-visible, .pc-chip:focus-visible, .pc-act:focus-visible { outline: 2px solid var(--gold-fill, #D9B878); outline-offset: 2px; }
.pc-fab svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-fill, #D9B878); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc.is-open .pc-fab { display: none; }
.pc-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: #fff; color: var(--ink, #16130F); border: 1px solid var(--line, #E3DFD8); border-radius: 16px; box-shadow: 0 20px 60px rgba(22, 19, 15, .28); overflow: hidden; }
.pc-panel[hidden] { display: none; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; background: var(--night, #16130F); color: #fff; }
.pc-head b { display: block; font: 600 1rem/1.2 var(--f-head); }
.pc-head span { display: block; margin-top: 2px; font-size: .8125rem; color: #D8D2C8; }
.pc-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.pc-x:hover { background: rgba(255, 255, 255, .12); }
.pc-x svg, .pc-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg, #F7F6F3); overscroll-behavior: contain; }
.pc-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #E3DFD8); border-bottom-left-radius: 4px; }
.pc-user { align-self: flex-end; background: var(--gold-fill, #D9B878); color: var(--ink, #16130F); border-bottom-right-radius: 4px; }
.pc-wait { color: var(--ink-2, #5C554B); }
.pc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.pc-act, .pc-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 500 .875rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid var(--gold, #A37C3A); background: #fff; color: var(--gold-2, #7E6029); text-align: left; }
.pc-act:hover, .pc-chip:hover { background: var(--paper, #F1EEE8); }
.pc-act-main { background: var(--night, #16130F); border-color: var(--night, #16130F); color: #fff; }
.pc-act-main:hover { background: #2E2923; }
.pc-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, #E3DFD8); background: #fff; }
.pc-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong, #CFC8BD); border-radius: 999px; font: 400 1rem var(--f-body); color: var(--ink, #16130F); background: #fff; }
.pc-form input:focus { outline: 2px solid var(--gold, #A37C3A); outline-offset: 0; border-color: var(--gold, #A37C3A); }
.pc-form button { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: var(--night, #16130F); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .pc { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; }
  .pc-fab span { display: none; }
  .pc-fab { width: 52px; padding: 0; justify-content: center; }
  .pc-panel { position: fixed; right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; height: min(78dvh, 600px); }
  .pc.is-open { bottom: 0; right: 0; }
}
@media (prefers-reduced-motion: reduce) { .pc-fab, .pc-fab:hover { transition: none; transform: none; } }
.rows--pics .row-link { row-gap: 6px; }
.rows--pics .row-link h3 { align-self: end; }
.rows--pics .row-link p { align-self: start; }
