/* ═══════════ TOKENS ═══════════ */
:root {
  --bg: #ffffff;
  --bg-tint: #f2f6fa;
  --bg-dark: #0d1b2a;
  --surface: #ffffff;
  --text: #13212f;
  --text-soft: #5f6e7e;
  --text-inverse: #f4f7fa;
  --text-inverse-soft: #9db0c0;
  /* Фирменный оранжевый логотипа. Утверждён 20.07.2026, до этого жил
     предпросмотром за ?accent=orange. Взят подвариант orange-aa: тон
     затемнён от брендового #fd5b20 до #d1440d, иначе белый текст на
     кнопках даёт 3.1:1 при пороге WCAG AA 4.5:1.

     Акцент расщеплён на два токена, и это не косметика:
       --accent      заливки, бордеры, иконки, крупные цифры, кнопки —
                     на белом и в роли фона под белым текстом даёт 4.6:1;
       --accent-ink  акцентный ТЕКСТ на тонированных подложках. На
                     --accent-soft и --bg-tint сам --accent проседает до
                     4.16–4.26:1, ink держит 4.66–4.77:1. Замерено, не на глаз. */
  --accent: #d1440d;
  --accent-hover: #b2380a;
  --accent-soft: #fff0eb;
  --accent-ink: #c2410c;
  --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(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-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; }

/* Бейдж рейтинга в шапке: звёзды и подпись, не кликается. Прижат
   к логотипу, а не к правому краю: справа уже телефон, мессенджеры
   и CTA — четвёртый элемент там превратил бы угол в свалку. */
.hrating {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.hrating__stars { color: #ffb400; font-size: 13px; letter-spacing: 1px; }
.hrating__text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-soft);
}
.hrating__text strong { font-size: 12.5px; font-weight: 700; color: var(--text); }

/* flex: none — логотип не сжимается: при нехватке места в шапке ужиматься
   должно что угодно, кроме него */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; flex: none; }
.logo__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
}
.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; }
/* Иконки мессенджеров — готовые брендовые бейджи из assets/icons/: фон и
   скругление внутри самого SVG, поэтому контейнер без подложки. Раньше был
   круг с белым глифом, а у MAX вместо иконки текст «MAX». */
.msgr {
  width: 38px; height: 38px;
  display: block;
  transition: transform .2s, filter .2s;
}
.msgr img { display: block; width: 100%; height: 100%; }
.msgr:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ── вторая строка: меню ── */
.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:hover, .menu__toggle:hover, .menu__item.is-open > .menu__toggle { color: var(--accent); }

/* Активный пункт. Класс проставлялся в разметке (menu_is_active), но правил
   под него не было — подсветки не существовало. Раздел с выпадашкой тоже
   подсвечиваем: на /laminatsiya-okna/ горит «Окна и двери».
   Подчёркивание, а не только цвет: цветом отличается и :hover, вдвоём они
   неразличимы, да и одного цвета для «где я нахожусь» мало. */
.menu__link.is-active,
.menu__item.is-active > .menu__toggle { color: var(--accent); }
.menu__link.is-active::after,
.menu__item.is-active > .menu__toggle::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.menu__link, .menu__toggle { position: relative; }
.menu > .menu__link:first-child.is-active::after { left: 0; }
.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: 640px;
    min-height: 340px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 18px 40px rgba(16, 32, 54, .14);
    padding: 10px;
    padding-right: 350px;
    z-index: 60;
  }
  .dd > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
  }
  .dd > li > a:hover { color: var(--accent); }
  /* Текущая страница в выпадашке. Ниже is-active на li.has-fly — это другое
     состояние (раскрытый второй уровень), селекторы не пересекаются. */
  .dd > li > a.is-active { color: var(--accent); }
  .dd .has-fly.is-active > a {
    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: 340px;
    background: #fff;
    border-left: 1px solid var(--border);
    padding: 14px 18px;
    overflow-y: auto;
  }
  .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;
  }
  .fly a:hover { background: var(--accent-soft); color: var(--accent); }
}
.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); }

/* ═══════════ SERVICES ═══════════ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.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: var(--bg-dark); color: var(--text-inverse); border: none; }
.service-card--more ul { display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 6px 0 20px; }
.service-card--more li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--text-inverse-soft);
}
.service-card--more li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.service-card--more .btn { align-self: flex-start; }

/* ═══════════ 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); }

/* ═══════════ 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: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  transition: background .25s ease, border-color .25s ease;
}
.project:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.project__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.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-inverse); }
.project__facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.project__facts span {
  padding: 5px 12px;
  background: rgba(255, 255, 255, .1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-inverse-soft);
}
.project__price { font-size: 18px; font-weight: 800; color: #6ea8f7; }
.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-inverse);
}
.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 rgba(255, 255, 255, .1);
}
.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; }

/* ═══════════ REVEAL SPOTLIGHT («фонарик») ═══════════ */
@property --reveal-r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}
.reveal { max-width: 980px; margin: 0 auto; }
.reveal__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
  cursor: crosshair;
  touch-action: none;
  --mx: 50%;
  --my: 50%;
  --reveal-r: 0px;
  transition: --reveal-r .32s ease;
}
.reveal__stage.is-active { --reveal-r: 150px; }
.reveal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* верхний слой «после» проявляется мягким кругом под курсором */
.reveal__img--after {
  -webkit-mask-image: radial-gradient(circle var(--reveal-r) at var(--mx) var(--my), #000 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--reveal-r) at var(--mx) var(--my), #000 0%, #000 55%, transparent 100%);
}
.reveal__label {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  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;
}
.reveal__hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .3s ease;
}
.reveal__stage.is-active .reveal__hint { opacity: 0; }
.reveal__hint span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(13, 27, 42, .72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
}
.reveal__caption {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
}
@media (prefers-reduced-motion: reduce) {
  .reveal__stage { transition: none; }
}

/* ═══════════ USP GRID (bento) ═══════════ */
.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); }
.usp-card--dark { background: var(--bg-dark); color: var(--text-inverse); }
.usp-card--photo {
  color: #fff;
  background-size: cover;
  background-position: center;
}
.usp-card--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 19, 32, .72) 0%, rgba(9, 19, 32, .38) 55%, rgba(9, 19, 32, .5) 100%);
}
.usp-card--photo-dark::before {
  background: linear-gradient(180deg, rgba(9, 19, 32, .62) 0%, rgba(9, 19, 32, .5) 55%, rgba(9, 19, 32, .78) 100%);
}
.usp-card--photo > * { position: relative; }
.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: rgba(255, 255, 255, .85); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.usp-card--photo .usp-card__head h3 { text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.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 ═══════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  counter-reset: step;
}
.step { position: relative; }
.step span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ═══════════ 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;
}
.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: var(--bg-dark); color: var(--text-inverse); }
.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(255,255,255,.14); }
.timing-table__sub { text-align: center; font-weight: 600; font-size: 13px; color: var(--accent-soft); }
.timing-table thead th + th { border-left: 1px solid rgba(255,255,255,.10); }
.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); }

/* ═══════════ 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); }

/* ═══════════ 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 {
  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 input:focus { border-color: var(--accent); }
.cta__note { font-size: 13px; color: var(--text-soft); }
.cta__note a { text-decoration: underline; }

/* ═══════════ 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; }
  /* Бейдж убираем вместе с меню: на этой ширине в шапке остаются логотип,
     телефон, CTA и бургер — пятый элемент выдавливал логотип за край. */
  .hrating { 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__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;
  }
  .dd a.is-active { color: var(--accent); }
  /* В мобильном меню пункты идут списком во всю ширину — подчёркивание там
     читается как разделитель, поэтому только цвет. */
  .menu__link.is-active::after,
  .menu__item.is-active > .menu__toggle::after { display: none; }
  .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; }
  .logo__text { font-size: 16px; }
  .logo__text small { display: none; }
  .logo__mark { width: 34px; height: 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; }
  .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; }
}

/* ═══════════ BREADCRUMBS (service page) ═══════════ */
.crumbs { 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); }

/* ═══════════ 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; } }

/* detailed price spoiler */
.spoiler { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spoiler > summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler > summary::after { content: "+"; font-size: 24px; color: var(--accent); font-weight: 600; }
.spoiler[open] > summary::after { content: "–"; }
.spoiler > summary:hover { color: var(--accent); }
.spoiler__body { padding: 0 24px 8px; }

/* ═══════════ 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; }
