/* ==========================================================================
   Штукатурка22 — дизайн-система
   Перенос редизайна из дизайн-канваса в прод-вёрстку.
   Порядок секций совпадает с порядком блоков на странице.
   ========================================================================== */

/* --- Токены ------------------------------------------------------------- */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F6F3EC;

  --ink: #16130D;
  --ink-2: #3F3A31;
  --ink-3: #4F4A40;
  --ink-4: #4A443A;
  --muted: #6E675B;
  --muted-2: #5B5449;

  --line: #EFEAE1;
  --line-2: #ECE7DE;
  --line-3: #E4DED4;
  --line-4: #E0DACF;
  --line-5: #F0EBE2;

  --brand: #D8552B;
  --brand-dk: #BE4620;
  --brand-dk-2: #B8431E;
  --brand-lt: #F0A986;
  --brand-bg: #FBEDE6;

  --dark: #16130D;
  --dark-2: #211D16;
  --dark-line: #2E2A22;
  --dark-foot: #0F0D09;
  --dark-foot-line: #22201A;

  --on-dark: #B9B2A5;
  --on-dark-2: #9A9384;
  --on-dark-3: #C9C3B7;
  --on-dark-4: #D8D2C6;
  --on-dark-5: #8A8377;

  --wrap: 1240px;
  --pad: 28px;
  --head-h: 88px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(.4, 0, 0, 1);
}

/* --- Сброс и база -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a {
  color: #C24A20;
  text-decoration: none;
}

a:hover { color: #9E3A16; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -.02em;
  font-weight: 700;
}

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

input, select, button, textarea { font-family: inherit; }

ul { list-style: none; }

[id] { scroll-margin-top: var(--head-h); }

::selection {
  background: #F3C9B6;
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Раскладка ----------------------------------------------------------- */
.page { min-height: 100vh; overflow-x: clip; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.wrap--narrow { max-width: 900px; }

.band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.band--dark {
  background: var(--dark);
  color: #fff;
}

.sec { padding-top: 80px; padding-bottom: 80px; }
.sec--lg { padding-top: 88px; padding-bottom: 88px; }
.sec--sm { padding-top: 64px; padding-bottom: 64px; }

/* --- Типографика --------------------------------------------------------- */
.eyebrow {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.eyebrow--light { color: var(--brand-lt); }

h1, .h1 {
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h2, .h2 {
  font-size: 42px;
  line-height: 1.06;
}

.h2--sm { font-size: 38px; line-height: 1.08; }

h3, .h3 {
  font-size: 21px;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.lead--lg { font-size: 19px; line-height: 1.6; color: var(--muted-2); }

.sec-head { margin-bottom: 40px; }
.sec-head--wide { max-width: 640px; margin-bottom: 48px; }
.sec-head--center { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.sec-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.note {
  color: var(--muted);
  font-size: 14.5px;
}

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-dk);
  color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-3);
}
.btn--light:hover { border-color: var(--ink); color: var(--ink); }

.btn--outline {
  background: none;
  color: var(--ink);
  border-color: var(--line-4);
  padding: 13px 20px;
  font-size: 15px;
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.btn--on-dark {
  background: none;
  color: #fff;
  border-color: #3A362E;
}
.btn--on-dark:hover { border-color: #fff; color: #fff; }

.btn--sm { padding: 13px 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* CTA с «магнитным» акцентом: пульс, блик и стрелка */
.cta-magnet {
  animation: ctaPulse 2.6s ease-out infinite, ctaBob 3.4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.cta-magnet:hover { animation-play-state: paused; }
.cta-magnet::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 3.4s ease-in-out infinite;
}
.cta-magnet > * { position: relative; z-index: 1; }
.cta-magnet .cta-arw { transition: transform .3s ease; }
.cta-magnet:hover .cta-arw { transform: translateX(4px); }

@keyframes ctaPulse {
  0%   { box-shadow: 0 14px 30px -10px rgba(216, 85, 43, .55), 0 0 0 0 rgba(216, 85, 43, .45); }
  70%  { box-shadow: 0 14px 30px -10px rgba(216, 85, 43, .55), 0 0 0 16px rgba(216, 85, 43, 0); }
  100% { box-shadow: 0 14px 30px -10px rgba(216, 85, 43, .55), 0 0 0 0 rgba(216, 85, 43, 0); }
}
@keyframes ctaBob {
  0%, 88%, 100% { transform: translateY(0); }
  94% { transform: translateY(-4px); }
}
@keyframes ctaShine {
  0% { left: -120%; }
  28%, 100% { left: 160%; }
}

/* --- Появление при скролле ---------------------------------------------- */
/* Без JS блок остаётся видимым — важно для индексации и печати. */
.js .rev {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .rev.on { opacity: 1; transform: none; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Шапка --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-2);
}

.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.glass-h, .glass-m, .mbar { background: var(--bg); }

@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass-h {
    background: rgba(251, 250, 247, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .glass-m {
    background: rgba(251, 250, 247, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mbar {
    background: rgba(251, 250, 247, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }

.logo__mark {
  position: relative;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #E4652F 0%, #C24A20 55%, #A93C15 100%);
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1);
  box-shadow: 0 4px 12px -3px rgba(194, 74, 32, .5);
}
.logo__mark::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -70%;
  width: 42%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-18deg);
  animation: logoShine 4.8s ease-in-out infinite;
}
.logo:hover .logo__mark { transform: scale(1.08) rotate(-4deg); }

.logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.03em;
}
.logo__text span { color: var(--brand); }

.lm-line {
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: logoDraw .7s cubic-bezier(.4, 0, .2, 1) forwards;
}
.lm-1 { animation-delay: .15s; }
.lm-2 { animation-delay: .33s; }
.lm-3 { animation-delay: .51s; }
.lm-edge {
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  animation: logoDraw .55s ease forwards;
}

@keyframes logoShine {
  0% { left: -70%; }
  50%, 100% { left: 140%; }
}
@keyframes logoDraw { to { stroke-dashoffset: 0; } }

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  color: var(--ink-4);
  font-weight: 500;
  font-size: 15px;
}
.nav__link:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__phone {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.hdr-cta {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background .2s;
}
.hdr-cta:hover { background: var(--brand-dk); color: #fff; }

/* Выпадающий список услуг */
.svc-dd { position: relative; }

.svc-dd__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-4);
  font-weight: 500;
  font-size: 15px;
  padding: 0;
}

.svc-dd__btn svg { transition: transform .25s; }
.svc-dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.svc-dd__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  min-width: 210px;
  box-shadow: 0 20px 44px -18px rgba(22, 19, 13, .35);
}
.svc-dd__menu[hidden] { display: none; }

.svc-dd__item {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: background .15s;
}
.svc-dd__item:hover { background: var(--bg-alt); color: var(--ink-2); }

.svc-dd__item--current {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-alt);
}

/* Бургер */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-3);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* Мобильное меню */
.mobmenu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.mobmenu[hidden] { display: none; }

.mobmenu__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobmenu__link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
}

.mobmenu__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 340px;
  margin-top: 2px;
}

.chip {
  background: #fff;
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-2);
}
.chip--current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.mobmenu__phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

/* --- Первый экран -------------------------------------------------------- */
.hero { padding: 64px var(--pad) 40px; max-width: var(--wrap); margin: 0 auto; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand-bg);
  color: var(--brand-dk-2);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(216, 85, 43, .18);
}

.hero__title { margin-bottom: 24px; }
.hero__title span { color: var(--brand); }

.hero__text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.fact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fact__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
}
.fact__cap {
  font-size: 13px;
  color: var(--muted);
}

.hero__media { position: relative; }

.hero__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(22, 19, 13, .4);
  aspect-ratio: 4 / 5;
  background: var(--ink);
}
.hero__frame img,
.hero__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 13, 9, .35), transparent 45%);
  pointer-events: none;
}

.hero__live {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 13, 9, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
}
.hero__live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3BD16F;
  box-shadow: 0 0 0 4px rgba(59, 209, 111, .25);
}

.hero__chip-speed {
  position: absolute;
  left: -22px;
  bottom: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 24px 46px -20px rgba(22, 19, 13, .35);
  animation: floaty 5s ease-in-out infinite;
}
.hero__chip-speed .cap {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.hero__chip-speed .val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.hero__chip-speed .val span {
  font-size: 17px;
  color: var(--muted);
}

.hero__chip-exp {
  position: absolute;
  right: -16px;
  top: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: 0 20px 40px -18px rgba(22, 19, 13, .6);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__chip-exp b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
}
.hero__chip-exp span {
  font-size: 13px;
  color: var(--on-dark-3);
  line-height: 1.2;
}

/* --- Полоса доверия ------------------------------------------------------ */
.trust {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust__item { text-align: center; }
.trust__item + .trust__item { border-left: 1px solid var(--line-3); }

.trust__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  color: var(--ink);
}
.trust__cap {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* --- Карточки преимуществ ----------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}

/* ---- Единая подсветка карточек при наведении --------------------------
   Один набор правил на все карточки сайта: преимущества, этапы работ,
   тарифы и «Другие услуги». Подъём, кирпичная рамка, тень.
   Только для мыши: на тач-экранах :hover «залипает» после тапа.
   Тёмные карточки — отдельная ветка, на чёрном фоне обычная тень не видна. */
.card--hover,
.card--dark,
.price,
.svc-card {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

@media (hover: hover) {
  .card--hover:hover,
  .price:not(.price--hit):hover,
  .svc-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 24px 44px -24px rgba(22, 19, 13, .32);
  }

  .card--dark:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .55);
  }

  /* У «Хита» уже есть глубокая тень в покое — при наведении усиливаем её,
     иначе карточка визуально проседает вместо подъёма. */
  .price--hit:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 42px 72px -26px rgba(22, 19, 13, .7);
  }

  .card--hover:hover .card__icon { background: #F7DCCC; }
  .card--dark:hover .link-arrow { color: #fff; }
}

.card__icon { transition: background .28s var(--ease); }
.link-arrow { transition: color .28s var(--ease); }

.card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark); }

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Значок стоит слева от заголовка, а не над ним: пара «значок + название»
   читается как одна строка, и карточка начинается сразу с сути. Текст идёт
   под ними во всю ширину — с отступом под значок он бы сузился вдвое.
   Одинаково на всех экранах, отличаются только поля и кегль (см. адаптив).
   Тёмную карточку не трогаем: у неё внутри своя разметка со ссылкой. */
.card--hover {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
}
.card--hover .card__icon { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.card--hover .card__title { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.card--hover .card__text { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }

.card__title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card__text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-lt);
  font-weight: 600;
  font-size: 15.5px;
  margin-top: 22px;
}
.link-arrow:hover { color: #fff; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Типы объектов ------------------------------------------------------- */
.obj {
  position: relative;
  height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.obj img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.obj:hover img { transform: scale(1.07); }

.obj__cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 13, 9, .85), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.obj__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.obj__sub {
  font-size: 13.5px;
  color: var(--on-dark-3);
}

/* --- Было / стало -------------------------------------------------------- */
.ba-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.ba-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ba-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-2);
}
.ba-check__ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 34px 66px -30px rgba(22, 19, 13, .35);
  user-select: none;
}

.ba__layer { position: absolute; inset: 0; }
.ba__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__tag {
  position: absolute;
  top: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: var(--r-pill);
  padding: 5px 11px;
  color: #fff;
}
.ba__tag--after { right: 14px; background: var(--brand); }
.ba__tag--before { left: 14px; background: rgba(15, 13, 9, .6); }

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, .3);
  pointer-events: none;
  transform: translateX(-1.5px);
}
.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  cursor: ew-resize;
  border-radius: 50%;
  background: transparent;
}
.ba__range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  cursor: ew-resize;
  border: none;
  border-radius: 50%;
  background: transparent;
}

/* --- Таблица сравнения --------------------------------------------------- */
.cmp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.cmp-head,
.cmp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.cmp-head {
  background: var(--ink);
  color: #fff;
}
.cmp-head > div {
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
}
.cmp-head__win { background: var(--brand); }
.cmp-head__lose { color: var(--on-dark-2); }

.cmp-row { border-bottom: 1px solid var(--line-5); }
.cmp-row:last-child { border-bottom: none; }
.cmp-row--alt { background: var(--bg); }
.cmp-row > div { padding: 20px 26px; }
.cmp-row .cmp-p { font-weight: 600; font-size: 15px; }
.cmp-row .cmp-win {
  font-weight: 700;
  color: var(--brand-dk-2);
  font-family: var(--font-head);
}
.cmp-row .cmp-win--ink {
  color: var(--ink);
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cmp-row .cmp-lose { color: var(--muted); }

/* --- Этапы работ --------------------------------------------------------- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

/* Подсветка этапа при наведении. Только для мыши: на тач-экранах
   :hover «залипает» после тапа и карточка остаётся подсвеченной. */
@media (hover: hover) {
  .stage:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 24px 44px -24px rgba(22, 19, 13, .32);
  }
  .stage:hover .stage__num { color: var(--brand-dk); }

  .stage--last:hover {
    border-color: var(--brand);
    box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .55);
  }
  .stage--last:hover .stage__num { color: var(--brand-lt); }
}

/* Номер рядом с названием этапа, а не над ним — по той же причине, что
   и значок в карточке преимущества: «01 Замер» читается одной строкой. */
.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
}

.stage__num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--brand);
  transition: color .28s var(--ease);
}
.stage__title {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  font-size: 16px;
}
.stage__text {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Страницы услуг: этапов 8, а не 10 — сетка в 4 колонки */
.stage-grid--4 { grid-template-columns: repeat(4, 1fr); }

.stage--last {
  background: var(--ink);
  border-color: var(--ink);
}
.stage--last .stage__num { color: var(--brand-lt); }
.stage--last .stage__title { color: #fff; }
.stage--last .stage__text { color: var(--on-dark); }

/* --- Портфолио и лайтбокс ------------------------------------------------ */
.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.port {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: none;
  display: block;
}
.port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.port:hover img { transform: scale(1.08); }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 13, 9, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lb[hidden] { display: none; }

.lb img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lb__btn {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb__close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 22px;
}
.lb__prev, .lb__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 26px;
}
.lb__prev { left: 22px; }
.lb__next { right: 22px; }

.lb__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .12);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
}

/* --- Оборудование -------------------------------------------------------- */
.equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
/* Без этого колонка раздувается по самому длинному слову внутри карточек
   («пневмонагнетатель»), и вместе с ней за край экрана уезжает вся левая
   часть блока — заголовок, абзацы и бренды. У grid-элемента min-width
   по умолчанию равен min-content, отсюда и распирало. */
.equip-grid > * { min-width: 0; }

.equip__text {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.equip__text b { color: var(--ink); }
.equip__text:last-of-type { margin-bottom: 26px; }

.brands {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  opacity: .55;
}
.brands span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .04em;
}

.equip__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--r-md);
}
.equip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}
.equip-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 12px;
}
.equip-card__name { font-weight: 600; font-size: 15px; }
.equip-card__note { font-size: 13px; color: var(--muted); }

/* Вариант карточки с иконкой вместо фото — для оборудования,
   которое мы не показываем снимком (пневмонагнетатель, затирочная машина). */
.equip-card--icon {
  padding: 26px;
  text-align: left;
}
.equip-card__ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.equip-card--icon .equip-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.equip-card__text {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- Калькулятор --------------------------------------------------------- */
.calc-box {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  color: #fff;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.calc__title {
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 30px;
}

.calc__modes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.calc__mode {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--dark-line);
  background: var(--dark-2);
  color: var(--on-dark-3);
  transition: background .2s, color .2s, border-color .2s;
}
.calc__mode[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.calc__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--on-dark-2);
}

.calc__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}

.calc__range {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
}

.calc__hint {
  font-size: 12.5px;
  color: var(--on-dark-5);
  margin-top: 9px;
}

.calc__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--r-md);
}

.calc__field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--on-dark-2);
  margin-bottom: 9px;
}

.input-dark {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  color: #fff;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s;
}
.input-dark:focus { border-color: var(--brand); }

.calc__result {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.calc__result-cap {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--on-dark-2);
  margin-bottom: 10px;
}
.calc__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  color: var(--brand-lt);
  line-height: 1;
  margin-bottom: 8px;
}
.calc__note {
  font-size: 13.5px;
  color: var(--on-dark-5);
  margin-bottom: 24px;
}

/* --- Цены ---------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.price__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 4px;
}
.price__val span { font-size: 16px; color: var(--muted); }

.price__sub {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-bottom: 22px;
}

.price__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}
.price__list li {
  display: flex;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.price__list svg { flex-shrink: 0; margin-top: 1px; }

.price--hit {
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
  box-shadow: 0 34px 60px -28px rgba(22, 19, 13, .6);
}
.price--hit .price__title { color: #fff; padding-right: 56px; }
.price--hit .price__val { color: #fff; }
.price--hit .price__val span { color: var(--on-dark); }
.price--hit .price__sub { color: var(--brand-lt); }
.price--hit .price__list li { color: var(--on-dark-4); }

.price__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.price__cta {
  text-align: center;
  padding: 13px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.price__cta--ghost {
  border: 1px solid var(--line-4);
  color: var(--ink);
}
.price__cta--ghost:hover { border-color: var(--ink); color: var(--ink); }
.price__cta--solid {
  background: var(--brand);
  color: #fff;
}
.price__cta--solid:hover { background: var(--brand-dk); color: #fff; }

/* Дополнительные услуги под сеткой тарифов: у этих работ нет фиксированной
   цены за м² (зависит от объёма и состояния основания), поэтому карточкой
   тарифа их не оформить — только списком. */
.extra {
  margin-top: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.extra__title { font-size: 21px; margin-bottom: 10px; }
.extra__text { color: var(--ink-3); font-size: 16px; line-height: 1.65; margin-bottom: 22px; }

.extra__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 28px;
}
.extra__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.extra__item span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 8px;
}
.extra__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- Плитка тегов --------------------------------------------------------
   Три бесконечные ленты, как у отзывов: ряды едут в разные стороны с разной
   скоростью, поэтому не выглядят синхронной каруселью. Ячейки используют
   .chip из шапки — отдельного вида не заводим. Копии для бесшовной
   прокрутки клонирует main.js, в разметке лежит только исходный набор. */
.tags-mask {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.tags-row {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 6px 0;
  will-change: transform;
}
.tags-row.is-running { animation: tagsScroll 120s linear infinite; }
.tags-row.is-running.tags-row--2 { animation-duration: 96s; animation-direction: reverse; }
.tags-row.is-running.tags-row--3 { animation-duration: 140s; }

.tags-mask:hover .tags-row,
.tags-row:focus-within { animation-play-state: paused; }

@keyframes tagsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 6px)); }
}

.tags-row .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.tags-row .chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* --- Текстовый блок о технологии ----------------------------------------
   Ширина как у остальных секций, но строка в 1240px нечитаема: вступление
   идёт в две колонки, а смысловые части раскладываются сеткой два на два. */
.txt-intro {
  columns: 2;
  column-gap: 48px;
  margin-bottom: 44px;
}
.txt-intro p {
  color: var(--ink-3);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
  break-inside: avoid;
}
.txt-intro p:last-child { margin-bottom: 0; }

.txt-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}
.txt-col h3 {
  font-size: 20px;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 2px solid var(--brand);
}
.txt-col p {
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.txt-col p:last-child { margin-bottom: 0; }

/* --- Гарантия ------------------------------------------------------------ */
.guar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.guar__title { font-size: 40px; line-height: 1.08; color: #fff; margin-bottom: 20px; }
.guar__text {
  color: var(--on-dark);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.guar__actions { display: flex; gap: var(--r-md); flex-wrap: wrap; }

.guar__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--r-md);
}

.stat-dark {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: 24px;
}
.stat-dark__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  margin-bottom: 6px;
}
.stat-dark__cap {
  color: var(--on-dark-2);
  font-size: 14.5px;
}

/* --- Отзывы -------------------------------------------------------------- */
.rating-badge {
  display: flex;
  align-items: center;
  gap: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 22px;
}
.rating-badge__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 38px;
  color: var(--ink);
}
.stars { display: flex; gap: 2px; margin-bottom: 3px; }
.rating-badge__src { font-size: 13px; color: var(--muted); }

.rv-mask {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.rv-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 4px 0 12px;
  will-change: transform;
}
/* Едем только после того, как main.js доклонировал ленту: до этого сдвиг
   на -50% увёл бы половину карточек за край. Скорость подобрана так, чтобы
   отзыв успевали прочитать. */
.rv-track.is-running { animation: rvScroll 95s linear infinite; }
.rv-mask:hover .rv-track,
.rv-track:focus-within { animation-play-state: paused; }

@keyframes rvScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

.rv-card {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.rv-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 24px 44px -24px rgba(22, 19, 13, .32);
}

.rv-card__text {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.rv-card__who {
  display: flex;
  align-items: center;
  gap: 11px;
}
.rv-card__ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
  background: var(--brand);
}
.rv-card__name { font-weight: 600; font-size: 14.5px; }
.rv-card__date { font-size: 12.5px; color: var(--muted); }

.rv-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.faq-i { transition: transform .3s ease; flex-shrink: 0; }
.faq-i.open { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a.open { max-height: 1200px; }
.faq-a > div {
  padding: 0 26px 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* --- География ----------------------------------------------------------- */
.geo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.geo__map {
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--line);
}
.geo__map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.geo__card {
  background: var(--ink);
  border-radius: 22px;
  padding: 34px;
  color: #fff;
}
.geo__card h3 { font-size: 22px; color: #fff; margin-bottom: 22px; }

.geo__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.geo__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--on-dark-4);
}
.geo__item span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
/* Пункты географии — ссылки на форму: подчёркивания нет, цвет как у текста
   карточки, подсветка только на наведении. */
.geo__item a { color: var(--on-dark-4); }
.geo__item a:hover { color: #fff; }

/* --- Заявка --------------------------------------------------------------
   Класс называется .lead-box, а не .lead: .lead уже занят абзацем-подзаголовком
   (см. выше). Раньше оба правила звались одинаково, и текстовый абзац получал
   от этого блока сетку в две колонки, фон и overflow: hidden — строки
   обрезались по левому краю в блоке «Было — стало», в тарифах и на «О нас». */
.lead-box {
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}

.lead-pad { padding: 56px 52px; }

.lead__title { font-size: 40px; line-height: 1.06; margin-bottom: 16px; }
.lead__text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 34px;
}

.lead__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact__ic {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__val {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.contact__val--sm {
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
}
.contact__cap {
  font-size: 13.5px;
  color: var(--muted);
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Цветные плитки — блок заявки и мобильное меню. */
.socials--tiles { margin-top: 6px; }
.socials--tiles .social {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  transition: transform .2s var(--ease);
}
.socials--tiles .social:hover { transform: translateY(-2px); }

.social--wa { background: #25D366; }
.social--tg { background: #0088cc; }
.social--vk { background: #4C75A3; }
/* Подложка MAX повторяет градиент его логотипа: голубой снизу слева,
   через синий к фиолетовому справа. Плоская заливка выглядит чужой —
   у остальных сервисов логотип одноцветный, а у этого нет. */
.social--max { background: linear-gradient(135deg, #45BDF6 0%, #3B5BF5 50%, #A93BE8 100%); }

/* Шапка: те же фирменные цвета, но кружками и мельче — иначе четыре
   квадратные плитки перетягивают внимание с кнопки «Заказать замер». */
.socials--plain { gap: 8px; }
.socials--plain .social {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.socials--plain .social:hover { transform: translateY(-2px); }

/* В мобильном меню плитки идут после телефона отдельной строкой. */
.socials--mob { margin-top: 18px; }

/* --- Профили на площадках (Яндекс.Карты, 2ГИС, Авито) -------------------- */
/* Не плитки: у площадок читается название, а не значок, и по виду они не
   должны спорить с мессенджерами — там действие «написать», здесь «почитать». */
.places { margin-top: 20px; }
.places__cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.places__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.place img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: 0 0 auto;
}
.place:hover {
  border-color: var(--brand);
  color: var(--ink);
  transform: translateY(-1px);
}

.lead-form {
  background: var(--ink);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-form__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
}

.form { display: flex; flex-direction: column; gap: var(--r-md); }
.form[hidden] { display: none; }

.form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--on-dark-5);
  margin-bottom: 7px;
}

.form__input {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.form__input:focus { border-color: var(--brand); }
.form__input::placeholder { color: #6B6459; }

.form__agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 44px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-dark);
}
.form__agree input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border: 1px solid var(--dark-line);
  background: var(--dark-2);
  transition: background .18s, border-color .18s;
}
.form__box svg { opacity: 0; transition: opacity .15s; }
.form__agree input:checked ~ .form__box {
  background: var(--brand);
  border-color: var(--brand);
}
.form__agree input:checked ~ .form__box svg { opacity: 1; }
.form__agree input:focus-visible ~ .form__box { outline: 2px solid var(--brand-lt); outline-offset: 2px; }
.form__agree a { color: #E8A488; text-decoration: underline; }

.form__submit {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .2s, opacity .2s;
  margin-top: 2px;
}
.form__submit:hover:not(:disabled) { background: var(--brand-dk); }
.form__submit:disabled { cursor: not-allowed; opacity: .5; }

.form__error {
  color: #FF9C7A;
  font-size: 13.5px;
  line-height: 1.5;
}
.form__error[hidden] { display: none; }

.form-ok { text-align: center; padding: 20px 0; }
.form-ok[hidden] { display: none; }
.form-ok__ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.form-ok__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}
.form-ok__text { color: var(--on-dark); font-size: 15px; }

/* --- Подвал -------------------------------------------------------------- */
.footer {
  background: var(--dark-foot);
  color: #fff;
  padding: 56px var(--pad) 40px;
}

.footer__inner { max-width: var(--wrap); margin: 0 auto; }

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--dark-foot-line);
}

.footer__about { max-width: 340px; }
.footer__about p {
  color: var(--on-dark-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.footer__logo .logo__mark { width: 36px; height: 36px; border-radius: 10px; }
.footer__logo .logo__text { font-size: 18px; }

.footer__cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer__col-title {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--on-dark-5);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: var(--on-dark-3);
  font-size: 14.5px;
}
.footer__links a:hover { color: #fff; }
.footer__links span { color: var(--on-dark-2); font-size: 14.5px; }

.footer__phone {
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: var(--on-dark-5);
  font-size: 13.5px;
}
.footer__bottom a { color: var(--on-dark-5); }
.footer__bottom a:hover { color: #fff; }

/* --- Наверх и мобильная панель ------------------------------------------ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(216, 85, 43, .6);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.to-top.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--brand-dk); color: #fff; }

/* Кнопка звонка на мобильном: стоит у правого края над панелью связи,
   на месте кнопки «наверх» — она там же и прячется (см. медиазапрос).
   Два круга в одном углу спорят друг с другом, а звонок для отделочной
   бригады стоит дороже, чем «вернуться к началу».

   Пульсирует нарочно: панель связи уходит из внимания через пару экранов
   прокрутки, а расходящиеся кольца возвращают её.

   Зелёная, а не фирменная оранжевая: зелёная трубка — это «принять вызов»
   на любом телефоне, знак понятен без подписи. Заодно кнопка перестаёт
   спорить с оранжевой «Заказать замер» под ней — рядом два оранжевых круга
   выглядели как одно действие, разбитое надвое. Оттенок взят темнее
   вотсаповского: тот на светлом фоне читается как «написать в WhatsApp». */
.fab-call {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1CA34F;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(28, 163, 79, .7);
}
.fab-call:hover,
.fab-call:active { background: #17853F; color: #fff; }

/* Кольца — на псевдоэлементах, чтобы не заводить лишнюю разметку.
   Второе идёт с задержкой в половину цикла: получается волна, а не мигание. */
.fab-call::before,
.fab-call::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(28, 163, 79, .7);
  animation: fabRing 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
  pointer-events: none;
}
.fab-call::after { animation-delay: 1.2s; }

/* Трубка вздрагивает раз в цикл — как звонящий телефон. */
.fab-call svg { animation: fabShake 3.6s ease-in-out infinite; }

@keyframes fabRing {
  0%   { transform: scale(1); opacity: .95; }
  70%  { opacity: .35; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes fabShake {
  0%, 80%, 100% { transform: rotate(0); }
  84% { transform: rotate(-13deg); }
  88% { transform: rotate(11deg); }
  92% { transform: rotate(-7deg); }
  96% { transform: rotate(4deg); }
}

.mbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  /* Два действия: «написать» и «замер». Звонок живёт отдельной кнопкой
     справа, над панелью, поэтому в ряду его нет. */
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  height: calc(60px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
}

/* Обе кнопки в панели — именно кнопки. Раньше слева стоял значок с подписью,
   и рядом с залитой оранжевой «Заказать замер» он читался как служебная
   иконка, а не как второе равноправное действие: написать нам можно было
   и не догадаться. */
.mbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  background: #EEF3FF;
  border: 1px solid #CBD9FA;
}
.mbar__item svg { flex-shrink: 0; }

/* Подложка под цвет сервиса: голубая у MAX, зелёная у запасного WhatsApp. */
.mbar__item--whatsapp { background: #EAFBF0; border-color: #BFEBD0; }

.mbar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  /* «Заказать замер» в две строки на узком экране выглядит как ошибка вёрстки:
     кнопка вытягивается, панель едет вверх. Пусть лучше не переносится. */
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
}
.mbar__cta:hover { color: #fff; }

/* --- Cookie -------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  background: var(--ink);
  color: #fff;
  padding: 16px var(--pad);
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.cookie.on { transform: none; }

.cookie__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-dark-4);
  max-width: 760px;
}
.cookie__text a { color: #E8A488; text-decoration: underline; }
.cookie__btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.cookie__btn:hover { background: var(--brand-dk); }

/* --- Другие услуги (перелинковка внизу страниц услуг) -------------------- */
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--r-md);
}

/* На странице «О нас» показываем все четыре услуги */
.other-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Первый экран страницы «О нас»: заголовок мельче, текста больше */
.hero__title--sm { font-size: 54px; line-height: 1.04; }

/* Подсветка при наведении — в общем блоке правил для карточек выше. */
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: block;
  color: var(--ink);
}
/* Карточка — ссылка, поэтому гасим стандартный цвет ссылки при наведении */
.svc-card:hover { color: var(--ink); }

.svc-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.svc-card__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.svc-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
}

/* --- Хлебные крошки ------------------------------------------------------ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 22px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { color: var(--ink); }

/* --- Текстовый контент (статьи, политика) -------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin: 40px 0 16px; }
.prose h3 { font-size: 21px; margin: 28px 0 12px; }
.prose p { color: var(--ink-3); font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 0; padding-left: 0; }
.prose ul li, .prose ol li {
  color: var(--ink-3);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 26px;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n) '.';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.prose a { text-decoration: underline; }

/* Таблица в политике шире узкого экрана, а обрезка overflow-x: clip
   у .page срезала бы последний столбец без всякой прокрутки — поэтому
   таблица прокручивается внутри себя. */
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--ink-3);
  text-align: left;
  vertical-align: top;
  min-width: 140px;
}
.prose th { color: var(--ink); background: var(--bg-alt); }

/* --- Блог ---------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.post-card:hover { color: var(--ink); }

@media (hover: hover) {
  .post-card:hover,
  .case-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 24px 44px -24px rgba(22, 19, 13, .32);
  }
  .case-card:hover .case-card__media img { transform: scale(1.05); }
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.post-tag {
  background: var(--brand-bg);
  color: var(--brand-dk-2);
  font-weight: 600;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.post-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.post-card__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14.5px;
}

/* Шапка статьи */
.art-head { max-width: 760px; }
.art-head h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 14px 0 18px;
}
.art-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.art-cover {
  border-radius: 22px;
  overflow: hidden;
  margin: 32px 0 40px;
  border: 1px solid var(--line);
}
.art-cover img { width: 100%; height: auto; }

/* Врезка с призывом внутри статьи */
.art-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 40px 0;
  max-width: 760px;
}
.art-cta h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.art-cta p { color: var(--on-dark); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; }

/* Пагинация */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 44px;
}
.pager .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-3);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.pager .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Пустой архив / нет результатов поиска */
.empty {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 17px;
}

/* Поиск */
.searchform {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.searchform input[type="search"] {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line-3);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.searchform input[type="search"]:focus { border-color: var(--brand); }

/* --- Наши работы --------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.case-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: var(--bg-alt);
  overflow: hidden;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.case-card__empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-alt), var(--line));
}

/* Срок работ поверх фотографии: это первое, о чём спрашивают на замере */
.case-card__days {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(22, 19, 13, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-card__title {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.case-card__title a { color: var(--ink); }
.case-card__title a:hover { color: var(--brand-dk); }

.case-card__facts {
  color: var(--brand-dk);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.case-card__text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.link-arrow--ink { color: var(--brand-dk); margin-top: 0; }
.link-arrow--ink:hover { color: var(--ink); }

/* --- Список объектов: заголовок ------------------------------------------ */
/* «Наши работы в Барнауле и Алтайском крае» — 39 знаков, обычным размером H1
   они рвутся на две строки. Размер считаем от ширины экрана, чтобы строка
   оставалась одной, пока хватает места. Ниже 1000 px строка всё равно
   переносится — там принудительно держать её значило бы уводить кегль
   в нечитаемый. */
.case-archive__title {
  font-size: clamp(30px, 3.7vw, 48px);
  max-width: none;
}

/* Ширина замерена по заголовку: его строка на широком экране занимает 954 px,
   и абзац под ней обрывался на 720 — выглядело так, будто текст не дотянули.
   Теперь он заканчивается там же, где заголовок. Меняете H1 — перемерьте:
   ориентир не «столько-то пикселей», а совпадение с длиной заголовка. */
.case-archive__lead {
  max-width: 940px;
  margin-top: 16px;
}

/* --- Страница объекта ---------------------------------------------------- */
.case-head { max-width: 820px; }
.case-head__title { margin-bottom: 28px; }

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.case-fact__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.case-fact__cap {
  color: var(--muted);
  font-size: 14px;
}

/* --- Видео с объектов ---------------------------------------------------- */
/* Прокрутка родная, со scroll-snap: на телефоне это привычный свайп,
   а на десктопе к нему добавляются стрелки. Слайдер-библиотека не нужна. */
.vids {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.vids::-webkit-scrollbar { display: none; }

/* Ширина считается от контейнера, а не задаётся числом: четыре ролика
   должны вставать ровно в ряд, без обрезанного края у последнего.
   Пятый и дальше уезжают за границу — тогда лента и правда листается. */
.vid {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.vid__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.vid__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--dark);
}

/* Кнопку рисует JS поверх постера. Без скрипта её нет, и человек
   пользуется родными controls — они в разметке с самого начала. */
.vid__play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(22, 19, 13, .05), rgba(22, 19, 13, .45));
}

.vid__play span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-dk);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(22, 19, 13, .25);
  transition: transform .25s var(--ease), background .25s var(--ease);
}

@media (hover: hover) {
  .vid__play:hover span { transform: scale(1.08); background: #fff; }
}

.vid__play:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

.vid__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(22, 19, 13, .72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
}

.vid__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.vid__text {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.vids__nav { display: flex; gap: 10px; }

/* display: flex перебивает встроенное [hidden] { display: none },
   и скрипт не смог бы убрать стрелки, когда листать нечего. */
.vids__nav[hidden] { display: none; }

.vids__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}

@media (hover: hover) {
  .vids__arrow:hover { border-color: var(--brand); color: var(--brand-dk); }
}

.vids__arrow[disabled] { opacity: .35; cursor: default; }

/* --- Адаптив ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-magnet { animation: ctaPulse 2.6s ease-out infinite !important; }
  .cta-magnet::before,
  .logo__mark::after { animation: none !important; }
  /* Кольца и дрожь трубки — это движение, его убираем. Кнопка остаётся
     заметной за счёт цвета и тени: гасить её совсем нельзя, на телефоне
     это главный способ дозвониться. */
  .fab-call svg { animation: none !important; }
  .fab-call::before {
    animation: none !important;
    /* Кольцо остаётся, но неподвижное и чуть шире кнопки: прижатое к краю
       оно сливается с ней и кнопка выглядит просто оранжевым кругом. */
    transform: scale(1.28);
    opacity: .5;
  }
  .fab-call::after { display: none; }
  /* Ленты отзывов и тегов продолжают ехать: остановленная лента показывает
     лишь первые карточки, остальные становятся недоступны. */
  .js .rev { opacity: 1; transform: none; transition: none; }
  /* Подсветку оставляем, убираем только сдвиг */
  .stage:hover,
  .card--hover:hover,
  .card--dark:hover,
  .price:hover,
  .svc-card:hover { transform: none; }
  .stage, .stage__num, .card--hover, .card--dark, .price, .svc-card,
  .card__icon, .link-arrow { transition: none; }
}

/* Порог свёрнутого меню. Считается от фактической ширины шапки, замеренной
   в браузере: логотип 178 + меню 361 + телефон с кнопкой 323 + отступы = 966 px
   при четырёх пунктах («Услуги», «Наши работы», «О нас», «Отзывы»).
   Берём 1040 — запас на случай, если шрифты Inter и Manrope не загрузятся
   и подставится системный, он шире.

   Значение живёт вместе с составом меню: добавили пункт — замерьте заново,
   иначе ссылки полезут на телефон. Раньше здесь стояло 1260 под семь пунктов,
   и после их сокращения меню пряталось при половине пустого экрана. */
/* Иконки соцсетей уходят из шапки раньше самого меню: с ними строке нужно
   1134 px, без них — 966. Прятать заодно и текстовые пункты было бы жалко,
   а сами иконки никуда не деваются — они продублированы внутри бургера. */
@media (max-width: 1200px) {
  .socials--hdr { display: none; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stage-grid { grid-template-columns: repeat(3, 1fr); }
  .stage-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .other-grid, .other-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .port-grid { grid-template-columns: repeat(3, 1fr); }
  .vid { flex-basis: calc((100% - 40px) / 3); }
  .equip-grid { grid-template-columns: 1fr; gap: 36px; }
  .calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .geo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mbar { display: grid; }
  .fab-call { display: flex; }

  /* «Наверх» встаёт над кнопкой звонка, по одной оси с ней: центры совпадают
     (звонок 56 px при right: 16 → центр в 44; отсюда right: 22 при ширине 44).
     Отступ снизу взят с запасом на кольца — они расходятся до 28 px за край
     кнопки, и вплотную посаженная стрелка попадала бы прямо в них.

     Она меньше и нейтральная, а не фирменная оранжевая: рядом уже два ярких
     круга и оранжевая кнопка замера, и третий акцент забирал бы внимание
     у звонка. Появляется только после 600 px прокрутки — это делает JS. */
  .to-top {
    right: 22px;
    bottom: calc(156px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    background: var(--bg);
    color: var(--ink-2);
    border: 1px solid var(--line-2);
    box-shadow: 0 8px 20px -8px rgba(22, 19, 13, .3);
  }
  .to-top:hover,
  .to-top:active { background: var(--bg-alt); color: var(--ink); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .ba-wrap { grid-template-columns: 1fr; gap: 32px; }
  .guar-grid { grid-template-columns: 1fr; gap: 36px; }
  .lead-box { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-facts { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .trust__item + .trust__item { border-left: none; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .extra__list { grid-template-columns: repeat(2, 1fr); }
  .extra { padding: 26px 22px; }
  .txt-intro { columns: 1; }
  .txt-cols { grid-template-columns: 1fr; gap: 30px; }
  .calc-box { padding: 32px 24px; }
  /* Стрелки убираем: на сенсорном экране лента листается пальцем,
     а кнопки только съедают место в заголовке. */
  .vids__nav { display: none; }
  .vid { flex-basis: calc((100% - 20px) / 2); }
  h1, .h1 { font-size: 46px; }
  .cookie { padding-bottom: calc(16px + 68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .cmp-head { grid-template-columns: 1fr 1fr; }
  .cmp-head > div:first-child { display: none; }
  .cmp-head > div { padding: 16px 18px; font-size: 14px; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > div { padding: 10px 18px 16px; }
  .cmp-row > .cmp-p { grid-column: 1 / -1; padding: 16px 18px 2px; }
}

@media (max-width: 560px) {
  .nav__phone { display: none; }
  /* Логотип + кнопка + бургер перестают помещаться в строку, и бургер
     уезжает под обрезку .page (overflow-x: clip) — меню становится
     недоступным. Кнопку убираем: «Замер» продублирован в нижней панели,
     которая на этой ширине висит на экране постоянно. */
  .hdr-cta { display: none; }
  .grid-3, .price-grid, .grid-4, .port-grid, .other-grid, .post-grid, .case-grid { grid-template-columns: 1fr; }
  .extra__list { grid-template-columns: 1fr; }

  /* Карточки оборудования с текстом — в один столбец. В половине ширины
     телефона заголовок и абзац рвутся по слогам, а длинное слово вообще
     не помещалось. Карточки с фотографией остаются по две: там только
     снимок и подпись, им ширины хватает. */
  .equip__cards--text { grid-template-columns: 1fr; }
  .equip-card--icon { padding: 22px; }
  /* Названия брендов в 24 px на телефоне ложатся по два в строку и рвут
     ряд на части — уменьшаем кегль и просвет, чтобы читались одной группой. */
  .brands { gap: 18px; }
  .brands span { font-size: 19px; }

  /* Этапы — в один столбец. Сама раскладка «номер слева от названия» задана
     в базовых стилях, здесь только ширина колонок и кегль: на телефоне места
     больше, и текст можно не мельчить. */
  .stage-grid,
  .stage-grid--4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stage { column-gap: 14px; padding: 18px 20px; }
  .stage__num { font-size: 16px; }
  .stage__title { font-size: 17px; }
  .stage__text { font-size: 14px; }

  .card--hover { column-gap: 16px; padding: 24px; }
  .card--hover .card__title {
    /* Значок съедает 66 px ширины, и на 320 px длинному заголовку вроде
       «Фиброармирование» перестаёт хватать места: без этих двух строк
       карточка распирает сетку и правый край уезжает под обрезку. */
    min-width: 0;
    overflow-wrap: break-word;
  }
  .card--hover .card__text { margin-top: 12px; }
  .art-head h1 { font-size: 32px; }
  .rv-card { flex-basis: 280px; }
  /* Кадр вертикальный: во всю ширину экрана он занял бы полтора экрана
     по высоте. Оставляем край следующего ролика — так видно, что лента
     листается. */
  .vid { flex-basis: 68%; }
  .vids { gap: 14px; }
  .lead-pad { padding: 40px 24px; }
  .lead-form { padding: 36px 24px; }
  .calc__selects { grid-template-columns: 1fr; }
  .guar__cards { grid-template-columns: 1fr; }
  h1, .h1 { font-size: 38px; }
  h2, .h2 { font-size: 32px; }
  .h2--sm { font-size: 30px; }
  .guar__title, .lead__title { font-size: 32px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .sec--lg { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 380px) {
  /* 30, а не 34: «Механизированная» в 34 px требует 338 px при экране 320,
     и последние буквы уходили под обрезку .page (overflow-x: clip). Заметно
     только на узких телефонах вроде iPhone SE. */
  h1, .h1 { font-size: 30px; }

  /* На 320 px обе подписи в панели вместе занимают ровно всю ширину и упираются
     в края кнопок. Ужимаем шрифт и отступы: перенос строки здесь запрещён,
     и без этого запаса кнопки начали бы вылезать за экран. */
  .mbar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .mbar__item { font-size: 12.5px; gap: 6px; padding: 0 10px; }
  .mbar__cta { font-size: 13.5px; padding: 0 10px; }

  /* Заголовок карточки стоит рядом со значком, и на 320 px ему остаётся
     полторы сотни пикселей. «Фиброармирование» туда не влезало и рвалось
     посреди слова, поэтому ужимаем всё разом: поля карточки, значок и кегль. */
  .card--hover { padding: 18px; column-gap: 12px; }
  .card--hover .card__icon { width: 42px; height: 42px; border-radius: 12px; }
  .card--hover .card__title { font-size: 17px; }
}
