/* ============================================================
   Чистая скорость — лендинг-воронка. Дизайн-система и секции.
   ============================================================ */

:root {
  --bg: #faf7f2;
  --bg-2: #f3ece2;
  --surface: #ffffff;
  --ink: #171310;
  --ink-2: rgba(23, 19, 16, 0.68);
  --ink-3: rgba(23, 19, 16, 0.62);
  --line: rgba(23, 19, 16, 0.12);
  --accent: #6b4a3a;
  --accent-2: #a97c63;
  --accent-soft: #ead9c9;
  --dark: #171310;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -28px rgba(23, 19, 16, 0.45);
  --shadow-lg: 0 40px 90px -50px rgba(23, 19, 16, 0.7);
  --wrap: 1180px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", var(--font);
}

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

/* Скрытые элементы должны быть скрыты, даже если им задан display */
[hidden] { display: none !important; }


/* Плавность якорей делает JS — нативный smooth на html делает колесо «вязким» */
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 820px); }

/* ---------- Прогресс чтения ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: 0 50%;
}
/* Полоса чтения на таймлайне прокрутки — без участия JS.
   Где не поддерживается, её двигает main.js. */
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: read-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes read-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1 var(--font); letter-spacing: 0.01em;
  padding: 16px 26px; border: 1px solid transparent; border-radius: 100px;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  box-shadow: 0 14px 30px -18px rgba(23, 19, 16, 0.8);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -20px rgba(23, 19, 16, 0.75); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 20px 34px; font-size: 16px; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }

/* ---------- Шапка ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 12px 0;
  transition: background 0.35s, box-shadow 0.35s;
}
.topbar.is-stuck {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: 500 14px/1 var(--display); letter-spacing: 0.04em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__text b { font: 600 15px/1.2 var(--font); }
.logo__text i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.topbar__nav { margin-left: auto; display: flex; gap: 26px; }
.topbar__nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 4px;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s;
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { transform: scaleX(1); }

/* ---------- Общее для секций ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
/* чтобы переход по меню не прятал заголовок под шапку */
section[id] { scroll-margin-top: 76px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.section-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 54px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); margin-top: 20px; max-width: 62ch; }
.note { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }
.note--light { color: rgba(255, 255, 255, 0.5); }

/* ---------- Появление при прокрутке ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.68, 0.25, 1), transform 0.55s cubic-bezier(0.22, 0.68, 0.25, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 15vw, 190px) 0 clamp(60px, 7vw, 96px); overflow: clip; }
.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 55% at 15% 12%, rgba(234, 217, 201, 0.85), transparent 70%),
    radial-gradient(45% 45% at 88% 8%, rgba(169, 124, 99, 0.22), transparent 70%);
  z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); font-weight: 500; }
.hero h1 span { display: block; }
.hero h1 em {
  display: block; font-style: normal; color: var(--accent);
  font-weight: 700;
}
.hero__lead { font-size: clamp(16.5px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; margin: 26px 0 30px; }
.hero__list { display: grid; gap: 13px; margin-bottom: 36px; }
.hero__list li, .ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.hero__list .i, .ticks .i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-top: 1px;
}
.hero__list .i svg, .ticks .i svg { width: 14px; height: 14px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; }
.hero__media { margin: 0; position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Параллакс — на таймлайне прокрутки: браузер считает его в композиторе,
   поэтому картинка не отстаёт от скролла. Где не поддерживается — просто нет эффекта. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__media img {
      animation: parallax-y linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes parallax-y {
  from { transform: translate3d(0, -22px, 0); }
  to { transform: translate3d(0, 22px, 0); }
}
.hero__media figcaption {
  position: absolute; left: -12px; bottom: 26px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------- Статистика ---------- */
.stats { padding: 10px 0 clamp(20px, 4vw, 40px); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg); padding: clamp(22px, 3vw, 34px) clamp(16px, 2vw, 28px); text-align: center; }
.stat b { display: block; font: 500 clamp(30px, 3.6vw, 46px)/1 var(--display); color: var(--ink); }
.stat > span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.stat b span { font: inherit; }

/* ---------- Карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.card--line { position: relative; padding-top: 30px; }
.card .num {
  display: block; font: 500 13px/1 var(--display); color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.result { background: var(--bg-2); }

/* ---------- Автор ---------- */
.author { overflow: clip; } /* декоративная рамка не должна вылезать за край экрана */
.author__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.author__photo { margin: 0; position: relative; }
.author__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.author__photo::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--accent-2); border-radius: var(--radius); opacity: 0.45;
}
.author__text h2 { font-size: clamp(30px, 4.2vw, 48px); }
.author__role { color: var(--accent); font-weight: 600; font-size: 15.5px; margin: 14px 0 22px; }
.author__text p { color: var(--ink-2); font-size: 16px; }
.ticks { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- Аккордеон ---------- */
.accordion { display: grid; gap: 12px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.acc.is-open { border-color: transparent; box-shadow: var(--shadow); }
.acc h3 { margin: 0; font-family: var(--font); }
.acc__btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 22px clamp(18px, 2.4vw, 28px); font: inherit; color: inherit;
}
.acc__no { font: 500 13px/1 var(--display); color: var(--accent); }
.acc__title { font-size: clamp(16px, 1.7vw, 19px); font-weight: 600; letter-spacing: -0.01em; }
.acc__meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.acc__ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); color: var(--accent); transition: transform 0.35s, background 0.35s, color 0.35s;
}
.acc__ico svg { width: 16px; height: 16px; }
.acc.is-open .acc__ico { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.3, 0.7, 0.3, 1); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > * { overflow: hidden; min-height: 0; margin: 0; }
.acc__inner ul { display: grid; gap: 12px; padding: 0 clamp(18px, 2.4vw, 28px) 24px clamp(52px, 5vw, 66px); }
.acc__inner ul li { position: relative; color: var(--ink-2); font-size: 15.5px; }
.acc__inner ul li::before {
  content: ""; position: absolute; left: -22px; top: 10px; width: 8px; height: 1px; background: var(--accent-2);
}
.acc--plain .acc__btn { grid-template-columns: 1fr auto; }
.acc__inner p { padding: 0 clamp(18px, 2.4vw, 28px) 24px; color: var(--ink-2); font-size: 15.5px; margin: 0; }

.bonus {
  margin-top: 26px; background: var(--dark); color: #fff; border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
}
.bonus h3 { font-size: 21px; margin-bottom: 8px; }
.bonus .ticks li { color: rgba(255, 255, 255, 0.78); }
.bonus .ticks .i { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Работы ---------- */
.works { background: var(--bg-2); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; aspect-ratio: 1;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(23, 19, 16, 0.18); opacity: 0; transition: opacity 0.35s;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

/* ---------- До/после ---------- */
.ba { margin-top: clamp(40px, 5vw, 70px); }
.ba__head { max-width: 620px; margin-bottom: 22px; }
.ba__head h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 10px; }
.ba__head p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.ba__stage {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; max-height: 560px; user-select: none; touch-action: pan-y;
}
.ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 16px; z-index: 3; padding: 7px 14px; border-radius: 100px;
  background: rgba(23, 19, 16, 0.62); color: #fff; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.ba__tag--l { left: 16px; }
.ba__tag--r { right: 16px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: rgba(255, 255, 255, 0.9);
  z-index: 3; transform: translateX(-1px); pointer-events: none;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
.ba__handle::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; font-size: 15px; color: var(--ink); letter-spacing: 2px;
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; appearance: none; background: transparent;
}
.ba__caption { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* подсказка о боковой прокрутке — только на телефоне */
.swipe-hint { display: none; }

/* ---------- Отзывы ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.35s, box-shadow 0.35s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review blockquote { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.7; position: relative; padding-top: 26px; }
.review blockquote::before {
  content: "”"; position: absolute; top: -6px; left: -2px; font: 700 54px/1 var(--display); color: var(--accent-soft);
}
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.review figcaption b { font-size: 15px; }
.review figcaption span { font-size: 13px; color: var(--ink-3); }

/* ---------- Цена ---------- */
.price { background: var(--dark); color: #fff; overflow: clip; }
.price::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(169, 124, 99, 0.3), transparent 62%); pointer-events: none;
}
.price__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.price h2 { font-size: clamp(30px, 4.4vw, 50px); }
.price .eyebrow { color: var(--accent-2); }
.price .lead { color: rgba(255, 255, 255, 0.66); }
.ticks--light li { color: rgba(255, 255, 255, 0.82); }
.ticks--light .i { background: rgba(255, 255, 255, 0.1); color: #fff; }
.price__card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); backdrop-filter: blur(10px);
}
.price__row { display: flex; align-items: baseline; gap: 16px; }
.price__old { font-size: 20px; color: rgba(255, 255, 255, 0.5); text-decoration: line-through; }
.price__new { font: 500 clamp(40px, 5.4vw, 62px)/1 var(--display); }
.price__note { margin: 10px 0 24px; font-size: 13.5px; color: var(--accent-2); }
.price__card .btn { --btn-bg: #fff; --btn-fg: var(--ink); }
.price__card .btn:hover { --btn-bg: var(--accent-soft); }
.guarantee {
  margin: 22px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px; color: rgba(255, 255, 255, 0.6);
}

/* ---------- Таймер ---------- */
.timer { margin-bottom: 26px; }
.timer__label { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 12px; }
.timer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timer__grid div {
  background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 12px 6px; text-align: center;
}
.timer__grid b { display: block; font: 500 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.timer__grid span { display: block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, 0.55); }


/* ---------- Форма заявки ---------- */
.leadform { background: var(--bg-2); }
.leadform__inner { text-align: center; }
.leadform h2 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 14px; }
.leadform__text { color: var(--ink-2); max-width: 46ch; margin: 0 auto 28px; }
.leadform__form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.leadform__form input[type="text"] {
  flex: 1 1 220px; max-width: 320px; padding: 16px 20px; font: inherit; font-size: 15.5px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink);
  transition: border-color 0.25s;
}
.leadform__form input::placeholder { color: var(--ink-3); }
.leadform__form input:focus { outline: none; border-color: var(--accent); }
.leadform__form input[name="website"] { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.leadform__form.is-invalid input:not([name="website"]):placeholder-shown { border-color: var(--accent-2); }
.leadform__note { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); }
.leadform__done {
  margin: 0 auto; max-width: 46ch; padding: 22px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); font-size: 16px;
}
.leadform__form.is-error::after {
  content: "Не удалось отправить. Напишите в Telegram.";
  flex: 1 0 100%; font-size: 13.5px; color: var(--accent);
}
@media (max-width: 720px) {
  .leadform__form input[type="text"] { flex: 1 1 100%; max-width: none; }
  .leadform__form .btn { width: 100%; }
}

/* ---------- Финал ---------- */
.final { text-align: center; }
.final__inner { max-width: 720px; margin-inline: auto; }
.final h2 { font-size: clamp(28px, 4.2vw, 48px); margin-bottom: 20px; }
.final p { color: var(--ink-2); font-size: 17px; margin-bottom: 32px; }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 100px; padding: 11px 20px;
  font-size: 14.5px; font-weight: 500; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Подвал ---------- */
.footer { padding: 46px 0 120px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 18px; text-align: center; }
.footer__legal { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.footer__legal a { color: var(--accent); }
.footer__links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__links a:hover { color: var(--ink); }
.footer__note { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* ---------- Липкая кнопка (моб.) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
  display: none; align-items: center; gap: 10px; justify-content: space-between;
  background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 100px; padding: 10px 10px 10px 20px;
  box-shadow: var(--shadow); transform: translateY(140%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__price { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.sticky-cta__price s { font-size: 13px; color: var(--ink-3); }
.sticky-cta__price b { font: 500 17px/1 var(--display); }
.sticky-cta .btn { white-space: nowrap; flex: none; padding: 12px 16px; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(23, 19, 16, 0.86); backdrop-filter: blur(8px);
  padding: clamp(16px, 4vw, 48px); opacity: 0; transition: opacity 0.3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: background 0.25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1020px) {
  .hero__inner, .author__grid, .price__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .author__photo { max-width: 420px; }
  .cards, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .topbar__nav { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }

  /* Шапка компактнее: роль прячем, кнопка в одну строку */
  .topbar { padding: 10px 0; }
  .logo__text i { display: none; }
  .logo__mark { width: 38px; height: 38px; }
  .topbar .btn { white-space: nowrap; padding: 10px 15px; font-size: 13px; }
  .topbar .btn svg { display: none; }

  /* Порядок первого экрана: заголовок → фото → текст → кнопка */
  .hero { padding-top: 76px; padding-bottom: 40px; }
  .hero__inner { gap: 16px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .hero__lead { font-size: 15.5px; }
  .hero__list { gap: 10px; }
  .hero__list li { font-size: 14.5px; }
  .hero__text { display: contents; }
  .hero__text .eyebrow { order: 1; margin-bottom: 10px; }
  .hero h1 { order: 2; }
  .hero__media { order: 3; max-width: none; margin-block: 4px; }
  .hero__lead { order: 4; margin: 0; }
  .hero__list { order: 5; margin-bottom: 8px; }
  .hero__cta { order: 6; }
  .hero__media img {
    aspect-ratio: 5 / 4; max-height: 230px;
    border-radius: var(--radius);
  }
  .hero__media figcaption { left: 50%; transform: translateX(-50%); bottom: 14px; white-space: nowrap; font-size: 12.5px; }
  .cards, .reviews__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .acc__btn { grid-template-columns: auto 1fr auto; row-gap: 6px; padding: 18px; }
  .acc__meta { grid-column: 2 / 3; }
  .acc--plain .acc__btn { grid-template-columns: 1fr auto; }
  .sticky-cta { display: flex; }
  .footer { padding-bottom: 110px; }
  .btn--lg { width: 100%; }
  .hero__cta { align-self: stretch; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---------- Бережный режим анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- Планшет: 721–1020 ---------- */
@media (min-width: 721px) and (max-width: 1020px) {
  /* первый экран собираем по той же логике, что и на телефоне:
     заголовок → широкое фото → текст → кнопка, без прижатых к краю блоков */
  .hero { padding-top: clamp(104px, 13vw, 140px); }
  .hero__inner { gap: 22px; }
  .hero__text { display: contents; }
  .hero__text .eyebrow { order: 1; margin-bottom: 10px; }
  .hero h1 { order: 2; font-size: clamp(56px, 8.4vw, 84px); }
  .hero__media { order: 3; max-width: none; margin: 6px 0 2px; }
  .hero__media img { aspect-ratio: 16 / 9; max-height: 380px; border-radius: var(--radius); }
  .hero__lead { order: 4; margin: 0; max-width: 60ch; }
  .hero__list { order: 5; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; margin-bottom: 10px; }
  .hero__cta { order: 6; }
  .hero__media figcaption { left: auto; right: 18px; bottom: 18px; }

  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }

  .author__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .author__photo { max-width: none; }

  .price__inner { grid-template-columns: 1fr; }
  .price__card { max-width: 580px; }
  .price__left .ticks { columns: 2; column-gap: 28px; }
  .price__left .ticks li { break-inside: avoid; }
}

/* ---------- Телефон: плотнее и с горизонтальными лентами ---------- */
@media (max-width: 720px) {
  .section { padding: clamp(56px, 13vw, 84px) 0; }
  .section-head { margin-bottom: 26px; }
  .card { padding: 22px 20px; }
  .card h3 { font-size: 18px; }
  .cards { gap: 12px; }

  /* работы и отзывы листаются вбок — короче полоса и живее ощущение */
  .gallery,
  .reviews__grid {
    display: flex; grid-template-columns: none; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding-inline: 16px 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar,
  .reviews__grid::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 64%; scroll-snap-align: center; }
  .review { flex: 0 0 84%; scroll-snap-align: center; }
  .swipe-hint {
    display: block; margin: 14px 0 0; font-size: 13px; color: var(--ink-3);
  }
  .swipe-hint::after { content: " →"; }
}

/* Во время прокрутки наведение выключено — иначе карточки под курсором
   начинают подниматься и перерисовывать тени прямо во время движения. */
.is-scrolling .card,
.is-scrolling .review,
.is-scrolling .gallery__item img,
.is-scrolling .btn,
.is-scrolling .socials a { transition: none !important; }
.is-scrolling .card:hover,
.is-scrolling .review:hover,
.is-scrolling .btn:hover,
.is-scrolling .socials a:hover { transform: none; }
.is-scrolling .gallery__item:hover img { transform: none; }

/* ============================================================
   Диагностические режимы (включаются параметром в адресе страницы,
   см. комментарий в main.js). На обычный показ не влияют.
   ============================================================ */
.dbg-no-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.dbg-soft-reveal .reveal { transform: none !important; transition: opacity 0.45s ease !important; transition-delay: 0ms !important; }
.dbg-no-blur *, .dbg-no-blur *::before, .dbg-no-blur *::after { backdrop-filter: none !important; }
.dbg-no-shadow * { box-shadow: none !important; }
.dbg-no-parallax .hero__media img { animation: none !important; transform: none !important; }
