/* ============================================================
   main.css — «Deep Green Corporate» (design.md)
   Токены, база, кнопки, navbar, hero
   ============================================================ */

:root {
  --green-950: #08150D;
  --green-900: #0C1F14;
  --green-850: #0F1D15;
  --green-800: #0E2B1B;
  --green-700: #16402A;
  --green-600: #5E9A1F;
  --green-500: #6FAE2E;
  --green-400: #8CC63F;
  --green-050: #EAF3DF;
  --bg-light: #F4F6F2;
  --surface: #FFFFFF;
  --text-dark: #16281E;
  --text-muted: #6E7B72;
  --line-light: #E4E8E2;
  --line-dark: rgba(255, 255, 255, .12);
  --white-70: rgba(255, 255, 255, .72);
  --white-85: rgba(255, 255, 255, .86);
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(8, 21, 13, .08);
  --shadow-card-hover: 0 16px 40px rgba(8, 21, 13, .12);
  --container: 1200px;
  --font-sans: 'Inter', 'Manrope', system-ui, sans-serif;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 15px/1.65 var(--font-sans);
  color: var(--text-muted);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; color: var(--text-dark); }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

::selection { background: var(--green-050); color: var(--text-dark); }

:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px;
  border-radius: var(--radius-pill);
  font: 600 14px/1 var(--font-sans); letter-spacing: .01em;
  color: #fff; background: var(--green-500);
  border: 1px solid transparent;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: btn-shine 5s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
}
@keyframes btn-shine {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}
.btn:hover { background: var(--green-600); }
.btn .arrow { transition: transform .2s ease; flex-shrink: 0; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--outline-dark { background: transparent; border-color: var(--white-85); }
.btn--outline-dark:hover { background: rgba(255, 255, 255, .1); }
.btn--outline-light { background: transparent; border-color: var(--green-500); color: var(--green-500); }
.btn--outline-light:hover { background: var(--green-500); color: #fff; }
.btn--compact { height: 38px; padding: 0 18px; font-size: 13px; }
.btn--primary-lg { height: 52px; padding: 0 30px; font-size: 15px; box-shadow: 0 10px 30px rgba(111, 174, 46, .35); }
.btn--primary-lg:hover { box-shadow: 0 14px 38px rgba(111, 174, 46, .45); }
.btn--max { background: linear-gradient(96deg, #5A8CFF 0%, #43D6FF 34%, #8F3FFF 100%); }
.btn--max:hover { background: linear-gradient(96deg, #5A8CFF 0%, #43D6FF 34%, #8F3FFF 100%); filter: brightness(1.12); }
.btn--max img { flex-shrink: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-sans); color: var(--green-500);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: gap .2s ease;
}
.text-link:hover { gap: 12px; }
.text-link .arrow { transition: transform .2s ease; }

/* ── Eyebrow и шапка секции ───────────────────────────────── */
.eyebrow {
  display: inline-block;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 14px;
}
.on-dark .eyebrow, .eyebrow--dark { color: var(--green-400); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 48px;
}
.sec-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2; letter-spacing: -0.01em; font-weight: 800;
}
.sec-head__aside { max-width: 460px; flex-shrink: 0; }
.sec-head__aside p { font-size: 14px; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: var(--green-800);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(8, 21, 13, .35); background: var(--green-850); }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__logo { height: 38px; width: auto; display: block; }
.nav__logo--footer { height: 34px; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a {
  font: 500 13px/1 var(--font-sans); color: var(--white-85);
  padding: 6px 0; position: relative; transition: color .2s ease;
}
.nav__menu a:hover { color: #fff; }
.nav__menu a.is-active { color: #fff; }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--green-400); border-radius: 2px;
}
.nav__phone {
  font: 600 14px/1 var(--font-sans); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__phone:hover { color: var(--green-400); }
.nav__phone svg { color: var(--green-400); }
.nav__burger {
  display: none; width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span {
  display: block; width: 16px; height: 1.5px; background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__mobile {
  display: none; background: var(--green-900);
  padding: 12px 24px 24px;
}
.nav__mobile.is-open { display: block; }
.nav__mobile a {
  display: block; padding: 12px 0;
  font: 500 14px/1 var(--font-sans); color: var(--white-85);
  border-bottom: 1px solid var(--line-dark);
}
.nav__mobile .btn { width: 100%; margin-top: 16px; }

/* ── Секции: ритм фонов ──────────────────────────────────── */
.section { padding-block: 92px; }
.section--light { background: var(--bg-light); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--green-850); color: var(--white-70); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ── Преимущества (feature-columns) ──────────────────────── */
.features__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2.15fr);
  gap: 56px; align-items: start;
}
.features__intro h2 {
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2;
  letter-spacing: -0.01em; font-weight: 800; margin-bottom: 16px;
}
.features__intro p { font-size: 14px; max-width: 320px; }
.features__cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature {
  padding: 8px 28px;
  border-left: 1px solid var(--line-light);
}
.feature:first-child { border-left: 0; padding-left: 0; }
.feature svg { color: var(--green-500); width: 34px; height: 34px; margin-bottom: 16px; }
.feature h3 { font-size: 15px; line-height: 1.35; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 13px; line-height: 1.6; }

/* ── Процесс работы: 4 шага ─────────────────────────────── */
.process__steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-bottom: 56px;
}
.step-card {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.step-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.step-card__img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line-light);
}
.step-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.step-card:hover .step-card__img img { transform: scale(1.04); }
.step-card__overlay {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(22,40,30,.88) 0%, rgba(22,40,30,.65) 55%, rgba(22,40,30,.15) 100%);
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 20px 16px;
}
.step-card__num {
  font: 800 42px/1 var(--font-sans); color: #fff;
  letter-spacing: -0.02em; opacity: .9; flex-shrink: 0;
}
.step-card__divider {
  width: 1px; align-self: stretch; min-height: 36px;
  background: rgba(255,255,255,.3); flex-shrink: 0;
}
.step-card__overlay h3 {
  font-size: 16px; line-height: 1.3; font-weight: 700;
  color: #fff; flex: 1;
}
.step-card > p {
  font-size: 13px; line-height: 1.6; padding: 14px 20px 0;
  color: var(--text-muted); flex: 1;
}
.step-card > p:last-child { padding-bottom: 20px; }
.step-card__check {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--green-700); font-weight: 500;
}
.step-card__check svg { flex-shrink: 0; margin-top: 2px; color: var(--green-500); }

/* CTA внутри процесса */
.process__cta {
  text-align: left;
}
.process__cta-hook {
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2;
  font-weight: 800; color: var(--green-600);
  margin-bottom: 12px;
}
.process__cta-title {
  font-size: clamp(18px, 2vw, 24px); line-height: 1.3;
  font-weight: 700; margin-bottom: 24px; color: var(--text-dark);
}
.process__cta-title strong { font-weight: 700; color: var(--green-700); }
.process__cta-installment {
  font-size: 13px; line-height: 1.5; color: var(--green-700);
  font-weight: 600; margin-top: 12px;
}
.process__cta-note {
  font-size: 12px; line-height: 1.5; color: var(--text-muted);
  margin-top: 8px;
}

/* ── Галерея фото (общие правила для кейсов и lightbox) ─── */
.work__photo {
  position: relative; display: block;
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--green-700);
  cursor: zoom-in;
}
.work__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.work__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 9, .85), rgba(6, 14, 9, 0) 55%);
  transition: opacity .3s ease;
}
.work__photo .arrow {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  color: var(--green-400); transition: transform .2s ease;
}
.work__photo:hover img { transform: scale(1.05); }
.work__photo:hover .arrow { transform: translateX(4px); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--green-900);
  color: var(--white-70);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 48px; align-items: center;
  padding-block: 72px 84px;
  min-height: 620px;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right,
    var(--green-900) 0%, var(--green-900) 38%, rgba(12, 31, 20, .5) 62%, rgba(12, 31, 20, 0) 84%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(8, 21, 13, .55), rgba(8, 21, 13, 0) 45%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.16; letter-spacing: -0.02em; font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--green-400); }
.hero__lead { font-size: 16px; line-height: 1.6; max-width: 560px; margin-bottom: 22px; }
.hero__cta-note { font: 600 14px/1.45 var(--font-sans); color: var(--white-85); margin-bottom: 12px; }
.hero__lead .accent { color: var(--green-400); font-weight: 600; }
.hero__lead strong { color: var(--white-85); }
.hero__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 420px; }
.hero__max { display: flex; flex-direction: column; gap: 7px; }
.hero__max-note { font: 400 12.5px/1.45 var(--font-sans); color: var(--white-70); max-width: 280px; }
.hero__features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 30px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.hero-feature { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.hero-feature:first-child { padding-left: 0; border-left: 0; }
.hero-feature svg { color: var(--green-400); width: 32px; height: 32px; margin-bottom: 10px; flex-shrink: 0; }
.hero-feature p { font-size: 12.5px; line-height: 1.5; color: var(--white-70); }
.hero-feature p strong { color: #fff; font-weight: 700; display: block; margin-bottom: 2px; font-size: 14px; }

/* ── Ценовой блок ──────────────────────────────── */
.price__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
}
.price__media {
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.price__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Before/After слайдер ─────────────────────── */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden; cursor: ew-resize; user-select: none;
  -webkit-user-select: none; touch-action: pan-y;
}
.ba-slider__after,
.ba-slider__before {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.ba-slider__before-wrap {
  position: absolute; inset: 0; width: 50%; overflow: hidden;
  z-index: 2;
}
.ba-slider__before {
  width: auto; min-width: 100%;
  /* ширина = ширина контейнера, а не обёртки */
}
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateX(-50%); pointer-events: none;
}
.ba-slider__line {
  flex: 1; width: 3px; background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.35);
}
.ba-slider__grip {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-500); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.ba-slider__label {
  position: absolute; bottom: 16px; z-index: 4;
  font: 700 12px/1 var(--font-sans); letter-spacing: .1em;
  color: #fff; background: rgba(0,0,0,.55);
  padding: 6px 12px; border-radius: var(--radius-pill);
  pointer-events: none;
}
.ba-slider__label--before { left: 14px; }
.ba-slider__label--after  { right: 14px; }
.price__content h2 {
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2;
  letter-spacing: -0.01em; font-weight: 800; margin-bottom: 16px;
}
.price__content h2 .accent { color: var(--green-500); }
.price__sub { font-size: 15px; margin-bottom: 26px; max-width: 520px; }
.price__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.price__list svg { color: var(--green-500); flex-shrink: 0; margin-top: 3px; }
.price__list strong { color: var(--text-dark); font-weight: 700; }
.price__call { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }
.price__call strong { color: var(--green-600); }
.price__note { font-size: 13px; color: var(--text-muted); margin-top: 14px; line-height: 1.55; }

/* Выделенный буллит (предложение осени) */
.price__list-highlight {
  background: var(--green-050);
  border-left: 3px solid var(--green-500);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.price__list-highlight strong { color: var(--green-700); }

/* Сезонная плашка — яркий зелёный фон, белый текст */
.price__season-box {
  background: var(--green-500);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px; line-height: 1.55; color: #fff; font-weight: 700;
}

/* Eyebrow в блоке price — обычный текст, не uppercase */
.price__content .eyebrow {
  text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 600;
  line-height: 1.6; color: var(--green-600); margin-bottom: 14px;
}

/* ── CTA-полоса ─────────────────────────────────── */
.cta-band {
  background: linear-gradient(100deg, var(--green-600), var(--green-500) 60%, var(--green-400));
  padding-block: 40px;
}
.cta-band__inner { display: flex; align-items: center; gap: 24px; }
.cta-band__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.cta-band__text { margin-right: auto; }
.cta-band__text h2 {
  color: #fff; font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.3; font-weight: 800; margin-bottom: 6px; max-width: 760px;
}
.cta-band__text p { font-size: 14px; color: var(--white-85); }

/* ── Футер ──────────────────────────────────────── */
.footer {
  position: relative; overflow: hidden;
  background: var(--green-900); color: var(--white-70);
  padding-top: 72px;
}
.footer__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 56px;
}
.footer__brand p { font-size: 13px; margin: 16px 0 20px; max-width: 280px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s ease, border-color .2s ease;
}
.footer__social a:hover { background: var(--green-500); border-color: transparent; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.footer__col li { margin-bottom: 11px; }
.footer__col a, .footer__col span { font-size: 13px; color: var(--white-70); transition: color .2s ease; }
.footer__col a:hover { color: var(--green-400); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13px; }
.footer__contact svg { color: var(--green-400); flex-shrink: 0; margin-top: 2px; }
.footer__contact img { filter: brightness(0) saturate(100%) invert(72%) sepia(38%) saturate(560%) hue-rotate(42deg) brightness(95%) contrast(87%); flex-shrink: 0; margin-top: 2px; }
.footer__watermark {
  position: absolute; right: -140px; bottom: -160px; z-index: 1;
  width: 420px; height: 420px; opacity: .07; pointer-events: none;
}
.footer__bottom {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 12px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__legal a { color: var(--white-70); cursor: pointer; }
.footer__legal a:hover { color: var(--green-400); }

.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-500); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
  box-shadow: 0 10px 30px rgba(8, 21, 13, .25);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--green-600); }
/* ── Всплывающая плашка-CTA (sticky) ───────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line-light);
  box-shadow: 0 -10px 30px rgba(8, 21, 13, .14);
  opacity: 0; visibility: hidden; transform: translateY(100%);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
.sticky-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; max-width: 720px;
}
.sticky-cta__text { min-width: 0; }
.sticky-cta__title {
  font: 700 12px/1.3 var(--font-sans); letter-spacing: -.01em;
  color: var(--text-dark);
}
.sticky-cta__sub {
  margin-top: 2px; font: 400 10.5px/1.3 var(--font-sans);
  color: var(--text-muted);
}
.sticky-cta__btn {
  flex-shrink: 0; height: 38px; padding: 0 14px; font-size: 12px;
  box-shadow: 0 8px 20px rgba(111, 174, 46, .3);
}
.sticky-cta__btn .arrow { display: none; }

/* Кнопка «наверх» поднимается над плашкой, пока та видна */
body.has-sticky .scroll-top { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 769px) {
  .sticky-cta {
    left: 50%; right: auto; bottom: 22px; transform: translate(-50%, 100%);
    width: max-content; max-width: min(740px, calc(100vw - 48px));
    padding: 10px 12px 10px 22px;
    border: 1px solid var(--line-light); border-radius: var(--radius-pill);
    box-shadow: 0 16px 40px rgba(8, 21, 13, .18);
  }
  .sticky-cta__inner { width: auto; }
  .sticky-cta.is-visible { transform: translate(-50%, 0); }
  .sticky-cta__title { font-size: 15px; }
  .sticky-cta__sub { font-size: 12px; }
  .sticky-cta__btn { height: 44px; padding: 0 22px; font-size: 14px; }
  .sticky-cta__btn .arrow { display: inline-block; }
  body.has-sticky .scroll-top { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

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

/* ── Модальные окна и формы ──────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 14, 9, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-card);
  padding: 36px; box-shadow: var(--shadow-card-hover);
  transform: translateY(12px); transition: transform .25s ease;
}
.modal-overlay.active .modal-content { transform: none; }
.modal-content h3 {
  font-size: 22px; line-height: 1.3; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: 12px;
}
.modal-content p { font-size: 14px; }
.modal-content .btn[type="submit"] { width: 100%; height: 48px; margin-top: 22px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-light); background: var(--surface);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.modal__close:hover { border-color: var(--green-500); color: var(--green-500); }

.field { margin-bottom: 14px; }
.field label {
  display: block; font: 600 12px/1.45 var(--font-sans);
  letter-spacing: .02em; color: var(--text-muted); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-light); border-radius: 12px;
  background: var(--surface); color: var(--text-dark);
  font: 400 14px/1.45 var(--font-sans);
  outline: 0; transition: border-color .2s ease;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(111, 174, 46, .18);
}
.field input::placeholder, .field textarea::placeholder { color: #A9B3AA; }
.field--invalid input { border-color: #C0453B; background: rgba(192, 69, 59, .05); }
.lead-form-message { display: block; font-size: 12.5px; margin-top: 12px; }

/* ── Квиз ───────────────────────────────────── */
.quiz__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.quiz__bar {
  flex: 1; height: 6px; border-radius: var(--radius-pill);
  background: var(--line-light); overflow: hidden;
}
.quiz__fill {
  display: block; height: 100%; width: 20%;
  background: var(--green-500); transition: width .3s ease;
}
.quiz__percent { font: 600 12px/1 var(--font-sans); color: var(--text-muted); min-width: 34px; text-align: right; }
.quiz__step[hidden] { display: none; }
.quiz__step h4 { font-size: 17px; line-height: 1.35; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.quiz__options { display: flex; flex-direction: column; gap: 10px; }
.quiz__opt {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line-light); border-radius: 12px;
  background: var(--surface); cursor: pointer;
  font-size: 14px; line-height: 1.5; color: var(--text-dark);
  transition: border-color .2s ease, background .2s ease;
}
.quiz__opt:hover { border-color: var(--green-400); }
.quiz__opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__opt .mark {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid #CBD3CB; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.quiz__opt--check .mark { border-radius: 6px; }
.quiz__opt .mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .15s ease;
}
.quiz__opt--check .mark::after {
  width: 10px; height: 6px; border-radius: 0; background: transparent;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
}
.quiz__opt.is-selected { border-color: var(--green-500); background: var(--green-050); }
.quiz__opt.is-selected .mark { background: var(--green-500); border-color: var(--green-500); }
.quiz__opt.is-selected .mark::after { transform: scale(1); }
.quiz__opt.is-selected.quiz__opt--check .mark::after { transform: rotate(-45deg) scale(1); }
.quiz__nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.quiz__next { height: 48px; padding: 0 26px; }
.quiz__next[type="submit"] { white-space: normal; height: auto; min-height: 48px; line-height: 1.3; padding: 12px 26px; width: 100%; }
.quiz__back {
  font: 600 13px/1 var(--font-sans); color: var(--text-muted);
  background: none; border: 0; cursor: pointer; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.quiz__back:hover { color: var(--green-500); }
.quiz__hint { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* ── Лайтбокс галереи ───────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(6, 14, 9, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 80vh; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 28px;
  text-align: center; padding: 0 24px;
  font: 500 13px/1.5 var(--font-sans); color: var(--white-85);
}
.lightbox__count {
  position: absolute; top: 28px; left: 28px;
  font: 600 12px/1 var(--font-sans); letter-spacing: .08em; color: var(--white-70);
}
.lightbox__btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease;
}
.lightbox__btn:hover { background: var(--green-500); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -22px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -22px; }

/* ── Reveal-анимации ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease-out, transform .55s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
.reveal--grid > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal--grid.visible > * { opacity: 1; transform: none; }
.reveal--grid.visible > *:nth-child(2) { transition-delay: .08s; }
.reveal--grid.visible > *:nth-child(3) { transition-delay: .16s; }
.reveal--grid.visible > *:nth-child(4) { transition-delay: .24s; }

/* ── Адаптив ─────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 60px 72px; min-height: 640px;
  }
  .hero__media::before {
    background: linear-gradient(to right,
      rgba(12, 31, 20, .97) 0%, rgba(12, 31, 20, .9) 45%, rgba(12, 31, 20, .55) 100%);
  }
  .hero h1, .hero__lead { max-width: 640px; }
  .features__grid { grid-template-columns: 1fr; gap: 36px; }
  .features__intro p { max-width: none; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .price__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav__menu, .nav__phone, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__desc { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section { padding-block: 64px; }
  .cta-band__inner { flex-wrap: wrap; }
  .cta-band__inner .btn { width: 100%; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .hero__inner { padding-block: 44px 56px; min-height: 0; }
  .hero__actions { gap: 12px; max-width: none; }
  .btn--outline-dark {
    white-space: normal; height: auto; min-height: 48px;
    padding: 12px 22px; line-height: 1.3;
  }
  .hero__actions .btn {
    width: 100%; white-space: normal; height: auto; min-height: 48px;
    padding: 12px 22px; line-height: 1.3;
  }
  .hero__max { width: 100%; }
  .hero__max-note { max-width: none; }
  .hero__features { grid-template-columns: 1fr; gap: 16px; margin-top: 26px; padding-top: 22px; }
  .hero-feature { display: flex; align-items: flex-start; gap: 12px; padding-left: 0; border-left: 0; }
  .hero-feature svg {
    width: 32px; height: 32px; padding: 9px; margin-bottom: 0;
    background: rgba(140, 198, 63, .14); border-radius: 50%;
  }
  .hero-feature p strong { font-size: 14px; }
  .hero-feature p { font-size: 14px; }
  .features__cols { grid-template-columns: 1fr; }
  .feature {
    border-left: 0; border-top: 1px solid var(--line-light);
    padding: 22px 0;
  }
  .feature:first-child { border-top: 0; padding-top: 0; }
  .process__steps { grid-template-columns: 1fr; gap: 24px; }
  .step-card__num { font-size: 36px; }
  .step-card__overlay h3 { font-size: 18px; }
  .step-card > p { font-size: 16px; }
  .work__photo { flex: 0 0 78%; scroll-snap-align: start; }
  .cta-band__text { margin-right: 0; }
  .cta-band { padding-block: 32px; }
  .footer { padding-top: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
  .footer__watermark { display: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-content { padding: 26px 20px; }
  .modal-content h3 { font-size: 19px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__count { top: 20px; left: 20px; }
}

@media (max-width: 400px) {
  .quiz__hint { width: 100%; margin-left: 0; }
}

/* ── Дополнения ────────────────────────────── */
section[id], footer[id] { scroll-margin-top: 84px; }
.hero__content { max-width: 660px; }
.work__photo:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; }
.quiz__options--error .quiz__opt { border-color: #C0453B; }
.quiz__error { color: #C0453B; font-size: 12px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ── Кейсы: примеры работ с ценами (новый блок) ─────────────── */
.case {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .03);
  padding: 36px;
}
.case__title {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.3; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 26px;
}
.case__cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px; margin-bottom: 30px;
}
.case__col > p { font-size: 14px; line-height: 1.65; }
.case__col strong { color: var(--white-85); font-weight: 700; }
.case__facts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.case__facts li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.55; color: var(--white-85);
}
.case__facts svg { color: var(--green-400); flex-shrink: 0; margin-top: 3px; }

.case__photos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 30px;
}
.case__photo { aspect-ratio: 3 / 4; }

.case__stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-bottom: 30px; }
.case-stat__head { display: flex; align-items: center; gap: 10px; }
.case-stat__head svg { color: var(--green-400); flex-shrink: 0; }
.case-stat__num {
  font: 800 clamp(24px, 2.4vw, 28px)/1 var(--font-sans);
  letter-spacing: -.01em; color: var(--green-400);
}
.case-stat__label { display: block; font-size: 12px; line-height: 1.4; color: var(--white-70); margin-top: 8px; }

.case__result {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  background: rgba(140, 198, 63, .07);
  padding: 22px 26px;
  margin-bottom: 30px;
}
.case__result p { font-size: 14.5px; line-height: 1.65; }
.case__result .case__result-label {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-400); margin-bottom: 12px;
}
.case__result .accent { color: var(--green-400); font-weight: 800; }
.case__result-note { margin-top: 10px; }
.case__result-note strong { color: #fff; font-weight: 700; }

.case__cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 28px;
}
.case__cta h3 { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; font-weight: 800; }
.case__cta .accent { color: var(--green-400); }
.case__cta .btn { flex-shrink: 0; }

@media (max-width: 1100px) {
  .case__cols { grid-template-columns: 1fr; gap: 22px; }
  .case__photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .case { padding: 24px 18px; }
  .case__stats { flex-direction: column; gap: 18px; }
  .case__result { padding: 18px; }
  .case__cta { flex-direction: column; align-items: stretch; }
  .case__cta .btn {
    width: 100%; white-space: normal; height: auto;
    min-height: 48px; padding: 12px 22px; line-height: 1.3;
  }
}

/* ── Отступ между кейсами ─────────────────────────────────── */
.case + .case { margin-top: 28px; }

/* ── КЕЙС 2: светлая тема ─────────────────────────────────── */
.case--light {
  background: var(--bg-light); color: var(--text-muted);
  border-color: var(--line-light);
}
.case--light h3 { color: var(--text-dark); }
.case--light .case__col strong { color: var(--text-dark); }
.case--light .case__facts li { color: var(--text-muted); }
.case--light .case__facts svg { color: var(--green-600); }
.case--light .case-stat__num { color: var(--green-600); }
.case--light .case-stat__label { color: var(--text-muted); }
.case--light .case__result { background: var(--surface); border-color: var(--line-light); }
.case--light .case__result .accent { color: var(--green-600); }
.case--light .case__result-label { color: var(--green-600); }
.case--light .case__result-note strong { color: var(--text-dark); }
.case--light .case__cta { border-color: var(--line-light); }
.case--light .case__cta .accent { color: var(--green-600); }

/* Заголовок кейса 2 (аналог .case__title) */
.case__header h3 {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.3; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 26px;
}

/* ── Смешанная галерея (кейс 2): 3 колонки ──────────────────
   Колонка 1 — два горизонтальных фото (БЫЛО / СТАЛО) друг под другом,
   колонки 2–3 — вертикальные фото. Высоты совпадают за счёт
   пропорций: 1.545 : 1 : 1 при ширине контейнера 1080px.        */
.case__gallery--mixed {
  display: grid;
  grid-template-columns: minmax(0, 1.545fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 30px;
}
.case__col-horiz {
  display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0;
}
.case__col-vert { min-width: 0; }
.case__gallery--mixed .work__photo { display: block; height: 100%; min-width: 0; }
.case__gallery--mixed img { width: 100%; height: 100%; object-fit: cover; }

/* Рамки БЫЛО / СТАЛО */
.case__photo-link--before,
.case__photo-link--after {
  position: relative;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
}
.case__photo-link--before {
  border-color: #9CA3AF; /* нейтральный серый */
}
.case__photo-link--after {
  border-color: var(--green-500);
}

/* Убираем стандартные эффекты .work__photo для кейса 2
   и задаём пропорции под исходники (16:9 и 9:16 вместо базовых 4:3) */
.case__gallery--mixed .work__photo {
  border-radius: 8px; background: var(--line-light);
}
.case__col-horiz .work__photo { aspect-ratio: 16 / 9; }
.case__col-vert .work__photo { aspect-ratio: 9 / 16; }
.case__gallery--mixed .work__photo::after {
  display: none;
}
.case__gallery--mixed .work__photo .arrow {
  display: none;
}
.case__label {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase; line-height: 1.3;
}
.case__label--before {
  background: rgba(156,163,175,.9); color: #fff;
}
.case__label--after {
  background: rgba(110,174,46,.9); color: #fff;
}

/* Адаптив ≤600px: БЫЛО (на всю ширину) → два вертикальных рядом → СТАЛО */
@media (max-width: 600px) {
  .case__gallery--mixed { display: flex; flex-wrap: wrap; gap: 10px; }
  /* разворачиваем обёртку, чтобы БЫЛО и СТАЛО стали самостоятельными
     flex-элементами и их можно было развести по порядку */
  .case__col-horiz { display: contents; }
  .case__gallery--mixed .work__photo { height: auto; }
  .case__gallery--mixed img { height: auto; }
  .case__photo-link--before { order: 1; flex: 0 0 100%; }
  .case__col-vert { order: 2; flex: 0 0 calc(50% - 5px); }
  .case__photo-link--after { order: 3; flex: 0 0 100%; }
}

/* ── Смешанная галерея ЗЕРКАЛЬНАЯ (кейс 3): 3 колонки ─────────
   Колонки 1–2 — вертикальные фото рядом, колонка 3 — два
   горизонтальных фото друг под другом. Высоты совпадают за счёт
   пропорций: 1 : 1 : 1.545 при ширине контейнера 1080px.          */
.case__gallery--mixed-rev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.545fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 30px;
}
.case__gallery--mixed-rev .case__col-horiz {
  display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0;
}
.case__gallery--mixed-rev .case__col-vert { min-width: 0; }
.case__gallery--mixed-rev .work__photo {
  display: block; height: 100%; min-width: 0;
  border-radius: 8px; background: var(--line-light);
}
.case__gallery--mixed-rev img { width: 100%; height: 100%; object-fit: cover; }
.case__gallery--mixed-rev .case__col-horiz .work__photo { aspect-ratio: 16 / 9; }
.case__gallery--mixed-rev .case__col-vert .work__photo { aspect-ratio: 9 / 16; }
.case__gallery--mixed-rev .work__photo::after { display: none; }
.case__gallery--mixed-rev .work__photo .arrow { display: none; }

/* Адаптив ≤600px: два вертикальных рядом → два горизонтальных стопкой */
@media (max-width: 600px) {
  .case__gallery--mixed-rev { display: flex; flex-wrap: wrap; gap: 10px; }
  .case__gallery--mixed-rev .case__col-horiz { display: contents; }
  .case__gallery--mixed-rev .work__photo { height: auto; }
  .case__gallery--mixed-rev img { height: auto; }
  .case__gallery--mixed-rev .case__col-vert { order: 1; flex: 0 0 calc(50% - 5px); }
  .case__gallery--mixed-rev .case__col-horiz .work__photo:nth-child(1) { order: 2; flex: 0 0 100%; }
  .case__gallery--mixed-rev .case__col-horiz .work__photo:nth-child(2) { order: 3; flex: 0 0 100%; }
}
