/* ============================================================================
   Аквадом · Кольчугино
   Единая таблица стилей для всех страниц услуг.

   Темы:
   - green    — септики и автономная канализация
   - aqua     — водоснабжение частного дома
   - orange   — монтаж отопления и котельных
   - deepblue — бурение скважин и колодцев
   - blue     — сантехнические работы

   Файл подключается на каждой странице:
   <link rel="stylesheet" href="assets/site.css">
   ============================================================================ */


/* ============================================================================
   1. ДИЗАЙН-ТОКЕНЫ
   ============================================================================ */

:root {
  /* Типографика */
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Семантические цвета */
  --ok: #2e9e5b;
  --ok-soft: #e4f5ea;
  --warn: #e6a23c;
  --warn-soft: #fdf2df;
  --danger: #d64545;
  --danger-soft: #fbe7e7;
  --info: #2f80ed;
  --info-soft: #e6f0fd;

  /* Геометрия и движение */
  --ease: cubic-bezier(.22, .9, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 80px;
  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Тени */
  --shadow-xs: 0 4px 14px -8px rgba(8, 30, 22, .28);
  --shadow-sm: 0 12px 30px -18px rgba(8, 30, 22, .32);
  --shadow-md: 0 26px 60px -30px rgba(8, 30, 22, .38);
  --shadow-lg: 0 34px 80px -34px rgba(5, 22, 15, .55);
  --shadow-xl: 0 44px 100px -30px rgba(3, 16, 11, .68);

  /* Слои */
  --z-header: 100;
  --z-mobile: 99;
  --z-to-top: 80;
  --z-modal: 400;
  --z-lightbox: 420;
  --z-toast: 500;

  /* Сетка */
  --container: 1180px;
  --gutter: 24px;
}

/* Тема: септики -------------------------------------------------------------- */
body[data-theme="green"] {
  --brand: #43a047;
  --brand-2: #2e7d32;
  --brand-3: #1b5e20;
  --soft: #e7f3e4;
  --soft-2: #f1f8ee;
  --deep: #0e3527;
  --deep-2: #155138;
  --accent: #e0862a;
  --accent-2: #8bc34a;
  --accent-ink: #ffffff;
  --bg: #f5f8f3;
  --surface: #ffffff;
  --surface-2: #fbfdfa;
  --overlay: rgba(14, 53, 39, .62);
  --scrim: rgba(4, 18, 12, .9);
  --ink: #1f2d24;
  --ink-2: #35473b;
  --muted: #61715f;
  --line: #dde7da;
  --line-2: #cbd9c7;
  --glow-1: rgba(139, 195, 74, .22);
  --glow-2: rgba(46, 125, 50, .32);
  --hero-bg: linear-gradient(135deg, #0b2c20 0%, #123f2e 46%, #1c5a3c 100%);
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, .8);
}

/* Тема: водоснабжение -------------------------------------------------------- */
body[data-theme="aqua"] {
  --brand: #1273c4;
  --brand-2: #0b5a9e;
  --brand-3: #084273;
  --soft: #e3f1fb;
  --soft-2: #f0f8fe;
  --deep: #0a3d66;
  --deep-2: #0d4f85;
  --accent: #19a7e0;
  --accent-2: #5da24a;
  --accent-ink: #ffffff;
  --bg: #f4f9fd;
  --surface: #ffffff;
  --surface-2: #fafdff;
  --overlay: rgba(10, 61, 102, .62);
  --scrim: rgba(3, 16, 26, .9);
  --ink: #17293a;
  --ink-2: #2c4256;
  --muted: #5b7186;
  --line: #d9e6f1;
  --line-2: #c4d8e8;
  --glow-1: rgba(57, 194, 255, .25);
  --glow-2: rgba(18, 115, 196, .16);
  --hero-bg: linear-gradient(180deg, #dff0fc 0%, #f2f9ff 78%);
  --hero-ink: #17293a;
  --hero-muted: #5b7186;
}

/* Тема: отопление ------------------------------------------------------------ */
body[data-theme="orange"] {
  --brand: #ee7623;
  --brand-2: #d95f0e;
  --brand-3: #a94708;
  --soft: #fdeedd;
  --soft-2: #fff7ee;
  --deep: #12365a;
  --deep-2: #0d2c4a;
  --accent: #f5a623;
  --accent-2: #e04f2f;
  --accent-ink: #ffffff;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #fffdfa;
  --overlay: rgba(18, 54, 90, .62);
  --scrim: rgba(10, 20, 32, .9);
  --ink: #22303e;
  --ink-2: #38495a;
  --muted: #6b7684;
  --line: #e7e0d5;
  --line-2: #d8cdbd;
  --glow-1: rgba(245, 166, 35, .22);
  --glow-2: rgba(238, 118, 35, .14);
  --hero-bg: linear-gradient(120deg, #fbf7f0 0%, #f4ece0 100%);
  --hero-ink: #12365a;
  --hero-muted: #6b7684;
}

/* Тема: бурение -------------------------------------------------------------- */
body[data-theme="deepblue"] {
  --brand: #0f62ac;
  --brand-2: #0a4a85;
  --brand-3: #073763;
  --soft: #e2eef8;
  --soft-2: #f0f7fd;
  --deep: #0b3a66;
  --deep-2: #0d4f8b;
  --accent: #e8b23a;
  --accent-2: #39c2ff;
  --accent-ink: #173250;
  --bg: #f3f8fc;
  --surface: #ffffff;
  --surface-2: #fafcff;
  --overlay: rgba(11, 58, 102, .62);
  --scrim: rgba(3, 16, 28, .9);
  --ink: #182c40;
  --ink-2: #2e4459;
  --muted: #5d7288;
  --line: #d8e5f0;
  --line-2: #c3d6e6;
  --glow-1: rgba(57, 194, 255, .22);
  --glow-2: rgba(232, 178, 58, .14);
  --hero-bg: linear-gradient(180deg, #e8f4fd 0%, #f6fbff 100%);
  --hero-ink: #0b3a66;
  --hero-muted: #5d7288;
}

/* Тема: сантехника ----------------------------------------------------------- */
body[data-theme="blue"] {
  --brand: #1668b3;
  --brand-2: #0d4f91;
  --brand-3: #093b6e;
  --soft: #e4f0fa;
  --soft-2: #f1f8fd;
  --deep: #0d3a63;
  --deep-2: #11507f;
  --accent: #d5453c;
  --accent-2: #39a7e0;
  --accent-ink: #ffffff;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-2: #fafcff;
  --overlay: rgba(13, 58, 99, .62);
  --scrim: rgba(4, 16, 27, .9);
  --ink: #1b2c3d;
  --ink-2: #32475b;
  --muted: #5f7386;
  --line: #dae6f0;
  --line-2: #c5d7e6;
  --glow-1: rgba(57, 167, 224, .22);
  --glow-2: rgba(22, 104, 179, .14);
  --hero-bg: linear-gradient(180deg, #dceefb 0%, #f0f7fe 100%);
  --hero-ink: #1b2c3d;
  --hero-muted: #5f7386;
}


/* ============================================================================
   2. СБРОС И БАЗОВЫЕ НАСТРОЙКИ
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font: 400 16px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s var(--ease);
}

a:hover {
  color: var(--brand-2);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================================
   3. ФИРМЕННЫЕ ПОЛОСЫ ПРОКРУТКИ
   ============================================================================ */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--soft);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--soft);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 6px;
  border: 2px solid var(--soft);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
}

::-webkit-scrollbar-corner {
  background: var(--soft);
}


/* ============================================================================
   4. ТИПОГРАФИКА И СЛУЖЕБНЫЕ КЛАССЫ
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .3px;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
h4 { font-size: 18px; }

p {
  line-height: 1.65;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: 12px;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: .9em;
  background: var(--soft);
  color: var(--brand-2);
  padding: 2px 6px;
  border-radius: 5px;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-sm {
  width: 15px;
  height: 15px;
}

.ic-lg {
  width: 26px;
  height: 26px;
}


/* ============================================================================
   5. СЕТКА И СЕКЦИИ
   ============================================================================ */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sec {
  position: relative;
  padding: 78px 0;
}

.sec.tight {
  padding: 54px 0;
}

.sec.flush-top {
  padding-top: 0;
}

.sec.flush-bottom {
  padding-bottom: 0;
}

section[id],
div[id="contacts"],
div[id="calculator"] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.sec-head h2 {
  text-transform: uppercase;
  letter-spacing: .7px;
}

.sec-head .bar {
  width: 58px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin: 14px auto 0;
}

.sec-head p {
  max-width: 700px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.sec-head.left {
  text-align: left;
}

.sec-head.left .bar {
  margin-left: 0;
  margin-right: 0;
}

.sec-head.left p {
  margin-left: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3,
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4,
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}


/* ============================================================================
   6. КНОПКИ И ССЫЛКИ-ДЕЙСТВИЯ
   ============================================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .22s var(--ease),
    box-shadow .22s var(--ease),
    background .22s var(--ease),
    border-color .22s var(--ease),
    color .22s var(--ease),
    filter .22s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-p {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 12px 26px -12px var(--brand);
}

.btn-p:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #ffffff;
  box-shadow: 0 18px 34px -14px var(--brand);
}

.btn-o {
  background: transparent;
  border-color: currentColor;
  color: var(--brand);
}

.btn-o:hover {
  background: var(--soft);
  color: var(--brand-2);
}

.hero.dark .btn-o {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .55);
}

.hero.dark .btn-o:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-a {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, var(--accent-2)));
  color: var(--accent-ink);
  box-shadow: 0 12px 26px -12px var(--accent);
}

.btn-a:hover {
  filter: brightness(1.06);
  color: var(--accent-ink);
  box-shadow: 0 18px 34px -14px var(--accent);
}

.btn-w {
  background: #ffffff;
  color: var(--brand-2);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .42);
}

.btn-w:hover {
  color: var(--brand-3);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 9px;
}

.btn-lg {
  padding: 17px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn.loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: aq-spin .7s linear infinite;
}

.btn-a.loading::after,
.btn-w.loading::after {
  border-color: rgba(0, 0, 0, .18);
  border-top-color: currentColor;
}

@keyframes aq-spin {
  to { transform: rotate(360deg); }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-weight: 600;
  color: var(--brand);
  transition: gap .2s var(--ease), color .2s var(--ease);
}

.link:hover {
  gap: 10px;
  color: var(--brand-2);
}

.link .ic {
  transition: transform .2s var(--ease);
}

.link:hover .ic {
  transform: translateX(2px);
}


/* ============================================================================
   7. ШАПКА И НАВИГАЦИЯ
   ============================================================================ */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.hdr.scrolled {
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 36px -18px rgba(8, 30, 22, .34);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo svg,
.logo .logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.logo b {
  display: block;
  font: 700 17px/1.1 var(--font-display);
  letter-spacing: .7px;
  text-transform: uppercase;
}

.logo small {
  display: block;
  max-width: 185px;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: 8px;
  font: 600 13.5px/1 var(--font-body);
  color: var(--ink);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav a:hover,
.nav a.on {
  color: var(--brand);
}

.nav a:hover::after,
.nav a.on::after {
  transform: scaleX(1);
}

.hdr-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.hdr-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.hdr-phone:hover {
  color: var(--ink);
}

.hdr-phone .ic {
  color: var(--brand);
}

.hdr-phone b {
  display: block;
  font: 700 15px/1.15 var(--font-body);
  white-space: nowrap;
}

.hdr-phone small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  border-radius: 10px;
  transition: background .2s var(--ease);
}

.burger:hover {
  background: var(--soft);
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.burger.on span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.on span:nth-child(2) {
  opacity: 0;
}

.burger.on span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mmenu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: var(--z-mobile);
  display: none;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h));
  padding: 14px 24px 24px;
  overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 48px -24px rgba(0, 0, 0, .38);
}

.mmenu.on {
  display: flex;
  animation: aq-menu-in .3s var(--ease);
}

@keyframes aq-menu-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

.mmenu a.mn {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font: 600 16px/1 var(--font-body);
  color: var(--ink);
}

.mmenu a.mn:hover {
  color: var(--brand);
}

.mmenu .hdr-phone {
  margin: 18px 0 14px;
}


/* ============================================================================
   8. HERO
   ============================================================================ */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 52px) 0 94px;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.hero.dark {
  color: #ffffff;
}

.hero .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(74px);
  pointer-events: none;
  animation: aq-orb 18s ease-in-out infinite alternate;
}

.hero .o1 {
  width: 500px;
  height: 500px;
  top: -160px;
  right: -120px;
  background: var(--glow-1);
}

.hero .o2 {
  width: 440px;
  height: 440px;
  bottom: -200px;
  left: -160px;
  background: var(--glow-2);
  animation-delay: -9s;
}

@keyframes aq-orb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-54px, 44px) scale(1.18); }
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 46px;
  align-items: center;
}

.hero h1 {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: inherit;
}

.hero h1 .t2 {
  display: block;
  margin-top: 6px;
  font-size: .72em;
  font-weight: 600;
}

.hero h1 .acc {
  display: block;
  margin-top: 12px;
  font-size: .62em;
  letter-spacing: 1px;
  color: var(--brand);
}

.hero.dark h1 .acc {
  color: var(--accent-2);
}

.hero-sub {
  max-width: 500px;
  margin-top: 18px;
  font-size: 17px;
  color: var(--hero-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.hf {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 175px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.hf .ic {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.hero.dark .hf .ic {
  color: var(--accent-2);
}

.checks {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
}

.ck {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 6px 14px -8px var(--brand);
}

.ck .ic {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.checks b {
  display: block;
  font-size: 15.5px;
}

.checks small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.hero.dark .checks small {
  color: rgba(255, 255, 255, .72);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: var(--shadow-lg);
}

.hero-media .scene {
  position: absolute;
  inset: 0;
}

.hero-media .scene svg {
  width: 100%;
  height: 100%;
  animation: aq-ken 24s ease-in-out infinite alternate;
}

@keyframes aq-ken {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1) translate(-1%, -1%); }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 20, 14, .46) 100%);
}

.hero-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(5, 20, 14, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font: 700 12px/1 var(--font-body);
  letter-spacing: .3px;
}

.hero-tag .ic {
  width: 15px;
  height: 15px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--brand);
  box-shadow: var(--shadow-sm);
}

.hero-note .ic {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.hero-note b {
  display: block;
  font: 600 15px/1.3 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.hero-note p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.fx {
  animation: aq-fade-up .85s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes aq-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================================
   9. ДОВЕРИТЕЛЬНЫЕ ПОЛОСЫ
   ============================================================================ */

.trust {
  position: relative;
  z-index: 3;
  margin-top: -58px;
}

.trust-in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.trust-i {
  display: flex;
  gap: 13px;
}

.trust-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--soft), var(--soft-2));
  color: var(--brand-2);
}

.trust-ic .ic {
  width: 24px;
  height: 24px;
}

.trust-i b {
  display: block;
  font-size: 15px;
}

.trust-i small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.band {
  position: relative;
  background: linear-gradient(120deg, var(--deep), var(--deep-2));
  color: #ffffff;
  overflow: hidden;
}

.band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 300px at 8% 0%, var(--glow-1), transparent 62%),
    radial-gradient(600px 280px at 92% 100%, var(--glow-2), transparent 62%);
}

.band-in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 36px 0;
}

.band-i {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.band-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.band-i b {
  display: block;
  margin-bottom: 5px;
  font: 600 15px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.band-i small {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .74);
}


/* ============================================================================
   10. КАРТОЧКИ УСЛУГ
   ============================================================================ */

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, var(--soft), var(--surface));
}

.card-media .scene {
  position: absolute;
  inset: 0;
}

.card-media .scene svg {
  width: 100%;
  height: 100%;
  transition: transform .65s var(--ease);
}

.card:hover .card-media .scene svg {
  transform: scale(1.07);
}

.card-media .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 20, 14, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card-title {
  margin-bottom: 9px;
  font: 600 17px/1.25 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card-desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
}

.card-list {
  display: grid;
  gap: 7px;
  flex: 1;
  margin: 4px 0 8px;
}

.card-list li {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--muted);
}

.card-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.card-price {
  font: 700 15px var(--font-display);
  color: var(--brand-2);
  white-space: nowrap;
}


/* ============================================================================
   11. ГАЛЕРЕЯ-СЛАЙДЕР
   ============================================================================ */

.gal-sec {
  padding-top: 10px;
}

.gal-count {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--deep);
  color: #ffffff;
  font: 700 12px/1 var(--font-body);
  letter-spacing: .3px;
}

.gal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 26px;
}

.chip {
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 600 13px/1 var(--font-body);
  color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.chip.on {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand-2);
  box-shadow: 0 8px 18px -10px var(--brand);
}

.slider {
  position: relative;
  outline: none;
}

.sl-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.sl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #08170f;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.sl-track {
  display: flex;
  height: 100%;
  transition: transform .68s var(--ease);
  will-change: transform;
}

.sl-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
}

.sl-slide .scene {
  position: absolute;
  inset: 0;
}

.sl-slide .scene svg {
  width: 100%;
  height: 100%;
  transition: transform 7s ease;
}

.slider.playing .sl-slide.on .scene svg {
  transform: scale(1.06);
}

.sl-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 14, 10, .02) 32%, rgba(4, 14, 10, .82) 100%);
}

.sl-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 26px 30px;
  color: #ffffff;
}

.sl-badge {
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px -12px var(--brand);
  color: #ffffff;
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: .6px;
  text-transform: uppercase;
}

.sl-cap b {
  max-width: 780px;
  font: 600 clamp(18px, 2.4vw, 26px)/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.sl-cap span:last-child {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .8);
}

.sl-arrow {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  z-index: 3;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--brand-2);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}

.sl-arrow:hover {
  transform: scale(1.09);
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.sl-hud {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sl-count {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(5, 20, 14, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font: 700 12px/1 var(--font-body);
}

.sl-play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 20, 14, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #ffffff;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.sl-play:hover {
  background: var(--brand);
  transform: scale(1.06);
}

.sl-play .ic {
  width: 16px;
  height: 16px;
}

.sl-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 5;
  background: rgba(255, 255, 255, .18);
}

.sl-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.slider.playing .sl-progress i {
  animation: aq-progress 5.2s linear forwards;
}

@keyframes aq-progress {
  from { width: 0; }
  to   { width: 100%; }
}

.sl-thumbs {
  display: flex;
  gap: 11px;
  margin-top: 16px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.sl-thumbs::-webkit-scrollbar {
  height: 8px;
}

.sl-thumb {
  position: relative;
  flex: 0 0 132px;
  height: 84px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--soft);
  scroll-snap-align: start;
  opacity: .6;
  transition: transform .25s var(--ease), opacity .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.sl-thumb .scene {
  position: absolute;
  inset: 0;
}

.sl-thumb .scene svg {
  width: 100%;
  height: 100%;
  transform: scale(1.12);
}

.sl-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(4, 14, 10, .68));
  transition: opacity .25s var(--ease);
}

.sl-thumb span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  opacity: 0;
  color: #ffffff;
  font: 600 10.5px/1.25 var(--font-body);
  text-align: left;
  transition: opacity .25s var(--ease);
}

.sl-thumb:hover,
.sl-thumb.on {
  opacity: 1;
  transform: translateY(-3px);
}

.sl-thumb:hover::after,
.sl-thumb.on::after {
  opacity: 1;
}

.sl-thumb:hover span,
.sl-thumb.on span {
  opacity: 1;
}

.sl-thumb.on {
  border-color: var(--brand);
  box-shadow: 0 14px 26px -14px var(--brand);
}

.sl-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}

.sl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: width .25s var(--ease), background .25s var(--ease), border-radius .25s var(--ease);
}

.sl-dot.on {
  width: 26px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.gal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.gal-note .ic {
  width: 16px;
  height: 16px;
  color: var(--brand);
}


/* ============================================================================
   12. КАЛЬКУЛЯТОР
   ============================================================================ */

.calc-sec {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% -10%, var(--glow-1), transparent 60%),
    radial-gradient(760px 400px at 92% 8%, var(--glow-2), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--soft) 135%);
}

.calc-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.calc-sec .wrap {
  position: relative;
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 26px;
  align-items: start;
}

.calc-controls {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-2);
}

.calc-head b {
  display: block;
  font: 600 19px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.calc-head small {
  display: block;
  max-width: 430px;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px -12px var(--brand);
  color: #ffffff;
  font: 700 11px/1 var(--font-body);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.calc-fields {
  display: grid;
  gap: 18px;
}

.cf[hidden] {
  display: none;
}

.cf-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.cf-top label,
.cf-label {
  font: 600 13.5px/1.35 var(--font-body);
  color: var(--ink);
}

.cf-val {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-2);
  font: 700 13px/1 var(--font-body);
  white-space: nowrap;
}

.cf-hint {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.cf-hint:empty {
  display: none;
}

.cf-hint b {
  color: var(--brand-2);
}

/* Ползунок ------------------------------------------------------------------ */
.range {
  display: block;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--brand) 0 var(--fill, 50%), var(--line) var(--fill, 50%));
}

.range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--brand);
  border: 3.5px solid var(--surface);
  box-shadow: 0 3px 10px rgba(5, 22, 15, .38);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .15s var(--ease);
}

.range::-webkit-slider-thumb:hover {
  transform: scale(1.14);
}

.range::-moz-range-track {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}

.range::-moz-range-progress {
  height: 7px;
  border-radius: 4px;
  background: var(--brand);
}

.range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand);
  border: 3.5px solid var(--surface);
  box-shadow: 0 3px 10px rgba(5, 22, 15, .38);
}

.scale {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

/* Чипсы --------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Степпер ------------------------------------------------------------------- */
.stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--brand-2);
  transition: background .15s var(--ease), transform .12s var(--ease);
}

.stepper button:hover:not(:disabled) {
  background: var(--soft);
}

.stepper button:active:not(:disabled) {
  transform: scale(.9);
}

.stepper button:disabled {
  opacity: .32;
}

.stepper b {
  min-width: 60px;
  text-align: center;
  font: 700 17px/1 var(--font-body);
}

.stepper small {
  padding-right: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Селект -------------------------------------------------------------------- */
.select {
  width: 100%;
  padding: 13px 42px 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  font: 500 14.5px/1.3 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--soft);
}

/* Переключатель ------------------------------------------------------------- */
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.toggle:hover {
  border-color: var(--brand);
}

.toggle.on {
  border-color: var(--brand);
  background: var(--soft);
}

.toggle > span:first-child {
  font: 600 13.5px/1.35 var(--font-body);
}

.toggle .tag {
  display: block;
  margin-top: 3px;
  font: 500 11.5px/1.3 var(--font-body);
  color: var(--muted);
}

.sw {
  position: relative;
  width: 48px;
  height: 27px;
  flex: none;
}

.sw input {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.sw i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--line-2);
  transition: background .25s var(--ease);
}

.sw i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
  transition: transform .25s var(--ease);
}

.sw input:checked + i {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.sw input:checked + i::after {
  transform: translateX(21px);
}

/* Сводка -------------------------------------------------------------------- */
.calc-summary {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, var(--deep), var(--deep-2));
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.calc-summary::before {
  content: '';
  position: absolute;
  width: 290px;
  height: 290px;
  top: -130px;
  right: -100px;
  border-radius: 50%;
  background: var(--glow-1);
  filter: blur(72px);
  pointer-events: none;
}

.calc-summary > * {
  position: relative;
}

.calc-summary h3 {
  font: 600 15px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .72);
}

.calc-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
}

.calc-total span {
  padding-bottom: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}

.calc-total b {
  font: 700 clamp(30px, 3.6vw, 42px)/1 var(--font-display);
  letter-spacing: .5px;
  color: var(--accent-2);
}

body[data-theme="orange"] .calc-total b,
body[data-theme="deepblue"] .calc-total b {
  color: var(--accent);
}

.calc-range {
  margin-bottom: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}

.calc-bar {
  display: flex;
  height: 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
}

.calc-bar i {
  display: block;
  height: 100%;
  transition: width .5s var(--ease);
}

.calc-lines {
  display: grid;
  max-height: 288px;
  margin-bottom: 16px;
  padding-right: 6px;
  overflow-y: auto;
}

.calc-lines::-webkit-scrollbar {
  width: 7px;
}

.calc-lines::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
}

.calc-lines::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .38);
  border: 0;
  border-radius: 4px;
}

.calc-lines::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

.cl {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
  font-size: 12.5px;
  line-height: 1.4;
}

.cl:last-child {
  border-bottom: 0;
}

.cl-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 3px;
}

.cl span {
  color: rgba(255, 255, 255, .82);
}

.cl b {
  white-space: nowrap;
  font-weight: 700;
}

.cl.free b {
  color: var(--accent-2);
}

.calc-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .64);
}

.calc-note .ic {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--accent-2);
}

.calc-actions {
  display: grid;
  gap: 10px;
}

.calc-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.calc-mini button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  font: 600 11.5px/1 var(--font-body);
  color: rgba(255, 255, 255, .66);
  transition: color .2s var(--ease);
}

.calc-mini button:hover {
  color: #ffffff;
}

.calc-mini .ic {
  width: 14px;
  height: 14px;
}

/* Заявка из калькулятора ---------------------------------------------------- */
.calc-lead {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.calc-lead[hidden] {
  display: none;
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.calc-lead input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  font: 500 14px/1.3 var(--font-body);
  color: #ffffff;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.calc-lead input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.calc-lead input:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, .16);
}

.calc-lead input.err {
  border-color: #ff8a80;
  box-shadow: 0 0 0 3px rgba(255, 138, 128, .2);
}

.cl-err {
  display: none;
  margin-bottom: 9px;
  font-size: 11.5px;
  color: #ff8a80;
}

.cl-err.on {
  display: block;
}

.cl-note {
  margin-top: 9px;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, .52);
}

.calc-done {
  padding: 8px 0;
  text-align: center;
  animation: aq-fade-up .5s var(--ease);
}

.cd-ic {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok);
  color: #ffffff;
  box-shadow: 0 14px 30px -12px var(--ok);
}

.cd-ic .ic {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
}

.calc-done b {
  display: block;
  margin-bottom: 8px;
  font: 600 18px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.calc-done p {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .74);
}

.calc-recap {
  max-height: 172px;
  margin: 14px 0;
  padding: 13px 15px;
  border-radius: 12px;
  overflow-y: auto;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  color: rgba(255, 255, 255, .84);
}


/* ============================================================================
   13. ЦЕНЫ
   ============================================================================ */

.prices {
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  transition: background .2s var(--ease);
}

.price-row:first-child {
  border-top: 0;
}

.price-row:nth-child(odd) {
  background: var(--soft-2);
  background: color-mix(in srgb, var(--soft) 34%, var(--surface));
}

.price-row:hover {
  background: var(--soft);
}

.price-name b {
  display: block;
  font-size: 15px;
}

.price-name small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.price-val {
  font: 700 18px var(--font-display);
  color: var(--brand-2);
  white-space: nowrap;
}

.price-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.price-note .ic {
  color: var(--brand);
}


/* ============================================================================
   14. ЭТАПЫ РАБОТЫ
   ============================================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 0 4px;
  text-align: center;
}

.step-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 15px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.step:hover .step-ic {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 28px -16px var(--brand);
}

.step-ic .ic {
  width: 28px;
  height: 28px;
}

.step-num {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font: 700 13px/27px var(--font-body);
  text-align: center;
}

.step::after {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(50% + 48px);
  width: calc(100% - 96px);
  border-top: 2px dashed var(--line-2);
}

.step:last-child::after {
  display: none;
}

.step b {
  display: block;
  margin-bottom: 6px;
  font: 600 15px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.step small {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}


/* ============================================================================
   15. ОТЗЫВЫ И О КОМПАНИИ
   ============================================================================ */

.review {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
}

.stars .ic {
  width: 17px;
  height: 17px;
}

.review p {
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
}

.review-a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-av {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--soft), var(--soft-2));
  color: var(--brand-2);
  font: 700 16px var(--font-display);
}

.review-a b {
  display: block;
  font-size: 14px;
}

.review-a small {
  font-size: 12px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.about-grid > .reveal:first-child {
  max-width: 660px;
}

.about-grid p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.stat {
  min-width: 0;
  min-height: 132px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 14px;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  box-shadow: 0 10px 26px rgba(16, 49, 72, .055);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat:nth-child(2) {
  border-top-color: var(--accent);
}

.stat b {
  font: 700 clamp(28px, 3vw, 38px)/1 var(--font-display);
  color: var(--brand);
  white-space: nowrap;
}

.stat b sup {
  font-size: .55em;
  color: var(--accent);
}

.stat span {
  display: block;
  max-width: none;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}


/* ============================================================================
   16. КОНТАКТЫ И ФОРМЫ
   ============================================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 26px;
  align-items: stretch;
}

.panel {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.panel.light {
  background: linear-gradient(150deg, var(--soft), var(--soft-2));
  border: 1px solid var(--line);
}

.panel.dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--deep), var(--deep-2));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.panel.dark::before {
  content: '';
  position: absolute;
  width: 290px;
  height: 290px;
  top: -110px;
  right: -90px;
  border-radius: 50%;
  background: var(--glow-1);
  filter: blur(64px);
  pointer-events: none;
}

.panel.dark > * {
  position: relative;
}

.panel h2 {
  margin-bottom: 20px;
  font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: inherit;
}

.panel.dark .sub {
  margin: -12px 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, .76);
}

.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 22px;
  align-items: center;
}

.why-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.why-photo .scene {
  position: absolute;
  inset: 0;
}

.why-photo .scene svg {
  width: 100%;
  height: 100%;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font: 600 12.5px/1 var(--font-body);
  color: var(--muted);
}

.panel.dark .field label {
  color: rgba(255, 255, 255, .72);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: 500 15px/1.3 var(--font-body);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field select {
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--soft);
}

.field.err input,
.field.err textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.field-err {
  display: none;
  margin-top: 5px;
  font-size: 12px;
  color: var(--danger);
}

.field.err .field-err {
  display: block;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.form-note .ic {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brand);
}

.panel.dark .form-note {
  color: rgba(255, 255, 255, .58);
}

.form-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.form-mail .ic {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.panel.dark .form-mail {
  color: rgba(255, 255, 255, .6);
}

.form-ok {
  padding: 24px 8px;
  text-align: center;
  animation: aq-fade-up .5s var(--ease);
}

.ok-ic {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok);
  color: #ffffff;
  box-shadow: 0 16px 32px -12px var(--ok);
}

.ok-ic .ic {
  width: 32px;
  height: 32px;
  stroke-width: 2.6;
}

.form-ok h4 {
  margin-bottom: 8px;
  font: 600 21px var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: inherit;
}

.form-ok p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.panel.dark .form-ok p {
  color: rgba(255, 255, 255, .76);
}

.form-ok .lead-id {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-2);
  font: 600 12px var(--font-body);
}

.contact-list {
  display: grid;
  gap: 16px;
  align-content: center;
}

.ci {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 13.5px;
  line-height: 1.45;
}

.ci .ic {
  margin-top: 2px;
  color: var(--accent);
}

.ci b {
  display: block;
  font-size: 14.5px;
}

.ci a {
  color: #ffffff;
  font-weight: 700;
}

.ci small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .66);
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.contact-strip .ci {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.contact-strip .ci:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xs);
}

.contact-strip .ci .ic {
  color: var(--brand);
}

.contact-strip .ci a {
  color: var(--ink);
}

.contact-strip .ci small {
  color: var(--muted);
}


/* ============================================================================
   17. ПОДВАЛ
   ============================================================================ */

.ftr {
  background: linear-gradient(160deg, var(--deep), var(--deep-2));
  color: rgba(255, 255, 255, .78);
}

.ftr-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  padding: 46px 0 34px;
}

.ftr .logo {
  color: #ffffff;
}

.ftr .logo:hover {
  color: #ffffff;
}

.ftr .logo small {
  color: rgba(255, 255, 255, .56);
}

.ftr b.ft {
  display: block;
  margin-bottom: 14px;
  font: 600 14px var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.ftr p {
  font-size: 13.5px;
  line-height: 1.65;
}

.ftr-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font: 700 17px var(--font-body);
}

.ftr-phone:hover {
  color: #ffffff;
}

.ftr-phone .ic {
  color: var(--accent-2);
}

.ftr small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, .52);
}

.ftr-links {
  display: grid;
  gap: 9px;
}

.ftr-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .74);
}

.ftr-links a:hover {
  color: #ffffff;
}

.ftr-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .52);
}

.ftr-bot a {
  color: rgba(255, 255, 255, .66);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ftr-bot a:hover {
  color: #ffffff;
}

.wa {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 14px 28px -12px #25d366;
  transition: transform .22s var(--ease);
}

.wa:hover {
  transform: scale(1.08);
  color: #ffffff;
}

.wa .ic {
  width: 26px;
  height: 26px;
}

.ftr-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}


/* ============================================================================
   18. ЛАЙТБОКС ГАЛЕРЕИ
   ============================================================================ */

.lb {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lb[hidden] {
  display: none;
}

.lb-bg {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}

.lb-stage {
  position: relative;
  width: min(1120px, 100%);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

.lb.open .lb-bg {
  opacity: 1;
}

.lb.open .lb-stage {
  opacity: 1;
  transform: none;
}

.lb-media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 74vh;
  overflow: hidden;
  border-radius: 18px;
  background: #08170f;
  box-shadow: var(--shadow-xl);
}

.lb-media .scene {
  position: absolute;
  inset: 0;
}

.lb-media .scene svg {
  width: 100%;
  height: 100%;
}

.lb-cap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px 0;
  color: #ffffff;
}

.lb-cap b {
  display: block;
  font: 600 18px/1.25 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.lb-cap span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
}

.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #10201a;
  box-shadow: var(--shadow-md);
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}

.lb-close:hover {
  transform: rotate(90deg);
  background: var(--brand);
  color: #ffffff;
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  transform: translateY(-50%);
  transition: background .22s var(--ease), transform .22s var(--ease);
}

.lb-nav:hover {
  background: var(--brand);
  transform: translateY(-50%) scale(1.06);
}

.lb-prev { left: -64px; }
.lb-next { right: -64px; }

.lb-count {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 20, 14, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font: 700 12px/1 var(--font-body);
}


/* ============================================================================
   19. МОДАЛЬНОЕ ОКНО
   ============================================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}

.modal-box {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

.modal.open .modal-bg {
  opacity: 1;
}

.modal.open .modal-box {
  opacity: 1;
  transform: none;
}

.modal-x {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 14px 14px -46px auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand-2);
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}

.modal-x:hover {
  transform: rotate(90deg);
  background: var(--brand);
  color: #ffffff;
}

.modal-body {
  padding: 30px 32px 32px;
}

.modal-body h3 {
  padding-right: 36px;
  font: 600 23px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.modal-body .sub {
  margin: 8px 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}


/* ============================================================================
   20. ТОСТЫ И КНОПКА «НАВЕРХ»
   ============================================================================ */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 350px;
  padding: 14px 18px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--deep), var(--deep-2));
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  line-height: 1.4;
  pointer-events: auto;
  animation: aq-toast-in .42s var(--ease);
}

.toast .ic {
  color: var(--accent-2);
}

.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  animation: aq-toast-bar 4.2s linear forwards;
}

.toast.out {
  animation: aq-toast-out .32s var(--ease) forwards;
}

@keyframes aq-toast-in {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: none; }
}

@keyframes aq-toast-out {
  to { opacity: 0; transform: translateX(44px); }
}

@keyframes aq-toast-bar {
  from { width: 100%; }
  to   { width: 0; }
}

.top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-to-top);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 16px 32px -12px var(--brand);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), background .22s var(--ease);
}

.top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.top:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}


/* ============================================================================
   21. СЦЕНЫ (SVG-ИЛЛЮСТРАЦИИ)
   ============================================================================ */

.scene {
  display: block;
  width: 100%;
  height: 100%;
}

.scene svg {
  display: block;
  width: 100%;
  height: 100%;
}


/* ============================================================================
   22. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================================ */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

.cards-4 > .reveal:nth-child(2),
.cards-3 > .reveal:nth-child(2),
.steps > .reveal:nth-child(2),
.band-in > .reveal:nth-child(2) {
  --d: .08s;
}

.cards-4 > .reveal:nth-child(3),
.cards-3 > .reveal:nth-child(3),
.steps > .reveal:nth-child(3),
.band-in > .reveal:nth-child(3) {
  --d: .16s;
}

.cards-4 > .reveal:nth-child(4),
.steps > .reveal:nth-child(4),
.band-in > .reveal:nth-child(4) {
  --d: .24s;
}

.steps > .reveal:nth-child(5) {
  --d: .32s;
}


/* ============================================================================
   23. АДАПТИВНОСТЬ
   ============================================================================ */

@media (max-width: 1240px) {
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 10px; right: 10px; }
}

@media (max-width: 1120px) {
  :root {
    --header-h: 74px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: 0;
  }

  .hdr-side {
    margin-left: auto;
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }

  .step::after {
    display: none;
  }

  .calc {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-summary {
    position: static;
  }

  .calc-lines {
    max-height: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-media {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .trust-in,
  .band-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-photo {
    max-width: 420px;
  }

  .ftr-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .sl-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .sl-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .sl-arrow:hover {
    transform: translateY(-50%) scale(1.06);
  }

  .sl-prev { left: 12px; }
  .sl-next { right: 12px; }

  .sl-frame {
    aspect-ratio: 4 / 3;
  }

  .sl-cap {
    padding: 20px 22px;
  }

  .sl-thumb {
    flex-basis: 116px;
    height: 74px;
  }

  .lb-cap {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --header-h: 68px;
  }

  .sec {
    padding: 56px 0;
  }

  .calc-sec {
    padding: 56px 0;
  }

  .sec-head {
    margin-bottom: 32px;
  }

  .hdr-phone span {
    display: none;
  }

  .hdr-side .btn {
    display: none;
  }

  .logo small {
    max-width: 140px;
  }

  .cards-4,
  .cards-3,
  .grid-2,
  .grid-3,
  .grid-4,
  .trust-in,
  .band-in,
  .steps,
  .ftr-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust {
    margin-top: -40px;
  }

  .trust-in {
    padding: 22px;
    gap: 18px;
  }

  .hero {
    padding: calc(var(--header-h) + 34px) 0 74px;
  }

  .hero-cta .btn {
    flex: 1;
    justify-content: center;
  }

  .hero-feats {
    gap: 14px;
  }

  .hf {
    max-width: none;
    flex: 1 1 140px;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
    padding: 16px 18px;
  }

  .price-row .link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .calc-controls,
  .calc-summary,
  .panel {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .calc-head {
    flex-direction: column;
    gap: 12px;
  }

  .cl-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chip {
    padding: 9px 13px;
    font-size: 12.5px;
  }

  .stepper button {
    width: 38px;
    height: 38px;
  }

  .stepper b {
    min-width: 52px;
    font-size: 16px;
  }

  .sl-frame {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
  }

  .sl-cap {
    padding: 16px 18px;
  }

  .sl-cap b {
    font-size: 17px;
  }

  .sl-cap span:last-child {
    font-size: 12px;
  }

  .sl-arrow {
    width: 42px;
    height: 42px;
  }

  .sl-hud {
    top: 12px;
    right: 12px;
  }

  .sl-thumb {
    flex-basis: 96px;
    height: 64px;
  }

  .sl-thumb span {
    display: none;
  }

  .lb {
    padding: 14px;
  }

  .lb-media {
    aspect-ratio: 4 / 3;
  }

  .lb-nav {
    width: 40px;
    height: 40px;
  }

  .modal-body {
    padding: 24px 20px 26px;
  }

  .ftr-bot {
    justify-content: center;
    text-align: center;
  }

  .ftr-flex {
    justify-content: flex-start;
  }

  .toasts {
    left: 18px;
    right: 18px;
    bottom: 80px;
  }

  .toast {
    max-width: none;
  }

  .stats {
    gap: 9px;
  }

  .stat {
    min-height: 116px;
    padding: 14px 10px;
  }

  .stat b {
    font-size: clamp(24px, 7.5vw, 32px);
  }

  .stat span {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 400px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .calc-mini {
    justify-content: flex-start;
    gap: 12px;
  }

  .sl-dots {
    flex-wrap: wrap;
  }
}


/* ============================================================================
   24. ДОСТУПНОСТЬ И ПРЕДПОЧТЕНИЯ ПОЛЬЗОВАТЕЛЯ
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media .scene svg,
  .sl-slide .scene svg {
    animation: none !important;
    transform: none !important;
  }

  .slider.playing .sl-progress i {
    animation: none;
    width: 100%;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #9aa8a0;
    --line-2: #7d8c84;
    --muted: #3d4a42;
  }

  .card,
  .prices,
  .trust-in,
  .calc-controls,
  .review {
    border-width: 2px;
  }
}

@media print {
  .hdr,
  .mmenu,
  .burger,
  .top,
  .toasts,
  .modal,
  .lb,
  .hero .orb,
  .grain,
  .sl-arrow,
  .sl-hud,
  .sl-thumbs,
  .sl-dots,
  .calc-mini,
  .calc-actions,
  .calc-lead,
  .wa {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .hero {
    padding: 20px 0;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .sec {
    padding: 24px 0;
    page-break-inside: avoid;
  }

  .card,
  .panel,
  .calc-controls,
  .calc-summary,
  .prices {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .calc-summary *,
  .panel.dark * {
    color: #000000 !important;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* Real local photos in every service-page gallery slider. */
.sl-slide .scene-photo,
.sl-thumb .scene-photo,
.lb-media .scene-photo {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.sl-slide .scene-photo { z-index: 0; }
.sl-slide .scene-photo img,
.sl-thumb .scene-photo img,
.lb-media .scene-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.sl-slide::after { z-index: 1; }
.sl-slide .sl-cap { z-index: 2; }
