/* =========================================================
   ProMan — стили
   ========================================================= */

/* ---------- Шрифты (лежат на сайте, без Google) ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --bg: #08090b;
  --bg-2: #0d0f13;
  --surface: #12151a;
  --surface-2: #191d24;
  --field: #0a0c0f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  --ink: #f4f5f7;
  --muted: #a6acb7;
  --dim: #7b828e;

  --brand: #3850cc;        /* синий из логотипа */
  --brand-hover: #4762e3;
  --brand-ink: #a3b3ff;    /* синий для текста на тёмном */
  --brand-glow: rgba(56, 80, 204, 0.32);

  --wa: #25d366;
  --wa-hover: #3ee07b;
  --wa-ink: #04150c;

  --danger: #ff8080;

  --radius: 12px;
  --radius-lg: 22px;
  --gutter: 18px;

  --display: "Unbounded", "Arial Black", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.has-dock {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

svg {
  flex: none;
}

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

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: fixed;
  z-index: 50;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px -12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
}

.btn-wa:hover {
  background: var(--wa-hover);
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- Шапка ---------- */
.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  height: calc(62px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.nav-side {
  display: none;
}

.nav-side-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-side a:hover,
.nav-reviews:hover,
.nav-phone:hover {
  opacity: 0.6;
}

.logo {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: auto;
  height: 30px;
}

.nav-phone {
  display: none;
}

.nav-book {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
}

.nav-book:hover {
  background: var(--brand-hover);
}

/* ---------- Первый экран ---------- */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(76px + env(safe-area-inset-top)) var(--gutter) 28px;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  transform: translateY(-7%); /* телефон: лицо врача выше текста */
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 8%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.55) 0%, transparent 40%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.35) 0%, rgba(8, 9, 11, 0.15) 22%, rgba(8, 9, 11, 0.7) 48%, var(--bg) 76%);
}

.stage-copy {
  position: relative;
  max-width: 640px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

h1 {
  font-family: var(--display);
  font-size: clamp(29px, 9.2vw, 44px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

h1 .line > span {
  display: block;
}

h1 .accent {
  color: var(--brand-ink);
}

.lead {
  max-width: 30rem;
  margin-top: 14px;
  color: #d9dce2;
  font-size: 15px;
  line-height: 1.5;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 21, 26, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
}

.offer-chip b {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  white-space: nowrap;
}

.cta {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
}

.cta .btn-primary {
  flex: 1 1 auto;
}

/* телефон: WhatsApp — квадратная кнопка рядом с основной */
.cta .phone {
  flex: 0 0 56px;
  justify-content: center;
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--wa);
  color: var(--wa-ink);
}

.cta .phone > svg {
  color: var(--wa-ink);
}

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

.cta .phone:hover {
  opacity: 1;
  background: var(--wa-hover);
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.phone > svg {
  width: 26px;
  height: 26px;
  color: var(--wa);
}

.phone > span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.phone small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.phone:hover {
  opacity: 0.75;
}

.spine,
.scroll {
  display: none;
}

/* ---------- Форма ---------- */
.booking {
  display: grid;
  grid-template-areas:
    "intro"
    "form"
    "steps";
  gap: 28px;
  padding: 64px var(--gutter) 56px;
  scroll-margin-top: 56px;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(56, 80, 204, 0.16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.booking-intro {
  grid-area: intro;
}

.booking h2,
.reviews h2,
.closer h2 {
  font-family: var(--display);
  font-size: clamp(26px, 7.4vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.price {
  display: inline-block;
  color: var(--brand-ink);
  white-space: nowrap;
}

.booking-sub {
  max-width: 32rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.form-card {
  grid-area: form;
  position: relative;
  padding: 22px 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  color: #dfe2e7;
  font-size: 14px;
  font-weight: 500;
}

.field legend {
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 17px; /* ≥16px — iOS не зумит поле при фокусе */
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #5f6672;
  opacity: 1;
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.field input:focus {
  border-color: var(--brand-hover);
  box-shadow: 0 0 0 4px rgba(71, 98, 227, 0.28);
}

.phone-input {
  position: relative;
  border-radius: var(--radius);
  background: var(--field);
}

.phone-prefix {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  transform: translateY(-50%);
  pointer-events: none;
}

.field .phone-input input {
  position: relative;
  z-index: 1;
  padding-left: 42px;
  background: transparent; /* под полем — серый шаблон оставшихся цифр */
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.phone-ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 43px; /* рамка 1px + отступ поля 42px */
  display: flex;
  align-items: center;
  color: #5f6672; /* как у подсказки в пустом поле */
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  pointer-events: none;
}

.ghost-typed {
  visibility: hidden;
}

.field-hint {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}

.field.is-invalid .field-hint {
  display: none;
}

.field.is-invalid input {
  border-color: var(--danger);
}

.field.is-invalid input:focus {
  box-shadow: 0 0 0 4px rgba(255, 128, 128, 0.22);
}

.field-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

/* переключатель «Позвонить / WhatsApp» */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
}

.segmented label {
  position: relative;
  display: block;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.segmented svg {
  width: 17px;
  height: 17px;
  color: var(--wa);
}

.segmented input:checked + span {
  background: var(--surface-2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 14px -6px rgba(0, 0, 0, 0.8);
}

.segmented input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ловушка для ботов */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  font-size: 16px;
}

.btn-submit .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}

.btn-submit.is-busy {
  cursor: progress;
}

.btn-submit.is-busy .btn-label {
  opacity: 0;
}

.btn-submit.is-busy .spinner {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid rgba(255, 128, 128, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 128, 128, 0.08);
  color: #ffd2d2;
  font-size: 14px;
  line-height: 1.45;
}

.form-status a {
  color: #fff;
  font-weight: 600;
}

.form-status .status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.form-status .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.consent {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* успешная отправка */
.form-done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 4px 6px;
  text-align: center;
  outline: none;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(56, 80, 204, 0.18);
}

.done-mark svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.done-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.done-text {
  max-width: 24rem;
  color: var(--muted);
  font-size: 15px;
}

.done-text b {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.done-wa {
  width: 100%;
  margin-top: 8px;
}

/* шаги */
.steps {
  grid-area: steps;
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step-n {
  grid-row: span 2;
  color: var(--brand-ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.steps h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Отзывы ---------- */
.reviews {
  padding: 64px 0 56px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 56px;
}

.reviews-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding: 0 var(--gutter);
}

.link-2gis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.link-2gis svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.link-2gis:hover {
  border-bottom-color: #fff;
}

.link-2gis:hover svg {
  transform: translateX(3px);
}

/* телефон: горизонтальная лента */
.spread {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 2px var(--gutter) 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.spread li {
  flex: 0 0 min(84%, 360px);
  scroll-snap-align: start;
}

.review-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #1f1f1f;
  line-height: 0;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.3s var(--ease);
}

.review-link img {
  display: block;
  width: 100%;
  height: auto;
}

.review-link:hover {
  border-color: rgba(163, 179, 255, 0.55);
}

/* ---------- Финальный блок ---------- */
.closer {
  position: relative;
  padding: 64px var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.closer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -40%;
  width: 900px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 80, 204, 0.3), transparent);
  transform: translateX(-50%);
}

.closer p {
  max-width: 30rem;
  margin: 14px auto 0;
  color: var(--muted);
}

.closer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 28px auto 0;
}

/* ---------- Подвал ---------- */
.footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.footer-logo {
  width: auto;
  height: 34px;
  opacity: 0.9;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-link svg {
  width: 18px;
  height: 18px;
  color: var(--brand-ink);
}

.footer-link:hover {
  color: #fff;
}

/* ---------- Нижняя панель на телефоне ---------- */
.dock {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.dock .btn {
  min-height: 52px;
}

.dock-wa {
  padding: 0 18px;
}

/* =========================================================
   Узкие телефоны
   ========================================================= */
@media (max-width: 359px) {
  :root {
    --gutter: 14px;
  }

  .nav-reviews {
    display: none;
  }

  .logo img {
    height: 26px;
  }

  .offer-chip {
    font-size: 13px;
  }

  .dock-wa span {
    display: none;
  }

  .cta .btn-primary {
    gap: 8px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* =========================================================
   Планшет
   ========================================================= */
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .cta {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
  }

  .cta .btn-primary {
    flex: 0 0 auto;
  }

  .cta .phone {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-height: 48px;
    background: none;
    color: inherit;
  }

  .cta .phone > svg {
    color: var(--wa);
  }

  .cta .phone > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .cta .phone:hover {
    background: none;
    opacity: 0.75;
  }

  .hero-photo {
    transform: none;
  }

  .closer-cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .form-card {
    padding: 28px;
  }

  .reviews-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .spread li {
    flex-basis: 360px;
  }
}

/* =========================================================
   Компьютер
   ========================================================= */
@media (min-width: 961px) {
  :root {
    --gutter: 7vw;
  }

  .nav {
    grid-template-columns: 1fr auto 1fr;
    height: 76px;
    padding: 0 28px;
  }

  .nav-side {
    display: flex;
    gap: 26px;
  }

  .logo {
    grid-column: 2;
  }

  .logo img {
    height: 50px;
  }

  .nav-side-right {
    grid-column: 3;
    gap: 26px;
  }

  .nav-reviews {
    display: none;
  }

  .nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.04em;
  }

  .nav-phone svg {
    width: 16px;
    height: 16px;
    color: var(--wa);
  }

  .nav-book {
    min-height: 42px;
    padding: 0 20px;
  }

  .stage {
    justify-content: center;
    padding: 120px var(--gutter) 110px;
  }

  .hero-photo {
    left: auto;
    width: min(52vw, 760px);
  }

  .hero-photo img {
    object-position: center 12%;
  }

  .hero-photo::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(8, 9, 11, 0.6) 20%, transparent 48%),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }

  h1 {
    font-size: clamp(46px, 5.1vw, 78px);
  }

  .lead {
    margin-top: 28px;
    font-size: 17px;
  }

  .kicker {
    margin-bottom: 16px;
  }

  .offer-chip {
    margin-top: 26px;
    font-size: 15px;
  }

  .cta {
    margin-top: 26px;
  }

  .btn {
    min-height: 58px;
    padding: 0 28px;
  }

  .spine {
    position: absolute;
    display: block;
    top: 50%;
    right: 22px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
  }

  .scroll {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    bottom: 26px;
    left: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
  }

  .scroll::after {
    content: "";
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  }

  .scroll:hover {
    color: #fff;
  }

  .booking {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "intro form"
      "steps form";
    align-items: start;
    column-gap: clamp(48px, 7vw, 120px);
    row-gap: 40px;
    padding: 120px var(--gutter);
    scroll-margin-top: 0;
  }

  .booking h2,
  .reviews h2,
  .closer h2 {
    font-size: clamp(34px, 3.4vw, 50px);
  }

  .booking-sub {
    font-size: 17px;
  }

  .form-card {
    align-self: start;
    padding: 32px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-self: start;
    padding-top: 28px;
  }

  .steps li {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 6px;
    padding: 0;
    border: 0;
  }

  .step-n {
    grid-row: auto;
    margin-bottom: 6px;
  }

  .reviews {
    padding: 120px var(--gutter) 100px;
  }

  .reviews-top {
    margin-bottom: 40px;
    padding: 0;
  }

  /* компьютер: «кладка» без пустот */
  .spread {
    display: block;
    columns: 3 300px;
    column-gap: 18px;
    padding: 0;
    overflow: visible;
  }

  .spread li {
    margin-bottom: 18px;
    break-inside: avoid;
  }

  .review-link:hover {
    transform: translateY(-4px);
  }

  .closer {
    padding: 120px var(--gutter);
  }

  .closer p {
    font-size: 17px;
  }

  .footer {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: center;
    padding: 32px var(--gutter);
    text-align: left;
  }

  .footer-link {
    justify-self: center;
  }

  .dock {
    display: none !important;
  }

  body.has-dock {
    padding-bottom: 0;
  }
}

/* =========================================================
   Анимации — только если человек их не отключил
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .nav,
  .stage .kicker,
  .stage .lead,
  .stage .offer-chip,
  .stage .cta,
  .spine,
  .scroll {
    animation: rise 0.85s var(--ease) both;
  }

  .nav {
    animation-duration: 0.6s;
  }

  .hero-photo img {
    animation: photo-in 1.5s var(--ease) both;
  }

  .stage .line > span {
    animation: line-in 0.9s var(--ease) both;
  }

  .stage .kicker { animation-delay: 0.08s; }
  .stage .line:nth-child(1) > span { animation-delay: 0.12s; }
  .stage .line:nth-child(2) > span { animation-delay: 0.22s; }
  .stage .line:nth-child(3) > span { animation-delay: 0.32s; }
  .stage .line:nth-child(4) > span { animation-delay: 0.42s; }
  .stage .lead { animation-delay: 0.56s; }
  .stage .offer-chip { animation-delay: 0.66s; }
  .stage .cta { animation-delay: 0.76s; }
  .spine { animation-delay: 0.95s; }
  .scroll { animation-delay: 1.05s; }

  .btn,
  .nav-book {
    transition: background-color 0.2s ease, transform 0.2s var(--ease);
  }

  .rise {
    opacity: 0;
    transform: translateY(24px);
  }

  .rise.in {
    animation: rise 0.8s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
  }

  .form-done:not([hidden]) {
    animation: rise 0.6s var(--ease) both;
  }

  .form-status:not(:empty) {
    animation: shake 0.4s var(--ease);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover,
  .btn-wa:hover {
    transform: translateY(-2px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes line-in {
  from {
    transform: translateY(115%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(1.06) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------- Страница «Спасибо» (отправка без JavaScript) ---------- */
.thanks {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 32px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px var(--gutter);
  background: radial-gradient(60% 50% at 50% 0%, rgba(56, 80, 204, 0.18), transparent 70%), var(--bg);
}

.thanks > a {
  display: block;
  line-height: 0;
}

.thanks-logo {
  width: auto;
  max-width: none;
  height: 44px;
}

.thanks .form-card {
  grid-area: auto;
  width: min(100%, 440px);
}

.thanks .done-title {
  font-size: 22px;
  line-height: 1.2;
  text-transform: none;
}

.thanks-back {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.thanks-back:hover {
  color: #fff;
}
