/* =========================================================
   KAINAR SERVICE — «Жидкое стекло», октябрь 2026
   Одна таблица стилей для всех шаблонов сайта: главная,
   города (/astana/…), услуги (/uslugi/…), /goroda/…, 404.

   Идея: «Қайнар» — родник. На главной из источника поднимаются
   капли жидкого стекла (WebGL, assets/js/fx.js), всё остальное —
   спокойные стеклянные панели на глубоком синем.
   Цвет несёт смысл: голубой — действия клиента (заявка),
   золотой — место под номер арендатора.
   ========================================================= */

:root {
  --night: #050e22;
  --night-2: #081633;
  --navy: #0c2150;
  --sky: #2cc6ea;
  --sky-hi: #6fe0f8;
  --gold: #fec50c;
  --gold-hi: #ffd95a;
  --mist: #eef5ff;
  --haze: #a9bbd9;
  --dim: #7a8fb3;
  --line: rgba(190, 215, 255, .14);

  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --glass-fill: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 48%, rgba(255,255,255,.07));
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(255,255,255,.04), 0 24px 56px -30px rgba(0,0,0,.85);
  --glass-blur: blur(22px) saturate(175%);
  --rim: linear-gradient(150deg, rgba(255,255,255,.55), rgba(255,255,255,.1) 28%, rgba(255,255,255,0) 54%, rgba(111,224,248,.34) 86%, rgba(255,255,255,.16));
  --sky-fill: linear-gradient(135deg, var(--sky-hi), var(--sky) 55%, #17a2cd);
  --gold-fill: linear-gradient(135deg, #ffe27e, var(--gold) 55%, #e8a600);

  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  color: var(--mist); background: var(--night);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
/* Свет «родника» за всеми страницами */
body::before {
  content: ""; position: fixed; inset: -20vh -10vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(44vw 40vw at 10% 2%, rgba(44,198,234,.18), transparent 70%),
    radial-gradient(52vw 46vw at 92% 14%, rgba(27,74,190,.34), transparent 72%),
    radial-gradient(42vw 36vw at 72% 96%, rgba(254,197,12,.07), transparent 70%),
    linear-gradient(180deg, #071637 0%, var(--night) 48%, #040b1b 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: clamp(25px, 3vw, 40px); line-height: 1.14; letter-spacing: -.015em; }
h3 { font-size: 19px; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sky-hi); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(44,198,234,.35); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 12px;
  background: var(--sky); color: var(--night); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Материал «жидкое стекло» ----------
   ::before — светящаяся кромка стекла, ::after — блик,
   который следует за курсором (fx.js задаёт --mx / --my). */
:where(.topbar, .header, .hero-search, .float-card, .service-card, .quick-order-card,
       .kz-map-card, .rent-panel, .detail-board, .work-links-grid a, .related-grid a,
       .faq-list details, .table-wrap, .howto-list li, .fault-list div, .popular-city, .city-drop, .city-more, .show-all, .footer, body > footer,
       .km-sheet, .mobile-bar, .search-wrap, .slot-demo) {
  position: relative; isolation: isolate;
}
:where(.topbar, .header, .hero-search, .float-card, .service-card, .quick-order-card,
       .kz-map-card, .rent-panel, .detail-board, .work-links-grid a, .related-grid a,
       .faq-list details, .table-wrap, .howto-list li, .fault-list div, .popular-city, .city-drop, .city-more, .show-all, .footer, body > footer,
       .km-sheet, .mobile-bar, .search-wrap, .slot-demo)::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px;
  pointer-events: none; background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
:where(.topbar, .header, .hero-search, .float-card, .service-card, .quick-order-card,
       .kz-map-card, .rent-panel, .detail-board, .work-links-grid a, .related-grid a,
       .faq-list details, .table-wrap, .howto-list li, .fault-list div, .popular-city, .city-drop, .city-more, .show-all, .footer, body > footer,
       .km-sheet, .search-wrap)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 18%) var(--my, -30%), rgba(255,255,255,.13), transparent 62%);
}

/* ---------- Шапка (два варианта разметки: .topbar и .header) ---------- */
.topbar, .header {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); min-height: 66px;
  margin: 12px auto 0; padding: 9px 10px 9px 16px; border-radius: 22px;
  background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 52%, rgba(255,255,255,.07));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: background .4s var(--ease);
}
.is-scrolled .topbar, .is-scrolled .header {
  background: linear-gradient(140deg, rgba(22,46,100,.82), rgba(8,22,52,.78));
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; line-height: 1; }
.brand .mark, .brand .brandLogo { width: 34px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.brand-text, .brand > span { display: flex; flex-direction: column; gap: 4px; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: #fff; }
.brand i, .brand small { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .34em; color: var(--haze); }

.topbar .nav, .header .nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.topbar .nav a, .header .nav a {
  padding: 9px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--haze);
  transition: color .2s, background .2s;
}
.topbar .nav a:hover, .header .nav a:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Выбор города (вставляет main.js) */
.city-switch {
  order: 3; display: inline-flex; align-items: center; gap: 6px; flex: none; height: 46px; padding: 0 12px;
  border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--haze);
}
.city-switch svg { width: 18px; height: 18px; color: var(--sky-hi); flex: none; }
.city-switch select {
  -webkit-appearance: none; appearance: none; border: 0; outline: 0; background: transparent;
  color: var(--mist); font-size: 14.5px; font-weight: 500; max-width: 150px; padding: 0 2px;
}
.city-switch option { color: #0b1a38; }
.topbar .nav { order: 2; }
.header .nav { order: 2; }
.header-cta, .call { order: 4; }
.burger, .menu { order: 5; }

/* Место под номер арендатора: пунктирная золотая «ячейка» */
.rent-cta, .rent-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: none;
  min-height: 46px; padding: 0 16px; border-radius: 14px; position: relative; overflow: hidden;
  color: var(--gold-hi); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(135deg, rgba(254,197,12,.17), rgba(254,197,12,.05));
  border: 1.5px dashed rgba(254,197,12,.78);
  transition: background .3s, border-color .3s;
}
.rent-cta::before, .rent-link::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.12.37 2.33.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.12.37 2.33.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rent-cta::after, .rent-link::after {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,232,150,.32) 50%, transparent 68%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .rent-cta::after, .rent-link::after { animation: slot-shine 7s var(--ease) 2.5s infinite; }
}
@keyframes slot-shine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.rent-cta:hover, .rent-link:hover { background: linear-gradient(135deg, rgba(254,197,12,.26), rgba(254,197,12,.09)); border-color: var(--gold); }

/* Бургер: .burger (три полоски) и .menu (полоски псевдоэлементами) */
.burger, .menu {
  display: none; position: relative; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line);
}
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu::before, .menu::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu::before { top: 18px; }
.menu::after { top: 26px; }
.menu[aria-expanded="true"]::before { top: 22px; transform: rotate(45deg); }
.menu[aria-expanded="true"]::after { top: 22px; transform: rotate(-45deg); }

/* Мобильное меню: отдельный блок (.mobile-menu) или раскрытая навигация (.header .nav.open) */
.mobile-menu, .header .nav.open {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
  display: grid; gap: 4px; padding: 10px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(26,52,110,.94), rgba(8,22,52,.96));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), 0 30px 60px -20px rgba(0,0,0,.8);
}
.mobile-menu a, .header .nav.open a { padding: 14px 16px; border-radius: 14px; font-size: 17px; font-weight: 500; color: var(--mist); }
.mobile-menu a:hover, .header .nav.open a:hover { background: rgba(255,255,255,.07); }
.mobile-menu .rent-cta, .header .nav.open .rent-cta { margin-top: 6px; min-height: 52px; padding: 0 16px; }
.header .nav .rent-cta { display: none; }
.header .nav.open .rent-cta { display: inline-flex; }

/* ---------- Кнопки ---------- */
.primary-button, .km-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; color: #03142e; background: var(--sky-fill);
  box-shadow: 0 14px 34px -14px rgba(44,198,234,.8), inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.primary-button:hover, .km-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(44,198,234,.95), inset 0 1px 0 rgba(255,255,255,.65); }
.primary-button:active, .km-primary:active { transform: translateY(1px); }
.secondary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; color: var(--mist);
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line);
}
.secondary-button:hover { background: rgba(255,255,255,.11); }
.gold-button, .km-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; color: #241900; background: var(--gold-fill);
  box-shadow: 0 14px 34px -14px rgba(254,197,12,.75), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gold-button:hover, .km-gold:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(254,197,12,.9), inset 0 1px 0 rgba(255,255,255,.7); }

/* ---------- Общая сетка разделов ---------- */
main { display: block; padding-bottom: clamp(56px, 8vw, 110px); }
:where(.hero, .catalog-section, .process-section, .quick-order-section, .coverage-section, .rent-section,
       .breadcrumbs, .detail-hero, .city-hero, .intro-section, .detail-links, .seo-preview, .faq-section, .pagehead) {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto;
}
.catalog-section, .process-section, .quick-order-section, .coverage-section, .rent-section { padding-top: clamp(64px, 9vw, 120px); }
.detail-links, .seo-preview, .faq-section, .intro-section { padding-top: clamp(40px, 6vw, 76px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; }
.section-heading.center { justify-content: center; text-align: center; }
.section-kicker {
  display: block; margin: 0 0 10px; font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sky-hi);
}
.section-lead { max-width: 38em; color: var(--haze); margin: -8px 0 26px; }

/* ---------- Главная: первый экран ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 12px;
  min-height: min(780px, calc(100svh - 78px)); padding: 32px 0 24px;
}
.hero + .catalog-section { padding-top: clamp(40px, 5vw, 72px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 22px; max-width: 13.5em;
}
.hero-lead { max-width: 33em; margin: 0 0 30px; font-size: clamp(16.5px, 1.3vw, 19px); color: var(--haze); }
.hero-visual { position: relative; z-index: 1; height: clamp(440px, 46vw, 660px); }
.spring {
  position: absolute; inset: -4% -12% -2% -8%; transform: translate3d(0, calc(var(--hero-p, 0) * -70px), 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
}
.spring canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.spring canvas.on { opacity: 1; }
/* Если WebGL недоступен — мягкие стеклянные капли на CSS */
.liquid-fallback::before, .liquid-fallback::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(111,224,248,.22) 34%, rgba(27,74,190,.18) 62%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.liquid-fallback::before { width: 46%; aspect-ratio: 1; left: 26%; bottom: 8%; }
.liquid-fallback::after { width: 22%; aspect-ratio: 1; left: 52%; top: 16%; }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 18px;
  background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.float-card-4 { left: 2%; bottom: 9%; }
.led { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #3be48f; box-shadow: 0 0 0 4px rgba(59,228,143,.16), 0 0 14px #3be48f; }
.live-cap { display: block; font-size: 13px; color: var(--haze); line-height: 1.3; }
.odometer { display: inline-flex; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; height: 1.25em; overflow: hidden; }
.od-d { display: inline-block; height: 1.25em; overflow: hidden; }
.od-r { display: flex; flex-direction: column; }
.od-r span { display: block; height: 1.25em; line-height: 1.25em; }
.od-s { display: inline-block; width: .32em; }

/* Поиск: город + что нужно + «Найти» */
.hero-search {
  display: flex; align-items: center; width: min(100%, 640px); min-height: 72px; padding: 7px; border-radius: 999px;
  background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow); transition: box-shadow .3s;
}
.hero-search:focus-within { box-shadow: var(--glass-shadow), 0 0 0 2px rgba(111,224,248,.5); }
.hs-city, .hs-query { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 12px 0 16px; }
.hs-city { flex: 0 0 auto; }
.hs-query { flex: 1 1 auto; }
.hs-ico { width: 20px; height: 20px; flex: none; color: var(--sky-hi); }
.hs-field { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.hs-field small { font-size: 12.5px; line-height: 1.2; color: var(--dim); }
.hs-field select, .hs-field input {
  width: 100%; min-width: 0; padding: 2px 0 0; border: 0; outline: 0; background: transparent;
  font-size: 16.5px; font-weight: 500; color: var(--mist);
}
.hs-field select { -webkit-appearance: none; appearance: none; padding-right: 22px; }
.hs-field option { color: #0b1a38; }
.hs-field input::placeholder { color: #7186ab; }
.hs-chev { position: absolute; right: 8px; width: 16px; height: 16px; color: var(--haze); pointer-events: none; }
.hs-sep { width: 1px; align-self: stretch; margin: 12px 0; background: var(--line); }
.hs-go {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16.5px; font-weight: 700; color: #03142e; background: var(--sky-fill);
  box-shadow: 0 12px 30px -12px rgba(44,198,234,.85), inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .3s var(--ease);
}
.hs-go:hover { transform: translateY(-1px); }
.hs-go svg { width: 18px; height: 18px; }
.quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; color: var(--dim); }
.quick-tags > span { margin-right: 4px; }
.quick-tag {
  height: 38px; padding: 0 15px; border: 0; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--mist);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s;
}
.quick-tag:hover { background: rgba(44,198,234,.14); box-shadow: inset 0 0 0 1px rgba(111,224,248,.5); }

/* Порядок появления первого экрана — единственная «постановка» на странице */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise-in 1s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .js .float-card { animation: rise-in 1.1s var(--ease) .5s both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Каталог ---------- */
.search-wrap {
  display: flex; align-items: center; gap: 10px; height: 52px; width: min(100%, 380px); padding: 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s;
}
.search-wrap:focus-within { box-shadow: inset 0 0 0 1.5px rgba(111,224,248,.6); }
.search-wrap svg { width: 19px; height: 19px; color: var(--sky-hi); flex: none; }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15.5px; color: var(--mist); }
.search-wrap input::placeholder { color: #7186ab; }

.chips { display: flex; gap: 8px; margin: 0 0 24px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--haze); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .25s, background .25s;
}
.chip:hover { color: #fff; background: rgba(255,255,255,.09); }
.chip[aria-pressed="true"] { color: #03142e; background: var(--sky-fill); box-shadow: 0 10px 26px -12px rgba(44,198,234,.8); }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 26px 50px -32px rgba(0,0,0,.95);
}
.cat-photo { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transform: scale(1.07); transition: transform 1s var(--ease); }
.service-card:hover .cat-photo { transform: scale(1.11); }
.cat-title-bar {
  position: relative; z-index: 2; margin: -30px 10px 0; padding: 12px 14px; border-radius: 16px;
  font-size: 16.5px; font-weight: 600; line-height: 1.3; color: #fff;
  background: linear-gradient(145deg, rgba(14,34,78,.66), rgba(8,22,52,.5));
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -14px rgba(0,0,0,.8);
}
.cat-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 14px 16px 16px; }
.cat-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--haze); }
.cat-bullets li { position: relative; padding-left: 16px; }
.cat-bullets li::before {
  content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, var(--sky)); box-shadow: 0 0 10px var(--accent, var(--sky));
}
.cat-bullets li:nth-child(n+4) { display: none; }
.cat-icon-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; color: var(--accent, var(--sky-hi));
  background: rgba(5,14,34,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.cat-icon-badge svg { width: 21px; height: 21px; }
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-actions a:first-child { font-size: 14.5px; font-weight: 600; color: var(--sky-hi); }
/* Вся карточка — ссылка на услугу; «Заявка» остаётся отдельной кнопкой */
.card-actions a:first-child::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-wa {
  position: relative; z-index: 4; display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #03142e; background: var(--sky-fill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
/* Старая карточка (/goroda/<город>/): иконка, заголовок, описание, метки */
.service-card .service-icon {
  width: 48px; height: 48px; margin: 18px 18px 0; border-radius: 15px; display: grid; place-items: center;
  color: var(--accent, var(--sky-hi)); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line);
}
.service-card .service-icon svg { width: 23px; height: 23px; }
.service-number { display: none; }
.service-card > h3 { margin: 14px 18px 6px; font-size: 19px; }
.service-card > p { margin: 0 18px; font-size: 14.5px; color: var(--haze); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 18px 0; }
.job-tags span { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; color: var(--haze); background: rgba(255,255,255,.06); }
.service-card > .card-actions { padding: 18px; }

.show-all {
  display: flex; align-items: center; gap: 10px; margin: 26px auto 0; height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; color: var(--mist); background: var(--glass-fill); box-shadow: var(--glass-shadow);
}
.empty-state {
  padding: 26px; border-radius: 22px; text-align: center; color: var(--haze);
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line);
}
.empty-state .primary-button { margin-top: 14px; }

/* ---------- Как это работает: три шага, линия наполняется при прокрутке ---------- */
.process-grid { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.process-grid::before, .process-grid::after {
  content: ""; position: absolute; top: 39px; left: 16.66%; height: 2px; border-radius: 2px;
}
.process-grid::before { right: 16.66%; background: rgba(255,255,255,.1); }
.process-grid::after { width: calc(66.68% * var(--p)); background: linear-gradient(90deg, var(--sky), var(--sky-hi)); box-shadow: 0 0 18px var(--sky); }
.process-step { position: relative; z-index: 1; padding: 0 14px; text-align: center; }
.process-step i {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  font-style: normal; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6), rgba(111,224,248,.2) 36%, rgba(12,33,80,.75) 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 16px 40px -14px rgba(44,198,234,.6);
  transition: box-shadow .6s var(--ease);
}
.process-step.on i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 6px rgba(44,198,234,.12), 0 18px 46px -12px rgba(44,198,234,.9); }
.process-step h3 { margin-bottom: 8px; font-size: 19px; }
.process-step p { max-width: 30ch; margin: 0 auto; font-size: 15.5px; color: var(--haze); }

/* ---------- Срочные заявки ---------- */
.quick-order-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick-order-card {
  display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 24px; background: var(--night-2);
  box-shadow: 0 26px 50px -30px rgba(0,0,0,.95);
}
.quick-order-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1s var(--ease); }
.quick-order-card:hover img { transform: scale(1.1); }
.quick-order-card > div {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(14,34,78,.66), rgba(8,22,52,.5));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.quick-order-card b { font-size: 17px; font-weight: 600; line-height: 1.3; color: #fff; }
.quick-order-card span { font-size: 14.5px; font-weight: 600; color: var(--sky-hi); }

/* ---------- География ---------- */
.coverage-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.coverage-copy p { max-width: 34em; color: var(--haze); }
.city-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 12px; }
.city-pill {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s;
}
.city-pill:hover { background: rgba(44,198,234,.14); box-shadow: inset 0 0 0 1px rgba(111,224,248,.5); }
.city-more { max-width: 540px; border-radius: 22px; background: rgba(255,255,255,.04); }
.city-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
  list-style: none; cursor: pointer; font-weight: 600;
}
.city-more summary::-webkit-details-marker { display: none; }
.city-more summary svg { width: 18px; height: 18px; color: var(--sky-hi); transition: transform .35s var(--ease); }
.city-more[open] summary svg { transform: rotate(180deg); }
.city-more nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; padding: 0 18px 16px; }
.city-more nav a { padding: 6px 0; font-size: 15px; color: var(--haze); }
.city-more nav a:hover { color: #fff; }

.kz-map-card { padding: 22px 22px 18px; border-radius: 30px; background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.kz-map-svg { display: block; width: 100%; height: auto; }
.kz-country { fill: rgba(44,198,234,.07); stroke: rgba(111,224,248,.55); stroke-width: 2.4; stroke-linejoin: round; }
.kz-city { cursor: pointer; }
.kz-dot { r: 7.4; fill: var(--sky-hi); stroke: var(--night); stroke-width: 2; transition: r .25s, fill .25s; }
.kz-dot-halo { r: 17; fill: var(--sky-hi); fill-opacity: .14; transition: fill-opacity .25s, fill .25s; }
.kz-label {
  font-size: 27px; font-weight: 600; fill: var(--haze); paint-order: stroke; stroke: var(--night); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none; transform: translateX(4px);
}
.kz-city:hover .kz-dot, .kz-city.active .kz-dot, .kz-city:focus-visible .kz-dot { r: 9.5; fill: var(--gold); }
.kz-city:hover .kz-dot-halo, .kz-city.active .kz-dot-halo, .kz-city:focus-visible .kz-dot-halo { fill: var(--gold); fill-opacity: .22; }
.kz-city:hover .kz-label, .kz-city.active .kz-label { fill: #fff; }
.kz-map-status { margin-top: 6px; font-size: 14.5px; color: var(--haze); }
.kz-map-status b { color: var(--gold-hi); font-weight: 600; }
.kz-map-status a { margin-left: 8px; color: var(--sky-hi); font-weight: 600; }

/* ---------- Аренда страниц по нишам ---------- */
.rent-panel {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  overflow: hidden; padding: clamp(26px, 4.6vw, 60px); border-radius: 36px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(254,197,12,.17), transparent 56%),
    linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.025) 62%);
  box-shadow: var(--glass-shadow);
  --rim: linear-gradient(150deg, rgba(255,217,90,.8), rgba(255,255,255,.08) 34%, rgba(255,255,255,0) 58%, rgba(254,197,12,.5));
}
.rent-panel h2 { margin-bottom: 16px; }
.rent-panel p { max-width: 33em; color: var(--haze); }
.rent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.rent-mail { font-weight: 600; color: var(--gold-hi); border-bottom: 1px solid rgba(254,197,12,.45); }
.slot-demo { padding: 18px; border-radius: 26px; background: rgba(5,14,34,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.slot-bar {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 14px; border-radius: 18px;
  background: var(--glass-fill); box-shadow: var(--glass-shadow);
}
.slot-bar img { width: 28px; height: auto; }
.slot-lines { display: flex; gap: 8px; }
.slot-lines i { display: block; width: 34px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); }
.slot-number {
  margin-left: auto; display: flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 13px;
  font-weight: 600; letter-spacing: .04em; color: var(--gold-hi); white-space: nowrap;
  border: 1.5px dashed rgba(254,197,12,.85); background: rgba(254,197,12,.08);
}
.slot-rows { display: grid; gap: 10px; margin-top: 14px; }
.slot-rows div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); }
.slot-rows b { font-weight: 500; font-size: 14.5px; color: var(--haze); }
.slot-rows span { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gold-hi); border: 1.5px dashed rgba(254,197,12,.7); }
.slot-caption { margin: 14px 2px 0; font-size: 14px; color: var(--dim); }

/* ---------- Внутренние страницы ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 24px; font-size: 14px; color: var(--dim); }
.breadcrumbs a { color: var(--haze); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs b { font-weight: 500; color: var(--mist); }
.breadcrumbs span { opacity: .55; }

.detail-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
  gap: clamp(24px, 4vw, 56px); padding-top: clamp(26px, 4vw, 52px);
}
.detail-hero > div:not(.liquid-bg):not(.detail-board) { position: relative; z-index: 2; }
.detail-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 19px;
  color: var(--accent, var(--sky-hi));
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.34), rgba(255,255,255,.05) 58%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 16px 36px -16px var(--accent, var(--sky));
}
.detail-icon svg { width: 27px; height: 27px; }
.detail-hero h1, .city-hero h1, .pagehead h1 {
  margin: 4px 0 18px; font-family: var(--font-display); font-size: clamp(27px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em;
}
h1 em { font-style: normal; color: inherit; }
.detail-hero p, .city-hero p { max-width: 34em; margin-bottom: 26px; font-size: 17px; color: var(--haze); }
.detail-board {
  z-index: 2; padding: 22px 22px 14px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 55%, rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.detail-board > span { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 500; color: var(--haze); }
.detail-board > div { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-top: 1px solid rgba(255,255,255,.08); font-size: 15.5px; }
.detail-board > span + div { border-top: 0; }
/* Номера 01…06 у популярных задач — не последовательность, вместо них точка */
.detail-board i { flex: none; width: 8px; height: 8px; border-radius: 50%; font-size: 0; color: transparent; background: var(--accent, var(--sky)); box-shadow: 0 0 12px var(--accent, var(--sky)); }
.detail-board b { flex: 1; font-weight: 500; }
.detail-board em { display: none; }
/* Холст с каплями за стеклом (вставляет fx.js) */
.liquid-bg, .detail-hero > .liquid-bg, .city-hero > .liquid-bg { position: absolute; z-index: 0; pointer-events: none; max-width: none; }
.liquid-bg canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.liquid-bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
}
.liquid-bg canvas.on { opacity: 1; }
.detail-hero > .liquid-bg { top: -14%; right: -8%; width: 56%; height: 128%; }
.city-hero { position: relative; padding-top: clamp(36px, 6vw, 84px); }
.city-hero > :not(.liquid-bg) { position: relative; z-index: 2; max-width: 40em; }
.city-hero > .liquid-bg { top: -10%; right: -6%; width: 48%; height: 140%; }
@media (max-width: 760px) { .city-hero > .liquid-bg { right: calc(-1 * var(--gutter)); width: 60%; } }

.intro-section p { max-width: 68ch; font-size: 17px; color: var(--haze); }
.work-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-links-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; padding: 14px 18px; border-radius: 18px;
  font-size: 15.5px; background: rgba(255,255,255,.05); transition: background .3s;
}
.work-links-grid a:hover { background: rgba(44,198,234,.1); }
.work-links-grid b { font-weight: 500; }
.work-links-grid i, .related-grid i { flex: none; font-style: normal; color: var(--sky-hi); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-grid a {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); transition: background .3s;
}
.related-grid a:hover { background: linear-gradient(160deg, rgba(44,198,234,.14), rgba(255,255,255,.03)); }
.related-grid b { font-size: 16.5px; font-weight: 600; }
.related-grid span { font-size: 14.5px; color: var(--haze); }
.related-grid a:has(> i) { flex-direction: row; align-items: center; justify-content: space-between; }

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-list details { border-radius: 20px; background: rgba(255,255,255,.05); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px;
  list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1;
  color: var(--sky-hi); background: rgba(255,255,255,.08); transition: transform .35s var(--ease);
}
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 20px 18px; font-size: 15.5px; color: var(--haze); }

/* Выбор города на страницах /uslugi/… */
.city-strip { padding-top: clamp(32px, 5vw, 56px); }
.city-drop { max-width: 900px; border-radius: 22px; background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.city-drop summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; list-style: none; cursor: pointer; font-weight: 600; }
.city-drop summary::-webkit-details-marker { display: none; }
.city-drop summary svg { width: 20px; height: 20px; color: var(--sky-hi); flex: none; }
.drop-chev { margin-left: auto; transition: transform .35s var(--ease); }
.city-drop[open] .drop-chev { transform: rotate(180deg); }
.city-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 16px; padding: 0 20px 18px; }
.city-links a { padding: 7px 0; color: var(--haze); }
.city-links a:hover { color: #fff; }

.pagehead { text-align: center; }
.pagehead p { color: var(--haze); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Подвал (варианты .footer и <footer> без класса) ---------- */
.footer, body > footer {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin: 0 auto 24px; padding: clamp(26px, 4vw, 48px);
  border-radius: 32px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
.footer-brand-col > p, .footBrand > p { max-width: 30em; margin: 16px 0; font-size: 15px; color: var(--haze); }
.footer-contact { display: grid; gap: 10px; justify-items: start; }
.footer-contact > a:not(.rent-link) { font-weight: 500; }
.footer-contact > a:not(.rent-link):hover { color: var(--sky-hi); }
.footer-note { font-size: 13.5px; color: var(--dim); }
.footer-col h4 { margin-bottom: 12px; font-size: 15px; color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.footer-links a { font-size: 14.5px; color: var(--haze); }
.footer-links a:hover { color: #fff; }
/* Старый вариант подвала (/goroda/…): бренд и контакты без сетки */
.footer:not(:has(.footer-grid)) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.footer:not(:has(.footer-grid)) .footer-links { grid-template-columns: repeat(3, max-content); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim);
}
body > footer:not(.footer) { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
body > footer:not(.footer) > div > b { display: block; margin-bottom: 10px; font-size: 15px; color: #fff; }
body > footer:not(.footer) > div:not(.footBrand):not(.footBottom) a { display: block; padding: 4px 0; font-size: 14.5px; color: var(--haze); }
body > footer:not(.footer) > div:not(.footBrand):not(.footBottom) a:hover { color: #fff; }
.footBrand .rent-link { margin-top: 2px; }
.footBottom { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar { display: none; }

/* ---------- Окно заявки / аренды ---------- */
.kmodal {
  width: min(520px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); padding: 0; border: 0; overflow: visible;
  background: transparent; color: var(--mist);
}
.kmodal[open]:not(:modal) { position: fixed; inset: 0; z-index: 300; margin: auto; }
.kmodal::backdrop { background: rgba(2,7,18,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.km-sheet {
  max-height: calc(100vh - 24px); overflow-y: auto; padding: 28px; border-radius: 30px;
  background: linear-gradient(150deg, rgba(32,62,128,.8), rgba(8,22,52,.9));
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 40px 90px -30px rgba(0,0,0,.95);
}
@media (prefers-reduced-motion: no-preference) {
  .kmodal[open] .km-sheet { animation: km-in .5s var(--ease); }
}
@keyframes km-in { from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.km-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%;
  font-size: 24px; line-height: 1; color: #fff; background: rgba(255,255,255,.1);
}
.km-sheet h2 { margin: 0 44px 10px 0; font-size: clamp(21px, 2.6vw, 27px); }
.km-sub { margin-bottom: 18px; font-size: 15.5px; color: var(--haze); }
.km-sub a, .km-alt a { color: var(--sky-hi); font-weight: 600; }
.km-form { display: grid; gap: 12px; }
.km-field { display: grid; gap: 6px; font-size: 14px; color: var(--haze); }
.km-field input, .km-field select, .km-field textarea {
  width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; outline: 0; font-size: 16px; color: var(--mist);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.km-field textarea { resize: vertical; min-height: 84px; }
.km-field select { -webkit-appearance: none; appearance: none; }
.km-field option { color: #0b1a38; }
.km-field input:focus, .km-field select:focus, .km-field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--sky-hi); }
.km-field input::placeholder, .km-field textarea::placeholder { color: #7186ab; }
.km-error { margin: 0; font-size: 14px; color: #ff9d9d; }
.km-form .km-primary { width: 100%; margin-top: 4px; }
.km-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.km-alt { margin: 16px 0 0; font-size: 14.5px; color: var(--haze); }
.km-copy:not(.km-primary) {
  min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 600; color: var(--mist);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line);
}
.km-slot {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 20px; min-height: 64px; padding: 0 18px;
  border-radius: 20px; font-family: var(--font-display); font-size: clamp(15px, 2.2vw, 19px); font-weight: 600; text-align: center;
  color: var(--gold-hi); border: 2px dashed rgba(254,197,12,.85); background: rgba(254,197,12,.08);
}
.km-slot svg { width: 20px; height: 20px; flex: none; }
.km-primary svg, .km-gold svg { width: 20px; height: 20px; flex: none; }
.km-actions .km-primary { flex: 1 1 auto; }
.km-open { overflow: hidden; }

/* ---------- Появление при прокрутке: стекло «запотевает» и проясняется ---------- */
.rv { opacity: 0; transform: translateY(16px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .spring { transform: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .topbar .nav, .header .nav { display: none; }
  .header .nav.open { display: grid; }
  .burger, .menu { display: inline-block; }
  .topbar, .header { gap: 10px; }
  .city-switch { margin-left: auto; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Первый экран в одну колонку: на ширине до 1100 px строке поиска не хватает места рядом с каплями */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 0 0 40px; }
  .hero-visual { order: -1; height: clamp(220px, 30vw, 320px); margin: 0 calc(-1 * var(--gutter)); }
  .spring { inset: 0; }
  .float-card-4 { left: var(--gutter); bottom: 8px; }
  .hero-copy { padding-top: 6px; }
}
@media (max-width: 1023px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero > .liquid-bg { top: -6%; right: calc(-1 * var(--gutter)); width: 72%; height: 64%; opacity: .7; }
  .coverage-section { grid-template-columns: 1fr; }
  .rent-panel { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 26px; }
  .process-grid::before, .process-grid::after { top: 40px; left: 39px; width: 2px; }
  .process-grid::before { right: auto; bottom: 40px; }
  .process-grid::after { height: calc((100% - 80px) * var(--p)); }
  .process-step { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 20px; padding: 0; text-align: left; }
  .process-step i { grid-row: 1 / span 2; margin: 0; }
  .process-step h3 { align-self: end; margin: 0 0 4px; }
  .process-step p { margin: 0; max-width: 40ch; }
  .quick-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  body > footer:not(.footer) { grid-template-columns: 1fr 1fr; }
  .footBrand { grid-column: 1 / -1; }
  .work-links-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 92px; }
  .topbar, .header { top: 8px; margin-top: 8px; min-height: 60px; padding: 7px 8px 7px 12px; border-radius: 20px; }
  .header-cta, .call { display: none; }
  .city-switch { height: 44px; padding: 0 10px; }
  .city-switch select { max-width: 112px; font-size: 14px; }
  .brand .mark, .brand .brandLogo { width: 30px; }
  .brand b { font-size: 13.5px; }
  .brand i, .brand small { font-size: 9px; }

  .hero-visual { height: 240px; }
  .float-card-4 { bottom: 4px; padding: 9px 14px 9px 12px; }
  .odometer { font-size: 18px; }
  .hero-search { flex-direction: column; align-items: stretch; min-height: 0; padding: 8px; border-radius: 26px; }
  .hs-city, .hs-query { min-height: 58px; padding: 0 12px; }
  .hs-sep { height: 1px; width: auto; margin: 0 12px; }
  .hs-go { justify-content: center; height: 54px; margin-top: 6px; }

  .search-wrap { width: 100%; }
  .cat-photo { aspect-ratio: 4 / 3; }
  .cat-title-bar { margin: -24px 6px 0; padding: 9px 11px; font-size: 14.5px; border-radius: 13px; }
  .cat-body { padding: 10px 10px 12px; gap: 10px; }
  .cat-bullets { display: none; }
  .cat-icon-badge { top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 11px; }
  .cat-icon-badge svg { width: 17px; height: 17px; }
  .card-actions { flex-wrap: wrap; gap: 8px; }
  .card-actions a:first-child { font-size: 13.5px; }
  .card-wa { height: 34px; padding: 0 12px; font-size: 13px; }
  .service-card { border-radius: 20px; }

  .quick-order-card { aspect-ratio: 3 / 4; border-radius: 20px; }
  .quick-order-card > div { left: 6px; right: 6px; bottom: 6px; padding: 10px 12px; border-radius: 15px; }
  .quick-order-card b { font-size: 15px; }
  .quick-order-card span { font-size: 13px; }

  .city-more nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kz-map-card { padding: 14px 12px 12px; border-radius: 24px; }
  .kz-label { display: none; }
  .kz-dot { r: 22; }
  .kz-dot-halo { r: 40; }
  .kz-city:hover .kz-dot, .kz-city.active .kz-dot { r: 28; }

  .slot-lines { display: none; }
  .detail-board { padding: 18px 16px 10px; border-radius: 24px; }
  .work-links-grid, .related-grid { grid-template-columns: 1fr; }
  .city-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid, body > footer:not(.footer), .footer:not(:has(.footer-grid)) { grid-template-columns: 1fr; }
  .footer, body > footer { border-radius: 26px; }

  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 24px;
    background: linear-gradient(150deg, rgba(30,58,120,.78), rgba(8,22,52,.86));
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow), 0 20px 40px -10px rgba(0,0,0,.7);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 10px; border-radius: 17px;
    font-size: 14.5px; font-weight: 700; line-height: 1.15; text-align: center;
  }
  .mobile-bar .mb-order { color: #03142e; background: var(--sky-fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
  .mobile-bar .mb-rent { min-height: 50px; font-weight: 600; white-space: normal; }

  .kmodal { width: 100%; max-height: 100%; margin: auto 0 0; }
  .kmodal[open]:not(:modal) { inset: auto 0 0; }
  .km-sheet { max-height: 92vh; border-radius: 28px 28px 0 0; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .chip { height: 40px; padding: 0 15px; font-size: 14.5px; }
  .mobile-bar a { font-size: 13.5px; }
}
/* На сенсорных экранах размытие под каждой карточкой дорого — оставляем его шапке и окнам */
@media (hover: none) {
  .cat-title-bar, .quick-order-card > div { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9,24,56,.78); }
}


/* ---------- Приоритетные страницы: цены, «Как заказать», поломки, популярное (25.10.2026) ---------- */
:where(.price-section, .howto-section, .faults-section, .popular-section) {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto;
  padding-top: clamp(40px, 6vw, 76px);
}
.intro-section h2 { margin-bottom: 18px; }
.table-wrap { max-width: 900px; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.05); box-shadow: var(--glass-shadow); }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th, .price-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 14px; font-weight: 600; color: var(--sky-hi); background: rgba(255,255,255,.04); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .price { text-align: right; white-space: nowrap; }
.price-table td.price { font-weight: 600; color: var(--mist); }
.price-table td a { color: var(--sky-hi); font-weight: 600; }
.price-note { max-width: 900px; margin: 14px 0 0; font-size: 14.5px; color: var(--dim); }
.price-lead { max-width: 68ch; color: var(--haze); }
.factor-list { max-width: 900px; margin: 0; padding-left: 1.2em; color: var(--haze); }
.factor-list li { margin: 0 0 8px; }
.howto-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: howto; }
.howto-list li { padding: 20px 20px 20px 70px; border-radius: 20px; background: rgba(255,255,255,.05); counter-increment: howto; }
.howto-list li::after { content: counter(howto); position: absolute; left: 20px; top: 18px; z-index: 4; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 15px; color: #03142e; background: var(--sky-fill); }
.howto-list b { display: block; margin-bottom: 4px; font-size: 16.5px; font-weight: 600; }
.howto-list span { display: block; font-size: 15px; color: var(--haze); }
.howto-cta { margin-top: 22px; }
.fault-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fault-list div { padding: 18px 20px; border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
.fault-list dt { margin-bottom: 6px; font-size: 16.5px; font-weight: 600; }
.fault-list dd { margin: 0; font-size: 15px; color: var(--haze); }
.popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.popular-city { padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,.05); }
.popular-city h3 { margin: 0 0 10px; font-size: 17px; }
.popular-city h3 a { color: var(--sky-hi); }
.popular-city ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.popular-city li a { font-size: 15px; color: var(--haze); transition: color .2s; }
.popular-city li a:hover { color: var(--mist); }
.popular-more { margin: 16px 0 0; font-size: 15px; color: var(--haze); }
.popular-more a { color: var(--sky-hi); }
@media (max-width: 1080px) {
  .popular-grid, .fault-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .howto-list, .fault-list { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px 14px; font-size: 15px; }
  .price-table .price { white-space: normal; }
}
@media (max-width: 420px) { .popular-grid { grid-template-columns: 1fr; } }

/* ---------- Текстовые разделы страниц услуг (26.10.2026) ---------- */
:where(.text-section) {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto;
  padding-top: clamp(40px, 6vw, 76px);
}
.text-section > h2 { margin-bottom: 18px; }
.text-section p { max-width: 68ch; font-size: 17px; color: var(--haze); }
.text-list { max-width: 72ch; margin: 0 0 1em; padding-left: 1.25em; color: var(--haze); font-size: 17px; }
.text-list li { margin: 0 0 9px; padding-left: 4px; }
.text-list li::marker { color: var(--sky-hi); font-weight: 700; }

/* ---------- Прайс: свёрнутый вид, кнопка «Показать все цены» (26.10.2026) ---------- */
.price-table.is-collapsed tr.price-extra { display: none; }
.price-table.is-collapsed tbody tr:nth-child(5) td { border-bottom: 0; }
.price-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: var(--mist);
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  transition: background .2s;
}
.price-toggle:hover { background: rgba(255,255,255,.11); }
.price-toggle:focus-visible { outline: 2px solid var(--sky-hi); outline-offset: 3px; }
.price-toggle::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s;
}
.price-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

/* ---------- Страницы, сданные в аренду: номер вместо «Здесь может быть ваш номер» (26.10.2026) ---------- */
.has-renter .rent-cta, .has-renter .rent-link { border-style: solid; }
.has-renter .rent-cta::after, .has-renter .rent-link::after { display: none; }
.renter-call { margin-left: 10px; }
@media (max-width: 760px) { .renter-call { margin: 10px 0 0; } }

/* ---------- Подвал: услуги и города — чипами, каждая ссылка отдельно (26.10.2026) ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px;
  font-size: 14px; line-height: 1.25; color: var(--haze); background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s;
}
.footer-links a:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Как это работает: ряды с анимированными изометрическими сценами (27.10.2026) ---------- */
.process-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 3vw, 40px); }
.process-row {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(20px, 4vw, 64px);
}
.process-row:nth-child(even) .process-copy { order: 2; }
.process-copy { max-width: 470px; }
.process-copy .step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6), rgba(111,224,248,.2) 36%, rgba(12,33,80,.75) 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 14px 32px -12px rgba(44,198,234,.75);
}
.process-copy h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.process-copy p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--haze); }
.process-art { position: relative; margin: 0; }
.process-art img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .process-rows { gap: 34px; }
  .process-row { grid-template-columns: 1fr; gap: 0; }
  .process-row:nth-child(even) .process-copy { order: 0; }
  .process-art { order: -1; margin: -8px -10px 0; }
  .process-copy .step-num { width: 40px; height: 40px; margin-bottom: 12px; font-size: 16px; }
}
