/* =========================================================
   Kaztop — premium B2B landing (v3, "editorial")
   Palette: teal + gold accents (NOT state symbolics — see note below).
   Fonts: Unbounded (display) + Manrope (body).
   Mobile-first. Tested targets: 360px, 1440px.

   ФИРМЕННАЯ ПАЛИТРА = осознанно цвета флага РК: флаговая бирюза + золото-
   «солнце». Это намеренная патриотичная идентичность бренда, а не случайный
   индустриальный teal+yellow. ЮР. ПРИМЕЧАНИЕ: воспроизводить саму госсимволику
   (орёл/солнце с лучами/нацорнамент) на коммерческом сайте запрещено
   (КоАП ст. 458) — поэтому используем только ЦВЕТА флага, без эмблемы.
   ========================================================= */

:root {
  /* цвета флага РК: бирюза (флаговая) + золото-«солнце» */
  --kz:        #00afca;   /* флаговая бирюза */
  --kz-deep:   #053b46;   /* глубокая бирюза */
  --kz-300:    #5fd2e2;
  --gold:      #ffce1f;   /* золото-«солнце» флага */
  --gold-deep: #efb400;

  /* Ink / dark */
  --ink:    #06171c;
  --ink-2:  #0b242c;
  --ink-3:  #103039;

  /* Light surfaces */
  --bg:        #fbfcfc;
  --surface:   #ffffff;
  --surface-2: #eef4f5;

  /* Text */
  --text:  #0e1c21;
  --muted: #55656b;
  --on-dark: #eef6f8;
  --on-dark-muted: #9fb9c0;

  --accent: var(--kz);
  --accent-ink: #ffffff;

  --line:        rgba(14, 28, 33, 0.10);
  --line-strong: rgba(14, 28, 33, 0.16);
  --line-dark:   rgba(255, 255, 255, 0.12);

  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 11px;
  --shadow-sm: 0 2px 10px rgba(14, 28, 33, 0.06);
  --shadow:    0 22px 55px rgba(14, 28, 33, 0.14);
  --shadow-dark: 0 30px 70px rgba(0, 0, 0, 0.55);

  --font-display: "Unbounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.82%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27%2F%3E%3C%2Fsvg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 0.45em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.15rem, 2.3vw, 1.45rem); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 600; color: var(--gold-deep);
  margin: 0 0 1.2rem;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 1.8rem; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
/* без цветного «свечения»: плотная заливка + блик сверху как свет на мокром наливном полу, тень нейтральная */
.btn--accent { background: var(--gold); color: #2a1d00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 16px rgba(6, 23, 28, 0.20); }
.btn--accent:hover { background: var(--gold-deep); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 9px 22px rgba(6, 23, 28, 0.30); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn--outline-light:hover { border-color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 0.66rem 1.25rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.link-cta {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--kz-deep);
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; transition: gap 0.16s ease;
}
.link-cta::after { content: "→"; color: var(--gold-deep); transition: transform 0.16s ease; }
.link-cta:hover { color: var(--kz); }
.link-cta:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header[data-state="top"] { background: transparent; }
.site-header[data-state="top"] .brand__mark { color: #fff; }
.site-header[data-state="top"] .nav a { color: rgba(255,255,255,0.82); }
.site-header[data-state="top"] .nav a:hover { color: var(--gold); }
.site-header[data-state="top"] .nav-toggle span { background: #fff; }
.site-header[data-state="top"] .lang-btn { color: rgba(255,255,255,0.72); }
.site-header[data-state="top"] .lang-switch { border-color: rgba(255,255,255,0.3); }
.site-header[data-state="top"] .nav-toggle { border-color: rgba(255,255,255,0.3); }
.site-header[data-state="scrolled"] {
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
.header__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__logo { width: 30px; height: 30px; flex: none; color: var(--text); }
.site-header[data-state="top"] .brand__logo { color: #fff; }
.footer__brand .brand__logo { color: #fff; }
.brand__mark { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; font-size: 1.25rem; color: var(--text); }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(254, 197, 12, 0.25); }

.nav { display: none; gap: 1.15rem; font-size: 0.9rem; font-weight: 600; }
.nav a { color: var(--muted); transition: color 0.15s ease; white-space: nowrap; }
.nav a:hover { color: var(--kz); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }
/* на мобайле звонок, WhatsApp и Instagram дублируются плавающей панелью — прячем (место под «бургер») */
.header__actions .header__call, .header__actions .header__wa, .header__actions .header__ig { display: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang-btn { background: transparent; border: 0; color: var(--muted); font-family: var(--font-display); padding: 0.52rem 0.95rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.lang-btn.is-active { background: var(--kz); color: #fff; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--text); border-radius: 2px; }
.header__actions .btn--sm { display: none; }

.nav.is-open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 0.5rem 22px 1.2rem; }
.nav.is-open a { color: rgba(255,255,255,0.88); padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(520px, 86svh, 720px); display: flex; align-items: center;
  background: var(--kz-deep); color: var(--on-dark); overflow: hidden;
  padding: calc(var(--header-h) + 1rem) 0 2.2rem;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 60% at 50% 120%, rgba(0, 175, 202, 0.5), transparent 60%),
    linear-gradient(165deg, #04141a 0%, #053b46 45%, #00788c 100%);
}
/* live WebGL "poured resin" surface */
.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.hero__canvas.is-off { display: none; }
/* optional Spline 3D scene slot */
.hero__spline { position: absolute; inset: 0; z-index: 0; }
.hero__spline.is-active { z-index: 1; }
.hero__spline spline-viewer { width: 100%; height: 100%; display: block; }
/* readability veil over the animated layer */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, rgba(4, 20, 26, 0.92) 0%, rgba(4, 20, 26, 0.55) 48%, rgba(4, 20, 26, 0.12) 100%);
}
/* абстрактное золотое свечение — мягкий свет (НЕ «солнце»: без диска и лучей) */
.hero__glow {
  position: absolute; z-index: 1; top: -18%; right: -12%;
  width: 66vw; max-width: 820px; aspect-ratio: 1.3; border-radius: 50%;
  background: radial-gradient(ellipse at 58% 42%, rgba(254, 197, 12, 0.5) 0%, rgba(254, 197, 12, 0.16) 36%, transparent 62%);
  filter: blur(12px); pointer-events: none;
  animation: glow-breathe 12s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
  50%      { transform: scale(1.07) translate(-1.5%, 1.5%); opacity: 0.84; }
}
/* живой «налив»-фон как в hero (WebGL-шейдер на canvas); CSS-градиент — фолбэк */
.section.section--glow {
  position: relative; overflow: hidden;
  background:
    radial-gradient(78% 58% at 50% 118%, rgba(0, 175, 202, 0.32), transparent 60%),
    linear-gradient(165deg, #04141a 0%, #053b46 52%, #00788c 120%);
}
.section--glow > .container { position: relative; z-index: 1; }
.section-fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.section-fx.is-off { display: none; }
/* единый тёмный слой поверх шейдера — приглушает и объединяет фон секций */
.section--glow::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(3, 12, 17, 0.62); pointer-events: none; }
/* живая карта Казахстана: маршруты-«перелёты» от Астаны (фон-декор справа) */
.hero__map {
  /* мобайл: карта приподнята в середину — большая часть между заголовком и цифрой */
  position: absolute; z-index: 1; top: 45%; bottom: auto; right: -6%; left: auto;
  transform: translateY(-50%);
  width: clamp(250px, 72vw, 360px);
  opacity: 0.9; pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(254, 197, 12, 0.35)) drop-shadow(0 14px 30px rgba(254, 197, 12, 0.18));
}
.hero__map .geo-svg {
  display: block; width: 100%; height: auto; overflow: visible;
  animation: map-float 16s ease-in-out infinite;
  will-change: transform;
}
@keyframes map-float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  30%      { transform: translate(-3%, -3%) scale(1.04) rotate(-1deg); }
  60%      { transform: translate(3%, -4%) scale(0.97) rotate(1deg); }
  82%      { transform: translate(2%, 2%) scale(1.02) rotate(0.4deg); }
}
.hero__inner { position: relative; z-index: 3; max-width: var(--maxw); }
.hero__title { color: #fff; margin-bottom: 0.9rem; font-size: clamp(1.9rem, 4.8vw, 3.4rem); max-width: 16ch; }
.hero__subtitle { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--on-dark-muted); max-width: 600px; margin: 0 0 1.2rem; }
.hero__stat { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(0.8rem, 3.6vw, 1.95rem); line-height: 1.25; max-width: none; white-space: nowrap; }
.hero__stat::first-line { color: var(--gold); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0; }
/* статус-бейдж «в наличии» (hero + блок цен) */
.stock-badge { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.95rem; margin: 0; padding: 0.55rem 1rem; border-radius: 999px; }
.stock-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.28); flex: none; animation: stock-pulse 2.2s ease-in-out infinite; }
@keyframes stock-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(43,182,115,0.28); } 50% { box-shadow: 0 0 0 6px rgba(43,182,115,0.12); } }
.price-stock { margin: 0.6rem 0 0; color: #137a4f; background: rgba(43, 182, 115, 0.10); border: 1px solid rgba(43, 182, 115, 0.32); }
/* наличие/отгрузка/доставка в hero — столбиком, по центру */
.hero__avail { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; margin: 0.9rem 0 1.3rem; text-align: left; color: #d9edf0; font-weight: 600; font-size: clamp(0.96rem, 1.6vw, 1.1rem); }
.hero__avail span { display: inline-flex; align-items: center; gap: 0.5rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.hero__avail span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.28); flex: none; animation: stock-pulse 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero__avail span::before { animation: none; } }
@media (prefers-reduced-motion: reduce) { .stock-badge::before { animation: none; } }
.hero__monaco { display: inline-flex; flex-direction: column; gap: 0.2rem; border-left: 2px solid var(--gold); padding: 0.3rem 0 0.3rem 1.1rem; max-width: 540px; }
.hero__monaco-num { font-family: var(--font-display); font-size: clamp(1.3rem, 2.8vw, 1.8rem); font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.hero__monaco-text { color: var(--on-dark-muted); font-size: 0.96rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: 14px; display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 8px); } }
/* мобайл: больше воздуха — заголовок сверху, цифра + кнопка опускаются вниз экрана */
@media (max-width: 679px) {
  .hero { align-items: stretch; padding-top: calc(var(--header-h) + 2rem); }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__stat { margin-top: auto; }
}
/* десктоп: цифра + кнопка опущены ниже заголовка (больше воздуха в hero) */
@media (min-width: 680px) {
  .hero__stat { margin-top: clamp(2.5rem, 13vh, 7.5rem); }
}

/* ---------- Toast: наличие · отгрузка · доставка (по очереди справа) ---------- */
.stock-toasts { position: fixed; right: 20px; bottom: calc(16px + 182px + env(safe-area-inset-bottom, 0px)); z-index: 56; width: min(216px, calc(100vw - 130px)); height: 72px; pointer-events: none; }
.stock-toast {
  position: absolute; inset: auto 0 0 0;
  display: flex; gap: 0.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(14, 28, 33, 0.15);
  padding: 0.45rem 0.6rem;
  /* «выскакивает» из угла к иконкам контактов (снизу справа) */
  transform-origin: bottom right;
  opacity: 0; transform: scale(0.5) translateY(10px);
  transition: opacity 0.35s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.stock-toast.is-in { opacity: 1; transform: scale(1) translate(0, 0); }
/* хвостик-указатель вниз — на иконку WhatsApp/контактов */
.stock-toast::after { content: ""; position: absolute; right: 20px; bottom: -6px; width: 13px; height: 13px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); border-bottom-right-radius: 3px; }
.stock-toasts.is-static .stock-toast::after { display: none; }
/* аватар-логотип Kaztop */
.stock-toast__avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 175, 202, 0.12); color: var(--kz-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stock-toast__avatar svg { width: 18px; height: 18px; }
.stock-toast__body { min-width: 0; }
.stock-toast__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.35rem; }
.stock-toast__name { font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; color: var(--text); }
.stock-toast__time { font-size: 0.6rem; color: var(--muted); flex: none; }
.stock-toast__msg { margin: 0.08rem 0 0; font-size: 0.7rem; line-height: 1.28; color: var(--muted); }
.stock-toast__msg strong { display: block; font-weight: 600; color: var(--text); }
/* reduced-motion: показываем стопкой статично */
.stock-toasts.is-static { position: fixed; height: auto; }
.stock-toasts.is-static .stock-toast { position: static; opacity: 1; transform: none; margin-bottom: 0.6rem; }

/* ---------- Ticker / marquee ---------- */
.trust { background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.trust__marquee { position: relative; width: 100%; overflow: hidden; padding: 0.95rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.trust__track { display: inline-flex; align-items: center; gap: 2.6rem; padding-left: 2.6rem; white-space: nowrap; animation: trust-scroll 30s linear infinite; }
.trust__item { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--on-dark); display: inline-flex; align-items: center; gap: 0.7rem; }
.trust__item::before { content: "◆"; color: var(--gold); font-size: 0.7em; }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust__track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; padding-left: 0; gap: 0.4rem 2.6rem; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--ink); color: var(--on-dark); position: relative; }
.section__head { max-width: 760px; margin: 0 0 2.8rem; }
.section__num { font-family: var(--font-display); display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; color: var(--gold-deep); margin-bottom: 0.8rem; }
.section--dark .section__num, .section__head--light .section__num { color: var(--gold); }
.section__head--light h2 { color: #fff; }
.section__sub { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--dark .section__sub { color: var(--on-dark-muted); }

.draft-badge { display: inline-block; margin-top: 0.9rem; font-family: var(--font-display); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gold-deep); border: 1px dashed rgba(224, 168, 0, 0.5); border-radius: 999px; padding: 0.26rem 0.72rem; }
.section--dark .draft-badge { color: var(--gold); border-color: rgba(254, 197, 12, 0.45); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--objects { grid-template-columns: 1fr; gap: 1.1rem; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(0, 175, 202, 0.4); box-shadow: var(--shadow); }

.seg-card { position: relative; display: flex; overflow: hidden; min-height: 400px; border-radius: var(--radius); border: 1px solid var(--line-dark); box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-dark); }
.seg-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.seg-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,18,23,0.25) 0%, rgba(5,18,23,0.72) 45%, rgba(5,18,23,0.93) 100%); }
.seg-card__body { position: relative; z-index: 2; margin-top: auto; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; width: 100%; }
.seg-card h3 { margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.seg-card__pain { margin: 0; font-size: 0.9rem; line-height: 1.45; color: rgba(255,255,255,0.85); text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.seg-card__solution { margin: 0; font-size: 0.9rem; line-height: 1.45; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.seg-card .link-cta { margin-top: 0.3rem; color: var(--gold); }
.seg-card .link-cta::after { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .seg-card:hover { transform: none; } }


.about-card { min-width: 0; }
.about-card p { color: var(--muted); margin: 0; }
.qc-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--kz-deep); font-weight: 700; margin-top: 1rem !important; }
.qc-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.qc-list li { position: relative; padding-left: 1.7rem; font-size: 0.9rem; color: var(--text); line-height: 1.35; }
.qc-list li::before { content: ""; position: absolute; left: 0; top: 0.15rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(0,175,202,0.12); }
.qc-list li::after { content: ""; position: absolute; left: 0.36rem; top: 0.34rem; width: 0.32rem; height: 0.6rem; border: solid var(--kz-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.about-card--kz { border-color: rgba(0, 175, 202, 0.3); background: linear-gradient(180deg, rgba(0, 175, 202, 0.08), var(--surface)); }
.about-card--kz h3 { color: var(--kz-deep); }

/* ---------- Objects gallery (dark) ---------- */
.obj-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; border: 1px solid var(--line-dark); display: flex; align-items: flex-end; isolation: isolate; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.obj-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-dark); }
.obj-tile__surface { position: absolute; inset: 0; z-index: -1; background: linear-gradient(125deg, rgba(255,255,255,0.12), transparent 42%), radial-gradient(120% 80% at 25% 0%, rgba(0, 175, 202, 0.55), transparent 60%), linear-gradient(160deg, #0c2c34, #06171c 72%); }
.obj-tile:nth-child(3n+2) .obj-tile__surface { background: linear-gradient(125deg, rgba(255,255,255,0.12), transparent 42%), radial-gradient(120% 80% at 80% 0%, rgba(254, 197, 12, 0.32), transparent 58%), linear-gradient(160deg, #11313a, #07191e 72%); }
.obj-tile:nth-child(3n+3) .obj-tile__surface { background: linear-gradient(125deg, rgba(255,255,255,0.14), transparent 42%), radial-gradient(120% 80% at 50% 0%, rgba(95, 210, 226, 0.4), transparent 60%), linear-gradient(160deg, #0a2730, #050f13 72%); }
.obj-tile__watermark { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-display); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; background: rgba(5, 12, 16, 0.6); backdrop-filter: blur(6px); border: 1px solid var(--line-dark); color: #fff; padding: 0.22rem 0.6rem; border-radius: 999px; }
.obj-tile__caption { position: relative; width: 100%; z-index: 2; padding: 1.7rem 1.4rem 1.4rem; background: linear-gradient(180deg, transparent, rgba(4, 9, 12, 0.88)); font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; color: #fff; }
/* реальные фото из манифеста (assets/img/objects.json) */
.obj-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.obj-tile--photo:hover .obj-tile__img { transform: scale(1.03); transition: transform 0.35s ease; }

/* ---------- Prices ---------- */
.price-grid { margin-bottom: 1.6rem; }
.price-card { text-align: center; padding: 2.4rem 1.8rem; }
.price-card__title { color: var(--muted); margin: 0 0 0.9rem; font-weight: 600; }
.price-card__value { display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; margin: 0; }
.price-card__from { color: var(--muted); font-size: 0.95rem; }
.price-card__num { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.3rem); font-weight: 800; color: var(--kz); letter-spacing: -0.02em; }
.price-card__unit { color: var(--muted); font-weight: 600; }
.price-note { max-width: 740px; margin: 0 auto 2rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }

/* ---------- Form (dark) ---------- */
.form-layout { display: grid; gap: 2rem; align-items: start; }
.form-intro { margin: 0; }
.lead-form { display: grid; gap: 1.1rem; padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--surface); color: var(--text); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: 0.9rem 1rem; font-size: 1rem; font-family: inherit; transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--kz); background: #fff; box-shadow: 0 0 0 3px rgba(0, 175, 202, 0.14); }
.field input::placeholder { color: #93a1a6; }
.form-error { color: #d23b3b; font-size: 0.9rem; margin: 0; }
.form-disclaimer { color: var(--muted); font-size: 0.82rem; margin: 0.2rem 0 0; text-align: center; }

/* ---------- Contacts ---------- */

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 2.2rem 0 1.2rem; border-top: 3px solid var(--gold); }
.footer__inner { display: flex; flex-direction: column; gap: 1.4rem; }
.footer__brand .brand__mark { color: #fff; }
.footer__tagline { color: var(--on-dark-muted); margin: 0.4rem 0 0; max-width: 30ch; line-height: 1.45; font-size: 0.9rem; }
.footer__contacts { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col-title { font-family: var(--font-display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gold); margin: 0; }
.footer__wa-btn { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--gold); color: #2a1d00; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: background 0.15s ease, transform 0.15s ease; }
.footer__wa-btn:hover { background: var(--gold-deep); transform: translateY(-2px); }
.footer__contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
@media (min-width: 560px) { .footer__contact-list { display: grid; grid-template-columns: auto auto; gap: 0.5rem 1.8rem; } }
.footer__contact-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--on-dark-muted); font-size: 0.92rem; }
.footer__contact-list li svg { color: var(--gold); flex: 0 0 auto; }
.footer__contact-list a { color: var(--on-dark); text-decoration: none; transition: color 0.15s ease; }
.footer__contact-list a:hover { color: var(--gold); }
.footer__bottom { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; justify-content: space-between; align-items: baseline; }
.footer__bottom p { margin: 0; color: var(--on-dark-muted); font-size: 0.85rem; }
.footer__note { font-size: 0.8rem; opacity: 0.75; max-width: 420px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Header contact icons ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.header__wa:hover { color: #25d366; border-color: #25d366; }
.header__ig:hover { color: #e1306c; border-color: #e1306c; }
.site-header[data-state="top"] .icon-btn { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Hero service chips ---------- */
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.1rem; }
.chip {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 0.42rem 0.95rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(254, 197, 12, 0.06); }

/* ---------- Services at a glance ---------- */
/* типы покрытий — мета в раскрытой карточке (применение/толщина) */

/* ---------- Floating contact FABs (всегда снизу-справа) ---------- */
.floating-bar {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30); transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38); }
.fab svg { width: 24px; height: 24px; }
.fab--wa { background: #25d366; color: #fff; order: -1; }
.fab--call { background: var(--gold); color: #2a1d00; }
.fab--ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 400px) {
  .brand__mark { font-size: 1.02rem; }
  .icon-btn { width: 38px; height: 38px; }
  .header__actions { gap: 0.3rem; }
  .lang-btn { padding: 0.46rem 0.5rem; font-size: 0.76rem; }
  .nav-toggle { width: 38px; }
}
@media (min-width: 680px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--objects { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 2.5rem; }
  .hero__scroll { display: block; }
  .hero__map { top: 13%; bottom: auto; right: -2%; transform: none; width: clamp(380px, 46vw, 620px); opacity: 0.95; }
}
@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--objects { grid-template-columns: repeat(3, 1fr); }
  .form-layout { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .form-intro { position: sticky; top: calc(var(--header-h) + 1rem); }
}
/* полная инлайн-навигация — только когда хватает ширины (8 пунктов + бренд + язык + CTA) */
@media (min-width: 1180px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .header__actions .btn--sm { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* цены — таблица-ориентир */
.price-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.price-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem 1rem; align-items: center; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); }
.price-row:first-child { border-top: 0; }
.price-row__sys { font-size: 0.92rem; }
.price-row__th { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.price-row__price { font-weight: 700; color: var(--kz-deep); white-space: nowrap; }
.price-disclaimer { margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 560px) { .price-row { grid-template-columns: 1fr auto; } .price-row__th { grid-column: 1 / -1; order: 3; } }

/* услуги */
/* ============ Методика подбора (#how-select) — карточки с фоном ============ */
.method-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
.method-card {
  position: relative; min-height: 250px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); display: flex;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.method-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-dark); }
/* фото-фон отдельным слоем — осветляем, чтобы было видно */
.method-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(1.5) saturate(1.08); }
.method-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5, 18, 23, 0.18) 0%, rgba(5, 18, 23, 0.66) 52%, rgba(5, 18, 23, 0.93) 100%);
}
.method-card__inner { position: relative; z-index: 2; padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; align-self: flex-end; width: 100%; }
.method-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: #fff; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.method-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.36rem; }
.method-card__list li { position: relative; padding-left: 1rem; font-size: 0.86rem; font-weight: 600; line-height: 1.4; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.method-card__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.method-base { margin-top: 1.6rem; }
.method-base__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; font-weight: 700; color: var(--gold-deep); margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.method-base__title::before { content: ""; width: 22px; height: 2px; background: var(--gold); flex: none; }
.method-base__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.base-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.base-item__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(254, 197, 12, 0.15); color: var(--gold-deep); font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.base-item__body { min-width: 0; }
.base-item__text { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.base-item__desc { margin: 0.25rem 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 760px) { .method-base__grid { grid-template-columns: 1fr 1fr; column-gap: 2.4rem; } }
@media (min-width: 640px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .method-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .method-card:hover { transform: none; } }

/* ============ Этапы работы (#process) ============ */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; counter-reset: step; }
.step-card { position: relative; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.4rem; }
.step-card__num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--kz); opacity: 0.55; }
.step-card__title { font-size: 1.02rem; line-height: 1.25; }
.step-card__desc { font-size: 0.9rem; line-height: 1.45; color: var(--muted); margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* ============ Декор: RAL + флоки (#decor, dark) ============ */
.decor__label { font-family: var(--font-display); font-size: 1.05rem; color: var(--on-dark); margin: 1.8rem 0 1rem; }
.decor__label:first-of-type { margin-top: 0; }
.decor__disclaimer { font-size: 0.82rem; color: var(--on-dark-muted); margin: 1.4rem 0 1.6rem; max-width: 60ch; }
/* горизонтальная прокрутка палитры (RAL + флоки) */
.ral-grid { min-height: 116px; }
.flake-grid { min-height: 150px; }
.ral-grid, .flake-grid, .ral-basic {
  display: flex; flex-wrap: nowrap; gap: 0.8rem; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 1.1rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: auto; scrollbar-color: var(--gold) rgba(255,255,255,0.1);
}
.ral-grid::-webkit-scrollbar, .flake-grid::-webkit-scrollbar, .ral-basic::-webkit-scrollbar { height: 12px; }
.ral-grid::-webkit-scrollbar-track, .flake-grid::-webkit-scrollbar-track, .ral-basic::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 999px; }
.ral-grid::-webkit-scrollbar-thumb, .flake-grid::-webkit-scrollbar-thumb, .ral-basic::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.ral-grid::-webkit-scrollbar-thumb:hover, .flake-grid::-webkit-scrollbar-thumb:hover, .ral-basic::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); background-clip: padding-box; }
.ral-basic { min-height: 104px; gap: 1.2rem; }
.ral-dot { flex: 0 0 72px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ral-dot__chip { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 4px 12px rgba(0,0,0,0.28); }
.ral-dot__code { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; color: var(--on-dark); margin-top: 0.4rem; }
.ral-dot__name { font-size: 0.7rem; color: var(--on-dark-muted); line-height: 1.2; }
@media (min-width: 680px) { .ral-dot__chip { width: 64px; height: 64px; } .ral-dot { flex-basis: 80px; } }
.ral-swatch { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.15rem; }
.ral-swatch__chip { display: block; height: 76px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); }
.ral-swatch__code { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: var(--on-dark); margin-top: 0.3rem; }
.ral-swatch__name { font-size: 0.75rem; color: var(--on-dark-muted); line-height: 1.2; }
.flake-tile { flex: 0 0 190px; scroll-snap-align: start; margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-dark); position: relative; }
.flake-tile__img { width: 100%; height: 120px; object-fit: cover; display: block; }
.flake-tile__id { position: absolute; left: 6px; bottom: 6px; font-family: var(--font-display); font-size: 0.66rem; font-weight: 600; color: #fff; background: rgba(5, 12, 16, 0.6); backdrop-filter: blur(4px); padding: 0.12rem 0.45rem; border-radius: 999px; }

/* спонсорство — бегущая строка */
.sponsors { padding: 2.5rem 0; background: var(--ink); color: var(--on-dark); overflow: hidden; position: relative; }
.sponsors__marquee { position: relative; z-index: 1; }
.sponsors__title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.sponsors__sub { text-align: center; color: var(--on-dark-muted); }
.sponsors__marquee { margin-top: 1.5rem; position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sponsors__track { display: inline-flex; gap: 3rem; padding-left: 3rem; white-space: nowrap; animation: sponsors-scroll 32s linear infinite; }
.sponsors__item { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--on-dark); opacity: 0.85; }
@keyframes sponsors-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sponsors__track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; } }

/* контакты: адаптивная сетка под любое число карточек */

/* документ-галереи в блоке «О компании» (сертификаты + техкарты) */
.doc-toggle { margin-top: 1rem; background: transparent; border-color: var(--line-strong); color: var(--text); }
.doc-toggle:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }
.doc-gallery[hidden] { display: none; }
.doc-gallery {
  display: flex; flex-wrap: nowrap; gap: 0.7rem; margin-top: 1rem;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 0.9rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: auto; scrollbar-color: var(--gold-deep) var(--line);
}
.doc-gallery::-webkit-scrollbar { height: 12px; }
.doc-gallery::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.doc-gallery::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.doc-gallery::-webkit-scrollbar-thumb:hover { background: var(--gold); background-clip: padding-box; }
.doc-thumb { flex: 0 0 clamp(180px, 60vw, 230px); height: auto; scroll-snap-align: start; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; cursor: zoom-in; transition: transform 0.16s ease, box-shadow 0.2s ease; }
.doc-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* объекты — авто-бегущая лента фото */
/* лента работ: авто-прокрутка (JS) + ручной скролл/свайп/драг */
.objects-marquee {
  position: relative; width: 100%; min-height: 252px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.9rem; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  scrollbar-width: thin; scrollbar-color: rgba(254, 197, 12, 0.6) rgba(255, 255, 255, 0.10);
}
.objects-marquee.is-grabbing { cursor: grabbing; }
.objects-marquee::-webkit-scrollbar { height: 8px; }
.objects-marquee::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.10); border-radius: 999px; }
.objects-marquee::-webkit-scrollbar-thumb { background: rgba(254, 197, 12, 0.6); border-radius: 999px; }
.objects-marquee::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.objects-track { display: inline-flex; gap: 1rem; padding-left: 1rem; }
.objects-track .obj-tile { flex: 0 0 clamp(240px, 70vw, 360px); min-height: 240px; }

/* реальные объекты — именованные карточки (на тёмной секции) */
#objects-more { margin-top: 1.6rem; }
.objects-more-wrap[hidden] { display: none; }
.objects-list__label { font-family: var(--font-display); font-size: 1.05rem; color: var(--on-dark); margin: 1.6rem 0 0.8rem; }
/* компактная таблица-строки с внутренним скроллом */
.objects-list {
  display: flex; flex-direction: column;
  max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  scrollbar-width: thin; scrollbar-color: var(--gold) rgba(255,255,255,0.1);
}
.objects-list::-webkit-scrollbar { width: 10px; }
.objects-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 999px; }
.objects-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.obj-named {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-dark);
}
.obj-named:last-child { border-bottom: none; }
.obj-named__name { color: var(--on-dark); font-weight: 600; font-size: 0.92rem; line-height: 1.3; flex: 1 1 55%; }
.obj-named__city { color: var(--on-dark-muted); font-size: 0.8rem; }
.obj-named__meta { color: var(--gold); font-size: 0.78rem; font-weight: 600; white-space: nowrap; margin-left: auto; }

/* ============ Каталог систем — карточки с фото + «Подробнее» ============ */
.systems-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 760px) { .systems-grid { grid-template-columns: 1fr 1fr; } }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.type-card:hover { box-shadow: var(--shadow); border-color: rgba(0, 175, 202, 0.4); }
.type-card.is-open { border-color: rgba(0, 175, 202, 0.45); box-shadow: var(--shadow); }
/* медиа с текстом поверх фото */
.type-card__media { position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 200px; overflow: hidden; }
.type-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.type-card__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem; padding: 1.1rem 1.25rem; background: linear-gradient(180deg, rgba(5,18,23,0) 35%, rgba(5,18,23,0.55) 68%, rgba(5,18,23,0.9) 100%); }
.type-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1.18; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.65); }
.type-card__teaser { font-size: 0.86rem; font-weight: 500; line-height: 1.35; margin: 0; color: rgba(255,255,255,0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.type-card__info { padding: 1rem 1.35rem 1.3rem; display: flex; flex-direction: column; }
.type-card__toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.5rem 1.05rem; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--kz-deep); cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.type-card__toggle:hover { border-color: var(--kz); color: var(--kz); background: rgba(0, 175, 202, 0.05); }
.type-card__toggle .acc-chev { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform 0.25s ease; }
.type-card.is-open .type-card__toggle .acc-chev { transform: rotate(180deg); }
.type-card__extra { display: none; flex-direction: column; gap: 0.7rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line); animation: acc-reveal 0.28s ease; }
.type-card.is-open .type-card__extra { display: flex; }
@keyframes acc-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.acc-cta { align-self: flex-start; margin-top: 0.5rem; text-decoration: none; }

/* содержимое раскрытой системы (преимущества + стандарты со срезами) */
.sys-card__adv-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
.sys-card__adv { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.sys-card__adv li { font-size: 0.84rem; color: var(--text); background: var(--surface-2); border-radius: 999px; padding: 0.25rem 0.7rem; }
.sys-std { display: grid; grid-template-columns: 54px 84px 1fr; gap: 0.75rem; align-items: start; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.sys-std__cut { width: 54px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); align-self: start; cursor: zoom-in; }
.sys-std__name { font-weight: 700; font-size: 0.82rem; color: var(--kz-deep); }
.sys-std__body { display: flex; flex-direction: column; gap: 0.2rem; }
.sys-std__sys { font-size: 0.9rem; line-height: 1.4; }
.sys-std__th { font-size: 0.8rem; color: var(--muted); }
.sys-std__docs { display: flex; flex-wrap: wrap; gap: 0.35rem 0.45rem; margin-top: 0.35rem; }
.spec-link { font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.01em; color: var(--gold-deep); background: transparent; border: 1px solid var(--gold-deep); border-radius: 999px; padding: 0.18rem 0.6rem; cursor: zoom-in; transition: background 0.15s ease, color 0.15s ease; }
.spec-link:hover { background: var(--gold); color: #2a1d00; border-color: var(--gold); }
@media (max-width: 420px) { .sys-std { grid-template-columns: 44px 1fr; } .sys-std__cut { width: 44px; height: 34px; } .sys-std__name { grid-column: 2; } .sys-std__body { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .type-card__extra { animation: none; } .type-card__toggle .acc-chev { transition: none; } }

/* футер: реквизиты */
.footer__requisites { margin-top: 0.5rem; font-size: 0.72rem; line-height: 1.5; color: var(--on-dark-muted); max-width: 46ch; }

/* отключённые контакты/форма до получения данных клиента */
.is-disabled { opacity: 0.5; pointer-events: none; cursor: default; }
.lead-form.is-disabled .field,
.lead-form.is-disabled .btn { opacity: 0.55; }
.form-notice {
  margin: 0.75rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 175, 202, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============ GEO — золотая карта-маршруты в hero ============ */
.geo-contour {
  fill: rgba(254, 197, 12, 0.10);
  stroke: rgba(254, 197, 12, 0.62);
  stroke-width: 1.4; stroke-linejoin: round;
}
/* стрелки прорисовываются ПООЧЕРЁДНО (волной по кругу от Астаны), медленно.
   --len = длина дуги, --i = порядковый номер (из build-geomap.py) */
.geo-arc {
  fill: none;
  stroke: rgba(255, 240, 200, 0.55);
  stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: geo-draw 18s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s);
}
.geo-arc--real {
  stroke: #fff; stroke-width: 2.4;
  filter: drop-shadow(0 0 6px rgba(254, 197, 12, 0.9));
}
@keyframes geo-draw {
  0%   { stroke-dashoffset: var(--len); opacity: 0; }
  3%   { opacity: 1; }
  12%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.geo-city { stroke: rgba(40, 29, 0, 0.55); stroke-width: 1.2; }
.geo-city--major { fill: rgba(254, 210, 90, 0.9); }
.geo-city--real  { fill: #fff; filter: drop-shadow(0 0 6px rgba(254, 197, 12, 0.95)); }
.geo-city--hub   { fill: #fff; filter: drop-shadow(0 0 10px rgba(254, 197, 12, 1)); }
.geo-hub-pulse {
  fill: none; stroke: var(--gold); stroke-width: 2.4;
  transform-box: fill-box; transform-origin: center;
  animation: geo-pulse 3.8s ease-out infinite;
}
@keyframes geo-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .geo-arc { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .geo-hub-pulse { display: none; }
}

/* ============ Lightbox — увеличение картинок ============ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 9, 12, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(96vw, 1400px); max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-dark); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background 0.15s ease; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
body.lightbox-open { overflow: hidden; }
.obj-tile__img, .sys-std__cut, .flake-tile__img { cursor: zoom-in; }

/* блок методики внутри объединённой секции «Решения + Подбор» */
.method-block { margin-top: clamp(2.4rem, 6vw, 3.8rem); padding-top: clamp(1.8rem, 4vw, 2.8rem); border-top: 1px solid var(--line); }
.method-block__title { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.1; margin: 0 0 0.4rem; }
.method-block .section__sub { margin-bottom: 1.6rem; }

/* =========================================================
   Калькулятор стоимости — страница calc.html
   ========================================================= */
.calc-page { background: var(--bg); color: var(--text); }
.calc-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.calc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); padding-top: 0.5rem; padding-bottom: 0.5rem; }
.calc-header .brand__logo { color: var(--kz-deep); }
.calc-header .brand__mark { color: var(--text); }
.calc-header__right { display: flex; align-items: center; gap: 0.7rem; }
.calc-wrap { padding: 2.4rem 0 3.5rem; }
.calc-title { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.calc-subtitle { margin: 0 0 2rem; color: var(--muted); max-width: 60ch; }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 920px) {
  .calc-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .calc-result { position: sticky; top: calc(var(--header-h) + 1.2rem); }
}
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.calc-field { margin-bottom: 1.1rem; }
.calc-field > label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; }
.calc-field select, .calc-field input[type="number"] {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.calc-field select:focus, .calc-field input:focus { outline: 2px solid var(--kz); outline-offset: 1px; border-color: var(--kz); }
.calc-class { display: flex; gap: 0.5rem; flex-wrap: wrap; min-height: 46px; }
.calc-class-btn { flex: 1 1 auto; padding: 0.7rem 0.9rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.calc-class-btn:hover { border-color: var(--kz); }
.calc-class-btn.is-active { background: var(--kz); color: #fff; border-color: var(--kz); }
.calc-opts { display: flex; flex-direction: column; gap: 0.55rem; }
.calc-optline { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; cursor: pointer; }
.calc-optline input { width: 18px; height: 18px; accent-color: var(--kz); flex: none; }

.calc-result__title { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.calc-sys { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; margin-bottom: 1rem; background: var(--surface-2); min-height: 92px; }
.calc-sys__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; }
.calc-sys__k { color: var(--muted); font-size: 0.85rem; flex: none; }
.calc-sys__v { text-align: right; font-weight: 600; font-size: 0.88rem; }
.calc-rows { margin-bottom: 1rem; }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.calc-row span { color: var(--muted); }
.calc-row b { font-weight: 700; }
.calc-row--accent { border-bottom: 0; border-top: 2px solid var(--line-strong); margin-top: 0.2rem; padding-top: 0.7rem; }
.calc-row--accent span, .calc-row--accent b { color: var(--text); }
.calc-total-box { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; background: var(--kz-deep); color: #fff; border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 0.9rem; min-height: 104px; }
.calc-total-box__k { font-size: 0.85rem; color: var(--on-dark-muted); }
.calc-total-box__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3.4vw, 1.9rem); color: var(--gold); }
.calc-term-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0 1rem; }
.calc-term-row span { color: var(--muted); }
.calc-disclaimer { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.calc-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* =========================================================
   Согласие в форме · страница политики · cookie-уведомление
   ========================================================= */
.legal-wrap { padding: 2.4rem 0 3.5rem; }
.legal { max-width: 760px; margin: 0 auto; }
.legal__title { margin: 0 0 0.4rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.legal__updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.6rem; }
.legal__intro { font-size: 1.02rem; }
.legal h2 { margin: 1.6rem 0 0.4rem; font-size: 1.12rem; }
.legal p { margin: 0 0 0.6rem; color: var(--text); line-height: 1.6; }
.legal__law { margin-top: 1.6rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 1rem; }
