/* ═══════════ TOKENS ═══════════ */
:root {
  --bg: #ffffff;
  --bg-tint: #f2f6fa;
  --bg-dark: #0d1b2a;
  --surface: #ffffff;
  --text: #13212f;
  --text-soft: #5f6e7e;
  --text-inverse: #f4f7fa;
  --text-inverse-soft: #9db0c0;
  --accent: #00acec;
  --accent-hover: #0090c9;
  --accent-soft: #e3f6fd;
  --cta: #ffcc18;
  --cta-hover: #f2bd00;
  --cta-ink: #0d1b2a;
  --border: #e4eaf1;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(16, 32, 54, .1);
  --container: 1200px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ═══════════ BASE ═══════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); }
h2 { font-size: clamp(23px, 2.6vw, 32px); }
h3 { font-size: 18px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1360px; }

.section { padding: 56px 0; }
.section--tinted { background: var(--bg-tint); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section__head { max-width: 640px; margin-bottom: 28px; }
.section__head p { margin-top: 12px; color: var(--text-soft); font-size: 16px; }
.section--dark .section__head p { color: var(--text-inverse-soft); }
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section__head--row > div:first-child { max-width: 640px; }
.section__head--center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--text); }
.btn--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 11px 22px; font-size: 15px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

/* ═══════════ HEADER ═══════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.topbar { border-bottom: 1px solid var(--border); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__brand { display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: grid; place-items: center;
}
.logo__mark svg, .logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.topbar__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.topbar__rating__stars { color: #ffb020; font-size: 20px; line-height: 1; }
.topbar__rating__col { display: flex; flex-direction: column; line-height: 1.12; }
.topbar__rating__col b { font-size: 15px; font-weight: 800; }
.topbar__rating__col small { font-size: 11px; color: var(--text-soft); white-space: nowrap; }
.logo__text { font-size: 18px; line-height: 1.1; display: flex; flex-direction: column; }
.logo__text small { font-size: 11px; font-weight: 500; color: var(--text-soft); }
.topbar__phone { display: flex; flex-direction: column; align-items: flex-end; }
.header__phone { font-weight: 800; font-size: 17px; }
.header__hours { font-size: 12px; color: var(--text-soft); }
.topbar__msgrs { display: flex; gap: 8px; }
.msgr {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .2s, filter .2s;
}
.msgr svg {
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 32, 54, .12), inset 0 0 0 1px var(--border);
  transition: box-shadow .2s;
}
.msgr:hover { transform: translateY(-2px); }
.msgr:hover svg { box-shadow: 0 6px 16px rgba(16, 32, 54, .18), inset 0 0 0 1px var(--border); }

/* ── вторая строка: меню ── */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
}
.menu { display: flex; align-items: stretch; }
.menu__link, .menu__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  height: 52px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.menu > .menu__link:first-child { padding-left: 0; }
.menu__link, .menu__toggle { position: relative; }
.menu__link:hover, .menu__toggle:hover, .menu__item.is-open > .menu__toggle { color: var(--accent); }

/* подсветка пункта, ведущего на текущую страницу (и его родителей).
   Верхний уровень: цвет + подчёркивающая полоска (цвет один с :hover — мало,
   полоска однозначно показывает «где я»). */
.menu__link.is-current, .menu__link.is-current-parent,
.menu__toggle.is-current-parent,
.dd .has-fly > a.is-current-parent { color: var(--accent); }
.menu__link.is-current::after,
.menu__link.is-current-parent::after,
.menu__toggle.is-current-parent::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.menu > .menu__link:first-child.is-current::after { left: 0; }
/* Текущий пункт внутри выпадашки — только цвет/фон, без полоски. */
.fly a.is-current,
.dd > li > a.is-current { background: var(--accent-soft); color: var(--accent); }
.caret {
  width: 7px; height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  flex: none;
  transition: transform .2s;
}
.caret--down { transform: rotate(45deg) translateY(-2px); }
.caret--right { transform: rotate(-45deg); margin-left: auto; }
.menu__item { position: relative; display: flex; }
.menu__item.is-open > .menu__toggle .caret--down { transform: rotate(225deg); }

.dd, .fly { list-style: none; margin: 0; display: none; }

/* десктоп: двухпанельный каталог; ширина панели адаптируется под активный подраздел */
@media (min-width: 1081px) {
  .menu__item:hover > .dd { display: block; }
  .dd {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;               /* shrink-to-fit: по навигации + зарезервированному флайауту */
    min-height: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 18px 40px rgba(16, 32, 54, .14);
    padding: 10px;
    /* padding-right проставляется из JS = ширине активного флайаута (адаптивно) */
    z-index: 60;
  }
  .dd > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
  }
  /* «коробочка» выделения: у активного раздела (пока курсор в его флайауте)
     и у любого пункта под курсором — в т.ч. без подпунктов */
  .dd .has-fly.is-active > a,
  .dd > li > a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
  }
  .fly {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: max-content;        /* по содержимому — панель подстраивается под него */
    max-width: 720px;
    background: #fff;
    border-left: 1px solid var(--border);
    padding: 14px 18px;
  }
  .dd .has-fly.is-active > .fly { display: block; }
  .fly a {
    display: block;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-radius: 8px;
    white-space: nowrap;
  }
  .fly a:hover { background: var(--accent-soft); color: var(--accent); }

  /* «Ремонт квартир»: группы в ряд — все пункты видны сразу, без прокрутки */
  /* специфичность повышена, чтобы перебить .has-fly.is-active > .fly { display:block } */
  .dd .has-fly.is-active > .fly--cols {
    display: flex;
    align-items: flex-start;
    gap: 0 26px;
  }
  .fly--cols .fly__group { flex: 0 0 auto; }
  .fly--cols .fly__list { list-style: none; margin: 0; padding: 0; }
  .fly--cols .fly__label { padding: 2px 10px 6px; }
}
.fly__label {
  padding: 12px 10px 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft);
}
.fly__label:first-child { padding-top: 2px; }
.menu__contacts { display: none; }
.burger { display: none; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* кадры и видео без вшитого тёмного фильтра — притемняем равномерно под белый текст */
.hero__bg img, .hero__bg-video { filter: brightness(.65) saturate(.9); }
/* кроссфейд и видео — только на десктопе; на мобильных статичный финишный кадр */
@media (min-width: 1024px) {
  .hero__bg-finish { animation: hero-xfade 12s ease-in-out infinite; }
}
@keyframes hero-xfade {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-finish { animation: none; }
}
/* видеофон: подключается скриптом только на десктопе, картинки остаются постером и фолбэком */
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero--video .hero__bg-video { opacity: 1; }
.hero--video .hero__bg-finish { animation: none; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 19, 32, .9) 0%, rgba(9, 19, 32, .62) 55%, rgba(9, 19, 32, .3) 100%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 680px; }
.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero__sub {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
}
.hero__actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.hero .btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.hero__usp { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.hero__usp li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  font-size: 15px;
}
.hero__usp li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  margin-top: 3px;
}
.hero__trust { position: relative; }

.trustbar {
  margin-top: 44px;
  color: var(--text);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trustbar__item {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
}
.trustbar__item:first-child { border-left: none; }
.trustbar__item strong { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.trustbar__item span { font-size: 14px; color: var(--text-soft); }

/* ── Hero: вариант «фото, оффер и цифры» (главная) ── */
.hero--window-photo {
  padding: 56px 0 48px;
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.hero--window-photo .hero__background,
.hero--window-photo .hero__background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero--window-photo .hero__background img {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.hero--window-photo .hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero--window-photo.hero--video .hero__bg-video { opacity: 1; }
.hero--window-photo .hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 19, 32, .92) 0%, rgba(9, 19, 32, .68) 52%, rgba(9, 19, 32, .25) 100%);
}
.hero--window-photo .hero__inner { position: relative; z-index: 1; }
.hero--window-photo .hero__content { max-width: 720px; }
.hero--window-photo .hero__badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.hero--window-photo h1 { max-width: 18ch; margin-top: 18px; }
.hero--window-photo .hero__offer {
  margin-top: 4px;
  color: var(--hero-offer-color, var(--accent));
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero--window-photo .hero__subtitle {
  max-width: 600px;
  margin-top: 16px;
  color: var(--text-inverse-soft);
  font-size: clamp(16px, 1.4vw, 18px);
}
.hero--window-photo .hero__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero--window-photo .hero__price strong { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.hero--window-photo .hero__price span { color: var(--text-inverse-soft); font-size: 15px; }
.hero--window-photo .hero__stats {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: start;
  gap: 24px 44px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero--window-photo .hero__stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
}
.hero--window-photo .hero__stat span { color: var(--text-inverse-soft); font-size: 13px; }
.hero--window-photo .hero__actions {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero--window-photo .hero__contact { color: var(--text-inverse-soft); font-size: 15px; }
.hero--window-photo .hero__contact strong { color: var(--text-inverse); white-space: nowrap; }
.hero--window-photo .hero__contact:hover strong { text-decoration: underline; }

/* светлый режим: фото открыто справа, текст тёмный */
.hero--window-photo.hero--light {
  background: var(--hero-light-bg, var(--bg-tint));
  color: var(--text);
}
.hero--window-photo.hero--light .hero__background::after {
  background: linear-gradient(90deg, rgba(248, 251, 255, .95) 0%, rgba(248, 251, 255, .74) 44%, rgba(248, 251, 255, .05) 76%);
}
.hero--window-photo.hero--light .hero__badge { background: rgba(13, 27, 42, .08); color: var(--text); }
.hero--window-photo.hero--light .hero__offer { color: var(--accent-hover); }
.hero--window-photo.hero--light .hero__subtitle,
.hero--window-photo.hero--light .hero__price span,
.hero--window-photo.hero--light .hero__stat span,
.hero--window-photo.hero--light .hero__contact { color: var(--text-soft); }
.hero--window-photo.hero--light .hero__contact strong { color: var(--text); }
.hero--window-photo.hero--light .hero__stats { border-top-color: var(--border); }
.hero--window-photo.hero--light .btn--ghost { color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.hero--window-photo.hero--light .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--text); }

@media (max-width: 820px) {
  .hero--window-photo.hero--light .hero__background::after { background: rgba(248, 251, 255, .88); }
  .hero--window-photo .hero__content { max-width: 640px; }
}
@media (max-width: 680px) {
  .hero--window-photo { padding: 48px 0 40px; }
  .hero--window-photo .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .hero--window-photo .hero__actions .btn { width: 100%; }
}

/* ═══════════ SERVICES ═══════════ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Тарифная сетка пакетов (без фото): 4 в ряд. Ниже 900/560px общие медиа-правила
   .services (2 / 1 колонки, идут позже в файле) переопределяют это по источнику. */
.services--tariff { grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__img { aspect-ratio: 16 / 9; background: var(--bg-tint); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card__body p { color: var(--text-soft); font-size: 15px; flex: 1; }
.service-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.service-card__price { font-weight: 800; font-size: 18px; color: var(--accent); }
.service-card__time { font-size: 14px; color: var(--text-soft); }
.service-card--more {
  background: linear-gradient(158deg, #143253 0%, var(--bg-dark) 58%);
  color: var(--text-inverse);
  border: none;
  position: relative;
  overflow: hidden;
}
.service-card--more::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -25%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 172, 236, .45), transparent 70%);
  pointer-events: none;
}
.service-card--more .service-card__body { position: relative; z-index: 1; padding: 22px 24px; }
.service-card--more h3 { font-size: 19px; }
.service-card--more ul { display: flex; flex-direction: column; flex: 1; margin: 8px 0 14px; }
.service-card--more li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-inverse);
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.service-card--more li:first-child { border-top: none; }
.service-card--more li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 172, 236, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300acec' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.service-card--more .btn { align-self: stretch; }

/* ═══════════ QUIZ ═══════════ */
.quiz {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.quiz__info p { margin-top: 16px; color: var(--text-soft); font-size: 18px; }
.quiz__perks { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.quiz__perks li { position: relative; padding-left: 30px; font-weight: 600; }
.quiz__perks li::before {
  content: '✓';
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 12px;
}
.quiz__box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.quiz__progress {
  height: 6px;
  background: var(--bg-tint);
  border-radius: 100px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  width: 10%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .3s ease;
}
.quiz__step h3 { font-size: 19px; margin-bottom: 16px; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__options label { cursor: pointer; }
.quiz__options input { position: absolute; opacity: 0; }
.quiz__options span {
  display: block;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
  text-align: center;
}
.quiz__options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.quiz__range { display: flex; flex-direction: column; gap: 16px; }
.quiz__range input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.quiz__range output { font-size: 32px; font-weight: 800; text-align: center; }
.quiz__input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  outline: none;
}
.quiz__input:focus { border-color: var(--accent); }
.quiz__note { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.quiz__note a { text-decoration: underline; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz__step--done { text-align: center; padding: 24px 0; }
.quiz__step--done p { color: var(--text-soft); }

/* ═══════════ КАЛЬКУЛЯТОР (blocks/calc) ═══════════ */
/* Переиспользует .quiz / .quiz__box / .quiz__options от старого квиза — он оставлен
   как legacy-бэкап, и общая обёртка держит оба варианта в одном визуальном языке.
   Собственные элементы калькулятора — с префиксом .rc (renovation calculator). */
.rc__progress {
  height: 6px;
  background: var(--bg-tint);
  border-radius: 100px;
  overflow: hidden;
}
.rc__progress-bar {
  height: 100%;
  width: 15%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .35s ease;
}
.rc__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 10px 0 22px;
  font-size: 13px; font-weight: 700;
  color: var(--text-soft);
}
.rc__meta-hint { color: var(--accent); font-weight: 600; }
.rc__step h3 { font-size: 19px; margin-bottom: 16px; }

/* Варианты с подписью (тип жилья, сроки) — в одну колонку, текст слева. */
.quiz__options--wide { grid-template-columns: 1fr; }
.quiz__options--wide span { text-align: left; }
.quiz__options small {
  display: block; margin-top: 3px;
  font-size: 13px; font-weight: 500; color: var(--text-soft);
}
.quiz__options input:checked + span small { color: inherit; opacity: .8; }

/* ── Площадь: поле ввода + слайдер. Слайдером точное число не выставить. ── */
.rc__area { display: flex; flex-direction: column; gap: 14px; }
.rc__area-field {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
}
.rc__area-input {
  width: 110px;
  padding: 8px 0;
  border: none; border-bottom: 2px solid var(--border);
  font-family: var(--font); font-size: 40px; font-weight: 800;
  /* Вправо, а не по центру: иначе между числом и «м²» зияет дыра и они читаются
     как два разных элемента, а не как одна величина. */
  text-align: right; color: var(--text);
  outline: none; background: none;
  -moz-appearance: textfield;
}
.rc__area-input::-webkit-outer-spin-button,
.rc__area-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rc__area-input:focus { border-bottom-color: var(--accent); }
.rc__area-unit { font-size: 20px; font-weight: 800; color: var(--text-soft); }
.rc__area-range { width: 100%; accent-color: var(--accent); height: 32px; }
.rc__area-scale {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}

/* ── Уровень отделки: цена на карточке — ценовой якорь до показа результата. ── */
.rc__grades { display: flex; flex-direction: column; gap: 10px; }
.rc__grade { cursor: pointer; }
.rc__grade input { position: absolute; opacity: 0; }
.rc__grade-body {
  display: block;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.rc__grade input:checked + .rc__grade-body { border-color: var(--accent); background: var(--accent-soft); }
.rc__grade input:focus-visible + .rc__grade-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc__grade-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rc__grade-title { font-weight: 800; font-size: 16px; }
.rc__grade-price { font-weight: 800; font-size: 15px; color: var(--accent); white-space: nowrap; }
.rc__grade-text { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.rc__grade-time { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--text-soft); }

/* ── Экран результата ── */
.rc__result-summary { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.rc__total { margin-top: 10px; }
.rc__total-range {
  font-size: clamp(26px, 4.2vw, 36px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
}
.rc__total-sub {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text-soft);
}
.rc__dot { color: var(--border); }
.rc__bars { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.rc__bar-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14px; margin-bottom: 5px;
}
.rc__bar-head b { font-weight: 800; white-space: nowrap; }
.rc__bar-track { height: 8px; background: var(--bg-tint); border-radius: 100px; overflow: hidden; }
.rc__bar-track i {
  display: block; height: 100%;
  background: var(--accent); border-radius: 100px;
  transition: width .4s ease;
}
.rc__materials, .rc__disclaimer {
  margin-top: 16px;
  font-size: 13px; line-height: 1.5; color: var(--text-soft);
}
.rc__disclaimer { margin-top: 8px; }
.rc__cta { width: 100%; margin-top: 20px; }

/* ── Контакты ── */
.rc__contact-note {
  margin: -6px 0 14px;
  font-size: 14px; line-height: 1.5; color: var(--text-soft);
}
.rc__channels { margin-top: 14px; }
.rc__channels-label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.rc__channels-opts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.rc__channels-opts label { cursor: pointer; }
.rc__channels-opts input { position: absolute; opacity: 0; }
.rc__channels-opts span {
  display: block;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 14px; font-weight: 700;
  transition: border-color .15s, background .15s, color .15s;
}
.rc__channels-opts input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ── Спасибо ── */
.rc__done { text-align: center; }
.rc__done-icon {
  width: 54px; height: 54px; margin: 4px auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.rc__done-icon svg { width: 26px; height: 26px; }
.rc__done p { color: var(--text-soft); }
.rc__done-total {
  margin-top: 18px; padding: 16px;
  background: var(--bg-tint); border-radius: var(--radius-sm);
}
.rc__done-total span { display: block; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.rc__done-total b { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; }
.rc__done-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--accent); }
.rc__done-link:hover { text-decoration: underline; }

.rc__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
/* .btn задаёт display, поэтому атрибут hidden сам по себе кнопку не спрячет. */
.rc__nav[hidden], .rc__nav .btn[hidden] { display: none; }

/* Тряска при незаполненном шаге. Дублирует кейфреймы, которые старый квиз
   инжектит из JS: калькулятор живёт на страницах и без legacy-квиза. */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ═══════════ MESSENGERS: «пришлите фото» ═══════════ */
/* Альтернатива звонку внутри квиза (partials/blocks/messengers-photo). Отделён от
   формы линией-разделителем «или», чтобы читался как второй путь, а не как довесок. */
.msg-photo {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.msg-photo::before {
  content: 'или';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}
.msg-photo__title { font-weight: 800; font-size: 16px; }
.msg-photo__text { margin-top: 6px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.msg-photo__links { margin-top: 14px; display: flex; gap: 10px; }
.msg-photo__link {
  flex: 1 1 0; min-width: 0; /* без min-width:0 кнопки расходятся по ширине контента */
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .15s, background .15s, color .15s;
}
.msg-photo__link svg { width: 20px; height: 20px; flex-shrink: 0; }
.msg-photo__link--max:hover { border-color: #7b5cf0; background: rgba(123, 92, 240, .08); color: #5b3fd0; }
.msg-photo__link--tg:hover { border-color: #29a9eb; background: rgba(41, 169, 235, .08); color: #1b7fb4; }
/* Компактный вариант — на экране «спасибо»: разделитель «или» там не нужен. */
.msg-photo--compact { text-align: center; }
.msg-photo--compact::before { content: none; }

/* ═══════════ SLIDERS (portfolio / reviews) ═══════════ */
.slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  padding: 4px 24px 24px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; flex: 0 0 auto; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}
.slider-nav__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.project {
  width: 380px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(16, 32, 54, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0, 140, 200, .12); border-color: #cfe6f2; }
.project__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--bg-tint);
}
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}
.project__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.project__thumbs button {
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  opacity: .55;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: opacity .2s, outline-color .2s;
  background: none;
}
.project__thumbs button:hover { opacity: .85; }
.project__thumbs button.is-active { opacity: 1; outline-color: var(--accent); }
.project__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__body { padding: 18px 2px 0; }
.project__body h3 { font-size: 18px; color: var(--text); }
.project__facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.project__facts span {
  padding: 5px 12px;
  background: var(--bg-tint);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.project__price { font-size: 18px; font-weight: 800; color: var(--accent); }
.project__btn { width: 100%; margin-top: 16px; }
.portfolio__all { margin-top: 36px; text-align: center; }
.videos__wrap { margin-top: 48px; }
.videos__title {
  font-size: clamp(20px, 2.2vw, 24px);
  margin-bottom: 28px;
  color: var(--text);
}
.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.video-card:hover img { transform: scale(1.04); }
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, .05) 40%, rgba(13, 27, 42, .78) 100%);
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  z-index: 1;
  transition: transform .2s ease, background .2s ease;
}
.video-card__play::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video-card:hover .video-card__play { transform: translate(-50%, -58%) scale(1.1); background: var(--accent-hover); }
.video-card__caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.section--dark .btn--ghost {
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.section--dark .btn--ghost:hover {
  box-shadow: inset 0 0 0 2px #fff;
  background: rgba(255, 255, 255, .06);
}
.section--dark .slider-nav__btn {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.section--dark .slider-nav__btn:hover { background: var(--accent); border-color: var(--accent); }

/* ═══════════ BEFORE / AFTER ═══════════ */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ba-item { display: flex; flex-direction: column; gap: 14px; }
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--bg-tint);
}
.ba-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  background: rgba(13, 27, 42, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 100px;
  pointer-events: none;
}
.ba-label--before { left: 16px; }
.ba-label--after { right: 16px; background: var(--accent); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 18 9 12 15 6'/><polyline points='9 18 15 12 9 6'/></svg>");
  background-size: 28px;
  background-position: center;
  background-repeat: no-repeat;
}
.ba-item__caption { font-weight: 700; font-size: 17px; }
.ba-item__caption small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.ba-cta { margin-top: 36px; text-align: center; }

/* ═══════════ USP GRID (bento) ═══════════ */
/* Сетка: 4 иконочных преимущества + тёмная карточка-CTA «Адекватные цены». */
.trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(16, 32, 54, .05);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tcard:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0, 140, 200, .13); }
.tcard h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.tcard p {
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  color: var(--text-soft);
}
/* Тёмная карточка-CTA: фото с затемнением + жёлтая кнопка. */
.tcard--cta {
  justify-content: center;
  border: none;
  color: #fff;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
}
.tcard--cta h3 { color: #fff; padding-right: 0; }
.tcard--cta p { margin-top: 0; padding-top: 12px; color: rgba(255, 255, 255, .82); }
.tcard__btn {
  align-self: flex-start;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 100px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.tcard__btn:hover { background: var(--cta-hover); transform: translateY(-2px); }

@media (max-width: 1120px) { .trust { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .trust { grid-template-columns: 1fr; } .tcard { min-height: 0; } }

/* — старый usp-блок (не используется, оставлен на случай отката прежнего дизайна) — */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.usp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
  transition: transform .25s ease;
}
.usp-card:hover { transform: translateY(-4px); }
/* Текстовые карточки (без фото и не тёмные): заливка чуть темнее серой подложки
   плюс выраженная рамка — так карточка читается и на белом фоне («Главная»), и на
   секции section--tinted (услуги), где белый фон совпал бы с фоном секции. На сером
   контраст даёт в основном рамка, на белом — и заливка, и рамка. Тёмную и фото-
   карточки не трогаем: у них свой фон. */
.usp-card:not(.usp-card--dark):not(.usp-card--photo) {
  background: #e9eef6;
  border: 1px solid #d7e0ec;
}
.usp-card--dark { background: var(--bg-dark); color: var(--text-inverse); }
/* Фото-карточка: светлая, как текстовые. Текст — на сплошном фоне (всегда читаем),
   фотография — отдельным блоком в нижней части карточки. Тёмных заливок нет. */
.usp-card--photo {
  color: var(--text);
  background: #e9eef6;
  border: 1px solid #d7e0ec;
}
.usp-card__media {
  margin-top: 18px;
  flex: 1 1 auto;
  min-height: 132px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}
.usp-card__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 72px;
}
.usp-card--photo .usp-card__head { padding-right: 0; }
.usp-card__head h3 { font-size: 19px; }
.usp-card__head p { font-size: 15px; color: var(--text-soft); max-width: 34ch; }
.usp-card--dark .usp-card__head p { color: var(--text-inverse-soft); }
.usp-card--photo .usp-card__head p { color: var(--text-soft); }
.usp-card__icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(19, 33, 47, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.usp-card--dark .usp-card__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.usp-card__icon svg { width: 26px; height: 26px; }

/* ═══════════ STEPS (8 этапов с фото, вариант b-automation-cards) ═══════════ */
.worksteps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.workstep {
  position: relative;
  min-width: 0;
  aspect-ratio: 37 / 60;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
}
.workstep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 34%, rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}
.workstep__content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.2vw, 30px);
}
.workstep__num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  line-height: 1;
}
.workstep h3 {
  color: var(--text);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.workstep p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
}
/* Этапы без фото (plain): карточка по высоте контента, на подложке с рамкой —
   для страниц со своим набором этапов (офис/коттедж/санузел и т.п. на service.htm),
   где общие фото step-<N>.jpg не подходят. Раскладка — базовая сетка на 4 колонки
   (8 этапов = 2 ряда), как было исходно. */
.worksteps--plain .workstep {
  aspect-ratio: auto;
  background: var(--surface);
  border: 1px solid var(--border);
}
.worksteps--plain .workstep::after { display: none; }

/* Этапы-степпер (stepper) — только для страниц-услуг (work-page): короткий набор
   без фото в один горизонтальный ряд, бейджи с номерами соединены линией. Отдельный
   класс, чтобы не задевать plain-карточки на страницах ремонта помещений. */
.worksteps--stepper .worksteps__grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.worksteps--stepper .workstep {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.worksteps--stepper .workstep__content { padding: 0; }
.worksteps--stepper .workstep__num {
  width: 54px;
  height: 54px;
  margin: 0 0 20px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 16px;
  font-size: 22px;
}
/* Соединительная линия от бейджа к следующему (через промежуток flex-gap). */
.worksteps--stepper .workstep::after {
  content: '';
  display: block;
  position: absolute;
  top: 27px;
  left: 66px;
  width: calc(100% - 46px);
  height: 2px;
  background: var(--border);
}
.worksteps--stepper .workstep:last-child::after { display: none; }

/* На узких экранах ряд не помещается — переключаем степпер в вертикальный стек,
   линию-коннектор убираем. */
@media (max-width: 760px) {
  .worksteps--stepper .worksteps__grid { flex-direction: column; gap: 6px; }
  .worksteps--stepper .workstep { padding-bottom: 18px; }
  .worksteps--stepper .workstep__num { margin-bottom: 14px; }
  .worksteps--stepper .workstep::after { display: none; }
}

@media (max-width: 1080px) {
  .worksteps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .worksteps__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .worksteps__grid::-webkit-scrollbar { display: none; }
  .workstep { flex: 0 0 min(80vw, 300px); scroll-snap-align: start; }
}

/* ═══════════ PRICES ═══════════ */
.tabs__list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs__btn {
  padding: 11px 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.tabs__btn:hover { border-color: var(--text); }
.tabs__btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--border);
}
.price-table td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}
.price-table thead th {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
.price-table thead th:last-child { text-align: right; }
/* Заголовок группы: страница раздела собирает прайсы своих услуг в одну таблицу. */
.price-table__group th {
  padding: 20px 28px 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
.price-table__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.related-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.related-links a {
  display: block;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.related-links a:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.prices__cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--border);
}
.prices__cta p { font-size: 19px; font-weight: 700; }

/* ═══════════ TIMING ═══════════ */
.timing-scroll { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.timing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.timing-table th, .timing-table td { padding: 11px 18px; text-align: left; font-size: 15px; }
.timing-table thead { background: #d3edfa; color: var(--text); }
.timing-table th { font-weight: 700; font-size: 14px; vertical-align: middle; white-space: nowrap; }
.timing-table__group { text-align: center; font-size: 13px; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,140,200,.2); }
.timing-table__sub { text-align: center; font-weight: 600; font-size: 13px; color: var(--accent-hover); }
.timing-table thead th + th { border-left: 1px solid rgba(0,140,200,.13); }
.timing-table tbody tr { border-top: 1px solid var(--border); }
.timing-table tbody tr:nth-child(even) { background: var(--accent-soft); }
.timing-table td:first-child { font-weight: 700; white-space: nowrap; }
.timing-table td:first-child small { display: block; font-weight: 500; font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.timing-table td:nth-child(2), .timing-table td:nth-child(3) { white-space: nowrap; }
.timing-table tbody td:nth-child(n+4) { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ═══════════ OFFERS ═══════════ */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.offer--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.offer__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.offer--accent .offer__tag { background: rgba(255, 255, 255, .2); color: #fff; }
.offer h3 { margin-bottom: 8px; font-size: 19px; }
.offer p { font-size: 15px; color: var(--text-soft); }
.offer--accent p { color: rgba(255, 255, 255, .85); }

/* ── Промо-витрина (главная): фото-карточки, вариант c-image-slider, статично ── */
.promos-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.promo-card {
  position: relative;
  min-height: 300px;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  /* Тонкий край, чтобы карточка не сливалась с подложкой секции. На тёмной/акцентной
     — светлый полупрозрачный, на светлой переопределяется на контурный (ниже). */
  border: 1px solid rgba(255, 255, 255, .14);
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center right;
  color: #fff;
}
.promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(13, 27, 42, .74) 46%, rgba(13, 27, 42, 0) 82%);
  pointer-events: none;
}
.promo-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 72%;
  padding: 30px;
}
.promo-card__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .16);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
.promo-card h3 {
  margin-top: 14px;
  max-width: 14ch;
  font-size: 24px;
  line-height: 1.15;
}
.promo-card p {
  margin-top: 12px;
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
}
.promo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  transition: gap .2s ease;
}
.promo-card__link span { transition: transform .2s ease; }
.promo-card__link:hover span { transform: translateX(4px); }

/* акцентная карточка */
.promo-card--accent { background-color: var(--accent); }
.promo-card--accent::before {
  background: linear-gradient(90deg, var(--accent) 0%, rgba(0, 172, 236, .74) 46%, rgba(0, 172, 236, 0) 82%);
}

/* светлая карточка */
.promo-card--light { background-color: var(--bg-tint); color: var(--text); border-color: var(--border); }
.promo-card--light::before {
  background: linear-gradient(90deg, var(--bg-tint) 0%, rgba(242, 246, 250, .72) 46%, rgba(242, 246, 250, 0) 82%);
}
.promo-card--light .promo-card__tag { background: rgba(13, 27, 42, .08); color: var(--text); }
.promo-card--light p { color: var(--text-soft); }
.promo-card--light .promo-card__link { color: var(--accent); }

@media (max-width: 1080px) {
  .promos-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .promos-showcase { grid-template-columns: 1fr; }
  .promo-card { min-height: 260px; }
  .promo-card__body { width: 82%; padding: 26px; }
  .promo-card h3 { font-size: 21px; }
}

/* ═══════════ TEAM ═══════════ */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__photo { aspect-ratio: 4 / 5; background: var(--bg-tint); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.team-card__body h3 { font-size: 18px; }
.team-card__role { font-size: 14px; font-weight: 700; color: var(--accent); }
.team-card__exp { font-size: 13px; color: var(--text-soft); }

/* ═══════════ ABOUT ═══════════ */
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.about__badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.about__badge strong { font-size: 22px; font-weight: 800; color: var(--accent); }
.about__badge span { font-size: 13px; color: var(--text-soft); }
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--text-soft); margin-bottom: 16px; }
.about__sign {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about__sign strong { font-size: 17px; }
.about__sign span { font-size: 14px; color: var(--text-soft); }

/* ═══════════ REVIEWS ═══════════ */
.review {
  width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.review--video {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  min-height: 320px;
  justify-content: flex-end;
}
.review--video > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.review--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0) 40%, rgba(13, 27, 42, .78) 100%);
}
.review--video footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 22px;
  color: #fff;
}
.review--video footer span { color: rgba(255, 255, 255, .75); }
.review__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  z-index: 1;
  transition: transform .2s ease, background .2s ease;
}
.review__play::after {
  content: '';
  position: absolute;
  top: 50%; left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.review--video:hover .review__play { transform: translate(-50%, -60%) scale(1.08); background: var(--accent-hover); }
.review p { font-size: 16px; flex: 1; }
.review footer { display: flex; flex-direction: column; }
.review footer strong { font-size: 15px; }
.review footer span { font-size: 13px; color: var(--text-soft); }
.reviews__sub-star { color: #ffb020; margin-right: 8px; font-size: 1.35em; line-height: 1; vertical-align: -0.12em; }

/* ═══════════ FAQ ═══════════ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 26px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  font-size: 16px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 22px; color: var(--text-soft); }

/* ═══════════ CTA ═══════════ */
.cta {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.cta__text p { margin-top: 16px; color: var(--text-inverse-soft); font-size: 18px; max-width: 480px; }
.cta__contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.cta__phone { font-size: 26px; font-weight: 800; }
.cta__contacts span { color: var(--text-inverse-soft); font-size: 15px; }
.cta__form {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta__form input,
.cta__form textarea {
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.cta__form textarea { resize: vertical; min-height: 96px; font-weight: 500; }
.cta__form input:focus,
.cta__form textarea:focus { border-color: var(--accent); }
.cta__note { font-size: 13px; color: var(--text-soft); }
.cta__note a { text-decoration: underline; }

/* Обязательное согласие на обработку ПД (contact + quiz) */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-consent a { color: inherit; text-decoration: underline; }
.form-consent a:hover { color: var(--accent); }
.quiz__consent { margin-top: 12px; }

/* ═══════════ CALLBACK (обратный звонок с менеджером) ═══════════ */
.callback {
  position: relative;
  min-height: 430px;
  margin-top: 56px;
  padding: 44px 400px 40px 44px;
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--text-inverse);
  box-shadow: var(--shadow);
}
.callback__body { position: relative; z-index: 2; }
.callback h2 { max-width: 640px; font-size: clamp(26px, 3vw, 38px); }
.callback__body > p { max-width: 620px; margin-top: 14px; color: var(--text-inverse-soft); font-size: 17px; }
.callback__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.callback__form > label:not(.form-consent) { display: grid; gap: 7px; align-content: start; }
.callback__form > label > span { color: var(--text-inverse-soft); font-size: 13px; font-weight: 700; }
.callback__form input[type="text"],
.callback__form input[type="tel"],
.callback__form select {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.callback__form input:focus,
.callback__form select:focus { border-color: var(--accent); }
.callback__form select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 24px) 24px, calc(100% - 18px) 24px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  cursor: pointer;
}
.callback__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  color: var(--text-inverse-soft);
  font-size: 15px;
}
.callback__actions a { font-weight: 800; color: var(--text-inverse); }
.callback__form .form-consent { grid-column: 1 / -1; }
.form-consent--inverse { color: var(--text-inverse-soft); }
.form-consent--inverse a { color: var(--text-inverse); }
.callback__person {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 0;
  width: 380px;
  height: calc(100% + 56px);
  pointer-events: none;
}
.callback__person img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .38));
}
@media (max-width: 1100px) {
  .callback { padding-right: 320px; }
  .callback__person { width: 310px; }
  .callback__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callback__form > label:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .callback { margin-top: 0; padding: 30px 24px 0; overflow: hidden; }
  .callback__form { grid-template-columns: 1fr; }
  .callback__form > label:nth-child(3) { grid-column: auto; }
  .callback__person {
    position: relative;
    right: auto;
    width: min(100%, 340px);
    height: 340px;
    margin: 20px auto 0;
  }
  .callback__person img { right: 50%; transform: translateX(50%); }
  .callback__actions .btn { width: 100%; }
}

/* ═══════════ COMPARISON (мы / другие / частники) ═══════════ */
.compare__scroll { overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}
.compare th,
.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 15px;
}
.compare thead th {
  font-size: 14px;
  font-weight: 800;
}
.compare thead th:not(:first-child) { text-align: center; }
.compare thead th.is-us { color: var(--accent); }
.compare tbody th { width: 30%; font-weight: 600; }
.compare tbody td { text-align: center; color: var(--text-soft); }
.compare tbody td.is-us { color: var(--text); font-weight: 600; }
/* Наш столбец подсвечен сверху донизу и скруглён по краям */
.compare .is-us { background: var(--accent-soft); }
.compare thead .is-us {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}
.compare tbody tr:last-child .is-us {
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }
.compare__mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}
.compare__mark--yes { background: var(--accent); color: #fff; }
.compare__mark--no { background: var(--bg-tint); color: var(--text-soft); }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--bg-dark); color: var(--text-inverse-soft); padding: 64px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.logo--footer { color: var(--text-inverse); margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col h4 { color: var(--text-inverse); font-size: 16px; margin-bottom: 6px; }
.footer__col a:hover { color: var(--text-inverse); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 14px;
}
.footer__bottom a { text-decoration: underline; }

/* ═══════════ ПРЕИМУЩЕСТВА — сетка с hover-подсветкой ═══════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feat-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  background: var(--bg);
}
.feat-cell > * { position: relative; z-index: 1; }
.feat-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .25s ease;
  background: linear-gradient(to top, var(--accent-soft), transparent 72%);
}
.feat-cell:nth-child(n+4)::before {
  background: linear-gradient(to bottom, var(--accent-soft), transparent 72%);
}
.feat-cell:hover::before { opacity: 1; }
.feat-cell__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  color: var(--text-soft);
  transition: color .25s ease;
}
.feat-cell:hover .feat-cell__icon { color: var(--accent); }
.feat-cell__icon svg { width: 100%; height: 100%; }
.feat-cell__title {
  position: relative;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feat-cell__title::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  width: 4px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--border);
  transform: translateY(-50%);
  transition: height .25s ease, background .25s ease;
}
.feat-cell:hover .feat-cell__title::before {
  height: 30px;
  background: var(--accent);
}
.feat-cell__title span {
  display: inline-block;
  transition: transform .25s ease;
}
.feat-cell:hover .feat-cell__title span { transform: translateX(8px); }
.feat-cell__desc {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 32ch;
}

/* ═══════════ РАБОТЫ — вариант «бенто-галерея» ═══════════ */
.works-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 205px;
  gap: 14px;
}
.works-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: #fff;
  isolation: isolate;
}
.works-tile--feature { grid-column: span 2; grid-row: span 2; }
.works-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.works-tile:hover .works-tile__img { transform: scale(1.06); }
.works-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(9, 19, 32, .88) 0%, rgba(9, 19, 32, .2) 52%, rgba(9, 19, 32, 0) 100%);
}
.works-tile__index {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}
.works-tile__body {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 15px;
}
.works-tile__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: 9px;
}
.works-tile--feature .works-tile__name { font-size: clamp(22px, 2.4vw, 30px); }
.works-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
  font-variant-numeric: tabular-nums;
}
.works-tile--feature .works-tile__meta { font-size: 14px; }
.works-tile__price {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.works-tile--feature .works-tile__price { font-size: clamp(20px, 2vw, 26px); }
.works-tile__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .28s ease, transform .28s ease;
}
.works-tile:hover .works-tile__go { opacity: 1; transform: none; }

/* ═══════════ РАБОТЫ — вариант «ведомость» ═══════════ */
.works-ledger { border-top: 1px solid var(--border); }
.works-ledger__head {
  display: grid;
  grid-template-columns: 46px 92px 1fr auto;
  gap: 26px;
  padding: 14px 14px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.works-ledger__head span:last-child { justify-self: end; }
.works-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px 92px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.works-row:hover { background: var(--bg-tint); }
.works-row__index {
  font-size: 18px;
  font-weight: 800;
  color: var(--border);
  font-variant-numeric: tabular-nums;
  transition: color .2s ease;
}
.works-row:hover .works-row__index { color: var(--accent); }
.works-row__thumb {
  width: 92px;
  height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.works-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.works-row:hover .works-row__thumb img { transform: scale(1.09); }
.works-row__main { min-width: 0; }
.works-row__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.works-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.works-row__tags span {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 3px 11px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-variant-numeric: tabular-nums;
}
.works-row__price {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.works-row__price b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.works-row__arrow {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.works-row:hover .works-row__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1080px) {
  .navbar { display: none; }
  .header__hours { display: none; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .works-bento { grid-template-columns: repeat(2, 1fr); }
  .works-tile--feature { grid-column: span 2; grid-row: span 1; }
  .header__phone { white-space: nowrap; font-size: 16px; }
  .topbar__right { gap: 14px; }
  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .burger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: all .25s; }
  .burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .navbar.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 69px);
    overflow-y: auto;
  }
  .menu { flex-direction: column; align-items: stretch; padding: 12px 0 20px; }
  .menu__link, .menu__toggle { height: auto; padding: 13px 24px; width: 100%; justify-content: space-between; }
  .menu > .menu__link:first-child { padding-left: 24px; }
  /* в мобильном меню пункты — списком во всю ширину, полоска читалась бы как
     разделитель, поэтому текущий пункт отмечаем только цветом */
  .menu__link.is-current::after,
  .menu__link.is-current-parent::after,
  .menu__toggle.is-current-parent::after { display: none; }
  .menu__item { flex-direction: column; }
  .dd, .fly {
    position: static;
    display: none;
    min-width: 0;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    margin: 0 24px 8px;
    padding: 4px 0 4px 10px;
    max-height: none;
    overflow: visible;
  }
  .menu__item.is-open > .dd { display: block; }
  .dd .has-fly.is-open > .fly { display: block; }
  .dd a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: normal;
  }
  .fly a { font-weight: 500; padding: 9px 10px 9px 14px; }
  .fly .fly__label { padding: 10px 14px 2px; }
  .caret--right { transform: rotate(45deg); margin-left: auto; margin-right: 4px; }
  .has-fly.is-open > a > .caret--right { transform: rotate(225deg); }
  .menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-soft);
  }
  .menu__contacts a, .menu__contacts span {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .menu__contacts a { color: var(--text); font-weight: 600; }
  .menu__contacts svg {
    width: 20px; height: 20px;
    flex: none;
    color: var(--accent);
  }
  .services, .offers, .videos { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quiz, .cta { grid-template-columns: 1fr; gap: 44px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 520px; aspect-ratio: 4 / 3.4; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item:nth-child(odd) { border-left: none; }
  .trustbar__item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .topbar__cta { display: none; }
  .topbar__msgrs { display: none; }
  .header__hours { display: none; }
  .topbar__rating { display: none; }
  .logo__text { font-size: 16px; }
  .logo__text small { display: none; }
  .logo__mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 17px; }
  .header__phone { font-size: 15px; white-space: nowrap; }
  .topbar__inner { gap: 16px; }
  .topbar__right { gap: 14px; }
  .hero { padding: 64px 0 56px; }
  .hero__actions .btn { width: 100%; }
  .services, .offers, .usp-grid, .steps, .videos { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-cell { padding: 26px 24px; }
  .feat-cell__title::before { left: -24px; }
  .works-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .works-tile--feature { grid-column: span 2; grid-row: span 1; }
  .works-ledger__head { display: none; }
  .works-row {
    grid-template-columns: 40px 1fr;
    grid-template-areas: "i m" ". p";
    align-items: start;
    gap: 6px 14px;
    padding: 18px 8px;
  }
  .works-row__index { grid-area: i; }
  .works-row__thumb { display: none; }
  .works-row__main { grid-area: m; }
  .works-row__price { grid-area: p; justify-self: start; margin-top: 12px; }
  .team {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 24px;
    margin: 0 -24px;
    padding: 4px 24px 12px;
    scrollbar-width: none;
  }
  .team::-webkit-scrollbar { display: none; }
  .team-card { flex: 0 0 74vw; scroll-snap-align: start; }
  .team-card__photo { aspect-ratio: 4 / 4.4; }
  .team-card__photo { aspect-ratio: 4 / 4; }
  .trustbar { grid-template-columns: 1fr 1fr; }
  .trustbar__item { padding: 20px; }
  .trustbar__item strong { font-size: 24px; }
  .quiz__box { padding: 24px; }
  .quiz__options { grid-template-columns: 1fr; }
  /* Калькулятор: на узком экране «1 / 2 / 3 и больше» остаются в строку — это
     короткие подписи, вертикальный список тут только растянул бы шаг. */
  .rc__step[data-key="baths"] .quiz__options { grid-template-columns: repeat(3, 1fr); }
  .rc__area-input { width: 120px; font-size: 34px; }
  .rc__grade-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rc__bar-head { font-size: 13px; }
  .rc__nav .btn { flex: 1; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .project { width: 82vw; }
  .review { width: 74vw; }
  .slider { margin: 0 -24px; }
  .ba-grid { grid-template-columns: 1fr; }
  .price-table td { padding: 14px 16px; font-size: 15px; }
  .timing-scroll { overflow-x: auto; }
  .timing-table { min-width: 720px; }
  .timing-table th, .timing-table td { padding: 13px 16px; font-size: 15px; }
  .prices__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .cta__form { padding: 26px 20px; }
  .cta__phone { font-size: 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════ SEO TEXT ═══════════ */
.seo__lead {
  max-width: 860px;
  font-size: 17px;
  margin-bottom: 28px;
}
.seo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.seo-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.seo-card__icon svg { width: 24px; height: 24px; }
.seo-card h3 { font-size: 19px; margin-bottom: 10px; }
.seo-card p { color: var(--text-soft); font-size: 15px; }
.seo-card a { color: var(--accent); font-weight: 600; text-decoration: none; }
.seo-card a:hover { text-decoration: underline; }
@media (max-width: 1080px) {
  .seo__grid { grid-template-columns: 1fr; }
  .seo-card { padding: 24px 20px; }
}

/* ═══════════ ЮР. СТРАНИЦЫ (pdpolicy / agreement / cookiepolicy) ═══════════ */
.legal { padding-top: 40px; }
.legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.legal__crumbs a { color: var(--text-soft); text-decoration: none; }
.legal__crumbs a:hover { color: var(--accent); }
.legal__title { font-size: 30px; line-height: 1.25; margin-bottom: 24px; }
.legal__body { color: var(--text); font-size: 16px; line-height: 1.7; }
.legal__body h2,
.legal__body h3,
.legal__body h4 { margin: 28px 0 12px; line-height: 1.3; }
.legal__body h2 { font-size: 22px; }
.legal__body h3 { font-size: 19px; }
.legal__body h4 { font-size: 17px; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul,
.legal__body ol { margin: 0 0 16px 22px; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--accent); text-decoration: underline; word-break: break-word; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.legal__body th,
.legal__body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal__empty { color: var(--text-soft); font-size: 16px; }

/* Реквизиты владельца/арендатора под соглашением (/agreement/) */
.legal-info-section { padding-top: 8px; }
.legal-info__title { font-size: 22px; margin-bottom: 20px; }
.legal-reqs {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.legal-reqs__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 13px 18px;
  font-size: 15px;
  line-height: 1.5;
}
.legal-reqs__item:nth-child(even) { background: var(--bg-tint); }
.legal-reqs__label { flex: 0 0 220px; color: var(--text-soft); }
.legal-reqs__value { flex: 1 1 260px; min-width: 0; word-break: break-word; }
@media (max-width: 640px) {
  .legal-reqs__label { flex-basis: 100%; }
}

/* Страница «О компании» (/o_kompanii/) */
.about-lead { max-width: 860px; }
.about-lead p { color: var(--text-soft); font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.about-lead p:last-child { margin-bottom: 0; }

/* Страница «Оплата и рассрочка» (/rassrochka/) */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pay-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pay-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.pay-card__icon svg { width: 24px; height: 24px; }
.pay-card h3 { margin-bottom: 8px; }
.pay-card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.pay-card--accent { background: var(--accent); border-color: var(--accent); }
.pay-card--accent .pay-card__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.pay-card--accent h3 { color: #fff; }
.pay-card--accent p { color: rgba(255, 255, 255, .85); }

.pay-installment { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.pay-installment__col h2 { font-size: 26px; margin-bottom: 20px; }
.pay-terms {
  display: grid;
  margin-bottom: 26px;
  border-top: 1px solid var(--border);
}
.pay-terms li {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.pay-terms__num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  white-space: nowrap;
}
.pay-terms li > span:last-child { color: var(--text-soft); font-size: 15px; }
.pay-list { display: flex; flex-direction: column; gap: 12px; }
.pay-list li { position: relative; padding-left: 30px; color: var(--text-soft); }
.pay-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pay-stage { display: flex; gap: 22px; align-items: flex-start; }
.pay-stage__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pay-stage__icon svg { width: 28px; height: 28px; }
.pay-stage h2 { font-size: 24px; margin-bottom: 12px; }
.pay-stage p { color: var(--text-soft); line-height: 1.7; }
@media (max-width: 860px) {
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .pay-installment { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-stage { flex-direction: column; }
}
/* Модалка с формой заявки (кнопка «Рассчитать платёж») */
.lgl-modal__dialog--form { max-width: 460px; }
.modal-form__lead { color: var(--text-soft); font-size: 15px; line-height: 1.55; margin-bottom: 20px; padding-right: 40px; }
.lgl-modal__dialog--form .cta__form { background: none; padding: 0; border-radius: 0; }

/* Страница «Цены» — аккордеон прайс-листа (/ceny/) */
.price-acc { display: flex; flex-direction: column; gap: 14px; }
.price-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.price-cat__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.price-cat__summary::-webkit-details-marker { display: none; }
.price-cat__summary:hover { color: var(--accent); }
.price-cat__chevron {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.price-cat[open] > .price-cat__summary .price-cat__chevron { transform: rotate(-135deg); }
.price-cat[open] > .price-cat__summary { border-bottom: 1px solid var(--border); }
.price-cat .timing-scroll { margin: 0; }
.price-cat .price-table { margin: 0; }
.price-cat__more { padding: 14px 22px 18px; }
.price-cat__more a { color: var(--accent); font-weight: 600; }
.price-cat__more a:hover { text-decoration: underline; }

/* Страница «Спецпредложения» (/akcii_skidki/) */
.offers-empty {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 640px;
}

/* Страница «Контакты» (/kontakty/) */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
.contacts-list { display: grid; gap: 16px; align-content: start; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-card__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__body { min-width: 0; }
.contact-card__label { font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }
.contact-card__value { font-size: 18px; font-weight: 700; color: var(--text); word-break: break-word; }
.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--accent); }
.contact-card__note { font-size: 14px; color: var(--text-soft); margin-top: 3px; }
.contacts-map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.contacts-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map { min-height: 320px; }
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ═══════════ МОДАЛКА СОГЛАСИЯ (approval) ═══════════ */
.lgl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lgl-modal[hidden] { display: none; }
.lgl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, .55);
  backdrop-filter: blur(2px);
}
.lgl-modal__dialog {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 34px;
  animation: lgl-modal-in .2s ease;
}
@keyframes lgl-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.lgl-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -8px -8px 0 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.lgl-modal__close:hover { background: var(--border); }
.lgl-modal__title { font-size: 20px; line-height: 1.3; margin-bottom: 18px; padding-right: 40px; }
.lgl-modal__body { color: var(--text); font-size: 15px; line-height: 1.65; }
.lgl-modal__body h2,
.lgl-modal__body h3 { margin: 20px 0 10px; font-size: 17px; }
.lgl-modal__body p { margin-bottom: 12px; }
.lgl-modal__body ul,
.lgl-modal__body ol { margin: 0 0 14px 20px; }
.lgl-modal__body li { margin-bottom: 6px; }
.lgl-modal__body a { color: var(--accent); text-decoration: underline; word-break: break-word; }

@media (max-width: 640px) {
  .legal__title { font-size: 24px; }
  .lgl-modal__dialog { padding: 24px 20px; max-height: 90vh; }
}

/* ═══════════ BREADCRUMBS (service page) ═══════════ */
/* z-index поднимает крошки над hero__background: фон позиционирован абсолютно и иначе
   перекрывает статичный контейнер крошек (hero__inner поднят так же, строкой z-index:1).
   Раньше крошки держались на поверхности только из-за backdrop-filter пилюли. */
.crumbs { position: relative; z-index: 1; padding: 0 0 4px; }
.crumbs ol {
  list-style: none; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(4px);
}
.crumbs li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }
.crumbs li[aria-current] { color: #fff; font-weight: 600; }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .5); }

/* На светлом hero крошки читаются тёмным текстом по еле заметной подложке (как
   .hero__badge). Белый текст на тёмной пилюле унаследован от тёмного hero и на
   светлом фоне сливался. */
.hero--light .crumbs ol { background: rgba(13, 27, 42, .06); backdrop-filter: none; }
.hero--light .crumbs li,
.hero--light .crumbs a { color: var(--text-soft); }
.hero--light .crumbs a:hover { color: var(--accent); }
.hero--light .crumbs li[aria-current] { color: var(--text); }
.hero--light .crumbs li + li::before { color: rgba(13, 27, 42, .35); }

/* Мобилка: пилюля со stadium-радиусом на переносе в 2 строки превращалась в серый
   блоб с кривыми углами. Убираем подложку — крошки идут простым текстом, как принято
   на мобильных листингах. */
@media (max-width: 640px) {
  .crumbs { padding: 0; }
  .crumbs ol,
  .hero--light .crumbs ol {
    padding: 0; background: none; backdrop-filter: none; border-radius: 0;
    column-gap: 8px; row-gap: 2px; font-size: 12px;
  }
}

/* ═══════════ INCLUDES ("Что входит") ═══════════ */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.inc-card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.inc-card__icon svg { width: 24px; height: 24px; }
.inc-card h3 { font-size: 19px; margin-bottom: 14px; }
.inc-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.inc-card li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: 15px; line-height: 1.45; }
.inc-card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.includes__note {
  margin-top: 22px; padding: 18px 22px; background: var(--accent-soft); border-radius: var(--radius-sm);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
}
.includes__note p { color: var(--text); font-size: 15px; margin: 0; }
.includes__note strong { color: var(--accent); }
@media (max-width: 900px) { .includes { grid-template-columns: 1fr; } }
/* Ровно 4 карточки (страницы «Других услуг»): в сетке из 3 колонок четвёртая
   осиротела бы на второй строке — кладём 4 в ряд, на планшете 2×2. Карточки
   уже, поэтому чуть плотнее паддинг. Правила после мобильного отката выше:
   в полосе 640–900px они перебивают его до 2 колонок — это ок, карточкам
   хватает ширины (как у тарифной сетки .services--tariff). */
.includes--four { grid-template-columns: repeat(4, 1fr); }
.includes--four .inc-card { padding: 24px 20px; }
.includes--four .inc-card h3 { font-size: 18px; }
@media (max-width: 1200px) { .includes--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .includes--four { grid-template-columns: 1fr; } }

/* ═══════════ SERVICE CARD — вариант без фото (страницы услуг) ═══════════ */
.service-card--noimg { position: relative; }
.service-card--noimg::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent); border-radius: var(--radius) var(--radius) 0 0;
}
.service-card--noimg .service-card__body { padding-top: 28px; }
.service-card__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 6px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.service-card__icon svg { width: 26px; height: 26px; }
/* Номер уровня в тарифной карточке пакета (вместо фото) */
.service-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 20px; line-height: 1;
}

/* Пакеты — вертикальный нумерованный список (mode='list') на тёмной секции.
   Строка: номер · название · описание · цена/срок · стрелка; ховер — акцент на всю строку. */
.pkg-list { border-top: 1px solid rgba(255, 255, 255, .14); }
.pkg-row {
  display: grid;
  grid-template-columns: 54px minmax(180px, 1.1fr) minmax(220px, 1.5fr) 150px 46px;
  gap: 24px;
  align-items: center;
  min-height: 104px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none;
  color: var(--text-inverse);
  transition: background .18s ease, color .18s ease, padding .18s ease;
}
.pkg-row__num { font-size: 14px; font-weight: 800; color: #4cc6f5; font-variant-numeric: tabular-nums; }
.pkg-row__title { font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -0.01em; }
.pkg-row__desc { font-size: 14.5px; line-height: 1.5; color: var(--text-inverse-soft); }
.pkg-row__meta { justify-self: end; text-align: right; }
.pkg-row__price { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg-row__time { font-size: 13px; color: var(--text-inverse-soft); margin-top: 3px; white-space: nowrap; }
.pkg-row__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); color: var(--text-inverse); font-size: 18px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.pkg-row:hover { background: var(--accent); color: #fff; padding-inline: 26px; }
.pkg-row:hover .pkg-row__num,
.pkg-row:hover .pkg-row__desc,
.pkg-row:hover .pkg-row__time { color: #fff; }
.pkg-row:hover .pkg-row__arrow { background: rgba(255, 255, 255, .16); border-color: transparent; transform: rotate(45deg); }
@media (max-width: 860px) {
  .pkg-row { grid-template-columns: 40px 1fr 120px 40px; gap: 16px; }
  .pkg-row__desc { grid-column: 2 / 4; grid-row: 2; }
}
@media (max-width: 540px) {
  .pkg-row { grid-template-columns: 32px 1fr 40px; gap: 12px; padding-inline: 6px; }
  .pkg-row__desc { grid-column: 2 / 4; }
  .pkg-row__meta { grid-column: 2; grid-row: 3; justify-self: start; text-align: left; }
  .pkg-row__arrow { grid-column: 3; grid-row: 1; }
  .pkg-row:hover { padding-inline: 12px; }
}

/* ═══════════ SEO-блок: развёрнутые тексты под карточками ═══════════ */
.seo__extra { margin-top: 32px; max-width: 900px; }
.seo__extra h3 { font-size: 21px; margin-bottom: 12px; }
.seo__extra p { color: var(--text-soft); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.seo__extra ul {
  list-style: none; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px;
}
.seo__extra li {
  position: relative; padding-left: 24px; color: var(--text-soft); font-size: 15px; line-height: 1.5;
}
.seo__extra li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
/* SEO-текст в две колонки: заголовок слева (липкий при прокрутке), текст справа.
   Приём с okna: пока проходит текст правой колонки, заголовок держится под шапкой
   (высота шапки ≈ topbar 68 + navbar 52). Без заголовка блок не переводим в split. */
.seo__extra--split {
  max-width: none;
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 48px;
  align-items: start;
}
.seo__extra--split .seo__extra-head h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.seo__extra--split .seo__extra-body > :last-child { margin-bottom: 0; }
@media (min-width: 901px) {
  .seo__extra--split .seo__extra-head { position: sticky; top: 132px; align-self: start; }
}
@media (max-width: 900px) {
  .seo__extra--split { grid-template-columns: 1fr; gap: 16px; }
}

/* Завершающий блок нижнего SEO: лид слева, CTA-карточка «Как заказать» справа */
.seo__closing {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.seo__closing-main { display: flex; flex-direction: column; gap: 16px; }
.seo__closing-main h2 { margin: 0; }
.seo__closing .seo__lead { margin-bottom: 0; }
.seo-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.seo-cta h3 { font-size: 20px; }
.seo-cta p { color: var(--text-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.seo-cta__btn { align-self: stretch; text-align: center; margin-top: 4px; }
@media (max-width: 860px) {
  .seo__closing { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════ FAQ в две колонки ═══════════ */
.faq--cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: start;
}
@media (max-width: 900px) { .faq--cols { grid-template-columns: 1fr; } }

/* ═══════════ РАБОТЫ: листинг + детальная ═══════════ */
.hero--compact { padding: 40px 0 34px; }
.hero--compact .hero__sub { color: rgba(255, 255, 255, .78); margin-top: 14px; }

/* Листинг: сетка карточек .project (структура из blocks/portfolio) на тёмной секции.
   Снимаем фикс-ширину слайдера — в гриде ячейка тянется сама. */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.works-grid .project { width: auto; }
.works-card__cover { display: block; width: 100%; height: 100%; }
.works-more { margin-top: 36px; text-align: center; }
.works-more--split { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Бейдж-счётчик «N работ в портфолио». Не пилюля-кнопка (иначе сливается с CTA),
   а стеклянный стат-чип: полупрозрачная акцентная подложка, крупное число цветом
   акцента и иконка галереи. Так рядом с синей кнопкой читается как показатель, а не
   второй CTA. Цвета через currentColor/rgba — работает и на тёмной секции, и на светлом. */
.works-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  background: rgba(0, 172, 236, .12);
  box-shadow: inset 0 0 0 1.5px rgba(0, 172, 236, .38);
  line-height: 1;
  white-space: nowrap;
}
.works-badge__icon { flex: none; width: 20px; height: 20px; color: var(--accent); }
.works-badge__num { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.works-badge__label { font-size: 15px; font-weight: 600; opacity: .85; }
.works-badge--hero { margin-top: 20px; }
@media (max-width: 1080px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .works-grid { grid-template-columns: 1fr; } }

/* Детальная: галерея + характеристики в две колонки. */
.work__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work__chip {
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(4px);
}
.work__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.work__main { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); }
.work__main img { width: 100%; height: 100%; object-fit: cover; }
.work__thumbs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
  grid-template-columns: none;
}
.work__thumbs button {
  width: 92px; aspect-ratio: 4 / 3;
  padding: 0; border: none; border-radius: 10px; overflow: hidden; cursor: pointer;
  opacity: .55; outline: 2px solid transparent; outline-offset: -2px;
  transition: opacity .2s, outline-color .2s; background: none;
}
.work__thumbs button:hover { opacity: .85; }
.work__thumbs button.is-active { opacity: 1; outline-color: var(--accent); }
.work__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__specs {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.work__specs-title { font-size: 20px; margin-bottom: 16px; }
.work__specs-list { display: flex; flex-direction: column; gap: 2px; }
.work__specs-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.work__specs-list > div:last-child { border-bottom: none; }
.work__specs-list dt { color: var(--text-soft); font-size: 15px; }
.work__specs-list dd { font-weight: 700; text-align: right; }
.work__cta { width: 100%; margin-top: 22px; }
.work__text { margin-top: 48px; max-width: 820px; }
.work__text h2 { margin-bottom: 16px; }
.work__text .rich { color: var(--text-soft); line-height: 1.7; }
.work__text .rich p { margin-bottom: 14px; }
.work__text .rich ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.work__review { margin-top: 40px; max-width: 820px; }
.work__review h2 { margin-bottom: 16px; }
.work__review-text {
  position: relative; margin: 0 0 12px; padding: 20px 24px;
  background: var(--bg-tint); border-left: 3px solid var(--accent); border-radius: 12px;
  color: var(--text); line-height: 1.7; font-size: 16px;
}
.work__review-author { color: var(--text-soft); font-weight: 600; }
@media (max-width: 900px) {
  .work__layout { grid-template-columns: 1fr; gap: 24px; }
}

/* Главное фото — кликабельно, открывает лайтбокс. */
.work__main { position: relative; }
.work__main--zoomable { cursor: zoom-in; }
.work__main-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(13, 27, 42, .62); color: #fff; font-size: 20px;
  pointer-events: none; backdrop-filter: blur(4px);
}

/* Лайтбокс галереи работы. */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column;
  background: rgba(7, 14, 24, .94);
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 56px 72px 12px;
}
.lightbox__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  width: 44px; height: 44px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%;
  font-size: 26px; line-height: 1; transition: background .2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%;
  font-size: 32px; line-height: 1; transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 16px;
  justify-content: center; scrollbar-width: thin;
}
.lightbox__strip button {
  flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: none; cursor: pointer;
  border-radius: 8px; overflow: hidden; background: none;
  opacity: .5; outline: 2px solid transparent; outline-offset: -2px;
  transition: opacity .2s, outline-color .2s;
}
.lightbox__strip button:hover { opacity: .8; }
.lightbox__strip button.is-active { opacity: 1; outline-color: var(--accent); }
.lightbox__strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox--single .lightbox__nav,
.lightbox--single .lightbox__strip { display: none; }

/* Модальный плеер видео работ. */
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 40px; background: rgba(7, 14, 24, .94);
}
.video-modal.is-open { display: flex; }
.video-modal__video {
  max-width: 100%; max-height: 100%; width: auto;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #000;
}
.video-modal__close {
  position: absolute; top: 14px; right: 18px;
  width: 44px; height: 44px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%;
  font-size: 26px; line-height: 1; transition: background .2s;
}
.video-modal__close:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) { .video-modal { padding: 16px; } }

/* Скриншоты отзывов — одна линия со стрелками (слайдер). */
.reviews-shots__block { margin-top: 48px; }
.reviews-shots__sub { color: var(--text-inverse-soft); margin-top: 6px; }
.reviews-shots__item {
  flex: 0 0 260px; height: 380px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden;
  background: #fff; scroll-snap-align: start;
  transition: border-color .2s, transform .2s;
}
.reviews-shots__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.reviews-shots__item img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
@media (max-width: 640px) {
  .reviews-shots__item { flex-basis: 210px; height: 320px; }
}
@media (max-width: 640px) {
  .lightbox__stage { padding: 52px 12px 8px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
}

/* ═══════════ АНКЕТА ПОСТАВЩИКА (/postav/) ═══════════ */
.hidden { display: none !important; }

.supplier-form { display: flex; flex-direction: column; gap: 22px; }
.supplier-field { display: flex; flex-direction: column; gap: 8px; }
.supplier-label { font-weight: 700; font-size: 17px; }
.supplier-input {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
select.supplier-input { cursor: pointer; }
textarea.supplier-input { resize: vertical; min-height: 110px; }
.supplier-input:focus { border-color: var(--accent); }

/* Дерево «География присутствия» */
.geo-tree {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-height: 360px;
  overflow-y: auto;
}
.geo-node {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}
.geo-node input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.geo-node--l0 { font-weight: 700; }
.geo-node--l1 { font-weight: 600; }
.geo-children { margin-left: 26px; border-left: 1px solid var(--border); padding-left: 12px; }

.supplier-success { background: var(--accent-soft); border-radius: var(--radius); padding: 28px; text-align: center; }
.supplier-success h3 { margin-bottom: 8px; }

/* ═══════════ ПЛАВАЮЩИЙ ВИДЖЕТ МЕССЕНДЖЕРОВ (partials/site/chat-widget) ═══════════ */
.cw {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.cw[hidden] { display: none; }

.cw__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 32, 54, .25);
  transition: transform .2s, background .2s;
}
.cw__fab:hover { transform: translateY(-2px); background: var(--accent-hover); }
.cw__fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.cw__label { white-space: nowrap; }

/* Пульс привлекает внимание к кнопке. Псевдоэлемент под кнопкой, чтобы
   тень расходилась, не задевая раскладку. */
.cw__fab::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  animation: cw-pulse 2.6s ease-out infinite;
}
@keyframes cw-pulse {
  0%        { box-shadow: 0 0 0 0 rgba(0, 172, 236, .5); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(0, 172, 236, 0); }
}

.cw__card {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 12px;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 32, 54, .22);
  transform-origin: bottom right;
  animation: cw-in .2s ease;
}
.cw__card[hidden] { display: none; }
@keyframes cw-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.cw__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #9aa7b4;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.cw__close:hover { background: var(--accent); }

.cw__title {
  margin: 0 36px 6px 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cw__sub {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-soft);
}
.cw__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .2s, transform .15s;
}
.cw__cta:hover { transform: translateY(-1px); }
.cw__cta--tg  { background: #29a9eb; }
.cw__cta--tg:hover  { background: #1f97d6; }
.cw__cta--max { background: #6b3df0; }
.cw__cta--max:hover { background: #5a2fd8; }
.cw__cta + .cw__cta { margin-top: 10px; }
.cw__ico { width: 24px; height: 24px; flex-shrink: 0; }
.cw__cta--tg .cw__ico { color: #fff; }

/* На телефоне кнопка сжимается в кружок: подпись съедала бы полэкрана */
@media (max-width: 1023px) {
  .cw { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .cw__fab { padding: 0; width: 58px; height: 58px; justify-content: center; }
  .cw__label { display: none; }
  .cw__fab svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw__fab::before { animation: none; }
  .cw__card { animation: none; }
}

/* ═══════════ COOKIE BAR (авто-скрытие с полосой обратного отсчёта) ═══════════ */
.cookie-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: var(--bg-dark); color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { margin: 0; color: var(--text-inverse-soft); }
.cookie-bar__text a { color: var(--accent); text-decoration: underline; }
.cookie-bar__close {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0;
  background: transparent; color: var(--text-inverse-soft);
  border: 0; border-radius: 999px; font-size: 14px; line-height: 1;
  cursor: pointer; transition: color .15s, background .15s;
}
.cookie-bar__close:hover { color: var(--text-inverse); background: rgba(255, 255, 255, .1); }
.cookie-bar__progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--accent); transform-origin: left center;
  animation: cookieBarCountdown 10s linear forwards;
}
@keyframes cookieBarCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-bar__progress { animation: none; } }
@media (max-width: 640px) {
  .cookie-bar {
    left: 8px; right: 8px; bottom: 8px;
    justify-content: space-between; gap: 8px; padding: 8px 12px;
    font-size: 11px; white-space: normal;
  }
  .cookie-bar__close { width: 20px; height: 20px; }
}

/* ═══════════ PERSONAL GUARANTEES ═══════════ */
.founder-guarantees__card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 30px;
  background: #111820;
  color: #fff;
  isolation: isolate;
}
.founder-guarantees__visual,
.founder-guarantees__visual::after,
.founder-guarantees__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.founder-guarantees__background {
  object-fit: cover;
  object-position: center;
}
.founder-guarantees__portrait {
  position: absolute;
  z-index: 1;
  right: -1%;
  bottom: 0;
  width: 61%;
  height: 96%;
  object-fit: contain;
  object-position: right bottom;
}
.founder-guarantees__visual::after {
  z-index: 2;
  content: '';
  background:
    linear-gradient(90deg, rgba(4, 10, 16, .08) 0%, rgba(4, 10, 16, .12) 54%, rgba(4, 10, 16, .18) 100%),
    linear-gradient(0deg, rgba(4, 10, 16, .34) 0%, transparent 45%);
  pointer-events: none;
}
.founder-guarantees__shirt-logo-mask {
  position: absolute;
  z-index: 3;
  top: 77%;
  left: 61.5%;
  width: 190px;
  height: 68px;
  border-radius: 50%;
  background: #03090e;
  box-shadow: 0 0 18px 11px #03090e;
  transform: rotate(-1deg);
  transform-origin: center;
}
.founder-guarantees__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 620px;
  width: 67%;
  flex-direction: column;
  padding: 68px 0 62px 70px;
}
.founder-guarantees h2 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.045em;
}
.founder-guarantees__benefits {
  display: grid;
  max-width: 690px;
  margin-top: auto;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  list-style: none;
  counter-reset: founder-benefit;
}
.founder-guarantees__benefits li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  counter-increment: founder-benefit;
}
.founder-guarantees__benefits li::before {
  margin-bottom: 9px;
  color: var(--accent);
  content: '0' counter(founder-benefit);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.founder-guarantees__benefits p {
  min-height: 96px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.55;
}
.founder-guarantees__benefits p strong {
  color: #fff;
  font-weight: 800;
}
.founder-guarantees__benefits li > span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 17px;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 172, 236, .22);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.founder-guarantees__person {
  position: absolute;
  z-index: 3;
  top: 58%;
  right: 3.5%;
  bottom: auto;
  display: grid;
  width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(6, 12, 18, .46);
  color: #fff;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}
.founder-guarantees__person strong {
  font-size: 15px;
  font-weight: 800;
}
.founder-guarantees__person span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

@media (max-width: 1080px) {
  .founder-guarantees__content {
    width: 70%;
    padding-left: 48px;
  }
  .founder-guarantees__benefits { gap: 22px; }
  .founder-guarantees__portrait {
    right: -4%;
    width: 64%;
  }
  .founder-guarantees__shirt-logo-mask {
    top: 77%;
    left: 61%;
    width: 164px;
    height: 60px;
  }
}

@media (max-width: 700px) {
  .founder-guarantees__card {
    min-height: 590px;
    border-radius: 20px;
  }
  .founder-guarantees__background { object-position: 68% center; }
  .founder-guarantees__portrait {
    right: -37%;
    width: 100%;
    height: 62%;
  }
  .founder-guarantees__visual::after {
    z-index: 2;
    background: linear-gradient(90deg, rgba(4, 8, 12, .12) 0%, transparent 58%, rgba(4, 8, 12, .08) 100%);
  }
  .founder-guarantees__shirt-logo-mask {
    top: auto;
    right: 9%;
    bottom: 2.5%;
    left: auto;
    width: 120px;
    height: 55px;
    box-shadow: 0 -24px 22px 18px #03090e;
  }
  .founder-guarantees__content {
    min-height: 590px;
    width: 100%;
    padding: 30px 24px 24px;
  }
  .founder-guarantees h2 {
    max-width: 430px;
    padding-right: 8px;
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
    line-height: 1.2;
  }
  .founder-guarantees__benefits {
    width: 42%;
    max-width: none;
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .founder-guarantees__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }
  .founder-guarantees__benefits li::before {
    margin: 0 0 2px;
    font-size: .68rem;
  }
  .founder-guarantees__benefits p {
    min-height: 0;
    margin: 0 0 7px;
    font-size: .59rem;
    line-height: 1.5;
  }
  .founder-guarantees__benefits li > span {
    min-height: 27px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: .48rem;
  }
  .founder-guarantees__person {
    top: auto;
    right: 18px;
    bottom: 34px;
    width: 88px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .founder-guarantees__person strong { font-size: .72rem; }
  .founder-guarantees__person span { font-size: .5rem; }
}

@media (max-width: 420px) {
  .founder-guarantees__card,
  .founder-guarantees__content { min-height: 548px; }
  .founder-guarantees__content { padding-inline: 20px; }
  .founder-guarantees__benefits { width: 45%; }
  .founder-guarantees__portrait {
    right: -43%;
    height: 60%;
  }
  .founder-guarantees__shirt-logo-mask {
    right: 4%;
    bottom: 2.5%;
    left: auto;
    width: 100px;
    height: 46px;
  }
  .founder-guarantees__person {
    top: auto;
    bottom: 34px;
    width: 88px;
  }
}
