/* =========================================================
   Амплитуда — студия растяжки и школа художественной гимнастики
   ========================================================= */

/* ---------- Шрифты (лежат локально, без внешних сервисов) ---------- */
@font-face {
  font-family: "Forum";
  src: url("../fonts/forum-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Forum";
  src: url("../fonts/forum-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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+2212, U+2215;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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+2212, U+2215;
}
@font-face { /* только знак рубля */
  font-family: "Montserrat";
  src: url("../fonts/montserrat-rouble.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+20BD;
}

/* ---------- Переменные ---------- */
:root {
  --paper: #fbf6f1;       /* фон страницы */
  --cream: #f4ebe4;       /* мягкие плашки */
  --blush: #eee1d9;       /* карточки (цвет из макета) */
  --line: #dcc8bd;        /* линии и рамки */
  --wine: #6e1f30;        /* лента из логотипа */
  --wine-deep: #521524;
  --bronze: #7a4a2f;      /* надпись логотипа */
  --ink: #3b2a28;
  --ink-soft: #66534f;

  --display: "Forum", "Times New Roman", serif;
  --text: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --r-panel: clamp(22px, 3vw, 36px);
  --r-card: clamp(18px, 2.4vw, 28px);
  --section: clamp(56px, 8vw, 104px);
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 400 1.03125rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--wine); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.9rem, 3vw, 2.625rem); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.55); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--wine); color: #fff; border-radius: 10px;
}
.skip:focus { top: 12px; color: #fff; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 52px; padding: 0.7em 1.6em;
  border: 1.5px solid var(--wine); border-radius: 999px;
  background: var(--wine); color: #fff8f3;
  font: 500 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.2s; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: #fff8f3; }
.btn--small { min-height: 44px; padding: 0.5em 1.25em; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-more {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; color: var(--wine);
}
.link-more svg { width: 1.1em; height: 1.1em; transition: transform 0.2s; }
.link-more:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 241, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__emblem { height: 58px; width: auto; }
.brand__word { height: 25px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 8px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--wine); text-decoration: underline; text-underline-offset: 0.5em; }
.burger {
  display: none; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--line);
  border-radius: 50%; background: transparent; color: var(--wine); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; margin: auto; }
.burger .burger__close, .burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1080px) {
  .header__in { min-height: 70px; gap: 12px; }
  .brand__emblem { height: 42px; }
  .brand__word { height: 17px; }
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--cream); }
  .header .btn--small { display: none; }
  .nav .nav__cta { display: inline-flex; margin-top: 16px; border-bottom: 0; color: #fff8f3; justify-content: center; }
}
@media (min-width: 1081px) { .nav .nav__cta { display: none; } }
@media (max-width: 380px) { .brand__word { display: none; } }

/* ---------- Главный экран ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-panel);
  background: radial-gradient(90% 120% at 74% 46%, #f8f1eb 0%, #f1e8e3 52%, #ecdcd3 100%);
  min-height: clamp(460px, 48vw, 590px);
  display: flex; align-items: center;
}
.hero__art {
  position: absolute; z-index: -1; top: 50%; right: clamp(14px, 3vw, 40px);
  width: min(57%, 690px); height: auto; transform: translateY(-50%);
}
.hero__text { padding: clamp(28px, 5.4vw, 68px); max-width: 700px; }
.hero__title { line-height: 0; }
.hero__word { /* слово «Амплитуда» — надпись из логотипа, отдельной картинкой */
  display: block; width: clamp(15rem, 43vw, 35rem); max-width: 100%; height: auto;
  margin-left: -4%;
}
.hero__tagline { margin: 1em 0 0.9em; font-size: clamp(1.2rem, 2vw, 1.625rem); font-weight: 500; color: var(--wine); line-height: 1.3; }
.hero__lead { max-width: 17em; margin-bottom: 1.7em; color: var(--ink); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }

@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__text { padding-bottom: 4px; }
  .hero__word { width: min(104%, 24rem); max-width: none; }
  .hero__art { position: static; order: 2; transform: none; width: 90%; margin: 6px auto 26px; }
}

/* ---------- Направления ---------- */
.directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: clamp(340px, 31vw, 400px);
  padding: clamp(24px, 3.6vw, 46px);
  border-radius: var(--r-card);
  background: var(--blush);
}
.card__art { position: absolute; z-index: -1; height: auto; }
.card__art--tall { right: 5%; bottom: 5%; height: 80%; width: auto; }   /* высокая фигура */
.card__art--wide { right: 4%; bottom: 22%; width: min(46%, 300px); }    /* широкая фигура */
.card h3 { max-width: 7.2em; font-size: clamp(1.9rem, 2.6vw, 2.3rem); }
.card__text { max-width: min(17em, 50%); margin-top: 0.9em; color: var(--ink); }
.card .btn { margin-top: auto; }
.facts { list-style: none; margin: 1em 0 1.6em; padding: 0; max-width: min(19em, 50%); font-size: 0.9375rem; line-height: 1.4; color: var(--ink); }
.facts li { display: flex; gap: 0.6em; align-items: baseline; padding: 0.28em 0; }
.facts svg { width: 0.75em; height: 0.75em; flex: none; color: var(--wine); transform: translateY(0.02em); }
.facts b { font-weight: 600; color: var(--wine); }

@media (max-width: 1080px) { .directions { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .card { min-height: 0; padding-bottom: 200px; }
  .card__art--tall { height: 176px; right: 50%; bottom: 14px; transform: translateX(50%); }
  .card__art--wide { width: min(74%, 290px); right: 50%; bottom: 26px; transform: translateX(50%); }
  .card .btn { margin-top: 0; }
  .card h3, .card__text, .facts { max-width: none; }
}

/* ---------- О нас + тренер ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 0.9fr) 1px minmax(0, 1.5fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; }
.duo__rule { align-self: stretch; background: var(--line); }
.duo h2 { margin-bottom: 0.45em; }
.coach { display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 22vw, 270px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.coach__pic { border-radius: var(--r-card); aspect-ratio: 10 / 9; width: 100%; object-fit: cover; }
.coach .link-more { margin-top: 0.4em; }
@media (max-width: 880px) {
  .duo { grid-template-columns: 1fr; }
  .duo__rule { height: 1px; }
}
@media (max-width: 520px) { .coach { grid-template-columns: 1fr; } .coach__pic { max-width: 320px; } }

/* ---------- Почему выбирают нас ---------- */
.why h2 { margin-bottom: 0.7em; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.why__list li {
  padding: 1.5em 0 0.2em;
  font-family: var(--display); font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.15; color: var(--ink);
}
.why__list svg { width: 16px; height: 16px; margin-bottom: 0.9em; color: var(--wine); }
@media (max-width: 760px) { .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why__list li { font-size: 1.3rem; } }

/* ---------- Полоса с контактами ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center;
  gap: 8px 0; padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3.4vw, 44px);
  border-radius: var(--r-card); background: var(--blush);
}
.strip__item { display: flex; align-items: center; gap: 16px; padding-right: clamp(12px, 2.6vw, 36px); color: var(--ink); text-decoration: none; line-height: 1.35; }
.strip__item + .strip__item { padding-left: clamp(12px, 2.6vw, 36px); border-left: 1px solid var(--line); }
.strip__item:last-child { padding-right: 0; }
.strip__item svg { width: 30px; height: 30px; flex: none; color: var(--wine); }
.strip__item small { display: block; font-size: 0.875rem; color: var(--ink-soft); }
a.strip__item:hover { color: var(--wine); }
@media (max-width: 1040px) {
  .strip { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .strip__item:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .strip { grid-template-columns: 1fr; gap: 0; }
  .strip__item, .strip__item + .strip__item { padding: 14px 0; border-left: 0; }
  .strip__item + .strip__item { border-top: 1px solid var(--line); }
}

/* ---------- Присоединяйтесь ---------- */
.join {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-panel);
  padding: clamp(30px, 5.4vw, 72px);
  background: linear-gradient(100deg, var(--cream) 0%, #efe0d8 58%, #e9d6cd 100%);
  min-height: clamp(300px, 30vw, 380px);
}
.join__text { max-width: 42rem; }
.join h2 { margin-bottom: 0.35em; font-size: clamp(1.9rem, 4.4vw, 3.5rem); }
.join p { color: var(--ink); max-width: 30em; margin-bottom: 1.6em; }
.join__ribbon { position: absolute; z-index: -1; right: -4%; bottom: -6%; width: min(78%, 900px); height: auto; overflow: visible; pointer-events: none; }
.join__ribbon path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.join.is-drawn .join__ribbon path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(0.55, 0.05, 0.25, 1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .join__ribbon path { stroke-dashoffset: 0; transition: none !important; }
  .btn svg, .link-more svg { transition: none; }
}
@media (max-width: 760px) {
  .join { padding-bottom: 150px; }
  .join__ribbon { width: 150%; right: -8%; bottom: -8px; }
}

/* ---------- Внутренние страницы ---------- */
.intro {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: clamp(380px, 36vw, 470px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-panel); background: var(--blush);
}
.intro__art { position: absolute; z-index: -1; }
.intro__art--tall { right: clamp(16px, 6vw, 110px); bottom: 6%; height: 88%; width: auto; }
.intro__art--wide { right: clamp(16px, 5vw, 70px); top: 50%; width: min(40%, 520px); height: auto; transform: translateY(-50%); }
.intro h1 { max-width: 8em; font-size: clamp(2rem, 6.6vw, 5.25rem); }
.intro .lead { max-width: min(25em, 52%); margin: 1em 0 1.6em; }
.intro__note { margin-top: 0.9em; font-size: 0.875rem; }
.price { display: inline-flex; align-items: baseline; gap: 0.6em; margin-bottom: 1.4em; padding: 0.5em 1.1em; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.9375rem; }
.rub { font: 300 0.78em/1 var(--text); }
.price b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--wine); }
@media (max-width: 700px) {
  .intro { padding-bottom: 240px; }
  .intro h1 { font-size: clamp(2rem, 10.4vw, 3.4rem); }
  .intro .lead { max-width: none; }
  .intro__art--tall { height: 212px; right: 50%; bottom: 14px; transform: translateX(50%); }
  .intro__art--wide { top: auto; bottom: 30px; right: 50%; width: min(78%, 340px); transform: translateX(50%); }
}

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.note { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-card); background: #fffaf6; }
.note h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 0.45em; }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(20px, 3vw, 36px); }

/* расписание */
.schedule { width: 100%; border-collapse: collapse; font-size: 1rem; }
.schedule th, .schedule td { padding: 16px 18px 16px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.schedule thead th { font-weight: 500; font-size: 0.875rem; color: var(--ink-soft); }
.schedule tbody th { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--wine); white-space: nowrap; }
.schedule td:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; white-space: nowrap; }
.empty { padding: clamp(22px, 3vw, 36px); border: 1px dashed var(--line); border-radius: var(--r-card); }
.empty p { color: var(--ink); }

/* тренер */
.coach-page { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.coach-page__pic { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--r-panel); background: linear-gradient(160deg, var(--cream), var(--blush)); overflow: hidden; }
.coach-page__pic img { width: 78%; height: auto; }
.coach-page__pic img.is-photo { width: 100%; height: 100%; object-fit: cover; }
.merits { list-style: none; margin: 1.6em 0; padding: 0; border-top: 1px solid var(--line); }
.merits li { display: flex; gap: 0.9em; align-items: baseline; padding: 0.85em 0; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.45; }
.merits svg { width: 12px; height: 12px; flex: none; color: var(--wine); }
@media (max-width: 820px) { .coach-page { grid-template-columns: 1fr; } .coach-page__pic { aspect-ratio: 16 / 10; } .coach-page__pic img { width: 52%; } }

/* ---------- Онлайн-запись ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.steps { list-style: none; counter-reset: step; margin: 1.6em 0 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 12px; padding: 1em 0; border-top: 1px solid var(--line); color: var(--ink); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--wine); }
.steps small { display: block; font-size: 0.9375rem; color: var(--ink-soft); }
.form { padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-card); background: var(--blush); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid transparent; border-radius: 14px; background: #fffaf6; color: var(--ink);
  font: 400 1rem/1.4 var(--text);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--wine); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { min-height: 1.25em; font-size: 0.8125rem; line-height: 1.25; color: #9c1f18; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 4px; font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--wine); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 22px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); }
.total b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--wine); white-space: nowrap; }
.form .btn { width: 100%; }
.form__status { margin-top: 14px; font-size: 0.9375rem; color: #9c1f18; }
.form__status:empty { display: none; }
.done h3 { margin-bottom: 0.5em; }
.done p { color: var(--ink); }
.done__demo { margin-top: 1.2em; padding: 12px 16px; border-radius: 12px; background: #fffaf6; font-size: 0.875rem; color: var(--ink-soft); }
.done .btn-row { margin-top: 1.4em; }
.done .btn { width: auto; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Окно «Написать в MAX» ---------- */
.dialog { width: min(92vw, 440px); padding: 0; border: 0; border-radius: var(--r-card); background: var(--paper); color: var(--ink-soft); box-shadow: 0 30px 80px rgba(82, 21, 36, 0.28); }
.dialog::backdrop { background: rgba(59, 42, 40, 0.45); }
.dialog__in { padding: clamp(24px, 5vw, 36px); }
.dialog h2 { font-size: 2rem; margin-bottom: 0.4em; }
.dialog__phone { display: block; margin: 0.5em 0 0.9em; font-family: var(--display); font-size: clamp(1.8rem, 6vw, 2.3rem); color: var(--wine); text-decoration: none; white-space: nowrap; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.dialog__close:hover { background: var(--cream); color: var(--wine); }
.dialog__close svg { width: 18px; height: 18px; margin: auto; }

/* ---------- Текстовая страница ---------- */
.prose { max-width: 46rem; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); margin-bottom: 0.6em; }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--ink); max-width: none; }
.prose ul { padding-left: 1.2em; }
.prose mark { background: #f6dfb8; color: inherit; padding: 0 0.2em; border-radius: 4px; }

/* ---------- Подвал ---------- */
.footer { margin-top: var(--section); padding-block: clamp(40px, 6vw, 72px) 28px; background: var(--cream); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.footer__logo { width: clamp(150px, 17vw, 210px); height: auto; }
.footer h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 0.6em; }
.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 0.5em 0; color: var(--ink); line-height: 1.45; }
.contacts svg { width: 22px; height: 22px; margin-top: 0.12em; color: var(--wine); }
.contacts a { color: var(--ink); text-decoration: none; }
.contacts a:hover { color: var(--wine); text-decoration: underline; }
.contacts small { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.footer__nav { list-style: none; margin: 0.4em 0 0; padding: 0; }
.footer__nav a { display: inline-block; padding: 0.3em 0; color: var(--ink); text-decoration: none; }
.footer__nav a:hover { color: var(--wine); text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(28px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.footer__base a { color: var(--ink-soft); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }
