/* =========================================================================
   СВК — Вентиляция и кондиционирование в Тюмени
   Дизайн-система: светлый монохром (чёрный/белый/графит) + холодный акцент
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-soft:       #f4f5f7;
  --bg-softer:     #fafbfc;
  --ink:           #0a0a0a;   /* базовый акцент/текст оригинала */
  --ink-2:         #2c3138;
  --ink-3:         #5b6470;
  --muted:         #8b929c;
  --line:          #e6e8ec;
  --line-2:        #d7dae0;

  /* Cold accent (сочетается с ч/б, тема «холодный воздух») */
  --accent:        #1466d8;
  --accent-ink:    #0f4fab;
  --accent-2:      #3bb8e8;
  --accent-soft:   #eaf2fe;
  --accent-line:   #cfe0fb;

  /* Dark section (отсылка к чёрному копирайт-бару) */
  --dark:          #0e1116;
  --dark-2:        #161b22;
  --dark-line:     #262d38;
  --on-dark:       #e9ecf1;
  --on-dark-muted: #9aa4b2;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(12,17,29,.06), 0 2px 8px rgba(12,17,29,.05);
  --sh-2: 0 4px 12px rgba(12,17,29,.08), 0 18px 40px -12px rgba(12,17,29,.14);
  --sh-focus: 0 0 0 4px var(--accent-soft);

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 74px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", var(--font);

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(.95rem, .92rem + .15vw, 1.02rem);
  --step-1:  clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem);
  --step-4:  clamp(2rem, 1.35rem + 3vw, 3.6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-sm); }
::selection { background: var(--ink); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--tight { padding-block: clamp(32px, 5vw, 60px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.stack > * + * { margin-top: 1rem; }
/* защита от горизонтального вылета:
   1) базовая одиночная колонка = 1fr (не max-content от длинных слов/заголовков)
   2) грид/флекс-дети могут сжиматься ниже min-content */
.grid, .hero__inner, .split, .cta-band__inner, .stats-band,
.steps, .works, .news, .footer__grid, .contact-grid { grid-template-columns: 1fr; }
.grid > *, .split > *, .hero__inner > *, .cta-band__inner > *, .stats-band > *,
.steps > *, .works > *, .news > *, .footer__grid > *, .contact-grid > * { min-width: 0; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 700px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px)  { .g-3 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--accent-2); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--ink-3); font-size: var(--step-1); }
.section--dark .section-head p { color: var(--on-dark-muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead { font-size: var(--step-1); color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--ink); --_fg: #fff; --_bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn--accent { --_bg: var(--accent); --_bd: var(--accent); }
.btn--accent:hover { --_bg: var(--accent-ink); --_bd: var(--accent-ink); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--line-2); }
.btn--ghost:hover { --_bd: var(--ink); box-shadow: none; }
.btn--light { --_bg: #fff; --_fg: var(--ink); --_bd: #fff; }
.btn--on-dark-ghost { --_bg: transparent; --_fg: #fff; --_bd: var(--dark-line); }
.btn--on-dark-ghost:hover { --_bd: #fff; box-shadow: none; }
.btn--lg { padding: 17px 32px; font-size: var(--step-1); }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; color: var(--accent-ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--dark); color: var(--on-dark-muted);
  font-size: .875rem;
  border-bottom: 1px solid var(--dark-line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px;
  min-height: 52px; padding-block: 9px; flex-wrap: wrap;
}
.topbar__slogan { display: inline-flex; align-items: center; gap: 10px; }
.topbar__slogan .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; }
.topbar__contacts { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.topbar__contacts a { color: var(--on-dark); font-weight: 600; font-size: .95rem; }
.topbar__contacts a:hover { color: var(--accent-2); }
.topbar__socials { display: flex; gap: 8px; }
.topbar__socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--accent); color: #fff;
  transition: .18s ease;
}
.topbar__socials a:hover { background: #fff; color: var(--accent); transform: translateY(-1px); }
.topbar__socials svg { width: 16px; height: 16px; }
@media (max-width: 1000px) {
  .topbar__slogan { display: none; }
  .topbar__inner { justify-content: center; min-height: 46px; gap: 8px 16px; }
}
@media (max-width: 560px) {
  .topbar__contacts { gap: 6px 14px; }
  .topbar__contacts a { font-size: .88rem; }
  .topbar__contact--email { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(12,17,29,.2); }
/* шапка тянется на всю ширину, не ограничена 1200px — чтобы уместить длинное меню */
.header > .wrap { max-width: none; }
.header__inner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__img { height: 34px; width: auto; display: block; }
.logo__img--light { filter: brightness(0) invert(1); }
.logo__tag {
  font-size: 10px; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-2);
}
.logo__tag--light { color: var(--on-dark-muted); border-left-color: var(--dark-line); }
@media (max-width: 600px) { .logo__tag { display: none; } }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px clamp(8px, 0.9vw, 13px); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.82rem, .5rem + .5vw, .92rem);
  color: var(--ink-2); white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav__link:hover { background: var(--bg-soft); color: var(--ink); }
.nav__item.is-active > .nav__link { color: var(--ink); }
.nav__item.is-active > .nav__link::after {
  content: ""; position: absolute;
}
.nav__item { position: relative; }
.nav__item--has-children > .nav__link .caret { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__item--has-children:hover > .nav__link .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 288px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item--has-children:hover .submenu,
.nav__item--has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: background .14s ease, color .14s ease;
}
.submenu a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: var(--ink-2); transition: .16s ease;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink);
  white-space: nowrap;
}
.header__phone svg { width: 16px; height: 16px; color: var(--accent-ink); }
@media (max-width: 1380px) { .header__phone span { display: none; } }
@media (max-width: 1199px) { .header__phone { display: none; } }

.burger { display: none; }
@media (max-width: 1199px) {
  .nav { display: none; }
  .burger {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    border: 1.5px solid var(--line-2); border-radius: 12px;
  }
  .burger svg { width: 22px; height: 22px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--dark); color: var(--on-dark);
  padding: 22px var(--gutter) 40px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mobile-menu__top .logo__text b { color: #fff; }
.mobile-menu__close { width: 44px; height: 44px; border: 1px solid var(--dark-line); border-radius: 12px; display: grid; place-items: center; color: #fff; }
.mobile-menu__close svg { width: 22px; height: 22px; }
.m-nav > li { border-bottom: 1px solid var(--dark-line); }
.m-nav > li > a, .m-nav__parent {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff;
}
.m-nav__parent svg { width: 18px; height: 18px; transition: transform .2s ease; }
.m-nav__parent.is-open svg { transform: rotate(180deg); }
.m-nav__sub { display: none; padding: 0 4px 14px; }
.m-nav__sub.is-open { display: block; }
.m-nav__sub a { display: block; padding: 10px 0; color: var(--on-dark-muted); font-weight: 600; }
.m-nav__sub a:hover { color: var(--accent-2); }
.mobile-menu__contacts { margin-top: 28px; display: grid; gap: 8px; color: var(--on-dark-muted); font-size: .95rem; text-align: center; justify-items: center; }
.mobile-menu__contacts a { color: #fff; font-weight: 700; font-size: 1.15rem; }

/* ---------- Search modal ---------- */
.search-modal {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: start center;
  padding-top: 18vh;
  background: rgba(10,10,10,.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal form {
  width: min(640px, 92vw); display: flex; gap: 10px;
  background: #fff; padding: 14px; border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.search-modal input {
  flex: 1; border: 0; padding: 14px 16px; font-size: 1.05rem; background: var(--bg-soft); border-radius: var(--r-md);
}
.search-modal input:focus-visible { box-shadow: none; outline: 2px solid var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__inner {
  display: grid; gap: clamp(32px, 5vw, 56px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.15fr .85fr; } }
.hero__eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: var(--step-4); letter-spacing: -.03em;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub { margin-top: 20px; max-width: 44ch; font-size: var(--step-1); color: var(--ink-3); }
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.hero__cta .btn { flex: 1 1 auto; }
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}
.hero__promo {
  display: inline-flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; padding: 9px 15px; border-radius: var(--r-lg);
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; line-height: 1.35;
}
.hero__promo::before { content: ""; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.hero__stats {
  margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; max-width: 100%;
}
.hero__stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-inline: 10px;
}
.hero__stat + .hero__stat { border-left: 1px solid var(--line-2); }
.hero__stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero__stat span { margin-top: 3px; font-size: var(--step--1); color: var(--muted); }

.hero__media { position: relative; }
@media (min-width: 1000px) {
  .hero__media::before {
    content: ""; position: absolute; z-index: 0;
    right: -16px; top: -16px; width: 62%; height: 66%;
    border-radius: var(--r-xl); background: var(--accent-soft);
  }
}
.hero__media .media { position: relative; z-index: 1; box-shadow: var(--sh-2); }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl);
  aspect-ratio: 4 / 3.4;
}
.hero__badge {
  position: absolute; left: 14px; bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: 16px 20px; display: flex; gap: 14px; align-items: center;
  max-width: 280px;
}
.hero__badge .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.hero__badge .ic svg { width: 20px; height: 20px; }
.hero__badge b { font-family: var(--font-display); display: block; color: var(--ink); font-size: .95rem; }
.hero__badge span { font-size: .82rem; color: var(--ink-3); }

/* airflow lines — синие пунктирные «потоки воздуха» */
.airflow { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .6; }
.airflow path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.airflow path { stroke-dasharray: 4 11; animation: flow 4s linear infinite; }
.airflow path:nth-child(2) { animation-duration: 5.6s; opacity: .7; }
.airflow path:nth-child(3) { animation-duration: 7.2s; opacity: .45; }
.airflow path:nth-child(4) { animation-duration: 9s; opacity: .5; }
@keyframes flow { to { stroke-dashoffset: -180; } }
@media (prefers-reduced-motion: reduce) { .airflow path { animation: none; } }
/* лёгкая вуаль позади текста, чтобы линии не мешали читать, но оставались видимыми */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.30) 34%, transparent 52%);
}
.hero__inner { position: relative; z-index: 1; }

/* ---------- Trust strip (бегущая строка) ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-softer); }
.trust__inner { display: flex; align-items: center; gap: 22px; padding-block: 18px; }
.trust__label {
  flex: none; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
@media (max-width: 640px) { .trust__label { display: none; } }

.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; flex: 0 0 auto; }
.marquee__group li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; color: var(--ink-2); font-size: .92rem;
}
.marquee__group .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Cards: services ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card__ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 18px;
}
.card__ic svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--step-1); }
.card p { margin-top: 10px; color: var(--ink-3); font-size: .95rem; }
.card__price {
  margin-top: 16px; display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-weight: 800; color: var(--accent-ink);
}
.card__price small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.card__foot { margin-top: auto; padding-top: 18px; }
.card--dark { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-muted); }
.card--dark .card__ic { background: var(--accent); }

/* numbered feature card */
.card__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: var(--accent-line); line-height: 1; margin-bottom: 10px;
  -webkit-text-stroke: 1px var(--accent); color: transparent;
}

/* ---------- Steps (Схема работы) ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; padding: 26px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--accent-ink); background: var(--accent-soft);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { margin-top: 8px; font-size: .9rem; color: var(--ink-3); }
@media (min-width: 780px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 48px; right: -12px; width: 24px; height: 2px;
    background: var(--accent-line);
  }
}

/* ---------- Split / feature rows ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } .split--media-first .split__media { order: -1; } }
.split__media { align-self: stretch; }
.split__media img { width: 100%; border-radius: var(--r-xl); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--sh-1); }
/* фото на всю высоту колонки текста */
.split__media .media--fill { height: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-1); }
.split__media .media--fill .ph { height: 100%; aspect-ratio: auto; min-height: 300px; }
@media (max-width: 919px) { .split__media .media--fill .ph { min-height: 240px; aspect-ratio: 4/3; } }
.split__body h2 { font-size: var(--step-2); }
.split__body > * + * { margin-top: 16px; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent-soft) 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='%230f4fab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--dark .check-list li { color: var(--on-dark); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.accordion__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.accordion__head:hover { background: var(--bg-softer); }
.accordion__icon { flex: none; width: 22px; height: 22px; position: relative; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent);
  transition: transform .25s ease, opacity .2s ease;
}
.accordion__icon::before { width: 14px; height: 2px; }
.accordion__icon::after { width: 2px; height: 14px; }
.accordion__item.is-open { border-color: var(--accent-line); box-shadow: 0 6px 22px -14px rgba(20,102,216,.35); }
.accordion__item.is-open .accordion__head { background: var(--accent-soft); color: var(--accent-ink); }
.accordion__item.is-open .accordion__icon::before,
.accordion__item.is-open .accordion__icon::after { background: var(--accent-ink); }
.accordion__item.is-open .accordion__icon::after { transform: rotate(90deg); opacity: 0; }
.accordion__panel {
  height: 0; overflow: hidden;
  transition: height .38s cubic-bezier(.4, 0, .2, 1);
}
.accordion__body {
  padding: 4px 20px 22px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s ease, transform .3s ease;
}
.accordion__item.is-open .accordion__body { opacity: 1; transform: none; transition: opacity .35s ease .1s, transform .35s ease .1s; }
@media (prefers-reduced-motion: reduce) {
  .accordion__panel { transition: none; }
  .accordion__body { transition: none; }
}
.accordion__body > * + * { margin-top: .9em; }
.accordion__body p, .accordion__body li { color: var(--ink-2); font-size: .96rem; }
.accordion__body strong { color: var(--ink); }
.accordion__body ul { display: grid; gap: 8px; }
.accordion__body ul li { position: relative; padding-left: 20px; }
.accordion__body ul li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.accordion__body .figure, .accordion__body .diagram { margin-block: 14px; }
.accordion__body .diagram { max-width: 480px; }
.accordion__body .figure img { width: 100%; max-height: 340px; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .accordion__panel { transition: none; } }

/* ---------- Figure / diagram ---------- */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-lg); display: block; }
.figure figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); text-align: center; }
.diagram {
  width: 100%; max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 32px);
}
.diagram img { width: 100%; display: block; margin-inline: auto; }
.split__media:has(.diagram) { display: flex; align-items: center; justify-content: center; }
.diagram figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--muted); text-align: center; }
.prose .diagram { margin-block: 1.6em; }

/* ---------- Prose (текстовые страницы) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-lg); margin-block: 1.4em; }

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-block: clamp(36px, 6vw, 68px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs .sep { color: var(--line-2); }
.page-hero h1 { font-size: var(--step-3); max-width: 20ch; }
.page-hero p { margin-top: 16px; max-width: 62ch; color: var(--ink-3); font-size: var(--step-1); }
.page-hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero__meta--cta { margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); font-family: var(--font-display);
  font-weight: 700; font-size: .85rem; color: var(--ink-2); white-space: nowrap;
}
.pill--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 560px) {
  /* плашки — горизонтальный скролл вместо переноса */
  .page-hero__meta:not(.page-hero__meta--cta) {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    gap: 8px; padding: 2px 44px 4px 0;
    scroll-snap-type: x proximity;
    -webkit-mask: linear-gradient(90deg, #000 78%, transparent 100%);
            mask: linear-gradient(90deg, #000 78%, transparent 100%);
  }
  .page-hero__meta:not(.page-hero__meta--cta)::-webkit-scrollbar { display: none; }
  .page-hero__meta:not(.page-hero__meta--cta) .pill { flex: none; scroll-snap-align: start; }
  .page-hero__meta--cta { flex-direction: column; align-items: stretch; }
  .page-hero__meta--cta .btn { width: 100%; }
}

/* ---------- Price table ---------- */
.pricelist { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.pricelist__row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px 22px; border-top: 1px solid var(--line);
}
.pricelist__row:first-child { border-top: 0; }
.pricelist__row:hover { background: var(--bg-softer); }
.pricelist__row b { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.pricelist__row .price { font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.pricelist__note { padding: 14px 22px; font-size: var(--step--1); color: var(--muted); background: var(--bg-soft); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; text-align: center; }
.stats-band > * { padding-inline: 6px; }
.stats-band > * + * { border-left: 1px solid var(--dark-line); }
.stats-band > *:nth-child(odd) { border-left: 0; }
@media (min-width: 760px) {
  .stats-band { grid-template-columns: repeat(4, 1fr); }
  .stats-band > *:nth-child(odd) { border-left: 1px solid var(--dark-line); }
  .stats-band > *:first-child { border-left: 0; }
}
.stats-band .n { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats-band .l { color: var(--on-dark-muted); font-size: .9rem; margin-top: 6px; }

/* ---------- Portfolio grid ---------- */
.works { display: grid; gap: 22px; }
@media (min-width: 720px)  { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); aspect-ratio: 4/3;
}
.work > .ph { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.work > .ph span { display: none; } /* подпись даёт .work__cap */
.work__cap { min-height: 0; }
.work > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; opacity: .96;
}
.work > img.is-broken { display: none; }
.work:hover > img { transform: scale(1.05); opacity: 1; }
.work__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 44px 20px 18px;
  background: linear-gradient(transparent, rgba(8,9,12,.86));
  color: #fff;
}
.work__cap b { font-family: var(--font-display); font-weight: 700; display: block; line-height: 1.25; }
.work__cap span { font-size: .82rem; color: rgba(255,255,255,.72); }

.work--more {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px dashed var(--line-2); padding: 24px;
  text-align: center;
}
.work--more__n { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--accent-ink); line-height: 1; }
.work--more__t { color: var(--ink-3); font-size: .95rem; }
.work--more .link-arrow { margin-top: 6px; }
.work--more:hover { border-color: var(--accent); }

/* ---------- News ---------- */
.news { display: grid; gap: 24px; }
@media (min-width: 760px)  { .news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.post__img { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.post__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: #fff; color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.news-note {
  margin-top: clamp(26px, 4vw, 40px); padding: 18px 22px;
  background: var(--accent-soft); border-radius: var(--r-md);
  color: var(--accent-ink); font-size: .95rem; text-align: center;
}
.news-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post__img .ph { position: absolute; inset: 0; border-radius: 0; }
.post__img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.post__img img.is-broken { display: none; }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post__body h3 { margin-top: 8px; font-size: 1.15rem; }
.post__body p { margin-top: 10px; color: var(--ink-3); font-size: .92rem; }
.post__body .link-arrow { margin-top: auto; padding-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--dark-2);
  background-image:
    linear-gradient(115deg, rgba(9,12,17,.95) 0%, rgba(9,12,17,.85) 45%, rgba(9,12,17,.62) 100%),
    url("../img/hero-vent.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.cta-band__inner {
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.15fr .85fr; } }
.cta-band h2 { font-size: var(--step-3); color: #fff; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.82); font-size: var(--step-1); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.form--card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 36px); box-shadow: var(--sh-1); }
.form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-family: var(--font-display); font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 13px 15px; background: var(--bg-softer); transition: border-color .16s ease, background .16s ease;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: var(--sh-focus);
}
.field textarea { resize: vertical; min-height: 108px; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; }
.form__note a { color: var(--accent-ink); text-decoration: underline; }
.form__success {
  display: none; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .92rem;
}
.form__success svg { width: 20px; height: 20px; flex: none; }
.form.is-sent .form__success { display: flex; }

/* On dark form */
.section--dark .form--card { background: var(--dark-2); border-color: var(--dark-line); }
.section--dark .field label { color: var(--on-dark); }
.section--dark .field input, .section--dark .field textarea, .section--dark .field select {
  background: var(--dark); border-color: var(--dark-line); color: #fff;
}
.section--dark .form__note { color: var(--on-dark-muted); }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-list { display: grid; gap: 4px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .k { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-item .v { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.contact-item .v a:hover { color: var(--accent-ink); }
.contact-list__cta { margin-top: 24px; text-align: center; }
.map-embed {
  position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
  min-height: 380px;
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, var(--bg-softer) 12px, var(--bg-softer) 24px);
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px;
}
.map-embed iframe { display: block; }
@media (min-width: 900px) { .map-embed { min-height: 100%; } }
.map-embed--link {
  gap: 12px; text-decoration: none; transition: border-color .18s ease, background .18s ease;
}
.map-embed--link:hover { border-color: var(--accent-line); }
.map-embed__pin {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.map-embed__pin svg { width: 26px; height: 26px; }
.map-embed__addr { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; max-width: 26ch; }
.map-embed svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line-2); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-block: clamp(48px, 7vw, 80px) 0; }
.footer a:hover { color: var(--accent-2); }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand .logo__text b { color: #fff; }
.footer__brand p { margin-top: 16px; max-width: 34ch; font-size: .92rem; }
.footer__brand .topbar__socials { margin-top: 22px; gap: 10px; }
.footer__brand .topbar__socials a { width: 46px; height: 46px; }
.footer__brand .topbar__socials svg { width: 22px; height: 22px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; font-size: .92rem; }
.footer__contacts { display: grid; gap: 10px; font-size: .92rem; }
.footer__contacts b { color: #fff; font-family: var(--font-display); }
.footer__mini-news { display: grid; gap: 14px; }
.footer__mini-news a { display: flex; gap: 12px; }
.footer__mini-news img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.footer__mini-news b { color: #fff; font-size: .88rem; font-family: var(--font-display); display: block; }
.footer__mini-news span { font-size: .8rem; }
.footer__bottom {
  margin-top: 48px; border-top: 1px solid var(--dark-line);
  padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center;
  text-align: center; font-size: .85rem;
}
.footer__policy:hover { color: var(--accent-2); }
.footer__bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }

/* ---------- Floating actions ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab button, .fab a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: var(--sh-2);
  transition: transform .18s ease, background .18s ease, opacity .2s ease;
}
@media (min-width: 700px) { .fab { right: 20px; bottom: 20px; gap: 12px; } .fab button, .fab a { width: 52px; height: 52px; } }
.fab .fab__call { background: var(--accent); }
.fab button:hover, .fab a:hover { transform: translateY(-3px); }
.fab svg { width: 20px; height: 20px; }
.fab__top { opacity: 0; visibility: hidden; }
.fab__top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  color: var(--muted); font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(20,102,216,.06), rgba(59,184,232,.05)),
    repeating-linear-gradient(45deg, var(--bg-soft) 0 14px, var(--bg-softer) 14px 28px);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255,255,255,.5), transparent 70%);
}
.ph > span { position: relative; z-index: 1; padding: 10px 14px; }
.ph--4x3 { aspect-ratio: 4/3; }
.ph--16x10 { aspect-ratio: 16/10; }
.ph--16x9 { aspect-ratio: 16/9; }
.ph--tall { aspect-ratio: 4 / 3.4; }
.ph--square { aspect-ratio: 1; }
img.is-broken { display: none; }

/* image over placeholder — фото подгружается, при ошибке остаётся плейсхолдер */
.media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-1); }
.media > .ph { border-radius: 0; }
.media > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.media > img.is-broken { display: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.no-scroll { overflow: hidden; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
