/* ── Fonts ─────────────────────────────────────────────────────────── */
/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --accent: #005BF4;
  --accent-hover: #004DCF;
  --bg-cream: #E3EAF4;
  --bg-dark: #1A1A1A;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9B948C;
  --border: #E5E7EB;
  --border-subtle: #DED8D0;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Onest', 'Inter', sans-serif;
  --font-heading: 'Onest', 'Inter', sans-serif;
  --section-space: 40px;
  --section-heading-gap: 32px;
  --motion-ease-out: cubic-bezier(0.2, 0.78, 0.24, 1);
  --motion-ease-standard: cubic-bezier(0.33, 0, 0.18, 1);
  --motion-reveal-duration: 1080ms;
  --motion-sheet-duration: 760ms;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-cream); line-height: 1.5; font-synthesis: none; }
a { text-decoration: none; color: inherit; }
input, button { font-family: inherit; }

/* ── Shared motion system ──────────────────────────────────────────── */
/* Scroll content remains visible when JavaScript is unavailable. The
   motion-ready class is only added after the reveal observer is active. */
.motion-ready [data-scroll-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity calc(var(--motion-reveal-duration) * 0.86) var(--motion-ease-standard),
    transform var(--motion-reveal-duration) var(--motion-ease-out);
}
.motion-ready [data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ── Images ─────────────────────────────────────────────────────────── */
/* Yandex Browser has no per-site opt-out for its image-search toolbar.
   Ignoring pointer hit-testing on <img> keeps that toolbar from appearing;
   links and gallery controls remain interactive through their containers. */
img {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* Photos rendered as CSS backgrounds need their own painted hit layer.
   The pseudo-element remains part of the parent, so cards and links still click. */
[style*="background-image"] {
  position: relative;
}
[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.001);
  pointer-events: auto;
}

/* Autoplay videos have no controls; ignore their poster frames as images too. */
video {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Page transition ───────────────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    visibility 0s linear 160ms;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.page-transition__logo {
  width: min(330px, 66vw);
  aspect-ratio: 4 / 1;
  background:
    linear-gradient(
      110deg,
      #005bf4 0%,
      #005bf4 34%,
      #4d91ff 44%,
      #dceaff 50%,
      #2b7cff 57%,
      #005bf4 70%,
      #005bf4 100%
    );
  background-size: 240% 100%;
  -webkit-mask: url('assets/logo.png') center / contain no-repeat;
  mask: url('assets/logo.png') center / contain no-repeat;
  opacity: 0;
  transform: translateY(5px) scale(0.985);
}

.page-transition.is-active .page-transition__logo {
  animation:
    page-transition-logo-in 180ms ease-out 70ms forwards,
    page-transition-shimmer 1400ms ease-in-out 40ms 1 both;
}

@keyframes page-transition-logo-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes page-transition-shimmer {
  from { background-position: 120% 50%; }
  to { background-position: -120% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    transition: none;
  }

  .page-transition.is-active .page-transition__logo {
    animation: none;
    opacity: 1;
    transform: none;
    background: #005bf4;
  }
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.section-cream { background: var(--bg-cream); padding: var(--section-space) 0; }
.section-title { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.section-heading { margin-bottom: var(--section-heading-gap); }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--section-heading-gap); }
.badge { display: inline-block; padding: 6px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.badge--orange { background: #EEF3FF; color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn--orange { background: var(--accent); color: #fff; }
.btn--orange:hover { background: var(--accent-hover); }
.btn-label-short { display: none; }
.btn--dark { background: var(--bg-dark); color: #fff; }
.btn--dark:hover { opacity: 0.85; }
.btn--lg { padding: 13px 30px; font-size: 15px; border-radius: 100px; font-weight: 600; }
.btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn--outline-white { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 14px 28px; font-size: 15px; }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }
.btn--outline-white-sm { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 12px; padding: 12px 24px; font-size: 14px; }
.btn--outline-sm { background: transparent; border: 1px solid var(--bg-dark); padding: 10px 22px; border-radius: 100px; font-size: 13px; }
.btn--pill { border-radius: 100px; }
.btn--full { width: 100%; height: 60px; font-size: 16px; font-weight: 600; }

/* Shared action used in section headings. On desktop it keeps a text label;
   the mobile treatment is defined in responsive-home.css. */
.section-header-action__icon { flex: 0 0 auto; }


/* ── Hero: bento layout ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 700px;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0 0;
  padding-bottom: var(--section-space);
  background: #172033;
}
.hero__backdrop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.hero__glow--one {
  top: -240px;
  right: 12%;
  background: radial-gradient(circle, rgba(20,101,252,.16), transparent 68%);
}
.hero__glow--two {
  left: -220px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(255,255,255,.95), transparent 68%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  gap: 14px;
  --hero-pad-x: clamp(40px, 5vw, 76px);
  --hero-pad-y: clamp(40px, 5vw, 76px);
}
.hero__left,
.hero__benefit {
  border: 1px solid rgba(255,255,255,.42);
}
.hero__left {
  min-height: min(620px, calc(100svh - 132px));
  padding: var(--hero-pad-y) var(--hero-pad-x);
  border-radius: 34px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-16px);
}
.hero__right {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  /* keeps the benefit cards' bottom edge level with the proof row's bottom edge on the left */
  padding-bottom: var(--hero-pad-y);
}
.hero__location-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  color: rgba(255,255,255,.92);
  background: transparent;
  border: 1px solid rgba(255,255,255,.38);
  font-size: 12px;
  font-weight: 700;
}
.hero__location-badge svg { stroke: currentColor; }
.hero__headline {
  max-width: 760px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.1vw, 74px);
  font-weight: 800;
  color: #fff;
  line-height: .99;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 22px rgba(0,0,0,.35);
}
.hero__headline span { color: #fff; }
.hero__subtitle {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255,255,255,.86);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.42);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero .btn--lg {
  min-height: 52px;
  padding: 14px 24px;
  box-shadow: 0 12px 28px rgba(20,101,252,.22);
}
.btn--outline-hero {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 100px;
  color: #273248;
  border: 1px solid #cbd5e3;
  background: rgba(255,255,255,.58);
  font-size: 15px;
  font-weight: 650;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn--outline-hero:hover {
  background: #fff;
  border-color: #aab7ca;
  transform: translateY(-1px);
}
.hero__free-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 500;
}
.hero__free-note svg { stroke: #16a34a; flex-shrink: 0; }
.hero__free-note strong { color: #4ade80; font-weight: 700; }
.hero__proof {
  width: 100%;
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.42);
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero__reviews { display: flex; flex-direction: column; gap: 7px; }
.hero__stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}
.hero__review-text { color: rgba(255,255,255,.72); font-size: 13px; }
.hero__review-text strong { color: #fff; font-weight: 800; }
.hero__proof-separator { width: 1px; height: 38px; background: rgba(255,255,255,.42); }
.hero__proof-item { display: flex; flex-direction: column; gap: 3px; }
.hero__proof-value { color: #fff; font-size: 16px; font-weight: 800; }
.hero__proof-label { color: rgba(255,255,255,.72); font-size: 13px; }
.hero a:focus-visible {
  outline: 3px solid rgba(20,101,252,.32);
  outline-offset: 3px;
}
.hero__benefits {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero__benefit {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px;
  border-radius: 26px;
  background: var(--accent);
  transition: transform .2s, box-shadow .2s;
}
.hero__benefit:hover { transform: translateY(-2px); }
.hero__benefit svg { stroke: rgba(255,255,255,.82); flex-shrink: 0; margin-bottom: auto; }
.hero__benefit-val {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}
.hero__benefit-lbl { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 500; line-height: 1.3; }
.hero__benefit--accent {
  grid-column: auto;
  background: var(--accent);
  border-color: rgba(255,255,255,.42);
}
.hero__benefit--accent svg { stroke: rgba(255,255,255,.86); }
.hero__benefit--accent .hero__benefit-val { color: #fff; }
.hero__benefit--accent .hero__benefit-lbl { color: rgba(255,255,255,.7); }

/* Nav */
.nav-wrap {
  position: absolute; top: 24px; left: 32px; right: 32px;
  display: flex; align-items: center; gap: 16px; z-index: 10;
}
.nav-logo {
  background: #EEEEEE; border-radius: 20px; height: 54px; width: 262px;
  display: flex; align-items: center; padding: 0 32px;
  font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text-primary);
}
.navbar {
  flex: 1; background: #EEEEEE; border-radius: 20px; height: 54px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-size: 14px; font-weight: 500; }

/* Stats bar */
.hero__stats {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(20,101,252,0.4);
  display: flex; gap: 36px; align-items: center; padding: 0 32px; height: 44px;
  white-space: nowrap; z-index: 2;
}
.stat-item { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 13px; font-weight: 500; }
.stat-item svg { stroke: rgba(255,255,255,0.85) !important; }

/* ── Categories ─────────────────────────────────────────────────────── */
.categories { padding: var(--section-space) 0; }
.categories-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.categories__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--section-heading-gap); }
.tabs { display: flex; background: #E8E8E8; border-radius: 14px; padding: 4px; gap: 0; }
.tab { padding: 14px 48px; border-radius: 12px; border: none; font-size: 16px; font-weight: 500; cursor: pointer; background: transparent; color: #999; transition: all 0.2s; }
.tab--active { background: var(--accent); color: #fff; font-weight: 700; }

/* Repair bento: 2 rows of 2 cards each */
.repair-bento { display: flex; flex-direction: column; gap: 24px; }
.repair-row { display: flex; gap: 24px; }

/* Each repair card */
.rc {
  display: flex; flex: 1; min-width: 0;
  background: #fff; border-radius: 20px; border: 1px solid #F0F0F0;
  overflow: hidden; height: 320px;
}
.rc__left {
  flex: 1; min-width: 0;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.rc__top { display: flex; flex-direction: column; gap: 8px; }
.rc__badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  align-self: flex-start;
}
.rc__badge--hit { background: #F97316; }
.rc__badge--top { background: #111; }
.rc__badge--premium { background: #111; }
.rc__title { font-size: 20px; font-weight: 700; color: #111; margin: 0; }
.rc__desc { font-size: 13px; color: #666; line-height: 1.4; margin: 0; }
.rc__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rc__bullets li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; }
.rc__dot { width: 6px; height: 6px; border-radius: 1px; background: var(--accent); flex-shrink: 0; }
.rc__bullet-bonus { color: var(--accent); font-weight: 600; margin-top: 3px; }
.rc__bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 14px; border-top: 1px solid #F0F0F0;
}
.rc__price { font-size: 16px; font-weight: 700; color: var(--accent); }
.rc__more {
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
  min-height: 44px; border-radius: 100px; padding: 7px 16px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s; white-space: nowrap; font-family: inherit;
}
.rc__more:hover { background: var(--accent); color: #fff; }
.rc__photo {
  width: 300px;
  flex-shrink: 0;
  align-self: stretch;
  background-size: auto var(--rc-photo-size, 100%);
  background-position-x: right 12px;
  background-position-y: var(--rc-photo-position-y, 50%);
  background-repeat: no-repeat;
}

/* The renders have different transparent margins around the visible model.
   Fit each model by its opaque content and keep a small safety margin. */
.rc__photo--rough { --rc-photo-size: 123.1%; --rc-photo-position-y: 62.2%; }
.rc__photo--cosmetic { --rc-photo-size: 123.3%; --rc-photo-position-y: 55.1%; }
.rc__photo--capital { --rc-photo-size: 116.3%; --rc-photo-position-y: 58.2%; }
.rc__photo--turnkey { --rc-photo-size: 118.1%; --rc-photo-position-y: 67.4%; }

/* ── Installment Banner ─────────────────────────────────────────────── */
.installment {
  background: #005BF4; display: flex; align-items: stretch;
  padding: 32px 80px 0; gap: 80px; min-height: 0;
  margin-block: var(--section-space);
}
.installment__left { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-bottom: 32px; }
.installment__heading { font-size: 44px; font-weight: 700; color: #fff; line-height: 1.15; }
.installment__heading-line { white-space: nowrap; }
.installment__sub { font-size: 18px; color: rgba(255,255,255,0.85); }
.pills-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { background: rgba(255,255,255,0.2); color: #fff; border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.installment__actions { display: flex; align-items: center; gap: 32px; }
.bank-partners { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); font-size: 14px; }
.bank-name { font-weight: 600; color: #fff; }
.bank-sep { opacity: 0.5; }
.installment__image {
  width: 580px; flex-shrink: 0;
  overflow: visible; position: relative; align-self: flex-end;
}
.installment__video {
  width: 100%; height: auto; display: block; background: transparent;
}

@media (min-width: 1101px) {
  .installment__video {
    transform: scale(1.08);
    transform-origin: right bottom;
  }
}

/* ── Promotions ─────────────────────────────────────────────────────── */
.promo-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 20px; align-items: stretch; }
.promo-col { display: flex; flex-direction: column; gap: 20px; height: 560px; }
.promo-card { position: relative; border-radius: 25px; overflow: hidden; }
.promo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-card--large { height: 560px; }
.promo-col .promo-card:first-child { flex: 3; }
.promo-col .promo-card:last-child { flex: 2; }
.promo-card__badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--accent); color: #fff; border-radius: 100px;
  padding: 6px 16px; font-size: 18px; font-weight: 700;
}
.promo-card__label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff; font-size: 16px; font-weight: 600;
}

/* ── Promo banner cards (blue) ───────────────────────────────────────── */
.promo-banner {
  background: #005BF4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px 44px 0;
  overflow: hidden;
}
.promo-banner__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 48%;
  position: relative;
  z-index: 1;
}
.promo-banner__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.promo-banner__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.promo-banner .promo-banner__img {
  position: absolute;
  right: -10px;
  bottom: -10px;
  height: 120%;
  width: 62%;
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
}
/* Shorter card — anchor to top so objects aren't clipped */
.promo-col .promo-card:last-child .promo-banner__img {
  top: -10px;
  bottom: auto;
  height: 110%;
  width: 58%;
}
/* Video same as img */
video.promo-banner__img {
  position: absolute;
  right: -10px;
  bottom: -10px;
  height: 120%;
  width: auto;
  max-width: 62%;
  background: transparent;
}
.promo-banner--installment .promo-banner__img {
  top: auto;
  bottom: 0;
  object-position: right bottom;
}
@media (min-width: 769px) {
  .promo-banner--installment .promo-banner__img {
    bottom: -4px;
  }
}
/* Large right card */
.promo-banner--large {
  padding: 26px 32px 0;
}
.promo-banner__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-banner__alpha-video {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  transform: translateY(64px) scale(1.18);
  transform-origin: center bottom;
}
.promo-motion-fallback,
.promo-motion-static {
  display: none !important;
}
.promo-motion-video { mix-blend-mode: normal; }
.promo-motion-video.is-unavailable { display: none !important; }
.promo-motion-video.is-unavailable + .promo-motion-fallback { display: block !important; }
html.is-apple-webkit .promo-motion-video,
html.is-firefox .promo-motion-video { display: none !important; }
html.is-apple-webkit .promo-motion-fallback,
html.is-firefox .promo-motion-fallback { display: block !important; }
html.is-apple-webkit .promo-motion-static { display: none !important; }
html.is-apple-webkit .promo-motion-video.is-unavailable { display: none !important; }
html.is-apple-webkit .promo-motion-video.is-unavailable + .promo-motion-fallback { display: block !important; }
.promo-banner--large::after {
  display: none;
}
.promo-banner__body--overlay {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo-banner__big-num {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
}
.promo-banner__big-num--text {
  max-width: 260px;
  font-size: 36px;
  line-height: 1.08;
  text-wrap: balance;
}
.promo-banner__big-text {
  max-width: 280px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  line-height: 1.45;
}
.promo-banner--measurement {
  padding: 26px 32px 0;
}
.promo-banner--measurement .promo-banner__body {
  gap: 10px;
  max-width: 55%;
}
.promo-banner--measurement .promo-banner__title {
  font-size: 36px;
  line-height: 1.08;
}
.promo-banner--measurement .promo-banner__sub {
  font-size: 13px;
  line-height: 1.4;
}

/* ── Calculator ─────────────────────────────────────────────────────── */
.calculator { padding: var(--section-space) 0; }
.calc-wrap {
  max-width: 1437px; margin: 0 auto; padding: 0 40px;
  display: flex; gap: 23px; align-items: stretch;
}
.calculator__heading { margin-bottom: var(--section-heading-gap); }

.calc-form {
  background: #fff; border-radius: 40px;
  padding: 40px 32px; width: 657px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 680px;
}
.calc-header { display: flex; flex-direction: column; gap: 14px; }
.calc-badge { background: #EEF3FF; color: var(--accent); border-radius: 100px; padding: 6px 14px; font-size: 11px; font-weight: 700; align-self: flex-start; }
.calc-title { font-size: 26px; font-weight: 700; line-height: 1.3; }
.calc-progress { display: flex; align-items: center; gap: 8px; }
.calc-step { display: flex; align-items: center; gap: 8px; }
.step-circle {
  width: 28px; height: 28px; border-radius: 14px; background: #F0F0F0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #AAA; flex-shrink: 0;
}
.step-circle--active { background: var(--accent); color: #fff; }
.step-label { font-size: 12px; color: #AAA; }
.calc-step--active .step-label { color: var(--text-primary); font-weight: 500; }

.calc-step-card { display: flex; flex-direction: column; flex: 1; }
.calc-divider { border: none; border-top: 1px solid #F0F0F0; margin: 0; }
.calc-content { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.calc-subtitle { font-size: 14px; color: #666; }
.calc-subtitle--blue { color: var(--accent); }

.room-row { display: flex; gap: 12px; }
.room-card {
  flex: 1; border-radius: 12px; border: 1px solid #E5E5E5;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: border-color 0.15s;
}
.room-card input { display: none; }
.room-card--active, .room-card:has(input:checked) { border: 2px solid var(--accent); }
.room-card__photo { height: 120px; background-size: cover; background-position: center; }
.room-card__label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff;
}
.room-card__title { font-size: 14px; font-weight: 700; color: #111; }
.room-card__check {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #CCC;
  flex-shrink: 0; background: #fff; transition: all 0.15s; position: relative;
}
.room-card--active .room-card__check,
.room-card:has(input:checked) .room-card__check {
  background-color: var(--accent); border-color: var(--accent);
}
.room-card--active .room-card__check::after,
.room-card:has(input:checked) .room-card__check::after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* Button row: back (circle) + next */
.calc-btn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 0 26px 16px;
}
.calc-back-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: #F0F0F0; border: 1.5px solid #E0E0E0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #666; transition: background 0.15s, color 0.15s;
}
.calc-back-btn:hover { background: #E2E2E2; color: #111; }
.calc-next-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 52px); margin: 0 26px 16px; min-height: 44px;
  border-radius: 12px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  transition: background 0.15s;
}
.calc-next-btn:hover { background: var(--accent-hover); }
.calc-btn-row .calc-next-btn { flex: 1; width: auto; margin: 0; }

/* Step 2 — area + repair type */
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.area-input-wrap {
  display: flex; align-items: center; justify-content: space-between;
  background: #F4F4F4; border-radius: 12px; padding: 16px 20px;
  transition: box-shadow 0.15s;
}
.area-input-wrap:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.area-input {
  border: none; background: transparent; font-size: 16px; color: #AAA;
  outline: none; flex: 1; font-family: inherit;
}
.area-input:focus-visible { outline: none; }
.area-input:not(:placeholder-shown) { color: #111; }
.area-unit { font-size: 16px; font-weight: 700; color: #666; }
.area-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.area-chip {
  padding: 10px 18px; border-radius: 20px; background: #F0F0F0;
  border: none; font-size: 13px; color: #555; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.area-chip:hover, .area-chip--active { background: #1A1A1A; color: #fff; }

.repair-options { display: flex; flex-direction: column; gap: 10px; }
.repair-option {
  display: flex; align-items: center; gap: 14px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid #E5E5E5; background: #fff;
  cursor: pointer; transition: all 0.15s;
}
.repair-option input { display: none; }
.repair-option--active, .repair-option:has(input:checked) { background: #EEF3FF; border: 2px solid var(--accent); }
.repair-option__text { display: flex; flex-direction: column; gap: 3px; }
.repair-option__name { font-size: 15px; font-weight: 700; color: #111; }
.repair-option__price { font-size: 13px; color: #888; }

/* Step 3 — slider + checkboxes + cost */
.slider-label-row { display: flex; align-items: center; justify-content: space-between; }
.slider-value-badge { background: #EEF3FF; color: var(--accent); border-radius: 100px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.timeline-slider {
  width: 100%; height: 6px; border-radius: 3px; outline: none; border: none;
  appearance: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 25%, #E5E5E5 25%);
}
.timeline-slider::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent); cursor: pointer;
}
.slider-scale { display: flex; justify-content: space-between; margin-top: 4px; }
.slider-scale span { font-size: 11px; color: #AAA; }

.calc-checkbox {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 2px 0;
}
.cb-box {
  width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #D0D0D0;
  flex-shrink: 0; background: #fff; transition: all 0.15s; position: relative;
}
.cb-box--checked {
  background-color: var(--accent); border-color: var(--accent);
}
.cb-box--checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.calc-checkbox span:last-child { font-size: 14px; color: #111; }
.cb-text-group { display: flex; flex-direction: column; gap: 1px; }
.cb-text-group span:first-child { font-size: 14px; color: #111; }
.cb-free { font-size: 12px; font-weight: 700; color: var(--accent); }

.cost-estimate {
  display: flex; align-items: center;
  background: #F8F8F8; border-radius: 12px; padding: 16px 20px;
}
.cost-estimate__label { font-size: 12px; color: #888; margin-bottom: 4px; }
.cost-estimate__value { font-size: 18px; font-weight: 700; color: #111; }

.calc-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 48px); margin: 0 24px 8px; height: 56px;
  border-radius: 14px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  transition: background 0.2s;
}
.calc-cta-btn:hover { background: var(--accent-hover); }
.calc-btn-row .calc-cta-btn { flex: 1; width: auto; margin: 0; height: 52px; border-radius: 12px; }
.calc-cta-btn__inner { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.calc-cta-btn__title { font-size: 15px; font-weight: 700; line-height: 1; }
.calc-cta-btn__sub { font-size: 11px; font-weight: 400; opacity: 0.85; line-height: 1; }
.calc-cta-btn__sub b { font-weight: 700; }
.calc-privacy { text-align: center; font-size: 12px; color: #AAA; padding: 0 24px 16px; }

/* Back button */
.calc-back-link {
  background: none; border: none; color: #BBB; font-size: 13px; font-weight: 500;
  cursor: pointer; padding: 10px 24px 0; font-family: inherit;
  display: flex; align-items: center; gap: 5px; align-self: flex-start;
  transition: color 0.15s;
}
.calc-back-link:hover { color: #333; }

/* Calculated timeline — clean bold typography */
.timeline-info { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px; }
.timeline-info__row { display: flex; align-items: baseline; gap: 10px; }
.timeline-info__num {
  font-size: 60px; font-weight: 800; line-height: 1; color: var(--accent);
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.timeline-info__unit { font-size: 24px; font-weight: 600; color: #1A1A1A; }
.timeline-info__note { font-size: 12px; color: #AAA; line-height: 1.4; }

/* Step 4 — summary + contact form */
.calc-summary { display: flex; flex-direction: column; gap: 8px; }
.calc-summary__label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.8px; }
.calc-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-summary-item {
  background: #F8F7F5; border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.calc-summary-item--full { grid-column: 1 / -1; }
.calc-summary-item__label { font-size: 11px; color: #999; }
.calc-summary-item__value { font-size: 14px; font-weight: 600; color: #111; }
.calc-cost-highlight {
  background: #fff;
  border-radius: 16px; padding: 18px 22px; margin-top: 2px;
  border: 1.5px solid #E5E7EB;
  border-left: 4px solid var(--accent);
  display: flex; justify-content: space-between; align-items: center;
}
.calc-cost-highlight__label { font-size: 12px; color: #999; margin-bottom: 4px; }
.calc-cost-highlight__value { font-size: 22px; font-weight: 800; color: var(--accent); }
.calc-contact-section { display: flex; flex-direction: column; gap: 10px; }
.calc-contact-section__title { font-size: 13px; font-weight: 500; color: #666; line-height: 1.45; }
.calc-input-sm {
  background: #F4F4F2; border: 1.5px solid transparent; border-radius: 12px;
  height: 48px; padding: 0 18px; font-size: 15px; outline: none;
  width: 100%; font-family: inherit; transition: border-color 0.15s; box-sizing: border-box;
}
.calc-input-sm:focus { border-color: var(--accent); }
.calc-input-sm.calc-input--error { border-color: #EF4444; background: #FFF5F5; }
.calc-phone-wrap {
  display: flex; align-items: center; background: #F4F4F2;
  border-radius: 12px; height: 48px; border: 1.5px solid transparent;
  transition: border-color 0.15s; overflow: hidden;
}
.calc-phone-wrap:focus-within { border-color: var(--accent); }
.calc-phone-wrap.calc-input--error { border-color: #EF4444; background: #FFF5F5; }
.calc-phone-flag {
  padding: 0 14px 0 18px; font-size: 14px; color: #555; white-space: nowrap;
  border-right: 1.5px solid #E5E5E5; flex-shrink: 0;
}
.calc-phone-input {
  flex: 1; border: none; background: transparent; font-size: 15px;
  outline: none; padding: 0 16px; font-family: inherit; color: #111;
}
/* Step 4 — success screen */
.calc-step-card--success {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  min-height: max(380px, var(--calc-success-min-height, 380px));
  background: linear-gradient(145deg, #0b6cff 0%, #005bf4 58%, #004ed8 100%);
}
.calc-step-card--success::before {
  content: none;
}
.calc-step-card--success::after {
  content: none;
}
.calc-success {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: inherit; padding: 52px 40px 58px;
  text-align: center; color: #fff; outline: none;
}
.calc-success__logo {
  display: block;
  width: 174px; height: auto;
  margin: 0 0 34px;
  opacity: 0;
  transform: translateY(10px);
  animation: calc-success-copy .42s ease-out .22s forwards;
}
.calc-success__icon {
  position: relative;
  width: 88px; height: 88px; flex-shrink: 0;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(16px) scale(.72);
  animation: calc-success-icon .5s cubic-bezier(.18, .89, .32, 1.28) .34s forwards;
}
.calc-success__icon svg {
  position: relative; z-index: 2;
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 16px 28px rgba(0, 34, 107, .22));
}
.calc-success__check {
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: calc-success-check .42s cubic-bezier(.65, 0, .35, 1) .67s forwards;
}
.calc-success__copy {
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transform: translateY(14px);
  animation: calc-success-copy .42s ease-out .56s forwards;
}
.calc-success__eyebrow {
  margin: 0 0 10px;
  font-size: 11px; line-height: 1; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.calc-success__title {
  margin: 0;
  font-size: clamp(27px, 4vw, 34px); line-height: 1.08; font-weight: 800;
  color: #fff; letter-spacing: -.5px;
}
.calc-success__text {
  max-width: 360px; margin: 14px 0 0;
  font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.9);
}
.calc-success__note {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin-top: 26px; padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.calc-success__back {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; margin-top: 12px; padding: 9px 14px;
  border: 0; border-radius: 10px; background: transparent;
  color: rgba(255,255,255,.9); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.calc-success__back:hover { background: rgba(255,255,255,.1); color: #fff; }
.calc-success__back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@keyframes calc-success-icon {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes calc-success-check {
  to { stroke-dashoffset: 0; }
}
@keyframes calc-success-copy {
  to { opacity: 1; transform: translateY(0); }
}

/* Right promo panel */
.calc-promo {
  flex: 1; border-radius: 40px; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  position: relative;
}
.calc-promo--photo-only {
  background-size: cover; background-position: center;
}
.calc-promo__inner { padding: 48px 48px 20px; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.calc-promo__label { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.calc-promo__heading { font-size: 32px; font-weight: 700; color: #111; line-height: 1.2; }
.calc-promo__desc { font-size: 15px; color: #666; line-height: 1.6; }
.calc-promo__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.calc-promo__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; font-weight: 500; }
.calc-promo__image { position: relative; z-index: 2; margin-top: -140px; height: 180px; }
.calc-promo__image img { width: 110%; margin-left: 10%; height: auto; display: block; }

/* ── Portfolio ──────────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 16px; height: 480px;
}
.portfolio-grid--row2 {
  grid-template-columns: repeat(3, 1fr); height: 340px; margin-top: 16px;
}
.port-featured { display: flex; }
.port-stack { display: flex; flex-direction: column; gap: 16px; }
.port-stack .port-card { flex: 1; }
.port-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background-size: cover; background-position: center; width: 100%; height: 100%;
  display: flex; align-items: flex-end;
  cursor: pointer; text-decoration: none;
}
.port-card--tall { height: 100%; width: 100%; }
.port-overlay {
  width: 100%; padding: 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.port-arrow {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: #005BF4;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.port-arrow::after {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, 1px);
}
.port-arrow:hover { background: #004DCF; transform: scale(1.1); }
.port-tag { display: inline-block; background: #005BF4; color: #fff; border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.port-title { font-size: 18px; font-weight: 700; color: #fff; }
.port-meta { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ── Why Us / Guarantee Bento Grid ──────────────────────────────────── */
.gb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Base card ── */
.gb-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 230px;
}

/* Row 1: Card 1 spans 2 cols */
.gb-card--wide { grid-column: span 2; min-height: 255px; }

/* ── Палитра сайта ── */
.gb-card--dark   { background: #1A1A1A; }              /* нейтральный тёмный (как bg-dark сайта) */
.gb-card--orange { background: var(--accent); }        /* #005BF4 — акцент сайта */
.gb-card--light  { background: #ffffff; box-shadow: inset 0 0 0 1px #dde5f5; }
.gb-card--gray   { background: #EEF3FF; }              /* светло-голубой */

/* ── Текст ── */
.gb-card__text {
  flex: 0 0 54%;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* текст сверху */
  padding-top: 36px;
  gap: 14px;
}
/* Узкие карточки */
.gb-card:not(.gb-card--wide) .gb-card__text {
  flex: 0 0 48%;
  padding: 22px 20px;
  gap: 9px;
}

/* ── Фото ── */
.gb-card__img {
  flex: 1;
  position: relative;
}
.gb-card:not(.gb-card--wide) .gb-card__img {
  flex: 0 0 55%;
}
.gb-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
/* Широкая карточка: фото чуть крупнее карточки снизу */
.gb-card--wide .gb-card__img img {
  height: 112%;
  top: auto;
  bottom: 0;
}
/* Узкие карточки: scale + сдвиг вправо, overflow карточки обрезает лишнее */
.gb-card:not(.gb-card--wide) .gb-card__img img {
  transform: scale(1.65) translateX(8%);
  transform-origin: right bottom;
}
/* Карточка "Только штатные специалисты" — фото шире + правее */
.gb-card--light:not(.gb-card--wide) .gb-card__img {
  flex: 0 0 56%;
}
.gb-card--light:not(.gb-card--wide) .gb-card__img img {
  transform: scale(1.65) translateX(15%);
  transform-origin: right bottom;
}
/* Карточка "Независимый технадзор" — фото правее */
.gb-card--gray:not(.gb-card--wide) .gb-card__img img {
  transform: scale(1.65) translateX(15%);
  transform-origin: right bottom;
}
/* Карточка "Гарантия до 5 лет" — фото крупнее */
.gb-card--orange:not(.gb-card--wide) .gb-card__img {
  flex: 0 0 58%;
}
.gb-card--orange:not(.gb-card--wide) .gb-card__img img {
  transform: scale(1.6) translateX(8%);
  transform-origin: right bottom;
}

/* ── Заголовки ── */
.gb-card__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.gb-card:not(.gb-card--wide) .gb-card__title { font-size: 18px; }
.gb-card__title--dark { color: #111; }

.gb-title-xl {
  display: block;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* ── Сравнение горизонтальное (широкая карточка) ── */
.gb-compare { display: flex; align-items: flex-start; }
.gb-col { flex: 1 1 0; }

/* Сравнение вертикальное (узкие) */
.gb-compare--stack { flex-direction: column; gap: 9px; }

/* Метки У нас / У конкурентов */
.gb-col__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  margin: 0 0 7px;
  padding-bottom: 4px;
  display: inline-block;
  color: rgba(255,255,255,0.9);
  border-bottom: 1.5px solid rgba(255,255,255,0.35);
}
.gb-col__label--them {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.3);
}
/* Светлые карточки */
.gb-col__label--blue { color: var(--accent); border-color: var(--accent); }
.gb-col__label--gray { color: #555; border-color: #999; }

/* Вертикальный разделитель */
.gb-divider {
  width: 1px;
  background: rgba(255,255,255,0.18);
  margin: 0 18px;
  align-self: stretch;
  min-height: 60px;
}

/* ── Списки ── */
.gb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gb-list li {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gb-list--dark li { color: #1a1a2e; }
.gb-list--gray li { color: #666; }

/* Иконка галочка — на тёмных/синих карточках */
.gb-list--check li::before {
  content: '';
  display: inline-flex;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center/9px 7px;
}
/* Галочка на светлых карточках — синий круг */
.gb-list--dark.gb-list--check li::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center/9px 7px;
}

/* Иконка крестик — тёмные/синие карточки */
.gb-list--cross li { color: rgba(255,255,255,0.6); }
.gb-list--cross li::before {
  content: '';
  display: inline-flex;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='rgba(255,255,255,0.75)' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center/8px 8px;
}
/* Крестик на светлых карточках */
.gb-list--gray.gb-list--cross li { color: #777; }
.gb-list--gray.gb-list--cross li::before {
  background: #d0d8ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%23888' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center/8px 8px;
}

/* ── About / Bento ──────────────────────────────────────────────────── */
.about-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: var(--section-heading-gap); }
.about-header__left { display: flex; flex-direction: column; gap: 10px; }
.about-header__cta { display: none; }
.bento-about { display: grid; grid-template-columns: 1fr 240px; gap: 20px; height: 320px; margin-bottom: 20px; }
.bento-feature {
  background: var(--bg-dark); border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.bento-feature__heading { font-size: 30px; font-weight: 700; line-height: 1.2; }
.bento-feature__sub { font-size: 14px; color: #999; line-height: 1.6; margin-top: 16px; flex: 1; }
.bento-feature__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.bento-stats { display: flex; gap: 28px; }
.bento-stat { display: flex; flex-direction: column; }
.bento-stat__num { font-size: 48px; font-weight: 800; line-height: 1; }
.bento-stat__label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.bento-col { display: flex; flex-direction: column; gap: 20px; }
.bento-tile { border-radius: 20px; flex: 1; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.bento-tile--orange { background: var(--accent); }
.bento-tile--dark { background: #1A1A1A; }
.bento-tile__num { font-size: 64px; font-weight: 800; color: #fff; line-height: 1; }
.bento-tile__label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); }
.bento-row2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; height: 200px; }
.bento-team {
  background: #F4F4F4; border-radius: 20px; padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.team-avatars { display: flex; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #C8C8C8;
  border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; margin-left: -10px;
}
.team-avatars .avatar:first-child { margin-left: 0; }
.avatar--photo { background-size: cover; background-position: center top; background-color: #e0e0e0; }
.team-stat { display: flex; flex-direction: column; gap: 4px; }
.team-stat__num { font-size: 40px; font-weight: 700; line-height: 1; }
.team-stat__label { font-size: 13px; color: #666; }
.bento-photo { border-radius: 20px; background-size: cover; background-position: top center; }
.bento-quote {
  background: #fff; border-radius: 20px; border: 1px solid #F0F0F0;
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.quote-mark { font-size: 32px; color: var(--accent); line-height: 0.9; }
.quote-text { font-size: 14px; color: #333; line-height: 1.6; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 8px; }
.quote-avatar { width: 32px; height: 32px; border-radius: 50%; background: #E8E8E8; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.quote-avatar--initials {
  color: #fff;
  background: var(--accent);
  letter-spacing: .02em;
}
.quote-name { font-size: 12px; color: #888; }

/* ── Reviews ─────────────────────────────────────────────────────────── */
.reviews-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--section-heading-gap); }
.reviews-label { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.reviews-controls { display: flex; align-items: center; gap: 12px; }
.reviews-count { background: #F4F4F4; border-radius: 100px; padding: 6px 16px; font-size: 13px; }
.ctrl-btn { width: 40px; height: 40px; border-radius: 20px; border: none; background: #F0F0F0; cursor: pointer; font-size: 16px; }
.ctrl-btn--active { background: var(--bg-dark); color: #fff; }
.reviews-carousel { overflow: hidden; }
.reviews-grid { display: flex; transition: transform 0.5s ease; }
.reviews-slide { flex: 0 0 100%; display: flex; gap: 20px; }
.review-card { flex: 1; min-width: 0; background: #fff; border-radius: 20px; border: 1px solid #F0F0F0; padding: 28px; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; box-sizing: border-box; }
.review-top { display: flex; flex-direction: column; gap: 12px; }
.review-stars { display: flex; align-items: center; gap: 3px; }
.nut-icon { display: inline-block; width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.93 5.94 6.56.96-4.75 4.63 1.12 6.53L12 17.47l-5.86 3.09 1.12-6.53L2.51 9.4l6.56-.96L12 2.5z' fill='%23005BF4'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.review-text { font-size: 14px; color: #444; line-height: 1.6; }
.review-card hr { border: none; border-top: 1px solid #F0F0F0; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-av { width: 40px; height: 40px; border-radius: 50%; background: #E0E0E0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: #999; }
.review-source { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; white-space: nowrap; background: #EEF3FF; color: var(--accent); letter-spacing: 0.5px; }
.review-source img { width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; object-fit: contain; }
.reviews-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: #E0E0E0; transition: width 0.3s ease, background 0.3s ease; }
.dot--active { width: 24px; background: var(--bg-dark); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border-radius: 12px; border: 1px solid #E5E5E5; overflow: hidden;
}
.faq-item--open { border-left: 4px solid var(--accent); border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.faq-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; cursor: pointer; gap: 16px; }
.faq-q { font-size: 18px; font-weight: 700; flex: 1; }
.faq-chevron { flex-shrink: 0; transition: transform 0.3s; }
.faq-item--open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 24px 24px; font-size: 15px; color: #666; line-height: 1.6; }

/* ── Contacts ────────────────────────────────────────────────────────── */
.contacts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts-heading { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: var(--section-heading-gap); }
.contacts-person { display: flex; align-items: center; gap: 28px; }
.contacts-avatar { width: 120px; height: 120px; border-radius: 60px; flex-shrink: 0; background-size: cover; background-position: center; }
.contacts-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.contacts-role { font-size: 14px; color: #666; margin-bottom: 4px; }
.contacts-exp { font-size: 13px; color: #999; }
.contacts-form { display: flex; flex-direction: column; gap: 20px; }
.form-top-bar { display: flex; justify-content: flex-end; }
.form-input { background: #ffffff; border: none; border-radius: 100px; height: 60px; padding: 0 28px; font-size: 16px; outline: none; width: 100%; }
.form-input::placeholder { color: #9CA3AF; }
.phone-input { display: flex; align-items: center; background: #ffffff; border-radius: 100px; height: 60px; padding: 0 16px; gap: 8px; }
.phone-flag { font-size: 14px; white-space: nowrap; }
.phone-sep { width: 1px; height: 24px; background: #C5C5BF; }
.phone-field { min-height: 44px; align-self: stretch; border: none; background: transparent; font-size: 16px; color: #9CA3AF; outline: none; flex: 1; }
.privacy-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checkbox-box { position: relative; width: 20px; height: 20px; border: 1px solid #aeb7c4; border-radius: 4px; background: #fff; flex-shrink: 0; margin-top: 2px; }
.checkbox-box::after { content: ''; position: absolute; inset: 0; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10l4 4 7-7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center/14px 14px; }
.privacy-checkbox:checked + .checkbox-box::after { opacity: 1; }
.privacy-text { font-size: 13px; color: #6B7280; line-height: 1.5; }
.privacy-text a { color: inherit; text-decoration: underline; }

/* ── Footnotes ───────────────────────────────────────────────────────── */
.footnotes { background: var(--bg-cream); padding: 28px 0 16px; border-top: 1px solid #DED8D0; }
.footnotes__list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footnotes__list li { font-size: 12px; color: #9B948C; line-height: 1.5; }
.footnotes__list sup { font-size: 10px; color: var(--accent); vertical-align: super; margin-right: 2px; }

/* ── Contacts success ────────────────────────────────────────────────── */
.contacts-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 48px 24px; text-align: center;
}
.contacts-success__icon {
  width: 68px; height: 68px; background: #F0FDF4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #22c55e;
}
.contacts-success h3 { font-size: 22px; font-weight: 700; color: #111; }
.contacts-success p { font-size: 15px; color: #666; line-height: 1.6; }
.contacts-success__manager { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.contacts-success__avatar {
  width: 48px; height: 48px; border-radius: 50%; background-size: cover; background-position: center;
  flex-shrink: 0;
}
.contacts-success__name { font-size: 14px; font-weight: 600; color: #111; }
.contacts-success__role { font-size: 12px; color: #888; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { background: #111316; padding: 52px 0 0; }

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.04em; }
.footer-logo-img { height: 48px; width: auto; display: block; margin-left: -14px; }
.footer-tagline { font-size: 13px; color: #7B8394; line-height: 1.7; margin: 0; }

.footer-social { display: flex; gap: 8px; margin-top: 6px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #1A1D24;
  border: 1px solid #252830;
  border-radius: 8px;
  transition: background 0.18s, border-color 0.18s;
}
.social-icon:hover { background: #162240; border-color: #005BF4; }
.social-icon svg { display: block; }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col__title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: #6B7280; text-transform: uppercase; margin-bottom: 6px;
}
.footer-col a { font-size: 14px; color: #9CA3AF; text-decoration: none; transition: color 0.18s; }
.footer-col a:hover { color: #E5E7EB; }

.footer-contact-link {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: #6B7280; text-decoration: none;
  transition: color 0.18s; cursor: default;
}
a.footer-contact-link { cursor: pointer; }
a.footer-contact-link:hover { color: #E5E7EB; }
.footer-contact-link svg { flex-shrink: 0; }

.footer-divider { border: none; border-top: 1px solid #1A1D24; }
.footer-bottom { padding: 18px 0; font-size: 12px; color: #52586A; }

/* ── Responsive ──────────────────────────────────────────────────────── */

/* 1100px — small desktop */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero__content { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); --hero-pad-x: 42px; --hero-pad-y: 42px; }
  .hero__headline { font-size: 52px; }
  .installment { padding-inline: 48px; gap: 56px; }
  .portfolio-grid { grid-template-columns: 1fr; height: auto; }
  .port-stack { flex-direction: row; height: 240px; }
  .port-featured { height: 360px; }
  .footer-main { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 28px; }
}

@media (min-width: 769px) and (max-height: 760px) {
  .hero__content { --hero-pad-x: 48px; --hero-pad-y: 30px; }
  .hero__headline { margin-top: 18px; font-size: 52px; }
  .hero__subtitle { margin-top: 15px; font-size: 15px; }
  .hero__actions { margin-top: 18px; }
  .hero__proof { padding-top: 18px; }
  .hero__benefit { padding: 28px 38px; }
}

/* 900px — tablet portrait */
@media (max-width: 900px) {
  .categories-inner { padding: 0 20px; }
  .calc-wrap { flex-direction: column; padding: 16px; gap: 16px; }
  .calc-form { width: 100%; border-radius: 40px; min-height: 0; }
  .calc-promo { display: none; }
  .bento-about { grid-template-columns: 1fr; height: auto; }
  .bento-row2 { grid-template-columns: 1fr 1fr 1fr; height: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   768px — полноценная мобильная версия
   Ключевые изменения:
   · Карточки услуг, акции, портфолио, гарантии → горизонтальный свайп
   · display:contents убирает обёртки-строки, их дети попадают в flex
   · flex: 0 0 <px> точно задаёт ширину карточки (width:100% не мешает)
   · margin: 0 -16px + padding: 0 16px = полная ширина с отступом первой карточки
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Единые отступы секций ────────────────────────────────────────── */
  .container { padding: 0 16px; }
  .categories-inner { padding: 0 16px; }
  .section-cream { padding: var(--section-space) 0; }
  .section-title { font-size: 26px; letter-spacing: 0.02em; margin-bottom: 0; }
  .faq-list { gap: 10px; }
  .faq-header { padding: 20px 20px; }
  .faq-answer-inner { padding: 0 20px 28px; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: var(--section-heading-gap); }

  /* ── Hero ─────────────────────────────────────────────────────────── */
  .hero {
    height: 100svh;
    min-height: 100svh;
    /* сдвигаем всё содержимое ниже шапки (14px сверху + 44px высота = 58px + 16px зазор) */
    padding-top: 74px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__content {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    padding: 0;
    gap: 0;
  }
  .hero__left {
    flex: 1;
    min-height: 0;
    padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 36px);
    border-radius: 0;
    background: transparent;
    border: none;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  /* бейдж локации */
  .hero__location-badge { font-size: 12px; padding: 7px 13px; margin-bottom: 16px; }

  /* заголовок: крупный и доминирующий */
  .hero__headline {
    margin-top: 0;
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.03;
    letter-spacing: 0.02em;
  }

  /* подзаголовок: комфортный для чтения */
  .hero__subtitle {
    margin-top: 12px;
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
  }

  /* кнопки */
  .hero__actions { margin-top: auto; padding-top: 24px; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; min-width: 0; font-size: 16px; min-height: 54px; }

  /* вторичная кнопка */
  .btn--outline-hero {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    min-height: 54px;
  }

  /* «бесплатно» */
  .hero__free-note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.58);
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }
  .hero__free-note svg { display: inline; width: 13px; height: 13px; stroke: rgba(255,255,255,0.48); }
  .hero__free-note strong { color: rgba(255,255,255,0.8); font-weight: 600; }

  /* доказательства */
  .hero__proof {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
  }
  .hero__reviews { flex-direction: column; gap: 4px; }
  .hero__stars { font-size: 16px; letter-spacing: 2px; }
  .hero__review-text { font-size: 12px; color: rgba(255,255,255,0.72); }
  .hero__review-text strong { color: #fff; font-weight: 700; }
  .hero__proof-separator { width: 1px; height: 32px; background: rgba(255,255,255,0.28); flex-shrink: 0; }
  .hero__proof-item { flex-direction: column; gap: 3px; }
  .hero__proof-value { font-size: 17px; font-weight: 800; color: #fff; }
  .hero__proof-label { font-size: 12px; color: rgba(255,255,255,0.62); }

  .hero__right { display: none; }

  /* ── Категории ────────────────────────────────────────────────────── */
  .categories__header { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: var(--section-heading-gap); }
  .categories__header .section-title { font-size: 22px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 16px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

  /* Карточки услуг: фото-фон + текст-оверлей, горизонтальный свайп */
  .repair-bento {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -16px 0 0;
    padding: 4px 0;
  }
  .repair-bento::-webkit-scrollbar { display: none; }
  .repair-row { display: contents; }
  .rc {
    flex: 0 0 224px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    min-height: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  }
  .rc__photo {
    position: static;
    order: -1;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    background-size: auto var(--rc-photo-size);
    background-position-x: center;
    background-position-y: var(--rc-photo-position-y);
    background-repeat: no-repeat;
    background-color: #f4f4f6;
  }
  .rc__left {
    position: static;
    order: 1;
    flex: 1;
    z-index: auto;
    padding: 14px 16px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .rc__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 100px;
  }
  .rc__top { flex: 1; gap: 4px; display: flex; flex-direction: column; }
  .rc__title { color: #111; font-size: 17px; font-weight: 700; margin: 0; }
  .rc__desc { display: none; }
  .rc__bullets { display: none; }
  .rc__bottom { margin-top: 12px; padding-top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .rc__price { color: var(--accent); font-size: 15px; font-weight: 700; white-space: nowrap; }
  .rc__more {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
  }

  /* ── Рассрочка ────────────────────────────────────────────────────── */
  .installment { flex-direction: column; padding: 32px 20px; gap: 16px; }
  .installment__image { width: 100%; height: 190px; border-radius: 24px; }
  .installment__heading { font-size: 30px; }
  .installment .btn--outline-white { background: #fff; color: var(--accent); border: none; border-radius: 100px; font-weight: 700; }

  /* ── Акции → горизонтальный свайп ────────────────────────────────── */
  .promo-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -16px 0 0;
    padding: 4px 0;
  }
  .promo-grid::-webkit-scrollbar { display: none; }
  .promo-col { display: contents; }
  .promo-card { flex: 0 0 264px; height: 300px; scroll-snap-align: start; }
  .promo-card--large { flex: 0 0 290px; height: 300px; }
  .promo-col .promo-card:first-child,
  .promo-col .promo-card:last-child { flex: 0 0 264px; height: 300px; }
  .promo-banner { padding: 24px 20px 0; }
  .promo-banner__title { font-size: 18px; line-height: 1.25; }
  .promo-banner__body { max-width: 62%; }
  .promo-banner .promo-banner__img { width: 150%; max-width: none; bottom: 0; height: auto; }
  .promo-col .promo-card:last-child .promo-banner__img { width: 150%; max-width: none; top: auto; bottom: 0; height: 150%; }
  .promo-banner--large { padding: 28px 24px 0; }
  .promo-banner__big-num { font-size: 72px; }
  .promo-banner__big-text { font-size: 20px; }

  /* ── Калькулятор ──────────────────────────────────────────────────── */
  #calculator .categories-inner { display: none; }
  .calc-wrap { flex-direction: column; padding: 0 16px; gap: 0; background: none; }
  .calc-form { width: 100%; background: transparent; box-shadow: none; border: none; border-radius: 0; min-height: 0; padding: 0; }
  .calc-header { padding: 0 0 14px; }
  .about-header { margin-bottom: var(--section-heading-gap); }
  .calc-step-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.07); margin-bottom: 0; }
  .calc-step-card--success {
    min-height: max(420px, var(--calc-success-min-height, 420px));
    background: linear-gradient(145deg, #0b6cff 0%, #005bf4 58%, #004ed8 100%);
  }
  .calc-success { padding: 42px 22px 48px; }
  .calc-success__logo { width: 148px; margin-bottom: 30px; }
  .calc-success__icon { width: 82px; height: 82px; margin-bottom: 24px; }
  .calc-success__text { max-width: 290px; font-size: 14px; }
  .calc-success__note { margin-top: 22px; font-size: 12px; }
  .calc-success__back { margin-top: 10px; font-size: 12px; }
  .calc-content { padding: 16px 20px 20px; }
  .calc-divider { margin: 0; }
  .calc-promo { display: none; }
  .room-row { gap: 10px; }
  .room-card__photo { height: 104px; }
  .calc-summary-grid { grid-template-columns: 1fr 1fr; }
  .calc-progress { gap: 5px; }
  .step-label { font-size: 10px; }

  /* ── Портфолио → единый горизонтальный свайп, одинаковые карточки ── */
  .portfolio .section-header-row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
  .portfolio .section-header-row .section-title { font-size: 20px; line-height: 1.2; white-space: nowrap; margin-bottom: 0; }
  .portfolio .section-header-row .btn { font-size: 13px; padding: 8px 16px; flex-shrink: 0; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
  .portfolio-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    height: 280px;
    margin: 0 -16px 0 0;
    padding: 0;
  }
  .portfolio-scroll::-webkit-scrollbar { display: none; }
  .portfolio-grid, .portfolio-grid--row2 { display: contents; }
  .port-featured { display: contents; }
  .port-stack { display: contents; }
  .portfolio-scroll .port-card {
    flex: 0 0 210px;
    width: auto;
    height: 280px;
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .portfolio-scroll .port-card--tall { flex: 0 0 230px; }
  .portfolio-scroll .port-overlay { padding: 18px 14px; }
  .portfolio-scroll .port-tag { font-size: 11px; padding: 4px 10px; margin-bottom: 6px; }
  .port-title { font-size: 15px; font-weight: 700; }
  .port-meta { font-size: 12px; }

  /* ── 5 Гарантий → вертикальная карточка: картинка → заголовок → сравнение */
  .gb-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -16px 0 0;
    padding: 4px 0;
  }
  .gb-grid::-webkit-scrollbar { display: none; }
  .gb-card {
    flex: 0 0 260px;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
  }
  .gb-card--wide { grid-column: unset; flex: 0 0 296px; }

  /* Картинка: нормальный блок сверху, без вылета */
  .gb-card__img {
    order: -1;
    width: 100%;
    height: 155px;
    flex: none;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    margin-top: 0;
  }
  .gb-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
  }
  .gb-card--wide .gb-card__img img { height: 100%; top: 0; transform: none; }
  .gb-card:not(.gb-card--wide) .gb-card__img { flex: none; width: 100%; height: 155px; }
  .gb-card:not(.gb-card--wide) .gb-card__img img { transform: none; }
  .gb-card--light:not(.gb-card--wide) .gb-card__img { flex: none; width: 100%; height: 155px; }
  .gb-card--light:not(.gb-card--wide) .gb-card__img img { transform: none; }
  .gb-card--gray:not(.gb-card--wide) .gb-card__img { flex: none; width: 100%; height: 155px; }
  .gb-card--gray:not(.gb-card--wide) .gb-card__img img { transform: none; }
  .gb-card--orange:not(.gb-card--wide) .gb-card__img { flex: none; width: 100%; height: 155px; }
  .gb-card--orange:not(.gb-card--wide) .gb-card__img img { transform: none; }

  .gb-card__text { flex: none; width: 100%; padding: 14px 16px 16px; gap: 8px; }
  .gb-card:not(.gb-card--wide) .gb-card__text { flex: none; width: 100%; padding: 14px 16px 16px; gap: 8px; }
  .gb-card__title { font-size: 16px; }
  .gb-card:not(.gb-card--wide) .gb-card__title { font-size: 15px; }
  .gb-title-xl { font-size: 26px; display: inline; }
  .gb-card:not(.gb-card--wide) .gb-card__title { font-size: 18px; }
  .gb-compare--stack { flex-direction: row; gap: 8px; }
  .gb-card--orange:not(.gb-card--wide) .gb-card__img img { object-position: 30% center; }

  /* ── О компании: убираем дубли, боковой блок → строка наверху ──────── */
  .about-header__left .badge { display: none; }
  .about-header { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .about-header__left { gap: 0; }
  .about-header__cta { display: inline-flex; flex-shrink: 0; padding: 10px 16px; font-size: 13px; }
  .bento-col { display: none; }
  .bento-about { display: flex; flex-direction: column; gap: 12px; height: auto; }
  .bento-row2 {
    display: flex;
    flex-direction: row;
    gap: 12px;
    height: 180px;
    order: 0;
  }
  .bento-team { flex: 0 0 40%; height: 180px; border-radius: 16px; padding: 16px 10px; gap: 12px; }
  .team-avatars { gap: -4px; }
  .bento-team .avatar { width: 32px; height: 32px; margin-left: -12px; }
  .bento-team .team-avatars .avatar:first-child { margin-left: 0; }
  .team-stat__num { font-size: 28px; }
  .team-stat__label { font-size: 11px; }
  .bento-quote { display: flex; flex: 1; height: 180px; border-radius: 16px; padding: 16px 14px; gap: 8px; }
  .bento-quote .quote-mark { font-size: 24px; }
  .bento-quote .quote-text { font-size: 12px; line-height: 1.45; }
  .bento-quote .quote-name { font-size: 11px; }
  .bento-photo { display: none; }
  .bento-feature { padding: 24px 20px; order: 1; }
  .bento-feature__heading { font-size: 22px; }
  .bento-feature__sub { font-size: 13px; }
  .bento-feature__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bento-feature .btn--orange { display: none; }
  .bento-stats { flex-direction: row; gap: 20px; }
  .bento-stat__num { font-size: 22px; }
  .bento-stat__label { font-size: 10px; }

  /* ── Отзывы → нативный горизонтальный свайп (без JS) ─────────────── */
  .reviews-header { flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: var(--section-heading-gap); }
  .reviews-controls { display: none; }
  .reviews-carousel { overflow: hidden; margin: 0 -16px 0 0; }
  .reviews-pagination { margin-top: 8px; }
  .reviews-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    width: auto !important;
    transform: none !important;
    transition: height 0.2s ease !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 0;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .reviews-slide { display: contents; }
  .review-card {
    flex: 0 0 290px;
    height: 275px;
    scroll-snap-align: start;
  }
  .review-author { display: grid; grid-template-columns: auto minmax(0, 1fr) max-content; column-gap: 10px; row-gap: 0; }
  .review-author > div { min-width: 0; }
  .review-source { grid-column: 3; width: fit-content; max-width: 100%; box-sizing: border-box; margin-left: 0; justify-self: end; }

  /* ── Контакты ─────────────────────────────────────────────────────── */
  .contacts-wrap { grid-template-columns: 1fr; gap: 24px; }
  .contacts-heading { font-size: 26px; margin-bottom: var(--section-heading-gap); }

  /* ── Футер ────────────────────────────────────────────────────────── */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
}

/* 480px — маленькие телефоны */
@media (max-width: 480px) {
  .section-title { font-size: 22px; }
  .hero__content { width: 100%; }
  .hero__left { padding: 20px 18px calc(env(safe-area-inset-bottom, 0px) + 32px); border-radius: 0; }
  .hero__headline { font-size: clamp(28px, 8.5vw, 36px); line-height: 1.02; }
  .hero__subtitle { font-size: 13px; line-height: 1.5; }
  .hero__proof { gap: 12px; }
  .hero__review-text { font-size: 10px; }
  .hero__proof-label { font-size: 10px; }
  .hero__stats { gap: 20px; padding: 0 18px; height: 40px; }
  .hero__stats .stat-item:last-child { display: none; }
  .stat-item { font-size: 12px; }
  .step-label { display: none; }
  .calc-progress { gap: 4px; }
  .calc-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-summary-item--full { grid-column: auto; }
  .installment__heading { font-size: 26px; }
  .pills-row { gap: 8px; }
  .pill { font-size: 12px; padding: 6px 12px; }
  .installment__actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* 375px — очень маленькие телефоны */
@media (max-width: 375px) {
  .hero__stats { gap: 12px; padding: 0 14px; }
  .hero__stats .stat-item:nth-child(3) { display: none; }
}

@media (max-width: 340px) {
  .review-author { column-gap: 6px; }
  .review-source { gap: 4px; padding: 4px 7px; font-size: 10px; letter-spacing: 0; }
  .review-source img { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__backdrop-video,
  .hero__benefit,
  .btn--outline-hero,
  .modal-overlay,
  .repair-modal { transition: none; }
}

/* ── Repair Modals ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 520ms var(--motion-ease-standard);
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }

body:has(.repair-modal.is-open),
body:has(.lead-modal.is-open),
body:has(.phone-modal.is-open),
body:has(.mobile-menu.is-open) {
  overscroll-behavior: none;
}

.repair-modal {
  position: fixed; z-index: 201;
  top: 50%; left: 50%;
  transform: translate3d(-50%, -48%, 0) scale(0.97);
  width: 1100px; max-width: calc(100vw - 24px);
  max-height: 90vh; overflow: hidden;
  border-radius: 24px; background: #fff;
  opacity: 0; pointer-events: none;
  transition:
    opacity 460ms var(--motion-ease-standard),
    transform 680ms var(--motion-ease-out);
  visibility: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  isolation: isolate;
}
.repair-modal__scroll {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #fff;
  border-radius: inherit;
}
.repair-modal__scroll::-webkit-scrollbar { display: none; }
.repair-modal.is-open {
  opacity: 1; pointer-events: all; visibility: visible;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

/* Price + free label row */
.rm__price-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rm__free-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: #EEF3FF; border-radius: 100px; padding: 5px 12px;
  white-space: nowrap; letter-spacing: 0.01em; margin-top: 10px;
}
.rm__free-label::before {
  content: '+'; font-size: 14px; font-weight: 700; line-height: 1;
}

/* Header */
.rm__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; border-bottom: 1px solid #F0F0F0;
  position: sticky; top: 0; background: #fff; z-index: 10;
  border-radius: 24px 24px 0 0;
}
.rm__title { font-size: 22px; font-weight: 700; color: #111; font-family: var(--font-heading); }
.rm__header-right { display: flex; align-items: center; gap: 12px; }
.rm__close {
  width: 40px; height: 40px; border-radius: 50%;
  background: #F4F4F4; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.rm__close:hover { background: #E8E8E8; }
.rm__order-btn {
  background: var(--accent); color: #fff;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s;
}
.rm__order-btn:hover { background: var(--accent-hover); }

/* Hero */
.rm__hero {
  background: #2F2F2F; padding: 32px 48px;
  display: flex; align-items: center; gap: 40px;
  border-bottom: 1px solid #E8E8E8;
}
.rm__hero-left { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.rm__price-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: -4px; }
.rm__price { font-size: 44px; font-weight: 800; color: #fff; font-family: var(--font-heading); line-height: 1; }
.rm__divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 0; }
.rm__includes-label { font-size: 14px; font-weight: 700; color: #fff; }
.rm__includes { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rm__includes li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.75); }
.rm__check { width: 20px; height: 20px; flex-shrink: 0; }
.rm__check circle { fill: var(--accent); opacity: 1; }
.rm__check path { stroke: #fff; stroke-width: 2.2; }
.rm__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rm__consult-btn {
  background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.rm__measure { font-size: 14px; color: #888; cursor: pointer; }
.rm__measure:hover { color: #ccc; }

/* The service renders use a 900×1350 canvas with different transparent
   margins. Scale and align each image by its visible alpha bounds so the
   rendered object—not the empty canvas—fills the available area. */
#modal-chernovoy { --rm-art-scale: 123.5%; --rm-art-y: 62%; }
#modal-kosmetic { --rm-art-scale: 123.5%; --rm-art-y: 55%; }
#modal-capital { --rm-art-scale: 116.6%; --rm-art-y: 57%; }
#modal-klyuch { --rm-art-scale: 118.6%; --rm-art-y: 66%; }

.rm__hero-img {
  width: clamp(360px, 38vw, 480px); height: clamp(410px, 38vw, 470px);
  border-radius: 12px; flex-shrink: 0;
  background-size: auto var(--rm-art-scale, 100%);
  background-position: center var(--rm-art-y, 50%);
  background-repeat: no-repeat;
}
.repair-modal:not(.is-open) .rm__hero-img::before { pointer-events: none; }

/* Calc */
.rm__calc {
  background: #F5F5F7; padding: 48px 60px;
  display: flex; flex-direction: column; gap: 16px;
}
.rm__section-title { font-size: 24px; font-weight: 700; color: #111; font-family: var(--font-heading); margin-bottom: 4px; }
.rm__calc-input {
  width: 100%; padding: 14px 18px; border: 1px solid #E0E0E0;
  border-radius: 12px; font-size: 15px; background: #fff; outline: none;
  transition: border-color 0.2s;
}
.rm__calc-input:focus { border-color: var(--accent); }
.rm__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rm__chip {
  padding: 8px 18px; border-radius: 100px; border: 1px solid #E0E0E0;
  background: #fff; cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.rm__chip:hover { border-color: var(--accent); color: var(--accent); }
.rm__chip--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.rm__chip--active:hover,
.rm__chip--active:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.rm__calc-bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.rm__calc-result { font-size: 34px; font-weight: 700; color: #111; font-family: var(--font-heading); }
.rm__calc-btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s;
}
.rm__calc-btn:hover { background: var(--accent-hover); }

/* Tech Steps — 3-column horizontal grid */
.rm__tech { background: #fff; padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.rm__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rm__step {
  display: flex; align-items: center; gap: 14px;
  background: #F8F8F8; border-radius: 14px; padding: 16px 18px;
}
.rm__step-num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.rm__step-num--active { background: var(--accent); color: #fff; }
.rm__step-body { display: flex; flex-direction: column; gap: 2px; }
.rm__step-name { font-size: 14px; font-weight: 700; color: #111; }
.rm__step-desc { font-size: 12px; color: #888; }

/* Subcats — icon grid, no prices */
.rm__subcats { background: #F5F5F7; padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.rm__subcats-row { display: flex; gap: 12px; }
.rm__subcat {
  flex: 1; background: #fff; border-radius: 16px; padding: 24px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.rm__subcat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: #EEF3FF; display: flex; align-items: center; justify-content: center;
}
.rm-ico {
  width: 24px; height: 24px; fill: none;
  stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.rm__subcat-name { font-size: 13px; font-weight: 600; color: #111; line-height: 1.3; }

/* CTA */
.rm__cta {
  background: var(--accent); padding: 40px 60px; border-radius: 0 0 24px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.rm__cta-text { display: flex; flex-direction: column; gap: 8px; }
.rm__cta h3 { font-size: 24px; font-weight: 700; color: #fff; font-family: var(--font-heading); }
.rm__cta p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.5; max-width: 420px; }
.rm__cta-btn {
  background: #fff; color: var(--accent);
  padding: 16px 32px; border-radius: 12px;
  font-size: 15px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.2s;
}
.rm__cta-btn:hover { opacity: 0.9; }

@media (max-width: 768px) {
  /* On phones the service details behave like a native full-screen sheet.
     The modal owns the scroll, while its close control remains pinned in the
     top-right corner and clears iOS safe areas. */
  .repair-modal {
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    opacity: 1;
    transform: translate3d(0, 101%, 0);
    transition:
      visibility 0s linear var(--motion-sheet-duration),
      transform var(--motion-sheet-duration) var(--motion-ease-out);
    visibility: hidden;
    will-change: transform;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .repair-modal__scroll {
    height: 100%;
    max-height: none;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }
  .installment__heading-line { white-space: normal; }
  .repair-modal.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition-delay: 0s;
  }

  .rm__header {
    min-height: 72px;
    padding:
      calc(12px + env(safe-area-inset-top, 0px))
      calc(12px + env(safe-area-inset-right, 0px))
      12px
      calc(20px + env(safe-area-inset-left, 0px));
    border-radius: 0;
  }
  .rm__title {
    min-width: 0;
    padding-right: 12px;
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1.15;
  }
  .rm__close { flex: 0 0 48px; }

  /* Reflow hero as a single mobile-friendly column:
     price -> image -> includes list -> CTA, instead of the desktop
     text-block-then-image order. rm__hero-left is unwrapped via
     display:contents so its children can be reordered together with
     rm__hero-img inside the same flex context. */
  .rm__hero { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 20px; }
  .rm__hero-left { display: contents; }
  .rm__price-label { order: 1; }
  .rm__price-row { order: 2; }
  .rm__hero-img { order: 3; }
  .rm__divider { order: 4; }
  .rm__includes-label { order: 5; }
  .rm__includes { order: 6; }
  .rm__actions { order: 7; }

  .rm__hero-img {
    width: 100%;
    height: clamp(380px, 82vw, 460px);
    background-repeat: no-repeat;
  }
  .rm__actions { width: 100%; }
  .rm__consult-btn { width: 100%; text-align: center; }
  .rm__calc, .rm__tech, .rm__subcats, .rm__cta { padding: 32px 24px; }
  .rm__chips {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .rm__chip {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
    font-size: clamp(10px, 3.1vw, 12px);
    line-height: 1.1;
    white-space: nowrap;
  }
  .rm__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm__step-name { font-size: 15px; }
  .rm__step-desc {
    font-size: 13px;
    color: #666;
  }
  .rm__subcats-row { flex-wrap: wrap; }
  .rm__subcat { flex: 1 1 calc(50% - 6px); min-width: 120px; }
  .rm__cta {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
  .rm__price { font-size: 30px; }
  .rm__calc-result { font-size: 24px; }
  .rm__calc-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .rm__tech { padding-inline: 16px; }
  .rm__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .rm__step {
    min-width: 0;
    min-height: 132px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }
  .rm__step-num {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .rm__step-body { min-width: 0; }
  .rm__step-name {
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .rm__step-desc {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* ── Lead Modal ─────────────────────────────────────────────────────── */
.lead-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 520ms var(--motion-ease-standard);
}
.lead-overlay.is-open { opacity: 1; pointer-events: all; }

.lead-modal {
  position: fixed; z-index: 301;
  top: 50%; left: 50%;
  transform: translate3d(-50%, -46%, 0) scale(0.96);
  width: 800px; max-width: calc(100vw - 32px);
  border-radius: 28px;
  background: #fff;
  display: flex;
  opacity: 0; pointer-events: none;
  transition:
    opacity 460ms var(--motion-ease-standard),
    transform 680ms var(--motion-ease-out);
  will-change: opacity, transform;
  box-shadow: 0 40px 100px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}
.lead-modal.is-open {
  opacity: 1; pointer-events: all;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

/* Left panel */
.lead-modal__left {
  width: 44%;
  flex-shrink: 0;
  background: var(--accent);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.lead-modal__left::before, .lead-modal__left::after { content: none; }

.lead-modal__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 100px; padding: 7px 16px;
  font-size: 12px; font-weight: 600; color: #fff;
  align-self: flex-start; margin-bottom: 18px; position: relative; z-index: 1;
  letter-spacing: 0.2px;
}
.lead-modal__badge svg { flex-shrink: 0; opacity: 0.9; }

.lead-modal__mini-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.lead-modal__mini-stat {
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  height: 62px;
}
.lead-modal__mini-num {
  font-size: 19px; font-weight: 800; color: #fff; line-height: 1;
  font-family: var(--font-heading); white-space: nowrap;
}
.lead-modal__mini-label {
  font-size: 11px; color: rgba(255,255,255,0.62); font-weight: 500;
  line-height: 1.25;
}

.lead-modal__left-content {
  display: flex; flex-direction: column; gap: 0;
  position: relative; z-index: 1; flex: 1;
}

.lead-modal__heading {
  font-size: 22px; font-weight: 800; color: #fff; line-height: 1.25;
  margin-bottom: 22px; font-family: var(--font-heading);
}

.lead-modal__direct-call { display: none; }

.lead-modal__trust {
  list-style: none; display: flex; flex-direction: column; gap: 11px;
}
.lead-modal__trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.88); font-weight: 500; line-height: 1.3;
}
.lead-modal__trust li::before {
  content: '';
  display: inline-flex; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center/10px 8px;
}

.lead-modal__mgr {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  position: relative; z-index: 1;
  margin-top: 24px;
}
.lead-modal__mgr-photo {
  width: 52px; height: 52px; border-radius: 50%;
  background-size: cover; background-position: center top;
  border: 2px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}
.lead-modal__mgr-label {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.lead-modal__mgr-name {
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.lead-modal__mgr-role {
  font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.3;
}

/* Right panel */
.lead-modal__right {
  flex: 1;
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lead-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: #F4F4F4; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.18s;
  z-index: 2; flex-shrink: 0;
}
.lead-modal__close:hover { background: #E8E8E8; transform: rotate(90deg); }

.lead-modal__form-wrap { display: flex; flex-direction: column; }

.lead-modal__form-label {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 1.2px; margin-bottom: 8px;
}
.lead-modal__form-title {
  font-size: 23px; font-weight: 800; color: #111; line-height: 1.2;
  margin-bottom: 26px; font-family: var(--font-heading);
}

.lead-modal__input {
  width: 100%; height: 52px;
  background: #F5F5F5; border: 1.5px solid transparent;
  border-radius: 14px; padding: 0 18px;
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 12px; box-sizing: border-box;
}
.lead-modal__input:focus { border-color: var(--accent); background: #fff; }
.lead-modal__input.lead-input--error { border-color: #EF4444; background: #FFF5F5; }

.lead-modal__phone-wrap {
  display: flex; align-items: center;
  background: #F5F5F5; border: 1.5px solid transparent;
  border-radius: 14px; height: 52px; overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.15s, background 0.15s;
}
.lead-modal__phone-wrap:focus-within { border-color: var(--accent); background: #fff; }
.lead-modal__phone-wrap.lead-input--error { border-color: #EF4444; background: #FFF5F5; }

.lead-modal__phone-flag {
  padding: 0 14px 0 18px; font-size: 14px; color: #555;
  white-space: nowrap; border-right: 1.5px solid #E0E0E0; flex-shrink: 0;
}
.lead-modal__phone-input {
  flex: 1; border: none; background: transparent;
  min-height: 44px; align-self: stretch;
  font-size: 15px; outline: none; padding: 0 16px;
  font-family: inherit; color: #111;
}

.lead-modal__submit {
  width: 100%; height: 54px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.12s;
  margin-bottom: 14px;
}
.lead-modal__submit:hover { background: var(--accent-hover); }
.lead-modal__submit:active { transform: scale(0.98); }

.lead-modal__privacy {
  font-size: 12px; color: #AAA; text-align: center; line-height: 1.5;
}
.lead-modal__privacy a { color: #888; text-decoration: underline; }

/* Success state */
.lead-modal__success {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 14px;
  padding: 12px 0;
}
.lead-modal__success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #16a34a; margin-bottom: 4px;
}
.lead-modal__success-title {
  font-size: 22px; font-weight: 800; color: #111;
  font-family: var(--font-heading); margin: 0;
}
.lead-modal__success-text {
  font-size: 14px; color: #666; line-height: 1.6;
  max-width: 230px; margin: 0 auto;
}
.lead-modal__success-mgr {
  display: flex; align-items: center; gap: 12px;
  background: #F6F6F6; border-radius: 14px; padding: 14px 18px;
  margin-top: 4px; align-self: stretch;
}
.lead-modal__success-mgr-photo {
  width: 44px; height: 44px; border-radius: 50%;
  background-size: cover; background-position: center top;
  flex-shrink: 0;
}
.lead-modal__success-mgr-name { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 2px; }
.lead-modal__success-mgr-role { font-size: 12px; color: #888; }

/* Tablet */
@media (max-width: 900px) and (min-width: 641px) {
  .lead-modal { width: calc(100vw - 32px); }
  .lead-modal__left { width: 40%; padding: 32px 26px; }
  .lead-modal__heading { font-size: 19px; }
  .lead-modal__right { padding: 36px 28px 32px; }
  .lead-modal__form-title { font-size: 20px; }
}

/* Mobile — bottom sheet */
@media (max-width: 640px) {
  .lead-modal {
    flex-direction: column;
    top: auto; bottom: 0; left: 0; right: 0;
    opacity: 1;
    transform: translate3d(0, 101%, 0);
    width: 100%; max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 92svh;
    visibility: hidden;
    transition:
      visibility 0s linear var(--motion-sheet-duration),
      transform var(--motion-sheet-duration) var(--motion-ease-out);
  }
  .lead-modal.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition-delay: 0s;
  }
  .lead-modal__left {
    width: 100%;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 20px 24px;
    border-radius: 0;
  }
  .lead-modal__left::before, .lead-modal__left::after { display: none; }
  .lead-modal__left-content { flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; }
  .lead-modal__badge { display: none; }
  .lead-modal__mini-stats { display: none; }
  .lead-modal__heading { font-size: 15px; margin-bottom: 0; font-weight: 700; }
  .lead-modal__direct-call {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 5px;
    padding: 0 11px;
    gap: 5px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 100px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .lead-modal__direct-call svg { flex: 0 0 auto; }
  .lead-modal__direct-call span { color: rgba(255,255,255,.7); font-weight: 500; }
  .lead-modal__direct-call strong { font-size: 12px; font-weight: 750; }
  .lead-modal__trust { display: none; }
  .lead-modal__mgr {
    padding: 0; border: none;
    flex-direction: column; gap: 0; margin-top: 0; align-items: center;
    flex-shrink: 0;
  }
  .lead-modal__mgr-photo { width: 44px; height: 44px; }
  .lead-modal__mgr-label, .lead-modal__mgr-name, .lead-modal__mgr-role { display: none; }
  .lead-modal__right {
    padding: 24px 20px 36px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .lead-modal__form-wrap { min-width: 0; }
  .lead-modal__form-label,
  .lead-modal__form-title {
    padding-right: 60px;
    overflow-wrap: anywhere;
  }
  .lead-modal__form-title { font-size: 19px; margin-bottom: 20px; }
  .lead-modal__close {
    top: 12px; right: 12px;
    width: 48px; height: 48px;
  }
}

/* Backdrop blur is costly on phone GPUs and can drop frames while a sheet
   moves. A denser flat veil preserves depth without repainting every frame. */
@media (max-width: 768px) {
  .modal-overlay,
  .lead-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .modal-overlay { background: rgba(7, 18, 41, 0.58); }
  .lead-overlay { background: rgba(7, 18, 41, 0.62); }
}

/* ── Phone Modal ─────────────────────────────────────────────────────────── */
.phone-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.phone-modal-overlay.is-open { opacity: 1; pointer-events: all; }

.phone-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.93);
  z-index: 2001; background: #fff;
  border-radius: 20px;
  width: 380px; max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 36px 32px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
  opacity: 0; pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity 0.25s, transform 0.28s cubic-bezier(.34,1.48,.64,1);
}

.phone-modal.is-open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.phone-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: #F2F2F2; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.2s;
}
.phone-modal__close:hover { background: #E0E0E0; transform: rotate(90deg); }

.phone-modal__header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #F0F0F0;
  margin-bottom: 24px;
}
.phone-modal__label {
  font-size: 11px; color: #bbb; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 12px;
}
.phone-modal__number {
  font-family: var(--font-heading); font-size: 32px; font-weight: 800;
  color: var(--text-primary); display: block; margin: 0 0 6px; line-height: 1;
  letter-spacing: 0.02em; transition: color 0.15s;
}
.phone-modal__number:hover { color: var(--accent); }
.phone-modal__free { font-size: 12px; color: #bbb; margin: 0; }

.phone-modal__mgr {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; margin-bottom: 20px;
}
.phone-modal__mgr-photo {
  width: 64px; height: 64px; border-radius: 50%;
  background: url('assets/generated/manager-anna-sokolova.webp') center top/cover;
  border: 3px solid #EEF3FF;
}
.phone-modal__mgr-name { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 3px; }
.phone-modal__mgr-role { font-size: 12px; color: #999; margin: 0 0 8px; }
.phone-modal__mgr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EEF3FF; border-radius: 100px;
  padding: 4px 10px; font-size: 11px; color: var(--accent); font-weight: 600;
}

.phone-modal__hours {
  font-size: 12px; color: #bbb; text-align: center;
  white-space: nowrap; margin-bottom: 22px;
}

.phone-modal__cta {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; border-radius: 12px; padding: 14px 0;
  font-size: 15px; font-weight: 700; font-family: var(--font-heading);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(20,101,252,0.28);
}
.phone-modal__cta:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(20,101,252,0.35);
}
.phone-modal__cta:active { transform: translateY(0); }

/* ── Lead modal messenger buttons ─────────────────────────────────────────── */
.lead-modal__messengers { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.lead-modal__msg-sep {
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: #bbb;
}
.lead-modal__msg-sep::before, .lead-modal__msg-sep::after {
  content: ''; flex: 1; height: 1px; background: #EBEBEB;
}
.lead-modal__msg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; padding: 12px 16px; width: 100%;
  font-size: 14px; font-weight: 600; transition: opacity 0.15s, transform 0.15s;
}
.lead-modal__msg-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.lead-modal__msg-btn--vk { background: #0077FF; color: #fff; }
.lead-modal__msg-btn--wa { background: #25D366; color: #fff; }
.lead-modal__msg-btn--tg { background: #2AABEE; color: #fff; }

/* ── Phone modal messenger icons ──────────────────────────────────────────── */
.phone-modal__messengers {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px;
}
.phone-modal__msg-label { font-size: 11px; color: #bbb; font-weight: 500; margin: 0; }
.phone-modal__msg-row { display: flex; gap: 12px; }
.pm-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
}
.pm-icon:hover { transform: scale(1.1); opacity: 0.88; }
.pm-icon--vk { background: #0077FF; }
.pm-icon--wa { background: #25D366; }
.pm-icon--tg { background: #2AABEE; }

@media (max-width: 640px) {
  .phone-modal {
    padding: 32px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .phone-modal__header { padding-inline: 20px; }

  .phone-modal__number {
    font-size: clamp(22px, 7vw, 28px);
    overflow-wrap: anywhere;
  }

  .phone-modal__hours {
    white-space: normal;
    line-height: 1.45;
  }
}
.calc-selection-error { color: #b42318; font-size: 14px; font-weight: 600; line-height: 1.45; margin: 10px 0 0; }
