/* =========================================================================
   Гильдия банного СПА — стили лендинга
   Тихая роскошь: льняная основа, глубокий зелёный, графит, брусника.
   ========================================================================= */

:root {
  /* Палитра */
  --linen: #f4f0e8;
  --linen-2: #ebe5da;
  --paper: #fbf9f5;
  --graphite: #23262a;
  --graphite-2: #30343a;
  --ink: #23262a;
  --ink-dim: #575b60;
  --ink-faint: #85888b;
  --forest: #1d3a2f;
  --forest-2: #28503f;
  --forest-ink: #eef0ea;
  --forest-dim: #b9c6bd;
  --sage: #8cc4a5;
  --berry: #9b2c3f;
  --berry-2: #82222f;
  --berry-hi: #d46a7e;
  --line: rgba(35, 38, 42, 0.12);
  --line-strong: rgba(35, 38, 42, 0.22);
  --line-light: rgba(238, 240, 234, 0.16);

  /* Типографика */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Сетка и ритм */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 4px;
  --radius-lg: 10px;

  /* Движение */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 700ms;

  /* Слои */
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 100;
}

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

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: var(--z-skip);
  background: var(--graphite);
  color: var(--linen);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); scroll-margin-top: 72px; }

/* ---------- Типографические элементы ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
}
.eyebrow .star { width: 10px; height: 10px; flex: none; }

.h-display { font-size: clamp(48px, 8.2vw, 112px); line-height: 0.98; }
.h-section { font-size: clamp(36px, 5vw, 64px); }
.h-card { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }

.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-dim); max-width: 36em; }

.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.star { fill: currentColor; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--graphite);
  --btn-ink: var(--linen);
  --btn-line: var(--graphite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:hover { --btn-bg: var(--berry); --btn-line: var(--berry); }
.btn:active { transform: scale(0.98); }
.btn .arrow { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--berry { --btn-bg: var(--berry); --btn-line: var(--berry); }
.btn--berry:hover { --btn-bg: var(--berry-2); --btn-line: var(--berry-2); }

.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--graphite); --btn-ink: var(--linen); --btn-line: var(--graphite); }

.btn--ghost-light { --btn-bg: transparent; --btn-ink: var(--forest-ink); --btn-line: rgba(238, 240, 234, 0.4); }
.btn--ghost-light:hover { --btn-bg: var(--forest-ink); --btn-ink: var(--graphite); --btn-line: var(--forest-ink); }

.btn--light { --btn-bg: var(--forest-ink); --btn-ink: var(--graphite); --btn-line: var(--forest-ink); }
.btn--light:hover { --btn-bg: var(--berry); --btn-ink: #fff; --btn-line: var(--berry); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.link-arrow:hover { color: var(--berry); border-color: var(--berry); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: var(--forest-ink);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.header.is-solid {
  background: rgba(244, 240, 232, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand__mark { width: 30px; height: 42px; flex: none; }
.brand__word { display: grid; line-height: 1.05; }
.brand__word b { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; }
.brand__word span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 28px); }
.nav__list { display: flex; gap: clamp(14px, 1.45vw, 24px); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { background-size: 100% 1px; }
.header .btn { min-height: 44px; padding: 10px 20px; font-size: 12px; white-space: nowrap; }
.header:not(.is-solid) .btn--berry:hover { --btn-bg: var(--forest-ink); --btn-ink: var(--graphite); --btn-line: var(--forest-ink); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast);
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1340px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: var(--forest);
    color: var(--forest-ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease-out); }
  .nav { overflow-y: auto; padding: 96px 24px 40px; justify-content: flex-start; }
  .nav__list { flex-direction: column; align-items: center; gap: 10px; margin-top: auto; }
  .nav .btn { margin-bottom: auto; }
  .nav__list a { font-family: var(--serif); font-size: clamp(26px, 6.4vw, 34px); letter-spacing: 0; white-space: normal; text-align: center; }
  .menu-toggle { position: relative; z-index: calc(var(--z-menu) + 1); }
  .header.menu-open { color: var(--forest-ink); background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--forest-ink);
  background: #121412;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 18, 15, 0.92) 0%, rgba(14, 18, 15, 0.72) 38%, rgba(14, 18, 15, 0.15) 75%, rgba(14, 18, 15, 0.05) 100%),
    linear-gradient(0deg, rgba(14, 18, 15, 0.85) 0%, rgba(14, 18, 15, 0) 40%);
}
.hero__content { padding-block: 160px clamp(56px, 8vw, 96px); display: grid; gap: 32px; }
@media (max-width: 760px) {
  .hero__media img { object-position: 72% 50%; }
  .hero::before {
    background: linear-gradient(0deg, rgba(14, 18, 15, 0.96) 0%, rgba(14, 18, 15, 0.86) 52%, rgba(14, 18, 15, 0.45) 78%, rgba(14, 18, 15, 0.3) 100%);
  }
  .hero__content { gap: 24px; padding-top: 128px; }
}
.hero .eyebrow { color: var(--sage); }
.hero__title { max-width: 9.5em; }
.hero__title em { font-style: italic; color: var(--sage); }
.hero__lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: rgba(238, 240, 234, 0.86); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__pillars {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin: clamp(24px, 4vw, 48px) 0 0; padding: 26px 0 0; list-style: none;
  border-top: 1px solid var(--line-light);
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(238, 240, 234, 0.78);
}
.hero__pillars li { display: inline-flex; align-items: center; gap: 12px; }
.hero__pillars .star { width: 9px; height: 9px; color: var(--berry-hi); }

/* ---------- Для кого ---------- */
.audiences { background: var(--linen); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.audience {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 40px clamp(20px, 3vw, 44px) 44px;
  border-right: 1px solid var(--line);
}
.audience:first-child { padding-left: 0; }
.audience:last-child { border-right: 0; padding-right: 0; }
.audience__num { font-family: var(--serif); font-size: 18px; color: var(--berry); font-style: italic; }
.audience p { color: var(--ink-dim); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(155, 44, 63, 0.08); color: var(--berry);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--forest { background: rgba(29, 58, 47, 0.08); color: var(--forest); }
.audience .link-arrow { justify-self: start; }

@media (max-width: 900px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Манифест ---------- */
.manifest { background: var(--paper); }
.manifest__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.manifest__media { position: relative; }
.manifest__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.manifest__mark {
  position: absolute; right: -28px; bottom: -36px;
  width: 92px; height: 130px; padding: 18px 22px;
  background: var(--paper); color: var(--forest);
  border-radius: var(--radius);
}
.manifest__mark svg { width: 100%; height: 100%; }
.manifest__text { display: grid; gap: 32px; }
.manifest__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.22;
  font-weight: 500;
  color: var(--ink);
}
.manifest__quote em { color: var(--berry); }
.manifest__body { display: grid; gap: 18px; color: var(--ink-dim); max-width: 34em; }
.signature { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.signature__line { width: 48px; height: 1px; background: var(--berry); }
.signature b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.signature span { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .manifest__grid { grid-template-columns: 1fr; }
  .manifest__media { max-width: 520px; }
  .manifest__mark { right: 16px; }
}

/* ---------- Наши принципы ---------- */
.principles { background: var(--forest); color: var(--forest-ink); }
.principles .eyebrow { color: var(--sage); }
.principles .lead { color: var(--forest-dim); }
.principles__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.principles__aside { position: sticky; top: 112px; display: grid; gap: 36px; }
.principles__aside .section-head { margin-bottom: 0; gap: 18px; }
.principles__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.principles__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 30px 0; border-bottom: 1px solid var(--line-light); }
.principle__num { font-family: var(--serif); font-size: 32px; line-height: 1; font-style: italic; color: var(--berry-hi); }
.principle h3 { font-size: clamp(25px, 2.3vw, 30px); margin-bottom: 10px; }
.principle p { color: var(--forest-dim); max-width: 36em; }
@media (max-width: 900px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principles__aside { position: static; }
  .principles__media { max-width: 460px; }
  .principle { grid-template-columns: 48px 1fr; }
  .principle__num { font-size: 26px; }
}

/* ---------- Единый регламент ---------- */
.standard { background: var(--linen); }
.standard__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.standard__intro .section-head { margin-bottom: 0; }
.standard__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.standard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.standard__subhead, .school__subhead { font-size: clamp(28px, 3vw, 40px); margin-bottom: 28px; }
.btn.is-pending { --btn-bg: transparent; --btn-ink: var(--ink-dim); --btn-line: var(--line-strong); cursor: default; }
.btn.is-pending:hover { --btn-bg: transparent; --btn-ink: var(--ink-dim); --btn-line: var(--line-strong); }
.btn.is-pending:active { transform: none; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.pillar { display: grid; gap: 14px; align-content: start; padding: 30px 26px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pillar__icon { width: 42px; height: 42px; color: var(--berry); }
.pillar h4 { font-size: 25px; line-height: 1.15; }
.pillar p { color: var(--ink-dim); font-size: 15.5px; }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .standard__intro { grid-template-columns: 1fr; }
  .standard__media { max-width: 460px; order: -1; }
}
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Гарантии безопасности и чистоты ---------- */
.guarantees { background: var(--paper); }
.guarantees__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.guarantees__media { position: sticky; top: 112px; }
.guarantees__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.guarantees .section-head { margin-bottom: 40px; }
.guarantee-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.guarantee { display: grid; gap: 10px; align-content: start; padding: 26px 0 30px; border-top: 1px solid var(--line-strong); }
.guarantee__num { font-family: var(--serif); font-size: 28px; line-height: 1; font-style: italic; color: var(--berry); }
.guarantee h3 { font-size: 26px; line-height: 1.15; }
.guarantee p { color: var(--ink-dim); font-size: 15.5px; }
@media (max-width: 900px) {
  .guarantees__grid { grid-template-columns: 1fr; }
  .guarantees__media { position: static; max-width: 460px; }
}
@media (max-width: 600px) { .guarantee-list { grid-template-columns: 1fr; } }

/* ---------- Гостям Петербурга ---------- */
.travel { background: var(--graphite); color: var(--forest-ink); scroll-margin-top: 72px; }
.travel__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(72px, 9vw, 128px); }
.travel__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.travel__body { display: grid; gap: 22px; justify-items: start; }
.travel .eyebrow { color: var(--sage); }
.travel .h-section { font-size: clamp(32px, 4vw, 54px); }
.travel p { color: var(--forest-dim); max-width: 36em; }
.travel .btn { margin-top: 10px; }
@media (max-width: 900px) {
  .travel__grid { grid-template-columns: 1fr; }
  .travel__media { max-width: 460px; }
  .travel__media img { aspect-ratio: 5 / 4; }
}

/* ---------- Реестр ---------- */
.registry { background: var(--paper); }
.registry__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.registry__head .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.chip:hover { border-color: var(--graphite); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--linen); }

.masters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; align-items: start; }
.master {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.master__photo { position: relative; aspect-ratio: 4 / 5; background: var(--linen-2); overflow: hidden; }
.master__photo picture, .master__photo img { width: 100%; height: 100%; }
.master__photo img { object-fit: cover; }
.master__status, .master__no {
  position: absolute; top: 14px;
  padding: 6px 11px; border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
}
.master__status { left: 14px; background: var(--berry); color: #fff; }
.master__no { right: 14px; background: rgba(251, 249, 245, 0.92); color: var(--graphite); letter-spacing: 0.16em; }
/* Фирменная заглушка: знак гильдии на брусничном льне */
.master__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: #6d1d27 url("/assets/img/masters/placeholder-linen-480.webp") center / cover;
  color: rgba(244, 240, 232, 0.88);
}
.master__placeholder svg { width: 34%; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)); }
.master__placeholder .mark-star { fill: var(--sage); }
.master__body { display: grid; gap: 12px; align-content: start; padding: 24px 24px 26px; }
.master__name { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.08; }
.master__geo { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--ink-dim); }
.master__geo svg { width: 14px; height: 14px; flex: none; transform: translateY(2px); }
.master__role { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--ink); }
.master__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 2px 0 0; padding: 0; }
.master__tags li { padding: 6px 11px; border-radius: 999px; background: rgba(155, 44, 63, 0.07); color: var(--berry-2); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }
.master__about { font-size: 15.5px; color: var(--ink-dim); }
.master__exp { border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; color: var(--ink-dim); }
.master__exp summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.master__exp summary::-webkit-details-marker { display: none; }
.master__exp summary::after { content: "+"; font: 400 20px/1 var(--sans); color: var(--berry); transition: transform var(--t-med) var(--ease-out); }
.master__exp[open] summary::after { transform: rotate(45deg); }
.master__exp ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.master__exp li::marker { color: var(--berry); }
.master__cta { margin-top: 6px; }
.master__cta .btn { width: 100%; min-height: 48px; font-size: 12.5px; }

/* Карточка основателя / с длинным текстом — широкая на компьютере */
@media (min-width: 1101px) {
  .master--feature { grid-column: span 2; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto; }
  .master--feature .master__photo { aspect-ratio: auto; min-height: 100%; }
  .master--feature .master__photo picture { position: absolute; inset: 0; }
  .master--feature .master__body { padding: 32px 34px 34px; align-content: center; }
  .master--feature .master__cta .btn { width: auto; }
}
@media (max-width: 1100px) { .masters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .masters { gap: 14px; }
  .master:not(.master--soon) { grid-column: 1 / -1; }
}
.master--soon .master__photo { aspect-ratio: 4 / 3; }
.master--soon .master__name { color: var(--ink-dim); font-size: 24px; }
.master--soon .master__body { gap: 10px; }
.master--soon .badge { justify-self: start; }
@media (max-width: 760px) {
  .master--soon .master__body { padding: 16px 14px 18px; }
  .master--soon .master__name { font-size: 20px; }
  .master--soon .master__about { font-size: 13px; line-height: 1.45; }
  .master--soon .badge { font-size: 10px; padding: 5px 9px; letter-spacing: 0.1em; }
}

.registry__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.registry__foot p { color: var(--ink-dim); max-width: 40em; }
.empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-dim); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* ---------- Школа ---------- */
.school { background: var(--linen); }
.school__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-bottom: clamp(64px, 8vw, 112px); }
.school__intro .section-head { margin-bottom: 0; }
.school__intro .section-head > p:not(.eyebrow):not(.lead) { color: var(--ink-dim); max-width: 38em; }
.school__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.school__actions { margin-top: 6px; }

.for-whom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0 0 clamp(64px, 8vw, 112px); padding: 0; border-top: 1px solid var(--line-strong); }
.for-whom__item { display: grid; gap: 14px; align-content: start; padding: 32px clamp(20px, 3vw, 40px) 8px; border-right: 1px solid var(--line); }
.for-whom__item:first-child { padding-left: 0; }
.for-whom__item:last-child { border-right: 0; padding-right: 0; }
.for-whom__item h4 { font-size: 26px; line-height: 1.15; }
.for-whom__item p { color: var(--ink-dim); }

.program { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(64px, 8vw, 112px); }
.program__head { position: sticky; top: 112px; }
.program__head p { color: var(--ink-dim); }
.accordion { border-top: 1px solid var(--line-strong); }
.module { border-bottom: 1px solid var(--line); }
.module summary {
  display: grid; grid-template-columns: 110px 1fr 24px; gap: 16px; align-items: center;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.module summary::-webkit-details-marker { display: none; }
.module summary:hover .module__title { color: var(--berry); }
.module__num { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--berry); }
.module__title { font-family: var(--serif); font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; transition: color var(--t-fast); }
.module__icon { width: 22px; height: 22px; color: var(--ink-dim); transition: transform var(--t-med) var(--ease-out); }
.module[open] .module__icon { transform: rotate(45deg); color: var(--berry); }
.module p { padding: 0 0 26px 126px; color: var(--ink-dim); max-width: 46em; }

.path { margin-bottom: clamp(64px, 8vw, 112px); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.step { counter-increment: step; display: grid; gap: 12px; align-content: start; padding: 26px 24px 8px 0; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 30px; line-height: 1; font-style: italic; color: var(--berry); }
.step b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 6px; }
.step p { color: var(--ink-dim); font-size: 15.5px; }

.tariffs { scroll-margin-top: 96px; }
.tariffs__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 44px; }
.cohorts { padding: 16px 20px; border-left: 2px solid var(--berry); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.cohorts__empty { color: var(--ink-dim); font-size: 15px; }
.cohorts__label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--berry); margin-bottom: 8px; }
.cohorts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cohorts__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cohorts__list b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.cohorts__list span { color: var(--ink-dim); font-size: 15px; }
.cohorts__list em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); background: rgba(29, 58, 47, 0.08); padding: 4px 10px; border-radius: 999px; }

.tariff-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.tariff {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.tariff__format { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.tariff__name { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.1; }
.tariff__price { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 46px); font-weight: 600; line-height: 1; color: var(--ink); }
.tariff__features { flex: 1; list-style: none; margin: 6px 0 8px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; color: var(--ink-dim); font-size: 15.5px; }
.tariff__features li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.tariff__features li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55em; background: var(--berry); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.tariff .btn { width: 100%; }
.tariff__note { text-align: center; font-size: 13px; color: var(--forest); font-weight: 600; margin-top: -4px; }
.tariff--featured { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); box-shadow: 0 30px 60px -36px rgba(29, 58, 47, 0.7); }
.tariff--featured .tariff__format { color: var(--sage); }
.tariff--featured .tariff__price { color: var(--forest-ink); }
.tariff--featured .tariff__features { color: var(--forest-dim); border-color: var(--line-light); }
.tariff--featured .tariff__features li::before { background: var(--berry-hi); }
.tariff--featured .tariff__note { color: var(--sage); }
.tariff__badge { position: absolute; top: -13px; left: clamp(28px, 3vw, 40px); padding: 7px 14px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 1000px) {
  .tariff-list { grid-template-columns: 1fr; max-width: 560px; gap: 32px; }
  .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .school__intro, .program { grid-template-columns: 1fr; }
  .school__media { max-width: 460px; order: -1; }
  .program__head { position: static; }
  .for-whom { grid-template-columns: 1fr; }
  .for-whom__item { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .module summary { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .module__num { grid-column: 1 / -1; }
  .module p { padding-left: 0; }
  .steps--row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Банным комплексам ---------- */
.b2b { background: var(--graphite); color: var(--forest-ink); }
.b2b .eyebrow { color: var(--sage); }
.b2b .lead { color: var(--forest-dim); }
.b2b__media { margin-bottom: clamp(56px, 7vw, 96px); }
.b2b__media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0 0 56px; padding: 0; border-top: 1px solid var(--line-light); }
.offer { display: grid; gap: 14px; align-content: start; padding: 36px clamp(20px, 3vw, 40px) 8px; border-right: 1px solid var(--line-light); }
.offer:first-child { padding-left: 0; }
.offer:last-child { border-right: 0; }
.offer__icon { width: 40px; height: 40px; color: var(--sage); }
.offer p { color: var(--forest-dim); }
.b2b__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.b2b__cta p { color: var(--forest-dim); font-size: 15px; }

@media (max-width: 900px) {
  .offers { grid-template-columns: 1fr; }
  .offer { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .b2b__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Заявки ---------- */
.apply { background: var(--linen-2); }
.apply__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.apply__aside { display: grid; gap: 24px; position: sticky; top: 112px; }
.apply__aside p { color: var(--ink-dim); }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--linen); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.tab {
  min-height: 48px;
  padding: 10px 14px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  font: 600 14px/1.2 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--graphite); color: var(--linen); }

.form-card { padding: clamp(24px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-card__title { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 6px; }
.form-card__hint { color: var(--ink-dim); margin-bottom: 28px; font-size: 15px; }

.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--berry); }
.field .optional { font-weight: 400; color: var(--ink-faint); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.textarea { min-height: 112px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2323262a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29, 58, 47, 0.14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--berry); }
.field__error { display: none; font-size: 13px; color: var(--berry); }
.field.has-error .field__error { display: block; }
.field__help { font-size: 13px; color: var(--ink-faint); }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer; background: #fff;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.option input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--forest-ink); }
.option input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-dim); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); cursor: pointer; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-actions .btn[disabled] { opacity: 0.55; cursor: progress; }
.form-actions small { color: var(--ink-faint); font-size: 13px; }

.form-error-summary { display: none; margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius); background: rgba(155, 44, 63, 0.08); color: var(--berry-2); font-size: 15px; }
.form-error-summary.is-visible { display: block; }

.form-success { display: none; gap: 18px; justify-items: start; }
.form-success.is-visible { display: grid; }
.form-success__icon { width: 56px; height: 56px; color: var(--forest); }
.form-success pre {
  width: 100%; margin: 0; padding: 16px; white-space: pre-wrap;
  font: 400 14px/1.6 var(--sans); color: var(--ink);
  background: var(--linen); border-radius: var(--radius); border: 1px solid var(--line);
}
.form-success__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .apply__grid { grid-template-columns: 1fr; }
  .apply__aside { position: static; }
}
@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
  .tab { padding: 10px 6px; font-size: 13px; }
}

/* ---------- Контакты ---------- */
.contacts { background: var(--forest); color: var(--forest-ink); }
.contacts__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contacts .eyebrow { color: var(--sage); }
.person { display: grid; gap: 14px; }
.person__name { font-size: clamp(40px, 5vw, 64px); }
.person__roles { display: grid; gap: 4px; color: var(--forest-dim); font-size: 17px; }
.contact-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.contact-list a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  transition: background-color var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out);
}
.contact-list a:hover { background: rgba(238, 240, 234, 0.05); padding-inline: 14px; }
.contact-list svg.ic { width: 24px; height: 24px; color: var(--sage); justify-self: center; }
.contact-list b { display: block; font-weight: 600; font-size: 17px; }
.contact-list span { font-size: 14px; color: var(--forest-dim); }
.contact-list .go { width: 18px; height: 18px; color: var(--forest-dim); transition: transform var(--t-med) var(--ease-out); }
.contact-list a:hover .go { transform: translateX(4px); color: var(--forest-ink); }

@media (max-width: 900px) { .contacts__grid { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.footer { background: #181a1d; color: rgba(238, 240, 234, 0.72); padding-block: 64px 40px; font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--forest-ink); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(238, 240, 234, 0.1); }
.footer__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer__brand p { max-width: 24em; }
.footer__brand .btn { min-height: 46px; padding: 10px 20px; font-size: 12px; }
.footer .brand { color: var(--forest-ink); }
.footer__col h2 { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { display: inline-block; padding-block: 2px; }
.footer__legal { display: grid; gap: 8px; padding-top: 28px; font-size: 13px; color: rgba(238, 240, 234, 0.55); }
.footer__req { color: rgba(238, 240, 234, 0.72); }
@media (max-width: 1000px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Всплывающая заявка гостя ---------- */
body.modal-open { overflow: hidden; }
.modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(14, 18, 15, 0.6);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(14, 18, 15, 0.62); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in var(--t-med) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__inner { position: relative; padding: clamp(24px, 4vw, 48px); }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.modal__close:hover { background: var(--graphite); color: var(--linen); }
.modal__close svg { width: 20px; height: 20px; }
.modal .form-card__title { padding-right: 48px; }
.modal__rules { font-size: 14px; color: var(--ink-dim); }
.modal__rules:hover { color: var(--berry); }
.modal .form-success { padding-top: 8px; }
@media (max-width: 600px) {
  .modal { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; }
}

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.field--consent { margin-top: 18px; }
.consent a { color: var(--ink); }
.link-arrow--plain { background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; font-family: var(--sans); }
button.link-arrow { background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; font-family: var(--sans); padding-inline: 0; }
.apply__guest { display: grid; gap: 12px; justify-items: start; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.apply__guest p { font-size: 15px; }
.person__cta { justify-self: start; margin-top: 18px; }

/* ---------- Страницы документов ---------- */
.doc { background: var(--paper); padding-block: 150px clamp(80px, 10vw, 140px); }
.doc__inner { max-width: 820px; }
.doc__head { display: grid; gap: 18px; margin-bottom: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
.doc__head .lead { max-width: none; }
.doc__crumbs { font-size: 14px; color: var(--ink-faint); }
.doc__crumbs a { color: var(--ink-dim); }
.doc h1 { font-size: clamp(38px, 5vw, 62px); }
.doc h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 44px 0 16px; }
.doc p, .doc li { color: var(--ink-dim); }
.doc p + p { margin-top: 14px; }
.doc-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc-list > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc-list b { color: var(--ink); }
.doc-rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.doc-rules > li { counter-increment: rule; display: grid; grid-template-columns: 64px 1fr; gap: 6px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc-rules > li::before { content: counter(rule, decimal-leading-zero); font-family: var(--serif); font-size: 30px; line-height: 1; font-style: italic; color: var(--berry); grid-row: span 2; }
.doc-rules h2 { margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 30px); }
.doc__note { margin-top: 40px; padding: 18px 22px; border-left: 2px solid var(--berry); background: var(--linen); border-radius: 0 var(--radius) var(--radius) 0; }
.doc__cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; }
.doc .req-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.doc .req-table th, .doc .req-table td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc .req-table th { width: 40%; font-weight: 600; color: var(--ink); padding-right: 16px; }
.doc .req-table td { color: var(--ink-dim); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Рисование знака в первом экране */
.draw-mark path.stroke { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.2s var(--ease-out) 0.3s forwards; }
.draw-mark path.star { opacity: 0; transform-origin: 32px 52px; animation: star-in 0.8s var(--ease-out) 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes star-in { from { opacity: 0; transform: scale(0.4) rotate(-45deg); } to { opacity: 1; transform: 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; }
  .reveal { opacity: 1; transform: none; }
  .draw-mark path.stroke { stroke-dashoffset: 0; }
  .draw-mark path.star { opacity: 1; }
}
