/* Layout: светлая страница, одна тёмная «смета» (калькулятор) как главный акцент; текст выровнен влево, сетка 1200px. */
:root {
  /* Цвета бренда Clean Master с флаера: голубой + тёмно-синий */
  --paper: #f7fafc;      /* фон страницы */
  --surface: #ffffff;
  --mist: #ebf5fa;       /* фон чередующихся секций */
  --ink: #0f2533;        /* основной текст и тёмная карточка калькулятора */
  --ink-soft: #4b6273;
  --line: #d3e2ea;
  --alatau: #0a7cb4;     /* ссылки, CTA-полоса */
  --apple: #29abe2;      /* фирменный голубой: итог калькулятора, акценты */
  --apple-ink: #075d87;  /* текст на светло-голубом */
  --tint: #dcf1fb;       /* светло-голубые плашки цен и галочки */
  --wa: #1f8a4c;         /* кнопки WhatsApp */
  --wa-hover: #187340;

  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r-lg: 18px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--alatau); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--alatau); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font: 500 clamp(2rem, 4.6vw, 3.4rem)/1.08 var(--f-display); letter-spacing: -0.025em; }
h2 { font: 500 clamp(1.45rem, 2.6vw, 2rem)/1.2 var(--f-display); letter-spacing: -0.02em; }
h3 { font: 600 1.125rem/1.35 var(--f-body); }
p { margin: 0; }
.lead { font-size: 1.1875rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); font-weight: 400; }

.wrap {
  max-width: 1200px; margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.narrow { max-width: calc(760px + 32px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding-inline: 22px; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s ease;
}
.btn-sm { min-height: 40px; padding-inline: 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* Шапка */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--f-display); letter-spacing: -0.02em; }
.wm { display: inline-grid; line-height: 1; }
.wm-top { font: 700 1.375rem/1 var(--f-display); letter-spacing: -0.01em; }
.wm-top::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: 3px; border-radius: 2px; background: var(--apple); vertical-align: .05em; }
.wm-sub { font: 600 .625rem/1 var(--f-body); letter-spacing: .5em; margin-top: 4px; color: var(--ink-soft); }
.logo-light { color: #fff; }
.logo-light .wm-sub { color: #9fbccc; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: 12px; }
.main-nav > a, .nav-services > summary { color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; }
.main-nav > a:hover, .nav-services > summary:hover { color: var(--alatau); }
.nav-services { position: relative; }
.nav-services > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-services[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.mega {
  position: absolute; top: calc(100% + 18px); left: -24px; z-index: 60;
  display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 28px; box-shadow: 0 18px 40px rgba(22, 50, 61, .14);
}
.mega ul, .mobile-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mega a, .mobile-panel a { color: var(--ink); text-decoration: none; }
.mega a:hover, .mobile-panel a:hover { color: var(--alatau); text-decoration: underline; }
.mega-title { font-size: .875rem; color: var(--ink-soft); margin-bottom: 10px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .main-nav, .header-phone { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu > summary {
    list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
    padding-inline: 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600;
  }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter-r) 24px var(--gutter);
    max-height: calc(100vh - 80px); overflow-y: auto;
    display: grid; gap: 6px;
  }
  .mobile-panel .mega-title { margin: 12px 0 4px; }
  .mobile-panel a { display: block; padding-block: 6px; }
  .mobile-main { border-top: 1px solid var(--line); margin-top: 12px !important; padding-top: 12px !important; font-weight: 600; }
}

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px 0; font-size: .9375rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* Главный экран */
.hero { padding-block: 48px 64px; }
.hero-grid {
  display: grid; gap: 28px 48px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "text calc" "photo calc";
  align-items: start;
}
.hero-text { grid-area: text; display: grid; gap: 20px; }
.hero-grid .hero-calc { grid-area: calc; }
.hero-grid .hero-photo { grid-area: photo; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.hero-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-soft); }
.hero-facts b { display: block; color: var(--ink); font: 600 1.25rem/1.3 var(--f-body); font-variant-numeric: tabular-nums; }
.calc-title { font: 600 1.125rem/1.3 var(--f-body); margin-bottom: 12px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { padding-block: 28px 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "calc" "photo"; }
}

/* Калькулятор: тёмная «смета» */
.calc {
  background: var(--ink); color: #eef4f3; border-radius: var(--r-lg);
  padding: 24px; display: grid; gap: 20px;
}
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend, .calc-area > label { font-size: .875rem; color: #b9cbcc; margin-bottom: 8px; padding: 0; display: block; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(255,255,255,.08); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
@media (max-width: 480px) { .seg { grid-template-columns: minmax(0, 1fr); } }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 9px; font-weight: 500; font-size: .9375rem; line-height: 1.25; cursor: pointer; }
.seg input:checked + span { background: #eef4f3; color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--apple); outline-offset: 1px; }
.area-row { display: flex; align-items: center; gap: 14px; }
.area-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--apple); height: 28px; }
.area-box { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.area-box input, .x-qty {
  width: 76px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; font: 600 1.0625rem var(--f-body); text-align: center;
  font-variant-numeric: tabular-nums;
}
.x-qty { width: 60px; min-height: 36px; font-size: .9375rem; }
.calc-extras > summary { cursor: pointer; font-weight: 500; }
.calc-extras .muted { color: #9fb5b7; font-size: .875rem; margin-left: 6px; }
.calc-extras ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.calc-extras li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: .9375rem; }
.calc-extras label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.calc-extras input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--apple); flex: none; }
.x-price { color: #b9cbcc; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total { display: grid; gap: 2px; border-top: 1px dashed rgba(255,255,255,.25); padding-top: 16px; }
.calc-total-label { font-size: .875rem; color: #b9cbcc; }
.calc-sum { font: 600 clamp(1.9rem, 4.6vw, 2.6rem)/1.1 var(--f-display); color: var(--apple); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-note { font-size: .875rem; color: #b9cbcc; }
.calc-send:focus-visible { outline-color: var(--apple); }
.calc-solo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 32px 56px; align-items: start; }
.calc-solo > div { display: grid; gap: 12px; }
@media (max-width: 900px) { .calc-solo { grid-template-columns: minmax(0, 1fr); } }

/* Секции */
.section { padding-block: 72px; }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 46em; }
.section-head p { color: var(--ink-soft); }
@media (max-width: 700px) { .section { padding-block: 48px; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; align-items: start; }
.split > div { display: grid; gap: 20px; align-content: start; }
.split-media { align-items: center; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Чек-лист с вкладками */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-list button {
  font: 600 1rem/1.2 var(--f-body); color: var(--ink); background: transparent;
  border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  display: inline-flex; gap: 10px; align-items: baseline;
}
.tab-list button:hover { border-color: var(--ink); }
.tab-list button[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-price { font-weight: 400; font-size: .875rem; opacity: .75; font-variant-numeric: tabular-nums; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.room h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
@media (max-width: 860px) { .rooms { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border-right: 2px solid var(--apple-ink); border-bottom: 2px solid var(--apple-ink); transform: rotate(45deg);
}

/* Список услуг: строки, а не карточки */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "text text";
  gap: 4px 16px; padding-block: 20px; text-decoration: none; color: var(--ink);
}
.svc-list a:hover .svc-name { color: var(--alatau); text-decoration: underline; }
.svc-name { grid-area: name; font: 600 1.1875rem/1.3 var(--f-body); }
.svc-price { grid-area: price; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--tint); color: var(--apple-ink); border-radius: 999px; padding: 3px 12px; font-size: .9375rem; align-self: start; }
.svc-text { grid-area: text; color: var(--ink-soft); font-size: 1rem; }
.svc-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
@media (max-width: 860px) { .svc-list, .svc-list-3 { grid-template-columns: minmax(0, 1fr); } }

/* Таблицы */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; background: var(--surface); }
.price-table.compact { min-width: 0; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .875rem; color: var(--ink-soft); font-weight: 500; border-bottom: 2px solid var(--ink); }
.price-table td { font-weight: 600; white-space: nowrap; }
.price-table tbody th { font-weight: 500; }
.price-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.price-cols > div { display: grid; gap: 18px; align-content: start; }
@media (max-width: 860px) { .price-cols { grid-template-columns: minmax(0, 1fr); } }

/* Шаги и гарантии */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); display: grid; place-items: center; font: 600 1.0625rem var(--f-display);
}
.steps p, .promises p { color: var(--ink-soft); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.promises li { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--apple); }

.districts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.districts li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .9375rem; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.75rem/1 var(--f-body); color: var(--alatau); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 42em; }

/* Страницы услуг */
.svc-hero { padding-block: 32px 64px; }
.svc-hero .narrow { display: grid; gap: 16px; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.svc-hero-text { display: grid; gap: 20px; padding-top: 12px; }
.svc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.from-price { display: inline-block; justify-self: start; background: var(--tint); color: var(--apple-ink); font-weight: 600; border-radius: 999px; padding: 6px 16px; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .svc-hero-grid { grid-template-columns: minmax(0, 1fr); } .svc-hero { padding-block: 20px 40px; } }

.article-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.article-aside { position: sticky; top: 100px; }
@media (max-width: 860px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }

/* Текст статьи */
.prose { display: grid; gap: 16px; max-width: 46em; }
.prose h2 { margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-size: .875rem; color: var(--ink-soft); font-weight: 500; }
.prose .table-wrap { margin-block: 4px; }
.seo-text .prose p { color: var(--ink-soft); }

/* Контакты */
.contacts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contacts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contacts dt { color: var(--ink-soft); }
.contacts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .contacts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* CTA и подвал */
.cta-band { background: var(--alatau); color: #fff; }
.cta-row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center; padding-block: 56px; }
.cta-row > div:first-child { display: grid; gap: 10px; }
.cta-row p { color: #d6e6ec; max-width: 38em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-row { grid-template-columns: minmax(0, 1fr); padding-block: 40px; } }

.site-footer { background: var(--ink); color: #c8d6d8; padding-block: 56px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-legal { font-size: .8125rem; color: #95abaf; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c8d6d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #95abaf; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Плавающая кнопка WhatsApp на телефоне */
.wa-float {
  position: fixed; z-index: 40; display: none; place-items: center;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(22, 50, 61, .3);
}
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 860px) { .wa-float { display: grid; } }

/* ===================== v2: яркая версия в цветах бренда ===================== */
:root { --navy-deep: #071722; --cyan-hover: #52c3f0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.btn-cyan { background: var(--apple); color: var(--ink); }
.btn-cyan:hover { background: var(--cyan-hover); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); color: var(--ink); }
.logo-img { height: 46px; width: auto; }
.site-footer .logo-img { height: 52px; }
@media (max-width: 960px) { .logo-img { height: 36px; } }

/* Главный экран: фото на весь экран, тёмная подложка слева, «протирка» стекла */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-deep); color: #fff;
  padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 128px);
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; aspect-ratio: auto; border-radius: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(7,23,34,.95) 0%, rgba(7,23,34,.86) 36%, rgba(7,23,34,.35) 66%, rgba(7,23,34,.15) 100%);
}
.hero-fog {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(214, 226, 232, .42);
  -webkit-backdrop-filter: blur(7px) saturate(.5); backdrop-filter: blur(7px) saturate(.5);
  animation: hero-wipe 1.9s .35s cubic-bezier(.65, 0, .35, 1) forwards;
}
.hero-squeegee {
  position: absolute; top: 0; bottom: 0; left: 0; width: 7px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #bfeaff, var(--apple) 40%, #bfeaff);
  box-shadow: 0 0 32px 10px rgba(41, 171, 226, .55);
  animation: hero-squeegee 1.9s .35s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes hero-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes hero-squeegee { 0% { transform: translateX(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(100vw); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-fog, .hero-squeegee { display: none; } }

.hero-grid {
  position: relative; z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-areas: "text calc"; align-items: center; gap: 40px 64px;
}
.hero-text { gap: 26px; max-width: 640px; }
.h1-kicker { display: block; font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.2 var(--f-body); color: var(--apple); margin-bottom: 16px; }
.h1-main { display: block; font: 600 clamp(2.7rem, 6.4vw, 5.2rem)/1.0 var(--f-display); letter-spacing: -0.04em; color: #fff; }
.hero .lead { color: #cddde5; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.hero .hero-actions { gap: 14px; }

/* Калькулятор на тёмном экране: белая карточка */
.hero .calc { background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.hero .calc::before { content: "Сколько будет стоить"; display: block; font: 600 1.25rem/1.2 var(--f-display); letter-spacing: -0.02em; }
.hero .calc legend, .hero .calc-area > label, .hero .calc-total-label, .hero .calc-note, .hero .x-price, .hero .calc-extras .muted { color: var(--ink-soft); }
.hero .seg { background: var(--mist); }
.hero .seg input:checked + span { background: var(--ink); color: #fff; }
.hero .area-box input, .hero .x-qty { background: #fff; color: var(--ink); border-color: var(--line); }
.hero .calc-total { border-top-color: var(--line); }
.hero .calc-sum { color: var(--alatau); }
.hero .seg input:focus-visible + span { outline-color: var(--alatau); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "calc"; }
  .hero::before { background: linear-gradient(180deg, rgba(7,23,34,.55) 0%, rgba(7,23,34,.88) 38%, rgba(7,23,34,.97) 70%); }
  .hero-bg img { object-position: 70% 30%; height: 60%; }
  .hero-bg { background: var(--navy-deep); }
}

/* Полоса цен */
.price-strip { background: var(--apple); color: var(--ink); }
.price-strip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-item {
  display: grid; gap: 4px; padding: 28px 28px 30px; text-decoration: none; color: var(--ink);
  border-left: 1px solid rgba(15, 37, 51, .18); transition: background-color .15s ease;
}
.ps-item:first-child { border-left: 0; padding-left: 0; }
.ps-item:hover { background: rgba(255, 255, 255, .22); color: var(--ink); }
.ps-label { font-weight: 600; }
.ps-num { font: 600 clamp(1.6rem, 3.2vw, 2.5rem)/1.1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ps-sub { font-size: .9375rem; opacity: .8; }
@media (max-width: 760px) {
  .price-strip-row { grid-template-columns: minmax(0, 1fr); }
  .ps-item, .ps-item:first-child { border-left: 0; border-top: 1px solid rgba(15, 37, 51, .18); padding: 20px 0; }
  .ps-item:first-child { border-top: 0; }
}

/* Услуги: бенто-сетка с фото и цветными плитками */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile a {
  position: relative; isolation: isolate; overflow: hidden; height: 100%; min-height: 250px;
  display: flex; align-items: flex-end; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--surface);
}
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile-img { position: absolute; inset: 0; z-index: -2; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile a:hover .tile-img img { transform: scale(1.05); }
.tile.has-img a { color: #fff; }
.tile.has-img a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,23,34,0) 25%, rgba(7,23,34,.88) 100%); }
.tile.navy a { background: var(--ink); color: #fff; }
.tile.cyan a { background: var(--apple); color: var(--ink); }
.tile.tint a { background: var(--tint); color: var(--ink); }
.tile.navy a::after, .tile.cyan a::after, .tile.tint a::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 28px solid currentColor; opacity: .08; z-index: -1;
}
.tile-body { display: grid; gap: 8px; padding: 24px; }
.tile-price { justify-self: start; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 600; font-size: .875rem; border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.tile.navy .tile-price { background: var(--apple); }
.tile.cyan .tile-price { background: var(--ink); color: #fff; }
.tile.tint .tile-price { background: #fff; }
.tile-name { font: 600 clamp(1.25rem, 2vw, 1.55rem)/1.15 var(--f-display); letter-spacing: -0.02em; }
.tile.big .tile-name { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.tile-text { font-size: .9375rem; opacity: .88; max-width: 32em; }
.tile a:hover .tile-name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.big { grid-row: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(220px, auto); } .tile.big, .tile.wide { grid-column: auto; } .tile a { min-height: 220px; } }

/* CTA: фирменный градиент */
.cta-band { background: linear-gradient(115deg, #0a6fa3 0%, var(--alatau) 40%, var(--apple) 100%); }
.cta-row h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); color: #fff; }
.cta-row p { color: #e6f5fc; }

/* Страницы услуг: светло-голубая шапка */
.svc-hero { background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); padding-block: 0 72px; }
.svc-hero .crumbs { padding-bottom: 24px; }
.svc-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.035em; font-weight: 600; }
.svc-hero .from-price { background: var(--apple); color: var(--ink); font-size: 1.0625rem; padding: 8px 18px; }
/* v2 правки */
.seg span { font-size: .875rem; padding-inline: 4px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); }
.tile-name { font: 700 clamp(1.2rem, 1.7vw, 1.45rem)/1.2 var(--f-body); letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
.tile.big .tile-name, .tile.wide .tile-name { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }
.hero::before { background: linear-gradient(90deg, rgba(7,23,34,.94) 0%, rgba(7,23,34,.8) 36%, rgba(7,23,34,.25) 66%, rgba(7,23,34,.05) 100%); }
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(7,23,34,.3) 0%, rgba(7,23,34,.7) 28%, rgba(7,23,34,.96) 58%); }
  .hero-bg img { height: 70%; }
}
.cl-note { margin-top: 28px; padding: 16px 20px; background: var(--tint); border-radius: 14px; color: var(--ink); max-width: 60em; }

/* До и после, галерея */
.works { background: var(--surface); }
.ba-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-radius: 20px; overflow: hidden; }
.ba-shot { position: relative; margin: 0; }
.ba-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ba-tag { position: absolute; left: 10px; top: 10px; font-weight: 700; font-size: .8125rem; border-radius: 999px; padding: 4px 12px; }
.ba-before { background: rgba(15, 37, 51, .82); color: #fff; }
.ba-after { background: var(--apple); color: var(--ink); }
.ba-title { font-weight: 700; font-size: 1.125rem; margin-top: 14px; }
.ba-note { color: var(--ink-soft); font-size: .9375rem; }
.gal-title { font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.2 var(--f-display); letter-spacing: -0.02em; margin: 56px 0 20px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gal-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
@media (max-width: 960px) { .ba-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Расшифровка суммы */
.calc-lines { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; font-size: .875rem; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc .calc-lines { color: #d9e6ea; }
.hero .calc .calc-lines { color: var(--ink); }
.x-price { font-size: .875rem; }
.calc-lines[hidden] { display: none; }

/* Форма заявки в калькуляторе */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.calc-lead { display: grid; gap: 10px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; }
.lead-row input {
  min-height: 50px; min-width: 0; border-radius: 12px; padding-inline: 14px;
  font: 500 1rem var(--f-body); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
}
.lead-row input::placeholder { color: #9fb5b7; }
.hero .lead-row input { background: #fff; color: var(--ink); border-color: var(--line); }
.hero .lead-row input::placeholder { color: #8aa0ae; }
@media (max-width: 420px) { .lead-row { grid-template-columns: minmax(0, 1fr); } }
.calc-submit:disabled { opacity: .7; cursor: progress; }
.btn-wa-outline { border-color: var(--wa); color: #fff; background: transparent; min-height: 46px; font-size: .9375rem; }
.btn-wa-outline:hover { background: var(--wa); color: #fff; }
.hero .btn-wa-outline { color: var(--wa); }
.hero .btn-wa-outline:hover { color: #fff; }
.lead-status { font-size: .9rem; color: #cfe9f5; }
.hero .lead-status { color: var(--ink-soft); }
.lead-status.is-error { color: #ffb4a8; }
.hero .lead-status.is-error { color: #b42318; }
.lead-done { padding: 14px 16px; border-radius: 12px; background: var(--tint); color: var(--ink); font-weight: 600; }

/* ===== правки после обхода 10.11 ===== */
/* мобильный главный экран: двухколоночная сетка только на широких экранах */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
@media (min-width: 901px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "text" "calc"; }
  .hero-text { max-width: none; }
}

/* длинные заголовки не вылезают за экран */
h1 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 520px) {
  .svc-hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.3rem); }
}

/* одна левая линия для всех блоков; узкие блоки ограничивают ширину текста, а не сдвигают его */
.wrap.narrow { max-width: 1200px; }
.wrap.narrow > *, .wrap.narrow.prose > * { max-width: 800px; }
.simple-head { display: grid; gap: 16px; }
.simple-head > * { max-width: 800px; }
.price-cols > div > h2 + .table-wrap + h2 { margin-top: 24px; }
.contacts + div .media img, .split > div > .media img { margin-bottom: 8px; }

/* таблица цен по комнатам на телефоне: карточки вместо горизонтальной прокрутки */
@media (max-width: 640px) {
  .rooms-table { min-width: 0; background: transparent; }
  .rooms-table thead { display: none; }
  .rooms-table, .rooms-table tbody, .rooms-table tr, .rooms-table th, .rooms-table td { display: block; width: 100%; }
  .rooms-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
  .rooms-table tbody th { border: 0; padding: 0 0 8px; font-weight: 700; font-size: 1.0625rem; }
  .rooms-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); }
  .rooms-table td::before { content: attr(data-label); font-weight: 400; color: var(--ink-soft); }
}
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(7,23,34,.72) 0%, rgba(7,23,34,.82) 30%, rgba(7,23,34,.96) 58%); }
}
.svc-hero:has(.simple-head > h1:last-child) { padding-bottom: 8px; }
