/* Sei Saadiyat — квиз-лендинг
   Стиль по материалам застройщика: разреженные заглавные с засечками, курсив, тёмно-коричневая фактура.
   Цвета и шрифты — в :root. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-500-normal.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: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-500-normal.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: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-600-normal.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: 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-600-normal.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: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/spectral-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/spectral-latin-400-normal.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: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/spectral-cyrillic-400-italic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/spectral-latin-400-italic.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 {
  /* палитра из брошюры */
  --espresso: #2E1D15;     /* фактура плашек */
  --ink: #1B110C;          /* текст */
  --ink-2: #6B5A4F;        /* вторичный текст */
  --gold: #D6BB95;         /* логотип на обложке */
  --gold-deep: #8C6A43;    /* золотистый для текста на белом */
  --paper: #FFFFFF;
  --sand: #F6F1EB;         /* фон вариантов ответа */
  --line: #E9E1D8;
  --line-strong: #CDBFB1;
  --on-dark: #F7F1EA;
  --on-dark-2: #D2C1AF;
  --error: #A0352C;

  /* шрифты: замена Majesty Display и Times Italic из брошюры */
  --display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --text: 'Spectral', Georgia, 'Times New Roman', serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --hero-h: max(68svh, 500px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; font-variant-numeric: lining-nums; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
p, dl, dd, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center h2, .center h3 { padding-left: 0.22em; } /* компенсация разрядки при центровке */

.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 14px; background: var(--espresso); color: var(--on-dark); }
.skip:focus { left: 12px; }

.lead-italic {
  margin-top: 20px;
  font-style: italic;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.65;
}
.center .lead-italic { margin-left: auto; margin-right: auto; max-width: 36em; }
.sec-title { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); letter-spacing: 0.26em; }
.note { margin-top: 20px; font-size: 0.875rem; font-style: italic; color: var(--ink-2); }

/* ——— Шапка ——— */

.top { padding-top: env(safe-area-inset-top); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo {
  margin-right: -0.3em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--ink);
}
.top__wa {
  padding-bottom: 3px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.top__num { display: none; }
.top--over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top--over .logo, .top--over .top__wa { color: var(--on-dark); }
.top--over .top__wa { border-bottom-color: rgba(247, 241, 234, 0.5); }

/* ——— Первый экран ——— */

.hero { position: relative; }
.hero__media {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--espresso);
}
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 17, 12, 0.5) 0%, rgba(27, 17, 12, 0.12) 34%, rgba(27, 17, 12, 0) 55%, rgba(27, 17, 12, 0.2) 100%);
}
.hero__grid { position: relative; display: grid; padding-top: 108px; }
.hero__text {
  min-height: calc(var(--hero-h) - 108px - 76px);
  text-align: center;
  color: var(--on-dark);
  text-shadow: 0 1px 18px rgba(27, 17, 12, 0.35);
}
.hero__title {
  padding-left: 0.32em;
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.32em;
}
.hero__sub { max-width: 22em; margin: 14px auto 0; font-style: italic; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; }

/* ——— Квиз ——— */

.quiz {
  scroll-margin-top: 12px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  box-shadow: 0 30px 60px -36px rgba(27, 17, 12, 0.55);
}
.quiz__lead { margin-bottom: 18px; font-style: italic; font-size: 0.9375rem; line-height: 1.5; text-align: center; color: var(--ink-2); }
.quiz.is-done .quiz__lead { display: none; }
.quiz__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz__count {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.quiz__body { display: flex; flex: 1; flex-direction: column; }

.path { display: flex; flex: 1; gap: 6px; margin: 0; padding: 0; list-style: none; }
.path li { flex: 1; height: 2px; background: var(--line); transform-origin: left center; }
.path li.is-current { background: var(--gold); }
.path li.is-laid { background: var(--espresso); }
.path li.is-dropping { animation: lay 0.45s cubic-bezier(0.3, 0.7, 0.2, 1); }
@keyframes lay { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.q { display: flex; flex-direction: column; }
.q__title {
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  text-wrap: balance;
}
.q__title:focus { outline: none; }
.q__hint { margin-bottom: 18px; font-style: italic; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

.opts { display: grid; gap: 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  font: inherit;
  text-align: left;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.opt:hover { background: var(--paper); border-color: var(--line-strong); }
.opt[aria-pressed="true"] { background: var(--paper); border-color: var(--espresso); }
.opt__mark {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink-2);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.opts--multi .opt__mark { border-radius: 0; }
.opt[aria-pressed="true"] .opt__mark { background: var(--espresso); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px var(--espresso); }
.opt__label { display: block; font-size: 1.0625rem; line-height: 1.3; }
.opt__note { display: block; margin-top: 2px; font-style: italic; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }

.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; }
.quiz__note { margin-top: 12px; font-size: 0.9375rem; color: var(--error); }
.link-btn {
  padding: 10px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

/* ——— Кнопки ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn--primary { background: var(--espresso); color: var(--on-dark); }
.btn--primary:hover { background: var(--ink); }
.btn--primary[disabled] { opacity: 0.65; cursor: progress; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--espresso); color: var(--on-dark); box-shadow: none; }
.btn--block { width: 100%; }

/* ——— Форма ——— */

.lead { display: flex; flex-direction: column; }
.field { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field > label, .field > legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.muted { font-family: var(--text); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #A89A8E; }
.input:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(214, 187, 149, 0.45); }
.input[aria-invalid="true"] { border-color: var(--error); }
.phone { display: flex; gap: 8px; }
.phone .input { flex: 1; min-width: 0; }
.cc { position: relative; flex: none; width: 100px; }
.cc__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  font-variant-numeric: lining-nums tabular-nums;
  pointer-events: none;
}
.cc__code::after {
  content: "";
  width: 7px; height: 7px;
  margin: -4px 0 0 8px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg);
}
.cc select { position: absolute; inset: 0; width: 100%; height: 100%; font-size: 16px; opacity: 0; cursor: pointer; }
.cc:focus-within .cc__code { border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(214, 187, 149, 0.45); }
.field__err { margin-top: 6px; font-size: 0.9375rem; color: var(--error); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg__item { position: relative; display: block; }
.seg__item input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.seg__item input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--on-dark); }
.seg__item input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-style: italic; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.form-note a, .form-status a { text-underline-offset: 3px; }
.form-status { margin-top: 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--error); }
.form-status a { color: var(--ink); }

/* Заявка принята */
.done { display: flex; flex-direction: column; }
.done__text { margin-bottom: 20px; font-style: italic; color: var(--ink-2); }
.done__sum { margin-bottom: 24px; border-top: 1px solid var(--line); }
.done__sum > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.done__sum dt { font-family: var(--display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.done__sum dd { font-size: 0.9375rem; }
.done__hint { margin-bottom: 10px; font-style: italic; font-size: 0.9375rem; color: var(--ink-2); }

/* ——— Секции ——— */

.section { padding: clamp(72px, 10vw, 136px) 0; }
.intro__title { font-size: clamp(1.125rem, 0.95rem + 1vw, 1.625rem); line-height: 1.7; letter-spacing: 0.2em; }
.intro .lead-italic + .lead-italic { margin-top: 16px; }

/* Характеристики на фактуре */
.specs {
  padding: clamp(72px, 10vw, 128px) 0;
  color: var(--on-dark);
  background: var(--espresso) url(../img/sei/texture.jpg) center / cover;
}
.specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; max-width: 980px; margin: 44px auto 0; }
.specs__grid dt { font-family: var(--display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-2); }
.specs__grid dd { margin-top: 8px; font-style: italic; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.45; }
.specs__wide { grid-column: 1 / -1; }
.specs__dev { margin-top: 44px; font-family: var(--display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* Архитектура */
.split { display: grid; gap: 36px; align-items: center; }
.split__img { display: block; width: 100%; height: auto; }

/* Планировки */
.band { position: relative; display: grid; place-items: center; min-height: clamp(320px, 48vw, 600px); overflow: hidden; color: var(--on-dark); text-align: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(27, 17, 12, 0.32); }
.band__title { position: relative; z-index: 1; padding: 0 var(--gutter) 0 calc(var(--gutter) + 0.28em); font-size: clamp(1.375rem, 1rem + 2vw, 2.5rem); letter-spacing: 0.28em; text-shadow: 0 1px 18px rgba(27, 17, 12, 0.4); }
.plans__body { padding-top: clamp(48px, 7vw, 88px); }
.plans__body .lead-italic { margin-top: 0; }
.plans__track {
  display: flex;
  gap: 16px;
  margin: 36px calc(-1 * var(--gutter)) 0;
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.plans__track::-webkit-scrollbar { display: none; }
.plan {
  flex: 0 0 min(84%, 400px);
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.plan img { display: block; width: 100%; height: clamp(300px, 70vw, 420px); object-fit: contain; }
.plan figcaption {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.plan figcaption span { display: block; margin-top: 2px; font-family: var(--text); font-style: italic; font-weight: 400; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.plans__nav { display: flex; justify-content: center; gap: 12px; margin: 20px 0 32px; }
.arrow { position: relative; width: 48px; height: 48px; background: var(--paper); border: 1px solid var(--line-strong); cursor: pointer; }
.arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.arrow:hover { border-color: var(--espresso); }

/* Инфраструктура */
.amen .lead-italic { margin-bottom: 8px; }
.amen__group { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.amen__group h3 { font-size: 1.125rem; letter-spacing: 0.3em; }
.amen__sub { margin-top: 6px; font-style: italic; color: var(--ink-2); }
.amen__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.amen__list li { font-family: var(--display); font-weight: 600; font-size: 0.8125rem; line-height: 1.55; letter-spacing: 0.14em; text-transform: uppercase; }

.duo { display: grid; gap: 4px; }
.duo img { display: block; width: 100%; height: clamp(260px, 62vw, 560px); object-fit: cover; }

/* Локация */
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 12px; max-width: 860px; margin: 48px auto 0; padding: 0; list-style: none; }
.times b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); line-height: 1; font-variant-numeric: lining-nums; }
.times small { margin-left: 0.25em; font-size: 0.34em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 0.95em; }
.times span { display: block; margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; }
.map { margin: 64px 0 0; background: var(--espresso); }
.map img { display: block; width: 100%; height: auto; }
.places { display: grid; max-width: 980px; margin: 28px auto 0; padding: 0; list-style: none; }
.places li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.places span { font-family: var(--display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.places em { flex: none; font-size: 0.9375rem; color: var(--ink-2); }

/* Финальный экран */
.cta { position: relative; padding: clamp(120px, 18vw, 220px) 0; overflow: hidden; color: var(--on-dark); background: var(--espresso); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(27, 17, 12, 0.35); }
.cta .wrap { position: relative; z-index: 1; }
.cta__title { padding-left: 0.3em; font-size: clamp(1.625rem, 1.1rem + 2.6vw, 3rem); letter-spacing: 0.3em; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.cta__wa { font-style: italic; color: var(--on-dark); text-decoration-color: rgba(247, 241, 234, 0.45); text-underline-offset: 5px; }

/* Подвал */
.foot { padding: 56px 0 calc(104px + env(safe-area-inset-bottom)); font-size: 0.9375rem; line-height: 1.6; color: var(--on-dark-2); background: var(--espresso); }
.foot__grid { display: grid; gap: 28px; }
.logo--foot { display: inline-block; margin-bottom: 8px; color: var(--on-dark); }
.foot__contacts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.foot__contacts a { color: var(--on-dark); text-decoration: none; }
.foot__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { display: grid; gap: 10px; max-width: 46em; font-style: italic; font-size: 0.875rem; }
.foot__legal a { color: var(--on-dark); text-underline-offset: 3px; }

/* Нижняя кнопка на мобильных */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.dock.is-on { transform: none; }

/* ——— Адаптив ——— */

@media (max-width: 419px) {
  .btn { padding: 0 16px; font-size: 0.8125rem; letter-spacing: 0.12em; }
}

@media (min-width: 720px) {
  .top__num { display: inline; }
  .specs__grid { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
  .specs__wide { grid-column: auto; }
  .amen__list { grid-template-columns: repeat(3, 1fr); }
  .times { grid-template-columns: repeat(3, 1fr); }
  .places { grid-template-columns: repeat(3, 1fr); column-gap: 36px; }
  .places li { flex-direction: column; gap: 2px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero__media { height: auto; bottom: 0; }
  .hero__media img { object-position: 42% 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(27, 17, 12, 0.45) 0%, rgba(27, 17, 12, 0.08) 42%, rgba(27, 17, 12, 0) 60%),
      linear-gradient(180deg, rgba(27, 17, 12, 0.4) 0%, rgba(27, 17, 12, 0) 30%);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    column-gap: 48px;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 104px;
    padding-bottom: 64px;
  }
  .hero__text { align-self: start; min-height: 0; padding-top: 10vh; text-align: left; }
  .hero__title { padding-left: 0; }
  .hero__sub { margin-left: 0; }
  .quiz { min-height: 560px; }

  .split { grid-template-columns: 1.15fr 1fr; gap: 80px; }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo img { height: clamp(360px, 36vw, 560px); }
  .plans__track { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; }
  .plan { flex-basis: calc((100% - 32px) / 3); }
  .cta__actions { flex-direction: row; justify-content: center; gap: 28px; }
  .foot { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .foot__grid { grid-template-columns: 1fr 1fr 2fr; }
  .foot__legal { grid-column: auto; }
  .dock { display: none; }
}

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