/* =========================================================
   КлинБерри — стили под утверждённый макет (светлый лендинг)
   ========================================================= */

:root {
  --platinum: #F4F9F9;
  --verdegris: #2A9D8F;
  --amaranth: #E63956;
  --onyx: #0A100D;
  --amber: #F0C808;
  --muted: #6B7280;
  --card: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(10, 16, 13, 0.07);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--onyx);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.75rem; /* телефоны: явные боковые отступы */
  box-sizing: border-box;
}

@media (min-width: 640px) and (max-width: 979px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 980px) {
  .container {
    padding-inline: 1.5rem;
  }
  .header-inner {
    padding-inline: 1.5rem;
  }
}

/* Широкие ноутбуки / 17″ — не растягивать контент на весь экран */
@media (min-width: 1400px) {
  .hero-copy {
    max-width: min(460px, 46%);
    margin-left: clamp(2.5rem, 4.5vw, 4.5rem);
  }
  .hero-features {
    max-width: 460px;
  }
  .steps {
    max-width: 820px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Honeypot против ботов — скрыт от людей */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.accent-pink { color: var(--amaranth); }
.accent-teal { color: var(--verdegris); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  line-height: 1.2;
  text-align: center;
  padding: .7rem 1.35rem;
  font-size: .95rem;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--verdegris);
  color: #fff;
  box-shadow: 0 8px 22px rgba(42, 157, 143, .28);
}
.btn-primary:hover:not(:disabled) { background: #238578; }

.btn-accent {
  background: var(--amaranth);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 57, 86, .28);
}
.btn-accent:hover:not(:disabled) { background: #d12f4a; }

.btn-outline {
  background: #fff;
  color: var(--onyx);
  border-color: rgba(10, 16, 13, .15);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--verdegris);
  color: var(--verdegris);
}

.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 16, 13, .06);
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.75rem;
  box-sizing: border-box;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) and (max-width: 979px) {
  .header-inner { padding-inline: 2rem; }
}

@media (min-width: 980px) {
  .header-inner { padding-inline: 1.5rem; }
}

.logo-img { width: 168px; height: auto; object-fit: contain; }
.logo-img--footer {
  width: 190px;
  height: auto;
  display: block;
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--onyx);
}

.nav-desktop a {
  opacity: .75;
  transition: opacity .2s, color .2s;
}
.nav-desktop a:hover { opacity: 1; color: var(--verdegris); }

.header-contacts {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-phone { font-weight: 700; font-size: .95rem; }
.header-hours { font-size: .72rem; color: var(--muted); }

.burger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--onyx);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  padding: .5rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(10, 16, 13, .06);
  background: #fff;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.mobile-phone { display: block; font-weight: 700; font-size: 1.1rem; }
.mobile-hours { margin: .25rem 0 1rem; color: var(--muted); font-size: .875rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-contacts { display: flex; }
  .burger, .mobile-menu { display: none !important; }
  .logo-img { width: 190px; }
}

/* ---------- Hero (1-в-1 с макетом: фото во всю высоту справа) ---------- */
.hero {
  position: relative;
  background-color: var(--platinum);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
  transition: background-color 1.1s ease;
}

/* У каждого слайда свой цвет «шторки» (фона) — из брендбука */
.hero--v2 { background-color: var(--verdegris); }
.hero--v3 { background-color: #0A100D; } /* onyx — слайд окон */

/* Слайд 2: бирюзовый фон — акцент розовый, без жёлтого */
.hero--v2 .hero-title,
.hero--v2 .hero-features li { color: #fff; }
.hero--v2 .hero-sub { color: rgba(255, 255, 255, .88); }
.hero--v2 .accent-pink { color: #FF8FA3; }
.hero--v2 .feature-icon {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  box-shadow: none;
}
.hero--v2 .btn-primary {
  background: var(--amaranth);
  box-shadow: 0 8px 22px rgba(230, 57, 86, .35);
}
.hero--v2 .btn-primary:hover:not(:disabled) { background: #d12f4a; }
.hero--v2 .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.hero--v2 .btn-outline:hover:not(:disabled) {
  background: #fff;
  color: var(--verdegris);
  border-color: #fff;
}
.hero--v2 .sparkle-dark { color: #fff; }
.hero--v2 .blob-teal { background: var(--amaranth); } /* большой шарик — розовый */
.hero--v2 .blob-pink { background: #fff; }
.hero--v2 .hero-dots button { background: rgba(255, 255, 255, .4); }
.hero--v2 .hero-dots button.is-active { background: #fff; }
.hero--v2 .hero-arrow {
  background: rgba(255, 255, 255, .95);
  color: var(--amaranth);
}

/* Слайд 3: тёмный фон — акцент жёлтый, доп. бирюзовый */
.hero--v3 .hero-title,
.hero--v3 .hero-features li { color: #fff; }
.hero--v3 .hero-sub { color: rgba(255, 255, 255, .78); }
.hero--v3 .accent-pink { color: var(--amber); } /* скидка 20% — жёлтый */
.hero--v3 .promo-code { color: #5EE0D0; } /* доп. бирюзовый */
.hero--v3 .feature-icon {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  box-shadow: none;
}
.hero--v3 .btn-primary {
  background: var(--verdegris);
  box-shadow: 0 8px 22px rgba(42, 157, 143, .35);
}
.hero--v3 .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.hero--v3 .btn-outline:hover:not(:disabled) {
  background: var(--amber);
  color: var(--onyx);
  border-color: var(--amber);
}
.hero--v3 .sparkle-dark { color: var(--amber); }
.hero--v3 .blob-teal { background: var(--amber); } /* большой шарик — жёлтый */
.hero--v3 .blob-pink { background: var(--verdegris); } /* малый — бирюзовый */
.hero--v3 .hero-dots button { background: rgba(255, 255, 255, .35); }
.hero--v3 .hero-dots button.is-active { background: var(--amber); }
.hero--v3 .hero-arrow {
  background: rgba(255, 255, 255, .95);
  color: var(--verdegris);
}

.hero-inner { position: relative; z-index: 2; pointer-events: none; }

.hero-copy {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* Текст меняется вместе с фото: слои друг над другом */
.hero-texts { display: grid; }

.hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  /* неактивный слайд не растягивает блок — иначе условия акции наезжают на кнопки */
  height: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
  pointer-events: none;
}
.hero-text.is-active {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  transform: none;
  pointer-events: auto;
}

.promo-code {
  color: var(--verdegris);
  white-space: nowrap;
}

.promo-code-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 .15rem;
  padding: .15rem .55rem;
  border: 1px dashed rgba(42, 157, 143, .55);
  border-radius: 8px;
  background: rgba(42, 157, 143, .1);
  color: var(--verdegris);
  font: inherit;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.promo-code-btn:hover {
  background: rgba(42, 157, 143, .18);
  border-color: var(--verdegris);
  transform: translateY(-1px);
}
.promo-code-btn.is-copied {
  background: var(--verdegris);
  border-style: solid;
  border-color: var(--verdegris);
  color: #fff;
}

.promo-code-line {
  margin: 0 0 1rem !important;
  font-size: .95rem;
  color: var(--onyx) !important;
  font-weight: 600;
}

.hero--v3 .promo-code-btn {
  border-color: rgba(94, 224, 208, .55);
  background: rgba(94, 224, 208, .12);
  color: #5EE0D0;
}
.hero--v3 .promo-code-btn:hover,
.hero--v3 .promo-code-btn.is-copied {
  background: #5EE0D0;
  border-color: #5EE0D0;
  color: var(--onyx);
}

.hero-title {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1.1rem;
  max-width: 15ch;
}

.hero-sub {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .35rem;
  margin-bottom: 2.5rem;
}

.hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--onyx);
  min-width: 0;
}

.hero-features li > span:last-child {
  flex: 1;
  min-width: 0;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(10, 16, 13, .08);
  color: var(--onyx);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 16, 13, .06);
}
.feature-icon svg { width: 19px; height: 19px; }

/* Фото-блок: на мобильных — карточка под текстом, на десктопе — во всю высоту справа */
.hero-photo-side {
  position: relative;
  margin: 2rem auto 0;
  width: min(100%, 520px);
  padding-inline: 1rem;
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Сдвиг кадров: руки мастера в кадре; мама правее — не под стрелкой */
.hero-slide--master { object-position: 38% center; }
.hero-slide--mom { object-position: 78% center; }

/* Окно: без opacity-transition — иначе CSS-анимации скребка «замирают» */
.hero-slide--window {
  opacity: 0;
  transition: none;
  visibility: hidden;
}
.hero-slide--window.is-active {
  opacity: 1;
  visibility: visible;
}

/* Слайд с окном: реалистичный скребок скользит и «отмывает» стекло */
.hero-slide--window .window-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.hero-slide--window .window-dirty { z-index: 0; }

/* Общий прогресс скребка и «отмывки» — чтобы clean не обгонял лезвие */
@property --wipe {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.window-clean-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  z-index: 1;
  /* при --wipe: 1 ширина = 100% — стекло очищается до конца */
  width: calc(var(--wipe, 0) * 100%);
}
.window-clean-wrap .window-clean {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.hero-slide--window .window-clean-wrap .window-clean {
  width: var(--hero-slide-w, 700px);
}

.hero-slide--window.is-active {
  animation: wipe-drive 8s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes wipe-drive {
  0%   { --wipe: 0; }
  48%  { --wipe: 1; }
  78%  { --wipe: 1; }
  100% { --wipe: 0; }
}

.squeegee {
  position: absolute;
  top: 50%;
  /* лезвие доезжает до правого края вместе с --wipe: 1 */
  left: calc(-14% + (var(--wipe, 0) * 114%));
  width: min(84%, 560px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 22px 36px rgba(10, 16, 13, .55));
  will-change: left, transform, opacity;
  transform: translateY(-50%) rotate(calc(-8deg + var(--wipe, 0) * 14deg));
}
.squeegee img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  opacity: 1;
}
.hero-slide--window.is-active .squeegee {
  animation: squeegee-fade 8s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes squeegee-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  52%  { opacity: 1; }
  62%  { opacity: 0; }
  100% { opacity: 0; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.blob-teal {
  width: 84px;
  height: 84px;
  background: var(--verdegris);
  left: -26px;
  top: 52%;
  animation: floaty 6s ease-in-out infinite;
}
.blob-pink {
  width: 46px;
  height: 46px;
  background: var(--amaranth);
  left: -46px;
  top: 66%;
  animation: floaty 5s ease-in-out infinite reverse;
}

.sparkle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  animation: twinkle 3s ease-in-out infinite;
}
.sparkle-dark {
  color: var(--onyx);
  font-size: 1.5rem;
  left: -56px;
  top: 26%;
}
.sparkle-white-1 {
  color: #fff;
  font-size: 1.35rem;
  right: 10%;
  top: 9%;
}
.sparkle-white-2 {
  color: #fff;
  font-size: .95rem;
  right: 5%;
  top: 46%;
}

/* Точки — переключение слайдов hero */
.hero-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: .5rem;
  z-index: 3;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(10, 16, 13, .18);
  transition: width .25s, background .25s;
}
.hero-dots button.is-active {
  width: 22px;
  background: var(--verdegris);
}

/* Стрелки — только на стороне фото, чтобы не перекрывать текст */
.hero-arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .94);
  color: var(--verdegris);
  box-shadow: 0 8px 24px rgba(10, 16, 13, .16);
  transform: translateY(-50%);
  animation: arrow-blink 2.4s ease-in-out infinite;
  transition: background .2s, color .2s, transform .2s;
}
.hero-arrow svg { width: 20px; height: 20px; }
/* На мобильных — по краям карточки фото; на десктопе — внутри фото-зоны */
.hero-arrow--prev { left: .75rem; }
.hero-arrow--next { right: .75rem; animation-delay: 1.2s; }
.hero-arrow:hover {
  background: var(--verdegris);
  color: #fff;
  animation: none;
  transform: translateY(-50%) scale(1.08);
}

@keyframes arrow-blink {
  0%, 100% {
    opacity: .55;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 8px 24px rgba(10, 16, 13, .16);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 10px 30px rgba(42, 157, 143, .4);
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (min-width: 980px) {
  .hero {
    padding: 0;
    min-height: min(72vh, 760px);
    display: flex;
    align-items: stretch;
  }

  .hero-inner {
    order: initial;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    box-sizing: border-box;
    /* Текст, кнопки и значки — по центру высоты экрана ноутбука/ПК */
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 3rem 2.75rem;
  }

  .hero-photo-side,
  .hero-dots {
    order: initial;
  }

  .hero-copy {
    /* Сдвигаем текст от левого края к волне фото */
    max-width: min(440px, 48%);
    margin-left: clamp(1.75rem, 4.5vw, 4.25rem);
    padding: 0;
  }

  .hero-actions {
    margin-top: .5rem;
    margin-bottom: 2.25rem;
  }

  .hero--v3 .hero-title {
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    max-width: 18ch;
  }
  .hero--v3 .hero-sub {
    font-size: .95rem;
    margin-bottom: .85rem;
  }
  .hero--v3 .promo-terms--hero {
    margin: .55rem 0 1.25rem;
    font-size: .86rem;
  }
  .hero--v3 .promo-terms--hero ol {
    font-size: .86rem;
    gap: .32rem;
  }
  .hero--v3 .hero-actions {
    margin-top: .25rem;
    margin-bottom: 2.5rem;
  }

  .hero-photo-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    margin: 0;
    padding: 0;
    z-index: 1;
  }

  .hero-slides {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
    max-height: none;
    /* Овальный разделитель («шторка») — на всех слайдах */
    clip-path: ellipse(85% 95% at 90% 50%);
  }

  .hero-features {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem 1.35rem;
    max-width: none;
  }

  .hero-features li {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    text-align: left;
  }

  .hero-features li > span:last-child {
    width: 100%;
  }

  .hero-dots { display: flex; }
  .hero-arrow { display: inline-flex; }
  .hero-arrow--prev { left: 10%; }
  .hero-arrow--next { right: 1.4rem; }
}

/* Клики: текст кликабелен, стрелки поверх «пустого» слоя контейнера */
.hero-photo-side { pointer-events: none; }
.hero-arrow { pointer-events: auto; z-index: 6; }
.hero-dots { pointer-events: auto; }

/* ---------- Секции ---------- */
.section { padding: 4.5rem 0; background: #fff; }
.section-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.section-sub {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.55;
}
.section-head { margin-bottom: 2.25rem; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* ---------- О компании ---------- */
.about { background: var(--platinum); }
.about-eyebrow {
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--onyx);
}
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.about-text .section-title { margin-bottom: 1.15rem; }
.about-text .accent-teal { color: var(--verdegris); }
.about-text p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.about-stats {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.about-stats li {
  display: flex;
  align-items: center;
  gap: .85rem;
  position: relative;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  color: var(--verdegris);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 28px; height: 28px; }

.about-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--onyx);
  line-height: 1.15;
}
.about-stats span {
  font-size: .82rem;
  color: var(--muted);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .about-text {
    padding-top: .15rem;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .about-stats li {
    flex-direction: row;
    align-items: center;
    padding-right: 1rem;
  }
  .about-stats li:not(:last-child) {
    border-right: 1px solid rgba(10, 16, 13, .12);
    margin-right: 1rem;
    padding-right: 1.25rem;
  }
}

/* ---------- Услуги (тёмный блок) ---------- */
.services {
  background: var(--onyx);
  color: #fff;
}
.services .section-eyebrow {
  margin: 0 0 .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.services .section-title .accent-teal { color: var(--verdegris); }
.services .section-sub { color: rgba(255, 255, 255, .6); }

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: #1a2220;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

.service-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.service-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 13, .08) 0%,
    rgba(10, 16, 13, .25) 45%,
    rgba(10, 16, 13, .78) 100%
  );
  pointer-events: none;
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition: transform .4s ease;
}
.service-card:hover .service-thumb img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.35rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.service-price {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}
.service-price strong {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.service-card--extra[hidden] { display: none !important; }

.services-cta {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

/* Ровные ряды: 2 / 4 колонки */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Акция месяца ---------- */
.promo {
  padding: 3rem 0 4.5rem;
  background: var(--verdegris);
}

.promo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  color: var(--onyx);
  display: grid;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 50px rgba(10, 16, 13, .18);
  /* На широких экранах карточка не растягивается на всю ширину */
  max-width: 980px;
  margin-inline: auto;
}

.promo-copy {
  padding: 2rem 1.75rem 2.15rem;
  position: relative;
  z-index: 2;
}

.promo-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .85rem;
}

.promo-heading {
  margin: 0 0 .85rem;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--onyx);
  max-width: 16ch;
}
.promo-heading span { color: var(--verdegris); }

.promo-copy p {
  margin: 0 0 1.5rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  font-size: .95rem;
}

.promo-terms {
  margin: 0 0 1.35rem;
  max-width: 44ch;
  /* место слева под цифры 1. 2. 3. — текст пунктов совпадает с заголовком */
  padding-left: 1.35rem;
}
.promo-terms-title {
  margin: 0 0 .55rem !important;
  margin-left: -1.35rem !important;
  font-size: .88rem !important;
  font-weight: 700;
  color: var(--onyx) !important;
}
.promo-terms ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  counter-reset: promo-step;
}
.promo-terms li {
  position: relative;
  padding-left: 0;
}
.promo-terms li::before {
  counter-increment: promo-step;
  content: counter(promo-step) ".";
  position: absolute;
  left: -1.35rem;
  top: 0;
  width: 1.2rem;
  font-weight: 700;
  color: inherit;
  text-align: left;
}
.promo-terms a {
  color: var(--verdegris);
  font-weight: 600;
  text-decoration: underline;
}

.promo-cta {
  align-self: flex-start;
  width: auto;
  padding: .65rem 1.35rem;
  font-size: .92rem;
}

.promo-terms--hero {
  margin: .75rem 0 1.35rem;
  max-width: 40ch;
  padding-left: 1.35rem;
}
.promo-terms--hero .promo-terms-title {
  color: inherit !important;
  opacity: .95;
  margin-left: -1.35rem !important;
  margin-bottom: .5rem !important;
}
.hero--v3 .promo-terms--hero {
  color: rgba(255, 255, 255, .82);
}
.hero--v3 .promo-terms--hero li::before {
  color: rgba(255, 255, 255, .9);
}
.hero--v3 .promo-terms--hero a {
  color: #5EE0D0;
}
.hero--v2 .promo-terms--hero a {
  color: #ffb3c0;
}

.promo-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.promo-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: 55% center;
  display: block;
}

.promo-badge {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  left: auto;
  top: auto;
  transform: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--onyx);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  z-index: 3;
}

.promo-sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--verdegris);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  z-index: 3;
  pointer-events: none;
}
.promo-sparkle--1 {
  right: 6.5rem;
  bottom: 6.5rem;
  left: auto;
  top: auto;
  width: 28px;
  height: 28px;
}
.promo-sparkle--2 {
  right: 8.5rem;
  bottom: 2.5rem;
  left: auto;
  top: auto;
  width: 18px;
  height: 18px;
  opacity: .85;
}

@media (min-width: 900px) {
  .promo { padding: 3rem 0 3.75rem; }
  .promo-card {
    grid-template-columns: 1.08fr 1fr;
    min-height: 0;
  }
  .promo-copy {
    padding: 2.25rem 1.75rem 2.35rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    max-width: none;
    z-index: 2;
  }
  .promo-heading {
    max-width: 16ch;
  }
  .promo-copy p {
    margin-bottom: 1rem;
    max-width: 34ch;
  }
  .promo-terms {
    margin-bottom: 1.1rem;
    max-width: 36ch;
  }
  .promo-visual {
    min-height: 100%;
    width: auto;
  }
  .promo-visual img {
    min-height: 100%;
    height: 100%;
    clip-path: ellipse(95% 130% at 78% 50%);
  }
  .promo-badge {
    left: 54%;
    top: 48%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    font-size: 1.35rem;
  }
  .promo-sparkle--1 {
    left: 50%;
    top: 18%;
    right: auto;
    bottom: auto;
  }
  .promo-sparkle--2 {
    left: 47%;
    top: auto;
    right: auto;
    bottom: 22%;
  }
}

/* ---------- Как мы работаем ---------- */
.steps-section { background: #fff; }

.accent-amaranth { color: var(--amaranth); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.step {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 260px;
  margin-inline: auto;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0f2f1;
  color: var(--onyx);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
}
.step-icon svg { width: 30px; height: 30px; }
.step-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.step-num {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(10, 16, 13, .4);
  letter-spacing: .06em;
  margin-bottom: .45rem;
}

.step-text {
  margin: 0;
  color: var(--onyx);
  line-height: 1.45;
  font-size: .98rem;
  font-weight: 600;
}

@media (min-width: 768px) and (max-width: 979px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.5rem;
  }
  .step {
    max-width: 280px;
  }
}

@media (min-width: 980px) {
  .steps {
    max-width: 860px;
    margin-inline: auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .step {
    max-width: none;
    width: 100%;
    padding-inline: .5rem;
  }
  .step-text {
    max-width: 15ch;
    margin-inline: auto;
  }
  /* Линия тянется от края иконки до иконки следующего шага */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    width: auto;
    height: 0;
    border-top: 2px dashed rgba(10, 16, 13, .22);
    pointer-events: none;
  }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 100%;
    margin-left: -4px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid rgba(10, 16, 13, .28);
    z-index: 1;
  }
}

/* ---------- До/после ---------- */
.portfolio { background: #fff; }

.ba-grid {
  display: grid;
  gap: 1.5rem;
}

.ba-item { margin: 0; }
.ba-item figcaption {
  margin-top: .75rem;
  font-weight: 700;
  text-align: center;
  font-size: .95rem;
}

.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow);
  --pos: 50%;
}

.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before {
  width: var(--pos);
  overflow: hidden;
  border-right: 2px solid #fff;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--verdegris);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.ba-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  background: rgba(10, 16, 13, .6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
  pointer-events: none;
  text-transform: lowercase;
}
.ba-label--before { left: 12px; }
.ba-label--after { right: 12px; }

@media (min-width: 768px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .ba-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Отзывы ---------- */
.reviews { background: #fff; color: var(--onyx); }
.reviews-eyebrow {
  margin: 0 0 .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-areas:
    "prev viewport next"
    "dots dots dots";
  gap: 1.25rem 0.85rem;
  align-items: center;
}

.reviews-viewport {
  grid-area: viewport;
  overflow: hidden;
  min-width: 0;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.15rem;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(10, 16, 13, .1);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(10, 16, 13, .05);
}

.review-quote {
  display: block;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--verdegris);
  font-weight: 700;
  margin-bottom: .35rem;
  font-family: Georgia, "Times New Roman", serif;
}

.review-card blockquote { margin: 0 0 .85rem; flex: 1; }
.review-card blockquote p {
  margin: 0;
  line-height: 1.6;
  font-size: .98rem;
  color: var(--onyx);
}
.review-card blockquote p.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.review-more {
  display: none;
  margin: -.35rem 0 .85rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--verdegris);
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  align-self: flex-start;
}
.review-more:hover { text-decoration: underline; }
.review-more[hidden] { display: none !important; }

@media (min-width: 640px) {
  .review-card blockquote p.is-clamped {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .review-more {
    display: none !important;
  }
}
.review-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .45rem;
  color: var(--onyx);
}
.review-stars {
  color: var(--amber);
  letter-spacing: 2px;
  font-size: .95rem;
}

.reviews-btn[data-prev] { grid-area: prev; }
.reviews-btn[data-next] { grid-area: next; }

.reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ecefec;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--onyx);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.reviews-btn:hover {
  background: var(--verdegris);
  color: #fff;
}

.reviews-dots {
  grid-area: dots;
  display: flex;
  gap: .45rem;
  justify-content: center;
}
.reviews-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 16, 13, .18);
  padding: 0;
  cursor: pointer;
}
.reviews-dots button.is-active {
  background: var(--verdegris);
  width: 22px;
  border-radius: 999px;
}

@media (min-width: 768px) {
  .reviews-track { grid-auto-columns: calc((100% - 1.15rem) / 2); }
}
@media (min-width: 1024px) {
  .reviews-track { grid-auto-columns: calc((100% - 2.3rem) / 3); }
}

/* ---------- Футер + форма (тёмный) ---------- */
.site-footer-main {
  background: var(--onyx);
  color: #fff;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
  column-gap: 1.15rem;
  row-gap: 2rem;
}

.footer-brand p {
  margin: .9rem 0 0;
  opacity: .7;
  font-size: .9rem;
  line-height: 1.55;
}

.footer-col { display: flex; flex-direction: column; }
.footer-col-title {
  margin: 0 0 1.25rem;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col > a {
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
  padding: .3rem 0;
}
.footer-col > a:hover { color: var(--verdegris); }

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .98rem;
  color: rgba(255, 255, 255, .88);
}
.footer-contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #fff;
  display: inline-flex;
}
.footer-contact-icon svg {
  width: 100%;
  height: 100%;
}
.footer-contact-list a {
  color: #fff;
  font-weight: 600;
}
.footer-contact-list a:hover { color: var(--verdegris); }

.messenger-btns {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  transition: background .2s, border-color .2s, color .2s;
  width: 100%;
  text-align: center;
}
.messenger-btn:hover {
  background: var(--verdegris);
  border-color: var(--verdegris);
  color: #fff;
}

.lead-form-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.lead-title {
  margin: 0 0 .65rem;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lead-form-hint {
  margin: 0 0 1rem;
  font-size: .85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .65);
}

.lead-form { display: grid; gap: .85rem; position: relative; }

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  outline: none;
}
.field input::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus,
.field select:focus {
  border-color: var(--verdegris);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, .25);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select option { color: var(--onyx); }
.lead-form-wrap .field-error {
  color: #ffb3c0;
}

.field-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--onyx);
}

.field-error {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--amaranth);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: #ff8fa3;
  box-shadow: 0 0 0 3px rgba(230, 57, 86, .25);
}

/* ---------- Попап заявки ---------- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.lead-modal[hidden] { display: none !important; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 13, .55);
  backdrop-filter: blur(4px);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(42, 157, 143, .12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--platinum) 100%);
  box-shadow: 0 28px 64px rgba(10, 16, 13, .28);
  animation: lead-modal-in .28s ease-out;
}

@keyframes lead-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.lead-modal__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--onyx);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
  transition: opacity .2s, background .2s;
}
.lead-modal__close svg { width: 20px; height: 20px; }
.lead-modal__close:hover {
  opacity: 1;
  background: rgba(10, 16, 13, .06);
}

.lead-modal__title {
  margin: 0 2rem .4rem 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--onyx);
  letter-spacing: -.02em;
}

.lead-modal__sub {
  margin: 0 0 1.25rem;
  font-size: .95rem;
  line-height: 1.45;
  color: rgba(10, 16, 13, .62);
}

.lead-form--modal .field input,
.lead-form--modal .field select {
  border-color: rgba(10, 16, 13, .16);
  background: #fff;
  color: var(--onyx);
}
.lead-form--modal .field input::placeholder { color: rgba(10, 16, 13, .38); }
.lead-form--modal .field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A100D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.lead-form--modal .field select option { color: var(--onyx); }

.lead-form--modal .form-message.is-success,
.form-message.form-message--modal.is-success {
  background: #e6f6f3;
  color: #0f5c52;
  border: 1px solid rgba(42, 157, 143, .35);
}
.lead-form--modal .form-message.is-error,
.form-message.form-message--modal.is-error {
  background: #fde8ec;
  color: #8f1428;
  border: 1px solid rgba(230, 57, 86, .35);
}

body.lead-modal-open {
  overflow: hidden;
}

.consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .8rem;
  line-height: 1.45;
  opacity: .9;
  cursor: pointer;
  color: rgba(255, 255, 255, .85);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--verdegris);
}
.consent a {
  color: #7dd3c7;
  text-decoration: underline;
}

/* Попап: текст согласия — тёмный, иначе перекрывается белым цветом футера */
.consent.consent--modal {
  color: #0a100d;
  opacity: 1;
}
.consent.consent--modal span {
  color: #0a100d;
}
.consent.consent--modal a {
  color: #1f7a6e;
  font-weight: 600;
}

.form-message {
  margin: 0;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
}
.form-message.is-success {
  background: rgba(42, 157, 143, .2);
  color: #b8f0e6;
}
.form-message.is-error {
  background: rgba(230, 57, 86, .2);
  color: #ffc0cb;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  opacity: .7;
}
.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
  color: #fff;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2rem;
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    column-gap: 0;
  }

  /* ширина колонки = по самому длинному тексту внутри */
  .footer-grid > * {
    flex: 0 0 auto;
    min-width: 0;
    width: max-content;
  }

  .footer-brand {
    width: 14.5rem;
    max-width: 14.5rem;
  }
  .footer-brand p {
    max-width: 100%;
  }

  .footer-col {
    width: max-content;
  }

  .footer-messengers {
    width: max-content;
  }
  .messenger-btns {
    width: 100%;
  }
  .messenger-btn {
    white-space: nowrap;
  }

  .lead-form-wrap {
    width: 15rem;
    max-width: 15rem;
  }
}

/* ---------- Fade-in / появление блоков ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .75s cubic-bezier(.22, 1, .36, 1),
    transform .75s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Каскад карточек внутри видимого блока */
.reveal.is-visible .service-card,
.reveal.is-visible .step,
.reveal.is-visible .ba-item,
.reveal.is-visible .about-stats li,
.reveal.is-visible .review-card {
  animation: card-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}
.reveal.is-visible .service-card:nth-child(1),
.reveal.is-visible .step:nth-child(1),
.reveal.is-visible .ba-item:nth-child(1),
.reveal.is-visible .about-stats li:nth-child(1) { animation-delay: .05s; }
.reveal.is-visible .service-card:nth-child(2),
.reveal.is-visible .step:nth-child(2),
.reveal.is-visible .ba-item:nth-child(2),
.reveal.is-visible .about-stats li:nth-child(2) { animation-delay: .12s; }
.reveal.is-visible .service-card:nth-child(3),
.reveal.is-visible .step:nth-child(3),
.reveal.is-visible .ba-item:nth-child(3),
.reveal.is-visible .about-stats li:nth-child(3) { animation-delay: .19s; }
.reveal.is-visible .service-card:nth-child(4),
.reveal.is-visible .step:nth-child(4),
.reveal.is-visible .ba-item:nth-child(4),
.reveal.is-visible .about-stats li:nth-child(4) { animation-delay: .26s; }
.reveal.is-visible .service-card:nth-child(5) { animation-delay: .33s; }
.reveal.is-visible .service-card:nth-child(6) { animation-delay: .4s; }
.reveal.is-visible .service-card:nth-child(7) { animation-delay: .47s; }
.reveal.is-visible .service-card:nth-child(8) { animation-delay: .54s; }

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.service-card,
.step,
.ba-item,
.review-card,
.promo-card {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.service-card:hover,
.ba-item:hover,
.review-card:hover {
  transform: translateY(-4px);
}
.promo-card:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible .service-card,
  .reveal.is-visible .step,
  .reveal.is-visible .ba-item,
  .reveal.is-visible .about-stats li,
  .reveal.is-visible .review-card,
  .service-card,
  .step,
  .ba-item,
  .review-card,
  .promo-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Политика ---------- */
.privacy-page { padding: 2rem 0 4rem; }
.privacy-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
.privacy-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 .75rem;
}
.privacy-page p, .privacy-page li { line-height: 1.65; color: var(--muted); }
.privacy-note {
  background: rgba(240, 200, 8, .18);
  border-left: 4px solid var(--amber);
  padding: .9rem 1rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--onyx);
}
.privacy-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--verdegris);
  font-weight: 700;
}

/* ---------- Футер страницы политики ---------- */
.site-footer {
  background: var(--platinum);
  border-top: 1px solid rgba(10, 16, 13, .08);
  padding: 1.5rem 0;
}
.site-footer .footer-bottom {
  opacity: 1;
  color: var(--muted);
}
.site-footer .footer-bottom a { color: var(--verdegris); font-weight: 700; }
.site-footer .footer-bottom a:hover { text-decoration: underline; color: var(--verdegris); }

/* =========================================================
   Адаптив: телефоны и планшеты
   ========================================================= */

/* --- Телефоны --- */
@media (max-width: 639px) {
  :root { --header-h: 64px; }

  .logo-img { width: 140px; }
  .header-inner { min-height: var(--header-h); }

  .mobile-menu {
    padding-inline: 1.75rem;
  }

  /* Hero: картинка сверху, текст и кнопки снизу */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h));
    max-height: none;
    padding: .65rem 0 1rem;
    overflow: visible;
    box-sizing: border-box;
  }

  .hero-photo-side {
    order: 1;
    width: 100%;
    margin: 0;
    padding-inline: 1.75rem;
    box-sizing: border-box;
    flex: 0 1 auto;
  }

  .hero-slides {
    border-radius: 16px;
    aspect-ratio: 16 / 11;
    max-height: min(36svh, 280px);
  }

  .hero-dots {
    order: 2;
    display: flex;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    margin: .75rem 0 0;
    padding-inline: 1.75rem;
  }

  .hero-inner {
    order: 3;
    width: 100%;
    max-width: none;
    padding-inline: 1.75rem;
    margin: 1.65rem 0 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
    padding: 0;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1.2rem, 5.6vw, 1.55rem);
    line-height: 1.2;
    margin-top: .15rem;
    margin-bottom: .55rem;
  }

  .hero-sub {
    font-size: .84rem;
    line-height: 1.4;
    margin-bottom: .9rem;
  }

  .promo-terms--hero {
    margin: 0 0 1.1rem;
    font-size: .78rem;
    padding-left: 1.25rem;
  }
  .promo-terms--hero .promo-terms-title {
    margin-bottom: .4rem !important;
    margin-left: -1.25rem !important;
    font-size: .8rem !important;
  }
  .promo-terms--hero ol {
    gap: .28rem;
    font-size: .78rem;
    padding-left: 0;
  }
  .promo-terms--hero li::before {
    left: -1.25rem;
    width: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin-top: .15rem;
    margin-bottom: .5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* На узких экранах три колонки наезжают — скрываем */
  .hero-features {
    display: none;
  }

  .reviews-carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: .85rem .45rem;
  }
  .reviews-btn {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .review-card {
    padding: 1.1rem 1rem 1rem;
  }
  .review-quote {
    font-size: 1.85rem;
    margin-bottom: .15rem;
  }
  .review-card blockquote {
    margin-bottom: .55rem;
  }
  .review-card blockquote p {
    font-size: .9rem;
    line-height: 1.45;
  }
  .review-card blockquote p.is-clamped {
    -webkit-line-clamp: 4;
  }
  .review-more {
    display: inline-flex;
  }

  .hero-arrow {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }
  .hero-arrow--prev { left: calc(1.75rem + .35rem); }
  .hero-arrow--next { right: calc(1.75rem + .35rem); }

  .blob, .sparkle-dark { display: none; }

  .section { padding: 3rem 0; }
  .section-title { font-size: clamp(1.35rem, 6vw, 1.7rem); }

  .btn-lg { padding: .72rem 1.1rem; font-size: .9rem; }
}

/* --- Планшеты --- */
@media (min-width: 640px) and (max-width: 979px) {
  .logo-img { width: 160px; }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 2.25rem;
  }

  .hero-photo-side {
    order: 1;
    width: min(100%, 640px);
    margin: 0 auto;
    padding-inline: 2rem;
    box-sizing: border-box;
  }

  .hero-dots {
    order: 2;
    display: flex;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    margin: .85rem 0 1.25rem;
  }

  .hero-inner {
    order: 3;
    width: 100%;
    padding-inline: 2rem;
    box-sizing: border-box;
  }

  .hero-title {
    max-width: 18ch;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
  }

  .hero-sub {
    margin-bottom: 1rem;
  }

  .promo-terms--hero {
    margin: .65rem 0 1.25rem;
  }

  .hero-actions {
    margin-top: .2rem;
    margin-bottom: 2rem;
  }

  .hero-features {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    margin-top: .75rem;
  }
  .hero-features li {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .hero-arrow {
    display: inline-flex;
  }
  .hero-arrow--prev { left: calc(2rem + .5rem); }
  .hero-arrow--next { right: calc(2rem + .5rem); }

  .section { padding: 3.5rem 0; }
}

/* Общие правки до десктопного hero-split */
@media (max-width: 979px) {
  .hero-copy {
    max-width: none;
    padding: 0;
  }
}
