/* ============================================================
   МОСАРХ-РЕМОНТ — лендинг
   Визуальный язык: тёплый бежевый, мягкие формы, антиква в заголовках
   ============================================================ */

/* ---------- Шрифты ---------- */

/* Заголовки — Cormorant Garamond (антиква, веса 300–500) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Текст и интерфейс — Manrope */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  /* Фоны — тёплый песок вместо белого */
  --bg:         #F2EBE0;
  --bg-soft:    #F7F2E9;
  --surface:    #FBF8F3;
  --surface-2:  #EFE7DA;
  --sand:       #E8DDC9;
  --sand-deep:  #DED0B6;

  /* Текст — тёплый эспрессо вместо чёрного.
     Все пары проверены на контраст: обычный текст ≥4.5:1 (WCAG AA) */
  --ink:        #2E2822;  /* 12.3:1 на фоне */
  --ink-2:      #574F45;  /*  6.8:1 — основной текст */
  --muted:      #665C52;  /*  5.5:1 — вторичный текст */
  --faint:      #7A6F63;  /*  4.6:1 — только на карточках и в форме */

  /* Акценты */
  --gold:       #A8874E;  /* только иконки, линии, рамки — НЕ текст (2.8:1) */
  --gold-text:  #755B2B;  /*  5.4:1 — золотой текст на светлом */
  --gold-soft:  #C6AB7B;  /*  6.6:1 на тёмном — текст на тёмных подложках */
  --gold-pale:  #E8DCC4;
  --olive:      #8C9377;  /* светлая олива из референса — текст на ней тёмный */
  --olive-price:#556048;  /*  6.3:1 — цена пакета «Комфорт» */
  --olive-deep: #4A5540;  /*  7.4:1 со светлым текстом */
  --espresso:   #2E2822;
  --espresso-2: #3D362E;

  /* Линии */
  --line:       #E5DACA;
  --line-soft:  #EDE4D6;
  --line-deep:  #D6C8B0;

  /* Статусы */
  --danger:     #A3352C;
  --success:    #4A6B4E;

  /* Шрифты */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-text:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Отступы (шаг 4px) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 72px;
  --sp-9: 120px;

  /* Формы */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Тени — тёплые и мягкие, без серого */
  --shadow-xs: 0 1px 2px rgba(70, 55, 35, .04);
  --shadow-sm: 0 2px 6px rgba(70, 55, 35, .04), 0 8px 20px rgba(70, 55, 35, .04);
  --shadow-md: 0 4px 12px rgba(70, 55, 35, .05), 0 18px 44px rgba(70, 55, 35, .07);
  --shadow-lg: 0 8px 22px rgba(70, 55, 35, .06), 0 34px 80px rgba(70, 55, 35, .10);

  --ease:  cubic-bezier(.25, .8, .3, 1);
  --dur:   260ms;
  --dur-s: 180ms;

  --container: 1200px;
  --header-h:  84px;

  --z-fab:    40;
  --z-header: 100;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17.5px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--espresso);
  color: var(--bg-soft);
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

.nowrap { white-space: nowrap; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Надзаголовок — тонкая разрядка золотом */
.eyebrow {
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--light { color: var(--gold-soft); }

/* Тонкий золотой штрих-разделитель */
.rule {
  width: 44px; height: 1px;
  margin: var(--sp-5) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.rule--left { margin-inline: 0; background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--espresso);
  --btn-fg: #F7F2E9;
  --btn-bd: var(--espresso);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-7);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 100px;
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-s) var(--ease),
              box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

.btn--primary:hover { --btn-bg: var(--espresso-2); --btn-bd: var(--espresso-2); }

/* Золотая — для тёмных подложек */
.btn--gold {
  --btn-bg: var(--gold-soft);
  --btn-fg: var(--espresso);
  --btn-bd: var(--gold-soft);
}
.btn--gold:hover { --btn-bg: #D8C097; --btn-bd: #D8C097; }

/* Контурная — тонкая линия */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-deep);
}
.btn--outline:hover {
  --btn-bg: rgba(168, 135, 78, .06);
  --btn-bd: var(--gold-soft);
  --btn-fg: var(--gold);
}

.btn--ghost {
  --btn-bg: rgba(251, 248, 243, .7);
  --btn-fg: var(--ink);
  --btn-bd: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--surface); }

.btn--sm    { min-height: 44px; padding: var(--sp-2) var(--sp-4); font-size: 13px; }
.btn--lg    { min-height: 56px; }
.btn--block { display: flex; width: 100%; }

.btn__spinner { display: none; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading .btn__spinner {
  display: block;
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--gold);
  flex-shrink: 0;
}
.logo__mark { width: 36px; height: 33px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name {
  font-family: var(--font-text);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink);
  white-space: nowrap;
}
.logo__tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  white-space: nowrap;
}
/* на тёмной подложке подвала золото должно быть светлым, иначе подпись не видно */
.logo--footer .logo__name { color: var(--bg-soft); }
.logo--footer .logo__tagline { color: var(--gold-soft); }
.logo--footer { color: var(--gold-soft); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(242, 235, 224, 0);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.header.is-stuck {
  background: rgba(247, 242, 233, .82);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.nav__list { display: flex; gap: var(--sp-6); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--gold-text); }

.header__actions { display: flex; align-items: center; gap: var(--sp-4); }
.header__phone {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.header__phone:hover { color: var(--gold-text); }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.burger__bar {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-s) var(--ease);
}
.burger[aria-expanded='true'] .burger__bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Секции ---------- */
.section { padding-block: var(--sp-9); }
.section--soft  { background: var(--bg-soft); }
.section--sand  { background: var(--surface-2); }

.section__head {
  max-width: 720px;
  margin: 0 auto var(--sp-8);
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
}
.section__title em {
  font-style: italic;
  color: var(--gold-text);
}
.section__title--left { text-align: left; }
.section__subtitle {
  margin-top: var(--sp-4);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 840px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  padding-bottom: var(--sp-8);
  overflow: hidden;
  background: var(--sand);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
/* мягкая бежевая вуаль слева — текст всегда читается */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg,
      rgba(242, 235, 224, 1) 0%,
      rgba(242, 235, 224, .995) 42%,
      rgba(242, 235, 224, .975) 53%,
      rgba(242, 235, 224, .62) 63%,
      rgba(242, 235, 224, .22) 73%,
      rgba(242, 235, 224, 0) 87%),
    linear-gradient(180deg, rgba(242, 235, 224, .34) 0%, rgba(242, 235, 224, 0) 20%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 600px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--ink);
}
.hero__title em {
  display: block;
  font-style: italic;
  color: var(--gold-text);
}
.hero__subtitle {
  margin-top: var(--sp-6);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
  max-width: 32ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}
.hero__note {
  margin-top: var(--sp-5);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Преимущества ---------- */
.benefits {
  padding-block: var(--sp-8);
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
}
.benefit {
  position: relative;
  padding-inline: var(--sp-4);
  text-align: center;
}
.benefit + .benefit::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-5) / -2); top: 14%;
  width: 1px; height: 72%;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.benefit__icon {
  display: block;
  width: 52px; height: 52px;
  margin: 0 auto var(--sp-4);
  color: var(--gold);
}
.benefit__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit__title {
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.benefit__text {
  margin-top: var(--sp-3);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Пакеты ---------- */
.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}

.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* выделенный пакет — чуть выше и с золотым контуром */
.pkg--comfort {
  border-color: var(--gold-pale);
  box-shadow: var(--shadow-md);
}

/* Плашка сидит в зарезервированной зоне сверху — шапки всех карточек
   имеют одинаковый padding-top, поэтому фото не разъезжаются по высоте */
.pkg__badge {
  position: absolute;
  top: var(--sp-4); left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 5px var(--sp-4);
  background: rgba(251, 248, 243, .94);
  backdrop-filter: blur(8px);
  color: var(--gold-text);
  border: 1px solid var(--gold-pale);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pkg__head { padding: var(--sp-8) var(--sp-5) var(--sp-5); text-align: center; }
.pkg__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
}
.pkg__caption {
  margin-top: var(--sp-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pkg--start   .pkg__head { background: var(--sand);       color: var(--ink); }
.pkg--comfort .pkg__head { background: var(--olive);      color: var(--ink); }
.pkg--premium .pkg__head { background: var(--olive-deep); color: #FBF8F3; }
.pkg--start   .pkg__caption { color: var(--muted); }
.pkg--comfort .pkg__caption { color: #242A1C; }
.pkg--premium .pkg__caption { color: rgba(251, 248, 243, .82); }

.pkg__media { aspect-ratio: 5 / 4; background: var(--surface-2); overflow: hidden; }
.pkg__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.pkg:hover .pkg__media img { transform: scale(1.04); }

.pkg__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
.pkg__desc {
  min-height: 4.8em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}

.pkg__prices {
  margin-top: var(--sp-5);
  padding-block: var(--sp-5);
  border-block: 1px solid var(--line-soft);
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.price + .price { margin-top: var(--sp-5); }
.price__from  { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.price__value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.1vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price__unit  { font-size: 14px; font-weight: 600; color: var(--faint); }
.price__label {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.price__label--top { order: -1; margin-bottom: var(--sp-2); }
.price__note {
  flex-basis: 100%;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-2);
}

.pkg--comfort .price__value { color: var(--olive-price); }
.pkg--premium .price__value { color: var(--olive-deep); }

.pkg__list { margin-top: var(--sp-5); flex: 1; }
.pkg__list-head {
  margin-bottom: var(--sp-4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.pkg__list li:not(.pkg__list-head) {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--sp-3);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
}
/* тонкая золотая галочка без рамки */
.pkg__list li:not(.pkg__list-head)::before {
  content: '';
  position: absolute;
  left: 2px; top: 7px;
  width: 8px; height: 4.5px;
  border-left: 1.6px solid var(--gold-text);
  border-bottom: 1.6px solid var(--gold-text);
  transform: rotate(-45deg);
}
.pkg__body .btn { margin-top: var(--sp-6); }

.packages__footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3) var(--sp-7);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
}
.packages__footnote li { position: relative; padding-left: var(--sp-4); }
.packages__footnote li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 3px;
  margin-top: -1.5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Таблица сравнения ---------- */
.compare__hint {
  display: none;
  margin-bottom: var(--sp-3);
  font-size: 12.5px;
  color: var(--faint);
}
.compare__scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.compare__table { min-width: 680px; font-size: 15.5px; }

.compare__table th,
.compare__table td {
  padding: var(--sp-4);
  text-align: center;
  vertical-align: middle;
}
.compare__table tbody th,
.compare__table tfoot th {
  text-align: left;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-2);
  min-width: 300px;
}
.compare__table tbody tr { border-top: 1px solid var(--line-soft); }
.compare__table tbody tr:hover { background: var(--bg-soft); }

.compare__feature-head {
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted) !important;
  text-align: left !important;
}
.compare__pkg {
  width: 15%;
  padding-block: var(--sp-5) !important;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .02em;
}
.compare__pkg--start   { background: var(--sand);       color: var(--ink); }
.compare__pkg--comfort { background: var(--olive);      color: var(--ink); }
.compare__pkg--premium { background: var(--olive-deep); color: #FBF8F3; }

.yes { font-size: 17px; font-weight: 700; color: var(--gold-text); }
.no  { font-size: 17px; color: var(--faint); }

/* цена внутри ячейки — акцент, но тише заголовков пакетов */
.cell-price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* «по запросу» и подобные пометки */
.cell-note {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  text-wrap: balance;
}

.compare__terms {
  background: var(--surface-2) !important;
  border-top: 1px solid var(--line-deep) !important;
}
.compare__terms th {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.compare__terms td {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.compare__days {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Дополнительные услуги */
.extras__title {
  margin-top: var(--sp-9);
  margin-bottom: var(--sp-7);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: var(--ink);
  text-align: center;
}
.extras__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-5);
}
.extra {
  position: relative;
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
}
.extra + .extra::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-5) / -2); top: 16%;
  width: 1px; height: 68%;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.extra__icon {
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto var(--sp-4);
  color: var(--gold);
}
.extra__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.extra p {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- Почему выбирают ---------- */
.why__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-7) var(--sp-6);
  margin-top: var(--sp-8);
}
.why__icon {
  display: block;
  width: 32px; height: 32px;
  margin-bottom: var(--sp-4);
  color: var(--gold);
}
.why__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why__item h3 {
  font-family: var(--font-text);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--ink);
  text-wrap: balance;
}
.why__item p {
  margin-top: var(--sp-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}
.why__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Этапы ---------- */
.steps__head { margin-bottom: var(--sp-8); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
}
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--gold-pale);
  box-shadow: var(--shadow-md);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}
.step:hover .step__num { color: var(--gold-text); }
.step__icon {
  display: block;
  width: 36px; height: 36px;
  margin: var(--sp-5) auto;
  color: var(--gold);
}
.step__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__text {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- Заявка ---------- */
.lead {
  position: relative;
  padding-block: var(--sp-9);
  background: var(--olive-deep);
  color: var(--bg-soft);
  overflow: hidden;
}
.lead__media { position: absolute; inset: 0; z-index: 0; }
.lead__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
}
.lead::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(88deg,
              rgba(48, 56, 42, .97) 0%,
              rgba(48, 56, 42, .93) 40%,
              rgba(48, 56, 42, .74) 100%);
}
.lead__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 450px);
  gap: var(--sp-9);
  align-items: center;
}
.lead__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: #FBF8F3;
  text-wrap: balance;
}
.lead__title em { font-style: italic; color: var(--gold-soft); }
.lead__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.lead__benefits li {
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(251, 248, 243, .92);
}
.lead__icon {
  display: block;
  width: 34px; height: 34px;
  margin-bottom: var(--sp-3);
  color: var(--gold-soft);
}
.lead__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Форма ---------- */
.form {
  padding: var(--sp-7) var(--sp-6);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}
.form__subtitle {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.field { margin-bottom: var(--sp-4); }
.field__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--gold-text); }

.field__input {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px; /* 16px — iOS не зумит при фокусе */
  color: var(--ink);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--faint); }
.field__input:hover { border-color: var(--line-deep); }
.field__input:focus {
  background: var(--surface);
  border-color: var(--gold-soft);
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 135, 78, .14);
}
.field__select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%23857A6D' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 11px;
  cursor: pointer;
}
.field__hint {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
}
.field__error {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field__input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(163, 53, 44, .1);
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  margin-block: var(--sp-6);
}
.check {
  width: 19px; height: 19px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.check__label {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check__label a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
.field--check .field__error { grid-column: 1 / -1; }

.form__status {
  margin-top: var(--sp-4);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.form__status.is-ok    { color: var(--success); }
.form__status.is-error { color: var(--danger); }

.form__legal {
  margin-top: var(--sp-4);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
}

.form--done { text-align: center; }
.form__done-icon {
  display: block;
  width: 60px; height: 60px;
  margin: var(--sp-4) auto var(--sp-5);
  color: var(--gold-text);
}
.form__done-icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Подвал ---------- */
.footer {
  padding-top: var(--sp-8);
  background: var(--espresso);
  color: var(--bg-soft);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.footer__contacts {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-6);
}
.footer__cta { flex-shrink: 0; }
.footer__contacts li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 15.5px;
  font-weight: 500;
}
.footer__contacts a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: rgba(251, 248, 243, .88);
  transition: color var(--dur) var(--ease);
}
.footer__contacts a:hover { color: var(--gold-soft); }
.footer__icon {
  display: block;
  width: 20px; height: 20px;
  color: var(--gold-soft);
  flex-shrink: 0;
}
.footer__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(251, 248, 243, .1);
  font-size: 13px;
  color: rgba(251, 248, 243, .66);
}
.footer__links a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--gold-soft); }

/* ---------- Плавающая кнопка звонка ---------- */
.fab {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fab);
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--espresso);
  color: var(--gold-soft);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-s) var(--ease);
}
.fab:active { transform: scale(.93); }
.fab svg {
  width: 23px; height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Появление при прокрутке ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1200px) {
  :root { --sp-9: 96px; }
  .benefits__grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-7); }
  .benefit:nth-child(3n + 1)::before { display: none; }
  .extras__grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-6); }
  .extra:nth-child(3n + 1)::before { display: none; }
  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .why__inner { gap: var(--sp-8); }
}

/* ---------- ≤1024px: планшет ---------- */
@media (max-width: 1024px) {
  :root { --sp-9: 84px; --sp-8: 56px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(247, 242, 233, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease),
                opacity var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--sp-2) var(--sp-6) var(--sp-5);
  }
  .nav__link {
    display: block;
    padding: var(--sp-4) 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link::after { display: none; }

  .burger { display: flex; }
  .header__phone { display: none; }
  .header__actions .btn--sm { display: none; }

  /* шапка на планшете/мобиле всегда с подложкой — hero больше не «под» ней */
  .header {
    background: rgba(247, 242, 233, .9);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line-soft);
  }
  .hero { margin-top: 0; padding-top: var(--sp-8); }

  .packages__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pkg__desc { min-height: 0; }

  .why__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .why__media { order: -1; max-height: 320px; }
  .why__grid { margin-top: var(--sp-6); }
  .section__title--left { text-align: center; }
  .why__content > .eyebrow, .steps__head .eyebrow { text-align: center; }
  .rule--left { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }

  .lead__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .lead__form-wrap { max-width: 520px; width: 100%; margin-inline: auto; }
  .lead__content { text-align: center; }
  .lead__benefits { max-width: 520px; margin-inline: auto; text-align: left; }

  .fab { display: flex; }
}

/* ---------- ≤760px: телефон ---------- */
@media (max-width: 760px) {
  :root { --sp-9: 64px; --sp-8: 48px; --header-h: 72px; }

  body { font-size: 16px; }
  .container { padding-inline: var(--sp-5); }

  /* фото сверху, текст под ним — без наложения */
  .hero {
    display: block;
    min-height: 0;
    padding-top: 0;
    padding-bottom: var(--sp-8);
    background: var(--bg);
  }
  .hero__media {
    position: relative;
    height: 46vh;
    max-height: 340px;
    min-height: 240px;
  }
  .hero__media img { object-position: 46% 60%; }
  .hero::after {
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(242, 235, 224, 0) 0%, var(--bg) 92%);
  }
  .hero__inner { position: relative; z-index: 2; margin-top: var(--sp-6); }
  .hero__content { max-width: none; text-align: center; }
  .hero__subtitle { max-width: 34ch; margin-inline: auto; }
  .hero__actions { flex-direction: column; margin-top: var(--sp-6); }
  .hero__actions .btn { width: 100%; }
  .hero .eyebrow { margin-bottom: var(--sp-3); }
  .br-desktop { display: none; }

  .benefits__grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
  .benefit::before { display: none !important; }
  .benefit { padding-inline: var(--sp-1); }
  .benefit:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .compare__hint { display: block; }
  .compare__table { min-width: 660px; font-size: 13px; }
  .compare__table tbody th,
  .compare__table tfoot th { min-width: 280px; font-size: 12.5px; }
  .compare__table th, .compare__table td { padding: var(--sp-3) var(--sp-2); }
  .compare__pkg { font-size: 16px; }
  /* первая колонка липнет при горизонтальном скролле */
  .compare__table tbody th,
  .compare__table tfoot th,
  .compare__feature-head {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line-soft);
  }
  .compare__terms th { background: var(--surface-2) !important; }
  .compare__table tbody tr:hover { background: transparent; }

  .extras__grid { grid-template-columns: repeat(2, 1fr); }
  .extra::before { display: none !important; }

  .why__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .why__media { max-height: 240px; }

  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .step { padding: var(--sp-5) var(--sp-3); }

  .lead__benefits { grid-template-columns: 1fr; gap: var(--sp-4); }
  .lead__benefits li { display: flex; align-items: center; gap: var(--sp-4); }
  .lead__icon { margin-bottom: 0; width: 28px; height: 28px; flex-shrink: 0; }

  .form { padding: var(--sp-6) var(--sp-5); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__contacts { flex-direction: column; gap: var(--sp-4); }
  .footer__cta { width: 100%; }
  .footer__cta .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 76px; }
}

@media (max-width: 400px) {
  .logo__mark { width: 30px; height: 28px; }
  .logo__name { font-size: 14px; letter-spacing: .06em; }
  .logo__tagline { font-size: 7.5px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .extras__grid { grid-template-columns: 1fr; }
}

/* ---------- Ландшафт на телефоне ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .fab { display: none; }
}

/* ---------- Уважаем «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pkg:hover .pkg__media img { transform: none; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .fab, .lead__form-wrap, .burger, .skip-link { display: none !important; }
  .hero::after, .lead::after { display: none; }
  body { background: #fff; font-size: 12pt; }
  .section { padding-block: 16pt; page-break-inside: avoid; }
  .pkg { break-inside: avoid; }
  /* блоки с анимацией появления должны печататься видимыми */
  .reveal { opacity: 1 !important; transform: none !important; }
}
