/* =========================================================
   Самсон Балкон — общий стиль
   Сетка 8: 4 · 8 · 12 · 16 · 24 · 32 · 40 · 48 · 64 · 80 · 96 · 120
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #141414;
  --ink-2: #444a55;
  --ink-3: #6b7280;
  --line: #e4e6eb;
  --blue: #1769c4;          /* акцент текста, 5,0:1 на #f5f5f7 */
  --blue-btn-1: #1a73d1;    /* градиент кнопки, белый текст 4,75:1 */
  --blue-btn-2: #1560ba;
  --blue-soft: #e8f1fc;
  --yellow: #ffe08a;        /* ценники */
  --dark: #1c1d21;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(20, 30, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(20, 30, 50, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: break-word; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 80px); margin: 0 auto; padding: 0 40px; }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 300;
}
.section-head h2 b { font-weight: 700; }
.section-head .lead { margin: 16px auto 0; max-width: 720px; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); color: var(--ink-2); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 16px 32px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-btn-1), var(--blue-btn-2));
  box-shadow: 0 8px 24px rgba(23, 105, 196, 0.32), inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(23, 105, 196, 0.4), inset 0 -3px 0 rgba(0,0,0,.16); color: #fff; }
.btn-outline {
  color: var(--blue); background: #fff; border: 2px solid var(--blue);
  min-height: 48px; padding: 12px 24px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.btn-outline:hover { background: var(--blue-soft); }
.btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-block { width: 100%; }

/* ---------- Шапка (внутри первого экрана) ---------- */
.site-header { position: relative; z-index: 5; padding: 24px 0; }
.header-row { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { width: 56px; height: 64px; object-fit: contain; }
.logo-name { display: block; font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.logo-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); line-height: 1.2; }
.header-desc { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 260px; min-width: 0; }
.header-addr { font-size: 15px; line-height: 1.45; color: var(--ink-2); min-width: 0; }
.header-addr a { color: inherit; }
.header-contacts { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.header-phones { text-align: right; }
.header-phones a { display: block; font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1.3; }
.header-phones a + a { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.header-phones a:hover { color: var(--blue); }
.header-call { display: none; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #f7f7f7 url("../img/hero-fon-gorod.webp") center bottom / cover no-repeat;
  padding-bottom: 160px;
}
.hero-inner { position: relative; z-index: 2; padding-top: 48px; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(90deg, var(--blue-btn-1), var(--blue-btn-2)); color: #fff;
  font-size: 18px; font-weight: 700;
}
.hero-badge svg { width: 20px; height: 20px; }
.hero h1 {
  margin-top: 32px;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 300; line-height: 1.1;
}
.hero h1 b { font-weight: 800; }
.hero h1 .accent { color: var(--blue); font-weight: 800; }
.hero-lead { margin-top: 24px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); font-weight: 500; color: var(--ink-2); max-width: 600px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 40px; }
.hero-checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.3; min-width: 0; }
.hero-checks b { font-weight: 700; }
.hero-checks .t { color: var(--blue); }
.hero-checks .t b { color: var(--ink); }
.check-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-btn-1), var(--blue-btn-2)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(23, 105, 196, 0.3);
}
.check-ico svg { width: 20px; height: 20px; }
.hero-cta {
  display: flex; align-items: center; gap: 24px;
  margin-top: 48px; padding: 16px 32px 16px 16px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow-lg);
  max-width: 720px;
}
.hero-cta .btn { min-height: 72px; padding: 16px 40px; font-size: 18px; }
.hero-cta .btn svg { width: 28px; height: 28px; }
.hero-cta p { font-size: 16px; line-height: 1.45; color: var(--ink-2); min-width: 0; }
.hero-cta p b { color: var(--ink); }
.hero-visual {
  position: absolute; z-index: 1; right: max(0px, calc((100vw - 1440px) / 2)); bottom: 0;
  width: min(42vw, 600px);
  pointer-events: none;
}
.hero-visual img { width: 100%; height: auto; }

/* Полоса преимуществ поверх нижнего края первого экрана */
.benefits { position: relative; z-index: 3; margin-top: -96px; }
.benefits-card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.benefit { padding: 32px 24px; text-align: center; min-width: 0; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: var(--radius);
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.benefit-ico svg { width: 32px; height: 32px; }
.benefit h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.benefit p { margin-top: 8px; font-size: 15px; color: var(--ink-3); line-height: 1.45; }

/* ---------- Галерея работ ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery a {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--bg-soft);
}
.gallery:not(.gallery--plain) a:nth-child(1), .gallery:not(.gallery--plain) a:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery--plain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery-more { text-align: center; margin-top: 40px; }

/* ---------- Производство ---------- */
.factory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.factory-photos { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.factory-photos img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.factory-photos img:first-child { aspect-ratio: auto; }
.factory h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 300; }
.factory h2 b { font-weight: 700; }
.factory .lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.factory-list { margin-top: 32px; display: grid; gap: 16px; }
.factory-list li { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; }
.factory .btn { margin-top: 40px; }

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 32px; min-width: 0;
}
.price-card.is-popular { box-shadow: 0 0 0 2px var(--blue), var(--shadow-lg); }
.price-tag {
  position: absolute; top: -16px; right: 24px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 18px;
  padding: 8px 16px; border-radius: var(--radius-sm); white-space: nowrap;
  box-shadow: 0 4px 12px rgba(160, 120, 0, 0.18);
}
.price-label {
  align-self: flex-start; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); background: var(--blue-soft); padding: 4px 12px; border-radius: 999px;
}
.price-img { height: 200px; margin: 24px 0; display: flex; align-items: center; justify-content: center; }
.price-img img { max-height: 200px; width: auto; border-radius: var(--radius); }
.price-card h3 { font-size: 24px; font-weight: 700; }
.price-old { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.price-old s { text-decoration-thickness: 2px; text-decoration-color: #d14343; }
.price-list { margin: 24px 0 32px; display: grid; gap: 12px; flex-grow: 1; }
.price-list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.price-list svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.price-note { text-align: center; margin-top: 40px; color: var(--ink-3); font-size: 15px; }

/* ---------- Квиз ---------- */
.quiz { display: grid; grid-template-columns: 360px minmax(0, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.quiz-side { background: var(--dark); color: #fff; padding: 40px 32px; display: flex; flex-direction: column; }
.quiz-master { display: flex; align-items: center; gap: 16px; }
.quiz-master img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: top; background: #f1f1f1; flex-shrink: 0; }
.quiz-master b { display: block; font-size: 18px; }
.quiz-master span { font-size: 14px; color: #b9bdc6; }
.quiz-side h3 { margin-top: 32px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.quiz-bonus { margin-top: auto; padding-top: 32px; }
.quiz-bonus p { font-size: 15px; color: #b9bdc6; }
.quiz-bonus strong { display: block; font-size: 64px; line-height: 1; font-weight: 800; color: var(--yellow); margin-top: 8px; transition: transform .25s ease; }
.quiz-bonus strong.bump { transform: scale(1.12); }
.quiz-main { padding: 40px; min-width: 0; display: flex; flex-direction: column; }
.quiz-progress-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.quiz-bar { height: 12px; border-radius: 999px; background: var(--bg-soft); margin-top: 12px; overflow: hidden; }
.quiz-bar span {
  display: block; height: 100%; min-width: 40px; border-radius: 999px; transition: width .35s ease;
  background: repeating-linear-gradient(-45deg, var(--blue-btn-1) 0 12px, #3b8be0 12px 24px);
  background-size: 34px 100%; animation: bar-run 1s linear infinite;
}
@keyframes bar-run { to { background-position: 34px 0; } }
.quiz-step { display: none; margin-top: 32px; flex-grow: 1; }
.quiz-step.is-active { display: block; animation: step-in .3s ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.quiz-step h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 700; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.quiz-option { position: relative; display: block; cursor: pointer; min-width: 0; }
.quiz-option input { position: absolute; opacity: 0; }
.quiz-option span {
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 24px;
  border: 2px solid var(--line); border-radius: var(--radius); font-size: 17px; font-weight: 600; line-height: 1.3;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-option svg { width: 40px; height: 40px; color: var(--blue); flex-shrink: 0; }
.quiz-option:hover span { border-color: #9cc3ee; }
.quiz-option input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.quiz-option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 16px; }
.btn-back { background: none; border: 0; color: var(--ink-3); font-weight: 600; cursor: pointer; min-height: 44px; padding: 8px 0; display: inline-flex; align-items: center; gap: 8px; }
.btn-back:hover { color: var(--ink); }
.btn-back[hidden] { display: none; }
.quiz-final p { margin-top: 12px; color: var(--ink-2); }

/* Квиз v2: 6 вопросов, подсказки мастера */
.quiz { grid-template-columns: 340px minmax(0, 1fr); min-height: 560px; }
.quiz-ava { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; object-position: center 8%; background: #f1f1f1; }
.quiz-bubble { position: relative; margin-top: 16px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; }
.quiz-bubble::before { content: ""; position: absolute; top: -8px; left: 32px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.quiz-bubble b { display: block; font-size: 20px; line-height: 1.2; }
.quiz-bubble span { display: block; color: var(--ink-3); font-size: 15px; margin-top: 4px; }
.quiz-bubble p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); min-height: 4.5em; }
.quiz-bar { margin-top: 0; height: 8px; }
.quiz-step { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; }
.quiz-q { padding: 0; font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.2; }
.quiz-option span { min-height: 72px; padding: 16px 24px; background: var(--bg-soft); border-color: transparent; font-weight: 500; }
.quiz-option span::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9db8d8; background: #fff; flex-shrink: 0;
  box-sizing: border-box; transition: border .15s ease;
}
.quiz-option input:checked + span::before { border: 7px solid var(--blue); }
.quiz-option input:checked + span { background: var(--blue-soft); border-color: var(--blue); }
.quiz-custom { margin-top: 16px; }
.quiz-custom[hidden] { display: none; }
.quiz-nav { margin-top: auto; padding-top: 32px; }
.quiz-count { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.quiz-btns { display: flex; gap: 12px; }
.quiz-prev {
  width: 56px; height: 56px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.quiz-prev:disabled { color: #b8c4d4; cursor: default; }
.quiz-prev:not(:disabled):hover { border-color: var(--blue); }
.quiz-next:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
.quiz-nav[hidden], .quiz-next[hidden] { display: none; }
.quiz-bonus strong { transform-origin: left bottom; }
.quiz-final .quiz-q + p { margin-top: 12px; color: var(--ink-2); }
.field-error .input, .consent.field-error { outline: 2px solid #d14343; outline-offset: 2px; border-radius: 12px; }

/* ---------- Формы ---------- */
.form-grid { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 8px; }
.field label, .field-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 56px; padding: 16px 20px;
  border: 1px solid #d5d9e0; border-radius: 12px; background: #fafbfc;
  font: inherit; font-size: 17px; color: var(--ink);
}
.input:focus { border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(23,105,196,.18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid #d5d9e0; border-radius: 999px; font-size: 15px; font-weight: 600; background: #fff;
}
.chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-3); cursor: pointer; line-height: 1.4; }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Отзывы ---------- */
.ratings { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 24px 8px 8px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
.rating-badge:hover { box-shadow: var(--shadow-lg); }
.rating-badge .src { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 15px; }
.rating-badge b { font-size: 18px; }
.rating-badge small { color: var(--ink-3); font-size: 14px; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 16px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-ava { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 18px; flex-shrink: 0; }
.review-head b { display: block; font-size: 17px; }
.review-head small { color: var(--ink-3); font-size: 13px; }
.review .stars { margin-top: 16px; }
.review p { margin-top: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.review-src { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink-3); }
.reviews .review:nth-child(4), .reviews .review:nth-child(5) { }
.reviews-wide { grid-column: span 1; }

/* ---------- Утепление и мебель ---------- */
.comfort { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.comfort-img { position: relative; }
.comfort-img img:first-child { border-radius: var(--radius-lg); width: 100%; }
.comfort-img img.cut {
  position: absolute; right: -24px; bottom: -48px; width: 38%;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
}
.comfort h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 300; }
.comfort h2 b { font-weight: 700; }
.comfort h3 { margin-top: 40px; font-size: 22px; font-weight: 700; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zones li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.comfort .btn { margin-top: 40px; }

/* ---------- Заявка на замер ---------- */
.measure { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; }
.measure h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 300; }
.measure h2 b { font-weight: 800; }
.measure .lead { margin-top: 16px; font-size: 20px; font-weight: 600; color: var(--blue); }
.measure-row { display: flex; align-items: center; gap: 40px; margin-top: 40px; }
.measure-list { display: grid; gap: 24px; min-width: 0; }
.measure-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.measure-list .num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.master-card { text-align: center; flex-shrink: 0; }
.master-card .ph {
  width: 176px; height: 176px; border-radius: 50%; margin: 0 auto; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 8px #fff, var(--shadow-lg);
}
.master-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.master-card b { display: block; margin-top: 16px; font-size: 18px; }
.master-card span { font-size: 14px; color: var(--ink-3); }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; min-width: 0; }
.form-card h3 { font-size: 26px; font-weight: 300; text-align: center; }
.form-card h3 b { font-weight: 800; }
.form-card .sub { text-align: center; margin-top: 8px; color: var(--ink-3); }
.form-msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.form-msgs a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid;
}
.form-msgs .wa { color: #128c4b; border-color: #25d366; }
.form-msgs .wa:hover { background: #ecfbf2; }
.form-msgs .tel { color: var(--blue); border-color: var(--blue); }
.form-msgs .tel:hover { background: var(--blue-soft); }
.form-msgs svg { width: 20px; height: 20px; }
.or { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ---------- Видео ---------- */
.videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.video { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 16; background: #222; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video:hover img { transform: scale(1.04); }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.video .play svg { width: 28px; height: 28px; margin-left: 4px; }
.vk-link { text-align: center; margin-top: 40px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.contacts-info { background: linear-gradient(120deg, #111214 0%, #2b2d33 60%, #4a4d55 100%); color: #fff; padding: 56px 48px; }
.contacts-info h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; }
.contacts-info > p { margin-top: 16px; color: #c9ccd3; max-width: 360px; }
.contacts-list { margin-top: 32px; display: grid; gap: 16px; }
.contacts-list li { display: flex; gap: 16px; align-items: center; }
.contacts-list svg { width: 24px; height: 24px; color: #8fb8ea; flex-shrink: 0; }
.contacts-list a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.contacts-list a:hover { color: #bcd8f7; }
.contacts-list span { font-size: 17px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.socials a:hover { background: rgba(255,255,255,.1); }
.contacts-form { padding: 56px 48px; }
.contacts-form h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; }
.contacts-form h2 span { display: block; font-weight: 300; }
.contacts-form > p { margin-top: 16px; color: var(--ink-2); }

/* ---------- Подвал (тёмный, с контактами) ---------- */
.site-footer { background: #16171a; color: #c9ccd3; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 64px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.logo--light { color: #fff; }
.logo--light img { filter: invert(1); }
.logo--light .logo-sub { color: #9aa0ab; }
.footer-brand > p { margin-top: 24px; max-width: 400px; font-size: 15px; line-height: 1.55; }
.footer-brand .socials { margin-top: 24px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-col h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8f96a3; margin-bottom: 12px; }
.footer-col > a:not(.btn) { color: #e6e8ec; text-decoration: none; font-size: 16px; display: inline-flex; align-items: center; min-height: 40px; }
.footer-col > a:not(.btn):hover { color: #8fb8ea; }
.footer-col .contacts-list { margin-top: 0; gap: 4px; }
.footer-col .btn { margin-top: 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: #8f96a3; }
.footer-bottom a { color: #8f96a3; display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 32px; }
  .footer-col .btn { width: 100%; }
}

/* ---------- Окно «заявка отправлена» и лайтбокс ---------- */
.notice { position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; padding: 16px; }
.notice.is-open { display: flex; }
.notice-bg { position: absolute; inset: 0; background: rgba(15, 20, 30, .6); backdrop-filter: blur(4px); }
.notice-box { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 48px 40px 40px; max-width: 480px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.notice-box .ico { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: #e7f7ee; color: #16a34a; display: flex; align-items: center; justify-content: center; }
.notice-box.is-error .ico { background: #fdecec; color: #d14343; }
.notice-box .ico svg { width: 36px; height: 36px; }
.notice-box h3 { font-size: 26px; }
.notice-box p { margin-top: 12px; color: var(--ink-2); }
.notice-box .btn { margin-top: 32px; }
.lightbox { position: fixed; inset: 0; z-index: 260; display: none; align-items: center; justify-content: center; background: rgba(10,12,16,.92); padding: 64px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: var(--radius); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.26); }
.lightbox svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
  .header-desc { display: none; }
  .hero-visual { width: 40vw; }
  .measure { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
}
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 80px 0; }
  .header-addr { display: none; }
  .hero { padding-bottom: 128px; }
  .hero-content { max-width: 60%; }
  .hero-visual { width: 42vw; }
  .hero-cta { flex-direction: column; align-items: stretch; border-radius: var(--radius-lg); padding: 16px; gap: 16px; }
  .hero-cta p { padding: 0 8px 8px; text-align: center; }
  .benefits-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prices { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 40px; }
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .quiz-side { padding: 24px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .quiz-ava { width: 64px; height: 64px; }
  .quiz-bubble { margin-top: 0; }
  .quiz-bubble::before { top: 20px; left: -8px; }
  .quiz-bubble p { min-height: 0; }
  .quiz-bonus { grid-column: 1 / -1; }
  .quiz-bonus { padding-top: 24px; display: flex; align-items: baseline; gap: 16px; }
  .quiz-bonus strong { font-size: 48px; }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory, .comfort, .measure { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .comfort-img img.cut { right: 16px; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery:not(.gallery--plain) a:nth-child(6) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .site-header { padding: 16px 0; }
  .logo img { width: 40px; height: 48px; }
  .logo-name { font-size: 20px; }
  .logo-sub { font-size: 12px; }
  .header-phones, .header-contacts .btn-outline { display: none; }
  .header-call {
    display: flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue-btn-1), var(--blue-btn-2)); color: #fff;
  }
  .header-call svg { width: 22px; height: 22px; }
  .hero { padding-bottom: 0; background-size: 220% auto; }
  .hero-inner { padding-top: 16px; }
  .hero-content { max-width: none; }
  .hero-badge { font-size: 15px; padding: 8px 16px; }
  .hero h1 { margin-top: 24px; }
  .hero-lead { margin-top: 16px; }
  .hero-checks { flex-direction: column; gap: 12px; margin-top: 24px; }
  .check-ico { width: 32px; height: 32px; }
  .check-ico svg { width: 16px; height: 16px; }
  .hero-cta { margin-top: 32px; }
  .hero-cta .btn { min-height: 64px; padding: 16px 24px; }
  .hero-visual { position: relative; right: auto; width: 80%; max-width: 380px; margin: 24px 0 0 auto; }
  .benefits { margin-top: -48px; }
  .benefits-card { grid-template-columns: minmax(0, 1fr); }
  .benefit { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; text-align: left; padding: 20px; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line); }
  .benefit-ico { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .benefit-ico svg { width: 24px; height: 24px; }
  .benefit p { margin-top: 0; }
  .gallery, .gallery--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery:not(.gallery--plain) a:nth-child(1), .gallery:not(.gallery--plain) a:nth-child(10) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery a { border-radius: 12px; }
  .factory-photos { grid-template-columns: minmax(0, 1fr); }
  .factory-photos img { aspect-ratio: 4 / 3; }
  .price-card { padding: 24px; }
  .quiz-main { padding: 24px 20px; }
  .quiz-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quiz-option span { min-height: 56px; padding: 12px 16px; font-size: 16px; }
  .quiz { min-height: 0; }
  .quiz-bubble { padding: 16px; }
  .quiz-bubble b { font-size: 17px; }
  .quiz-bubble span { font-size: 13px; }
  .quiz-bubble p { margin-top: 8px; font-size: 14px; }
  .quiz-prev { width: 48px; height: 48px; }
  .quiz-next { min-height: 48px; padding: 12px 24px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review { padding: 24px; }
  .comfort-img img.cut { display: none; }
  .measure-row { flex-direction: column-reverse; align-items: flex-start; gap: 32px; }
  .master-card { display: flex; align-items: center; gap: 16px; text-align: left; }
  .master-card .ph { width: 96px; height: 96px; margin: 0; box-shadow: 0 0 0 4px #fff, var(--shadow); }
  .master-card b { margin-top: 0; }
  .form-card { padding: 32px 20px; }
  .form-msgs { grid-template-columns: minmax(0, 1fr); }
  .videos { gap: 12px; }
  .video .play { width: 56px; height: 56px; }
  .contacts-info, .contacts-form { padding: 40px 20px; }
}
@media (max-width: 400px) {
  .hero-cta .btn { font-size: 16px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Окно связи + плавающая кнопка (скилл forma-obratnoy-svyazi-messendzhery, светлая тема)
   ========================================================= */
:root {
  --cw-surface: #ffffff; --cw-soft: #f5f5f7; --cw-border: #e4e6eb; --cw-text: #141414; --cw-muted: #5b6270;
  --cw-primary: #1769c4; --cw-primary-soft: rgba(23,105,196,.12); --cw-backdrop: rgba(15,20,30,.55);
  --cw-radius-lg: 24px; --cw-radius-md: 16px; --cw-radius-sm: 8px; --cw-shadow: 0 16px 48px rgba(20,30,50,.18);
  --cw-fab-right: 40px; --cw-fab-bottom: 24px;
}
.contact-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.contact-modal.is-open { display: flex; }
.contact-modal-backdrop { position: absolute; inset: 0; background: var(--cw-backdrop); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.contact-modal-dialog { position: relative; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; background: var(--cw-surface); border: 1px solid var(--cw-border); border-radius: var(--cw-radius-lg); box-shadow: var(--cw-shadow); padding: 32px; color: var(--cw-text); animation: contact-modal-in .2s ease; }
@keyframes contact-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.contact-modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--cw-soft); border: 1px solid var(--cw-border); color: var(--cw-muted); font-size: 1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.contact-modal-close:hover { color: var(--cw-text); border-color: var(--cw-primary); }
.contact-modal-dialog h3 { text-align: center; margin: 0 0 24px; padding: 0 48px; font-size: 1.4rem; line-height: 1.3; }
.contact-modal-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-bottom: 16px; }
.contact-modal-qr-block, .contact-modal-buttons, .contact-modal-phone { background: var(--cw-soft); border: 1px solid var(--cw-border); border-radius: var(--cw-radius-md); padding: 20px; min-width: 0; }
.contact-modal-qr-block { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-modal-qr-label { display: inline-block; background: var(--cw-primary-soft); color: var(--cw-primary); padding: 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 16px; }
.contact-modal-qr { background: #fff; border-radius: var(--cw-radius-sm); padding: 12px; display: inline-flex; align-items: center; justify-content: center; width: 148px; height: 148px; box-sizing: content-box; }
.contact-modal-qr canvas, .contact-modal-qr img { display: block; }
.contact-modal-qr-fallback { font-size: .78rem; color: #5b6680; padding: 8px; text-align: center; }
.contact-modal-buttons { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.msg-btn { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 16px 24px; border-radius: var(--cw-radius-md); color: #fff; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.16); transition: transform .15s ease, filter .15s ease; }
.msg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); color: #fff; }
.msg-btn-badge { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-btn-badge svg { width: 16px; height: 16px; display: block; }
.msg-btn-whatsapp { background: linear-gradient(135deg, #34d399, #16a34a); }
.msg-btn-max { background: linear-gradient(135deg, #4f7cfe, #8b3ff0); }
.msg-btn-telegram { background: linear-gradient(135deg, var(--blue-btn-1), var(--blue-btn-2)); }
.contact-modal-phone { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-modal-phone span { color: var(--cw-muted); font-size: .92rem; }
.contact-modal-phone a { font-size: 1.15rem; font-weight: 800; color: var(--cw-text); text-decoration: none; white-space: nowrap; }
.contact-modal-phone a:hover { color: var(--cw-primary); }
.contact-modal-consent { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--cw-muted); padding: 4px 4px 0; cursor: pointer; }
.contact-modal-consent input { margin: 0; accent-color: var(--cw-primary); flex-shrink: 0; }
.contact-modal-consent a { color: var(--cw-primary); }
body.contact-modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .contact-modal-dialog { padding: 24px 16px; }
  .contact-modal-body { grid-template-columns: minmax(0,1fr); }
  .contact-modal-qr-block { display: none; }
}
.contact-fab { position: fixed; right: var(--cw-fab-right); bottom: var(--cw-fab-bottom); width: 88px; height: 88px; border-radius: 50%; z-index: 150; display: block; text-decoration: none; box-shadow: 0 10px 28px rgba(20,30,50,.3); animation: fab-pulse 2.6s ease-in-out infinite; cursor: pointer; }
.contact-fab:hover, .contact-fab:focus-visible { animation-play-state: paused; transform: scale(1.06); }
.contact-fab-item { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; animation: fab-fade 9s infinite; }
.contact-fab-item svg { width: 40px; height: 40px; }
.contact-fab-wa { background: linear-gradient(135deg, #34d399, #16a34a); animation-delay: 0s; }
.contact-fab-ph { background: linear-gradient(135deg, #fb7c3c, #e0116f); animation-delay: 3s; }
.contact-fab-mx { background: linear-gradient(135deg, #6d5bf7, #38bdf8); animation-delay: 6s; }
@keyframes fab-fade { 0% { opacity: 1; } 28% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fab-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
body.contact-modal-open .contact-fab, body.no-scroll .contact-fab { display: none; }
@media (prefers-reduced-motion: reduce) { .contact-fab-item:first-child { opacity: 1; } }
@media (max-width: 480px) {
  .contact-fab { right: 14px; bottom: 24px; width: 56px; height: 56px; }
  .contact-fab-item svg { width: 26px; height: 26px; }
}
.quiz-final .quiz-q { color: var(--ink); margin-top: 0; }
@media (max-width: 760px) {
  .quiz-side { padding: 16px 20px; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; align-items: center; }
  .quiz-ava { width: 48px; height: 48px; border-radius: 12px; }
  .quiz-bubble { padding: 8px 16px; }
  .quiz-bubble::before { top: 50%; margin-top: -6px; left: -6px; width: 12px; height: 12px; }
  .quiz-bubble p, .quiz-bonus { display: none; }
  .quiz-bubble b { font-size: 16px; }
  .quiz-bubble span { margin-top: 0; }
  .quiz-main { padding-top: 20px; }
  .quiz-step { margin-top: 20px; }
}

/* =========================================================
   Внутренние страницы: контакты, политика, 404
   ========================================================= */
.page-top { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs { padding: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--ink-3); display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a:hover { color: var(--blue); }
.section--tight { padding: 32px 0 96px; }
.page-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 800; }
.page-lead { margin-top: 16px; max-width: 760px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-2); }

.kont-msg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.kont-msg-btn { min-height: 72px; padding: 16px 24px; font-size: 1.125rem; justify-content: center; white-space: normal; text-align: left; }
.kont-msg-btn .msg-btn-badge { width: 40px; height: 40px; }
.kont-msg-btn .msg-btn-badge svg { width: 22px; height: 22px; }
.msg-btn-call { background: linear-gradient(135deg, var(--blue-btn-1), var(--blue-btn-2)); }

.kont-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.kont-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.kont-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.kont-ico svg { width: 24px; height: 24px; }
.kont-card h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.kont-big { font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.kont-big:hover { color: var(--blue); }
.kont-mail { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
.kont-big-text { font-size: 20px; font-weight: 700; line-height: 1.35; padding: 4px 0; }
.kont-card p:not(.kont-big-text) { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.kont-link { margin-top: 8px; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.kont-map { position: relative; margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); height: 440px; }
.kont-map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.kont-map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.kont-map-fallback svg { width: 40px; height: 40px; color: var(--blue); }
.nowrap { white-space: nowrap; }

.kont-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 48px; }
.kont-social, .kont-cta { border-radius: var(--radius-lg); padding: 32px; min-width: 0; }
.kont-social { border: 1px solid var(--line); }
.kont-social h2 { font-size: 22px; font-weight: 700; }
.kont-social-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.kont-social-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 24px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.kont-social-list a:hover { border-color: var(--blue); color: var(--blue); }
.kont-cta { background: var(--blue-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.kont-cta p { font-size: 17px; color: var(--ink-2); }
.kont-cta p b { color: var(--ink); }

.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; margin: 40px 0 16px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose p + p { margin-top: 16px; }
.prose .page-title + p { margin-top: 32px; }
.prose ul { margin: 16px 0; padding-left: 24px; list-style: disc; display: grid; gap: 8px; }
.prose li::marker { color: var(--blue); }

.page-404 { text-align: center; padding: 96px 0 120px; }
.page-404 .page-lead { margin-left: auto; margin-right: auto; }
.code-404 { font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -0.04em; margin-bottom: 16px; }
.actions-404 { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

@media (max-width: 1024px) {
  .kont-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kont-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .section--tight { padding: 16px 0 64px; }
  .breadcrumbs { padding-top: 8px; }
  .kont-msg { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .kont-msg-btn { justify-content: flex-start; min-height: 64px; }
  .kont-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .kont-card, .kont-social, .kont-cta { padding: 24px; }
  .kont-map { height: 320px; margin-top: 32px; }
  .kont-bottom { margin-top: 32px; gap: 16px; }
  .kont-cta .btn, .actions-404 .btn { width: 100%; }
  .page-404 { padding: 64px 0 80px; }
  .page-kontakty .contact-fab { display: none; }
  .prose .page-title { font-size: 26px; }   /* на странице контактов кнопки связи уже на первом экране */
}

/* =========================================================
   Первый экран и квиз умещаются в высоту окна (26.10)
   Отступы и крупные размеры зависят от высоты экрана (vh),
   чтобы шапка, заголовок, кнопка расчёта и полоса преимуществ
   были видны без прокрутки на ноутбуках с окном ~650–800 px.
   ========================================================= */
@media (min-width: 761px) {
  .site-header { padding: clamp(8px, 2.2vh, 24px) 0; }
  .hero-inner { padding-top: clamp(8px, 3vh, 48px); }
  .hero h1 { margin-top: clamp(12px, 2.8vh, 32px); font-size: min(clamp(2rem, 1.2rem + 2.6vw, 3.5rem), 6vh); }
  .hero-lead { margin-top: clamp(8px, 2vh, 24px); font-size: min(clamp(1.125rem, 1rem + 0.4vw, 1.375rem), 2.6vh); }
  .hero-checks { margin-top: clamp(16px, 3.2vh, 40px); }
  .hero-cta { margin-top: clamp(16px, 3.8vh, 48px); }
  .hero { padding-bottom: clamp(80px, 15vh, 160px); }
  .benefits { margin-top: calc(-1 * clamp(48px, 9vh, 96px)); }
  .hero-visual { width: min(42vw, 600px, 68vh); }
  .quiz { min-height: min(560px, calc(100vh - 32px)); }
}
@media (min-width: 761px) and (max-height: 1000px) {
  .logo img { width: 48px; height: 56px; }
  .hero-badge { padding: 8px 16px; font-size: 16px; }
  .check-ico { width: 32px; height: 32px; }
  .check-ico svg { width: 16px; height: 16px; }
  .hero-checks li { font-size: 16px; }
  .hero-cta { padding: 8px 24px 8px 8px; }
  .hero-cta .btn { min-height: 56px; padding: 12px 32px; font-size: 17px; }
  .hero-cta .btn svg { width: 24px; height: 24px; }
  .benefits-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefit { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: start; gap: 0 16px; padding: 16px 20px; text-align: left; }
  .benefit-ico { align-self: center; }
  .benefit + .benefit { border-left: 1px solid var(--line); border-top: 0; }
  .benefit-ico { width: 48px; height: 48px; margin: 0; grid-row: span 2; border-radius: 12px; }
  .benefit-ico svg { width: 24px; height: 24px; }
  .benefit h3 { font-size: 16px; }
  .benefit p { margin-top: 4px; font-size: 14px; line-height: 1.4; }
  /* квиз компактнее, чтобы карточка целиком помещалась в окне */
  .quiz-side { padding: 24px; }
  .quiz-main { padding: 32px; }
  .quiz-ava { width: 64px; height: 64px; }
  .quiz-bubble { margin-top: 12px; padding: 16px; }
  .quiz-bonus { padding-top: 16px; }
  .quiz-bonus strong { font-size: 56px; }
  .quiz-step { margin-top: 24px; }
  .quiz-options { gap: 12px; margin-top: 20px; }
  .quiz-option span { min-height: 64px; padding: 12px 20px; }
  .quiz-nav { padding-top: 24px; }
}
@media (min-width: 761px) and (max-width: 1024px) and (max-height: 1000px) {
  .benefit { grid-template-columns: minmax(0, 1fr); padding: 16px 12px; text-align: center; }
  .benefit-ico { display: none; }
  .hero-content { max-width: 62%; }
  .hero h1 { font-size: min(2.5rem, 5.6vh); }
  .hero-cta { flex-direction: row; align-items: center; border-radius: 999px; padding: 8px 16px 8px 8px; gap: 16px; }
  .hero-cta p { padding: 0; text-align: left; font-size: 14px; }
}
@media (min-width: 761px) and (max-height: 680px) {
  .hero-lead { display: none; }
  .hero-checks { margin-top: 16px; }
}

/* плавающая кнопка прячется, пока на экране квиз */
.contact-fab { transition: opacity .2s ease, visibility .2s; }
body.quiz-in-view .contact-fab { opacity: 0; visibility: hidden; pointer-events: none; }

/* Подложка под текстом первого экрана: светлая заливка слева, чтобы текст читался на фоне города (26.10) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,247,247,.96) 0%, rgba(247,247,247,.92) 40%, rgba(247,247,247,.6) 58%, rgba(247,247,247,0) 72%);
}
.hero .site-header, .hero-inner { position: relative; z-index: 2; }
.hero-visual { z-index: 1; }
@media (max-width: 760px) {
  .hero::before { background: rgba(247,247,247,.88); }
  .hero-badge-year { display: none; }
}
/* Тексты полосы преимуществ — не больше двух строк */
.benefit h3, .benefit p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Шапка: адрес и телефоны справа, текст выровнен по левому краю (26.10) */
.header-addr { margin-left: auto; text-align: left; }
.header-contacts { margin-left: 0; }
.header-phones { text-align: left; }
@media (max-width: 1024px) { .header-contacts { margin-left: auto; } }

/* =========================================================
   Окно связи по образцу plombo.ru (26.10): полоса сверху, QR с подписью,
   Max + WhatsApp, поле телефона, синяя полоса с номером
   ========================================================= */
.contact-modal-dialog { max-width: 680px; padding: 40px 40px 32px; border: 0; border-top: 8px solid var(--blue-btn-1); border-radius: 4px; box-shadow: 0 24px 64px rgba(15,20,30,.35); }
.contact-modal-close { top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 4px; background: #f5f5f7; border: 1px solid var(--line); color: var(--ink-2); }
.contact-modal-close svg { width: 20px; height: 20px; }
.contact-modal-close:hover { color: var(--ink); border-color: var(--blue); }
.contact-modal-dialog h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 32px; }
.contact-modal-body { gap: 16px; margin-bottom: 24px; }
.contact-modal-qr-block, .contact-modal-buttons { border-radius: 4px; padding: 24px; background: var(--bg-soft); border: 1px solid #eceef2; }
.contact-modal-qr-label { background: var(--yellow); color: var(--ink); font-size: 14px; padding: 8px 20px; margin-bottom: 16px; }
.contact-modal-qr { border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: 148px; height: 148px; }
.contact-modal-qr-note { margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.contact-modal-buttons { gap: 12px; justify-content: flex-start; }
.msg-btn { border-radius: 4px; min-height: 56px; padding: 12px 20px; font-size: 1.125rem; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.contact-modal-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.contact-modal-or::before, .contact-modal-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-modal-form { display: grid; gap: 12px; }
.contact-modal-input { width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; font-size: 17px; color: var(--ink); }
.contact-modal-input::placeholder { color: #8a909b; }
.contact-modal-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,196,.18); }
.contact-modal-submit { min-height: 56px; border: 0; border-radius: 4px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue-btn-1), var(--blue-btn-2)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.16); transition: filter .15s ease; }
.contact-modal-submit:hover { filter: brightness(1.08); }
.contact-modal-submit:disabled { opacity: .7; cursor: default; }
.contact-modal-phone { border: 0; border-radius: 4px; padding: 20px 32px; background: linear-gradient(135deg, var(--blue-btn-1), var(--blue-btn-2)); }
.contact-modal-phone span { color: rgba(255,255,255,.85); font-size: 16px; }
.contact-modal-phone a { color: #fff; font-size: 1.5rem; }
.contact-modal-phone a:hover { color: #fff; text-decoration: underline; }
.contact-modal-consent { font-size: 14px; gap: 12px; padding: 0; min-height: 44px; }
.contact-modal-consent input { width: 20px; height: 20px; }
.contact-modal-consent a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); }
@media (max-width: 560px) {
  .contact-modal { padding: 12px; }
  .contact-modal-dialog { padding: 32px 16px 16px; }
  .contact-modal-dialog h3 { font-size: 1.25rem; margin-bottom: 24px; padding: 0 48px; }
  .contact-modal-close { top: 12px; right: 12px; width: 44px; height: 44px; }
  .contact-modal-buttons { padding: 16px; }
  .contact-modal-phone { padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-modal-phone span { font-size: 14px; }
}
@media (min-width: 561px) {
  .contact-modal-dialog { padding: 32px 40px 24px; max-height: calc(100vh - 32px); }
  .contact-modal-dialog h3 { margin-bottom: 24px; }
  .contact-modal-body { margin-bottom: 16px; }
  .contact-modal-qr-block, .contact-modal-buttons { padding: 20px 24px; }
  .contact-modal-qr-note { margin-top: 12px; }
  .msg-btn, .contact-modal-input, .contact-modal-submit { min-height: 52px; }
  .contact-modal-phone { flex-wrap: nowrap; padding: 16px 32px; }
  .contact-modal-phone a { font-size: 1.375rem; }
}
.contact-modal-phone a:hover { text-decoration: none; opacity: .9; }
@media (min-width: 561px) {
  .contact-modal-dialog { max-width: 720px; }
  .contact-modal-phone span { white-space: nowrap; }
}

/* =========================================================
   Цены: карточки целиком помещаются в окно по высоте (26.10)
   Высота фото зависит от высоты экрана, список не растягивается,
   кнопка прижата к низу карточки.
   ========================================================= */
.price-list { flex-grow: 0; align-content: start; }
.price-card .btn { margin-top: auto; }
.price-img { height: clamp(96px, calc(100vh - 520px), 200px); margin: 16px 0; }
.price-img img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.price-card h3 { font-size: 22px; }
.price-old { margin-top: 4px; }
.price-list { margin: 16px 0 24px; gap: 8px; }
.price-list li { font-size: 15px; line-height: 1.35; }
.price-card { padding: 28px 32px; }
.price-card .btn { min-height: 52px; }
body.prices-in-view .contact-fab { opacity: 0; visibility: hidden; pointer-events: none; }

/* Квиз: шаги с выбором нескольких вариантов (3 и 5) */
.quiz-multi { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.quiz-option input[type="checkbox"] + span::before { border-radius: 6px; }
.quiz-option input[type="checkbox"]:checked + span::before {
  border: 0; background: var(--blue) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (max-width: 760px) {
  /* шаги с несколькими вариантами: два столбца, чтобы «Далее» было видно без прокрутки */
  .quiz-step:has(input[type="checkbox"]) .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quiz-step:has(input[type="checkbox"]) .quiz-option span { min-height: 56px; padding: 8px 12px; gap: 8px; font-size: 14px; line-height: 1.25; }
  .quiz-step:has(input[type="checkbox"]) .quiz-option span::before { width: 20px; height: 20px; }
}
.quiz-count, [data-quiz-step-label] { white-space: nowrap; }

/* ---------- Частые вопросы ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 24px 16px 32px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; line-height: 1.35; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { min-width: 0; }
.faq-ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-soft); position: relative; transition: background .2s, transform .2s;
}
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; left: 12px; top: 19px; width: 16px; height: 2px;
  background: var(--blue); border-radius: 2px; transition: transform .2s;
}
.faq-ico::after { transform: rotate(90deg); }
.faq-item[open] .faq-ico { background: var(--blue); }
.faq-item[open] .faq-ico::before, .faq-item[open] .faq-ico::after { background: #fff; }
.faq-item[open] .faq-ico::after { transform: rotate(0deg); }
.faq-item summary:hover .faq-q { color: var(--blue); }
.faq-a { padding: 0 80px 24px 32px; color: var(--ink-2); }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 12px; }
.faq-a ul { display: grid; gap: 8px; }
.faq-a li { position: relative; padding-left: 24px; }
.faq-a li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
@media (max-width: 760px) {
  .faq-item summary { min-height: 56px; padding: 12px 16px 12px 20px; font-size: 16px; }
  .faq-ico { flex-basis: 32px; width: 32px; height: 32px; }
  .faq-ico::before, .faq-ico::after { left: 8px; top: 15px; }
  .faq-a { padding: 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .faq-ico, .faq-ico::before, .faq-ico::after { transition: none; } }
