/* ==========================================================================
   Анна Жмакина — психолог
   Концепция: «рамка». Тонкие линии и постоянные поля держат содержание так же,
   как сеттинг держит терапию. Смелость потрачена в одном месте — первый экран.
   ========================================================================== */

:root {
  /* Цвет */
  --ink:          #1C2733;
  --ink-deep:     #16202A;
  --ink-raise:    #26333F;
  --paper:        #F2F2F0;
  --veil:         #E8E6E1;
  --bone:         #F6F5F2;
  --plum:         #5E4E63;
  --plum-deep:    #4B3D50;
  --plum-light:   #C5B4CA;
  /* Вторичный текст. Тон подобран так, чтобы держать 4.5:1 и на --paper, и на --veil. */
  --stone:        #5C666F;
  --stone-dark:   #3E4A56;

  --rule:         rgba(28, 39, 51, 0.14);
  --rule-strong:  rgba(28, 39, 51, 0.32);
  --rule-dark:    rgba(246, 245, 242, 0.16);

  --focus:        var(--plum);

  /* Шрифт */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-ui:      "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --t--1:   0.8125rem;
  --t-0:    1.0625rem;
  --t-1:    1.1875rem;
  --t-2:    1.375rem;
  --t-3:    1.75rem;
  --t-4:    clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem);
  --t-hero: clamp(2.05rem, 1.05rem + 3.9vw, 3.9rem);

  /* Ритм */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;

  --wrap:   1140px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --band:   clamp(3.75rem, 7.5vw, 7rem);
}

/* --------------------------------------------------------------- Основа -- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Высота липкой шапки плюс воздух, чтобы линия над заголовком не липла к ней. */
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--stone-dark);
  font: 400 var(--t-0)/1.65 var(--font-ui);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-1); letter-spacing: 0; }

p { margin: 0; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--plum-deep); }

img { max-width: 100%; }

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

::selection {
  background: var(--plum-light);
  color: var(--ink);
}

.section--ink ::selection,
.hero ::selection,
.masthead:not(.is-stuck) ::selection {
  background: var(--plum);
  color: var(--bone);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s4); top: -4rem;
  z-index: 100;
  padding: var(--s3) var(--s5);
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip:focus { top: var(--s4); color: var(--bone); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 var(--t-0)/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--ink {
  background: var(--plum);
  color: var(--bone);
}
.btn--ink:hover { background: var(--plum-deep); color: var(--bone); }

.btn--bone {
  background: var(--bone);
  color: var(--ink);
}
.btn--bone:hover { background: #fff; color: var(--ink); }

.btn:active:not([disabled]) { transform: translateY(1px); }

.btn--wide { width: 100%; padding-block: 0.95rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ------------------------------------------------------------- Шапка --- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  /* По умолчанию сливается с первым экраном, при прокрутке светлеет. */
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s4) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.masthead__name {
  font-family: var(--font-display);
  font-size: var(--t-1);
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.masthead__nav {
  display: none;
  margin-left: auto;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.masthead__nav a {
  position: relative;
  color: rgba(246, 245, 242, 0.72);
  font-size: var(--t--1);
  text-decoration: none;
  transition: color 0.25s ease;
}
.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 0.68, 0.3, 1);
}
.masthead__nav a:hover,
.masthead__nav a.is-current { color: var(--bone); }
.masthead__nav a:hover::after,
.masthead__nav a.is-current::after { transform: scaleX(1); }

.masthead__cta { margin-left: auto; }

.masthead.is-stuck {
  background: rgba(242, 242, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}
.masthead.is-stuck .masthead__name { color: var(--ink); }
.masthead.is-stuck .masthead__nav a { color: var(--stone); }
.masthead.is-stuck .masthead__nav a:hover,
.masthead.is-stuck .masthead__nav a.is-current { color: var(--ink); }

@media (min-width: 900px) {
  .masthead__nav { display: flex; }
  .masthead__cta { margin-left: 0; }
}

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

.hero {
  background: var(--ink);
  color: rgba(246, 245, 242, 0.78);
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem) clamp(4rem, 8vw, 6.5rem);
}

.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.hero__quote {
  position: relative;
  max-width: 19ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--bone);
  text-wrap: balance;
}

.hero__lead {
  max-width: 46ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--t-1);
  line-height: 1.6;
  color: rgba(246, 245, 242, 0.7);
  text-wrap: pretty;
}

.hero__who {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule-dark);
  max-width: 42ch;
}

.hero__who-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-2);
  color: var(--bone);
}

.hero__who-role {
  display: block;
  margin-top: var(--s1);
  font-size: var(--t--1);
  line-height: 1.55;
  color: rgba(246, 245, 242, 0.55);
}

.hero__actions {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5);
}

.hero__slot {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  max-width: 46ch;
  font-size: var(--t--1);
  line-height: 1.5;
  color: rgba(246, 245, 242, 0.62);
}

.hero__slot-dot {
  width: 7px; height: 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--plum-light);
  flex: none;
  box-shadow: 0 0 0 0 rgba(197, 180, 202, 0.7);
  animation: slot-pulse 2.4s ease-out infinite;
}

@keyframes slot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(197, 180, 202, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(197, 180, 202, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 180, 202, 0); }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  }
  .hero__quote::before {
    content: "«";
    position: absolute;
    right: 100%;
    top: -0.06em;
    margin-right: 0.12em;
    color: var(--plum-light);
    opacity: 0.5;
    font-weight: 300;
  }
}

/* Портрет */

.portrait { margin: 0; }

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  overflow: hidden;
  background: linear-gradient(158deg, var(--ink-raise), var(--ink-deep));
  border: 1px solid var(--rule-dark);
}

.portrait__frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.9s cubic-bezier(0.22, 0.68, 0.3, 1);
}
.portrait__frame:hover img { transform: scale(1.045); }

.portrait__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: rgba(246, 245, 242, 0.2);
}

/* --------------------------------------------------------------- Секции -- */

.section { padding-block: var(--band); }
.section--veil { background: var(--veil); }
.section--ink { background: var(--ink); color: rgba(246, 245, 242, 0.72); }

.section__head {
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__note {
  margin-top: var(--s4);
  max-width: 58ch;
  color: var(--stone);
  text-wrap: pretty;
}

/* ------------------------------------------------------------- Запросы -- */

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: clamp(2rem, 5vw, 4rem);
}

.topics li {
  break-inside: avoid;
  padding: 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.topic {
  display: block;
  width: 100%;
  margin: 0;
  padding-block: 0.85rem;
  padding-inline: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, padding-left 0.22s ease;
}
.topic:hover,
.topic:focus-visible {
  color: var(--plum);
  padding-left: 0.55rem;
}

@media (min-width: 720px) { .topics { columns: 2; } }

.callout {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: var(--s5);
  max-width: 68ch;
  border-left: 2px solid var(--plum);
  background: rgba(94, 78, 99, 0.06);
  font-size: var(--t--1);
  line-height: 1.6;
  color: var(--stone-dark);
}

/* --------------------------------------------------------------- Рамка -- */

.frame { margin: 0; }

.frame__row {
  display: grid;
  gap: var(--s2) clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem);
  border-top: 1px solid var(--rule);
  transition: background-color 0.22s ease;
}
.frame__row:hover { background: rgba(94, 78, 99, 0.05); }

.frame__row dt {
  font-family: var(--font-display);
  font-size: var(--t-2);
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.22s ease;
}
.frame__row:hover dt { color: var(--plum); }

.frame__row dd {
  margin: 0;
  max-width: 60ch;
  color: var(--stone);
  text-wrap: pretty;
}

@media (min-width: 780px) {
  .frame__row { grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------ Стоимость -- */

.prices {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.prices thead th {
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--rule-strong);
  font: 500 var(--t--1)/1.2 var(--font-ui);
  color: var(--stone);
}

.prices tbody th,
.prices tbody td {
  padding-block: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid var(--rule);
  vertical-align: baseline;
  font-weight: 400;
  color: var(--stone);
  transition: background-color 0.18s ease;
}

.prices tbody tr {
  cursor: pointer;
}
.prices tbody tr:hover th,
.prices tbody tr:hover td,
.prices tbody tr:focus-visible th,
.prices tbody tr:focus-visible td {
  background: rgba(94, 78, 99, 0.06);
}

.prices__book {
  display: block;
  margin-top: var(--s1);
  font-family: var(--font-ui);
  font-size: var(--t--1);
  color: var(--plum);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.prices tbody tr:hover .prices__book,
.prices tbody tr:focus-visible .prices__book {
  opacity: 1;
  transform: none;
}

.prices tbody tr:first-child th,
.prices tbody tr:first-child td { border-top: 0; }

.prices tbody th { padding-right: var(--s5); }

.prices__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-1);
  color: var(--ink);
  line-height: 1.3;
}

.prices__note {
  display: block;
  margin-top: var(--s1);
  max-width: 40ch;
  font-size: var(--t--1);
  line-height: 1.5;
  color: var(--stone);
}

.prices__price-col { text-align: right; white-space: nowrap; }

.prices__price {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-2);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.prices__saving {
  display: block;
  margin-top: var(--s1);
  font-size: var(--t--1);
  color: var(--plum);
}

.notes {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
  color: var(--stone);
  font-size: var(--t--1);
  line-height: 1.6;
}
.notes li + li { margin-top: var(--s2); }

@media (max-width: 740px) {
  .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prices tbody tr { display: block; padding-block: var(--s5); border-top: 1px solid var(--rule); }
  .prices tbody tr:first-child { border-top: 0; padding-top: 0; }
  .prices tbody th,
  .prices tbody td { display: block; padding: 0; border: 0; }
  .prices tbody th { padding-right: 0; }
  .prices tbody td { margin-top: var(--s2); font-size: var(--t--1); }

  .prices tbody td::before {
    content: attr(data-label) " — ";
    color: var(--stone);
  }

  .prices tbody td.prices__price-col {
    margin-top: var(--s3);
    text-align: left;
  }
  .prices tbody td.prices__price-col::before { content: none; }
  .prices__price { display: inline-block; }
  .prices__saving { display: inline-block; margin-left: var(--s3); margin-top: 0; }
  .prices__book {
    display: inline-block;
    margin-top: 0;
    margin-left: var(--s3);
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------- Обо мне -- */

.about {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.about__text p {
  max-width: 62ch;
  color: var(--stone-dark);
  text-wrap: pretty;
}
.about__text p + p { margin-top: var(--s5); }

.about__side h3 {
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.about__side h3 + * { margin-top: var(--s4); }
.about__side > * + h3 { margin-top: var(--s7); }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 0;
  font-size: var(--t--1);
  line-height: 1.5;
}
.timeline li + li { border-top: 1px solid var(--rule); }

.timeline__static,
.timeline__btn {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--s4);
  padding-block: var(--s3);
}

.timeline__year {
  font-family: var(--font-display);
  color: var(--plum);
  font-variant-numeric: tabular-nums;
}
.timeline__title { color: var(--stone-dark); }

.timeline__btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.18s ease;
}
.timeline__btn:hover,
.timeline__btn:focus-visible {
  background: rgba(94, 78, 99, 0.08);
}
.timeline__btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.timeline__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.timeline__hint {
  font-size: 0.75rem;
  color: var(--plum);
}

/* Просмотр сканов дипломов */

.diploma {
  width: min(960px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(22, 32, 42, 0.28);
}
.diploma::backdrop {
  background: rgba(22, 32, 42, 0.62);
}
.diploma__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.diploma__bar {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--rule);
}
.diploma__title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-1);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}
.diploma__close {
  flex: none;
  width: 2rem; height: 2rem;
  border: 0;
  background: transparent;
  color: var(--stone);
  font: 400 1.5rem/1 var(--font-ui);
  cursor: pointer;
}
.diploma__close:hover { color: var(--ink); }

.diploma__stage {
  display: grid;
  place-items: center;
  min-height: min(60vh, 520px);
  padding: var(--s5);
  overflow: auto;
  background: var(--veil);
}
.diploma__image {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
  height: auto;
  object-fit: contain;
}
.diploma__pdf {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  background: #fff;
}
.diploma__empty {
  margin: 0;
  max-width: 36ch;
  text-align: center;
  color: var(--stone);
  font-size: var(--t--1);
}

.diploma__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--rule);
  font-size: var(--t--1);
  color: var(--stone);
}
.diploma__nav button {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  font: inherit;
  cursor: pointer;
}
.diploma__nav button:hover { border-color: var(--rule-strong); }

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t--1);
  line-height: 1.6;
}
.plain li + li { margin-top: var(--s2); }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); }
}

/* --------------------------------------------------------------- Запись -- */

.section--ink { --focus: var(--plum-light); }
.section--ink h2,
.section--ink h3 { color: var(--bone); }
.section--ink a { color: var(--plum-light); }
.section--ink a:hover { color: var(--bone); }

.booking {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule-dark);
}

.booking__lead {
  margin-top: var(--s4);
  max-width: 52ch;
  color: rgba(246, 245, 242, 0.68);
  text-wrap: pretty;
}

.form { margin-top: clamp(2rem, 4vw, 2.75rem); }

.field + .field,
.field-row + .field,
.field + .field-row { margin-top: var(--s5); }

.field label {
  display: block;
  margin-bottom: var(--s2);
  font-size: var(--t--1);
  color: rgba(246, 245, 242, 0.78);
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: rgba(246, 245, 242, 0.05);
  border: 1px solid rgba(246, 245, 242, 0.2);
  border-radius: 2px;
  color: var(--bone);
  font: 400 var(--t-0)/1.45 var(--font-ui);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.field textarea { resize: vertical; min-height: 5.5rem; }

.field input::placeholder { color: rgba(246, 245, 242, 0.48); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(246, 245, 242, 0.34); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--plum-light);
  background: rgba(246, 245, 242, 0.09);
  caret-color: var(--plum-light);
}

.field.is-picked input,
.field.is-picked select,
.field.is-picked textarea {
  border-color: var(--plum-light);
  background: rgba(197, 180, 202, 0.14);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(246, 245, 242, 0.6) 50%),
                    linear-gradient(135deg, rgba(246, 245, 242, 0.6) 50%, transparent 50%);
  background-position: right 1.05rem center, right 0.75rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.field select option { background: var(--ink); color: var(--bone); }

.field__hint {
  margin-top: var(--s2);
  font-size: var(--t--1);
  color: rgba(246, 245, 242, 0.55);
}

.field__error {
  margin-top: var(--s2);
  font-size: var(--t--1);
  color: #E9B7A8;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #C98371; }

.field-row { display: grid; gap: var(--s5); }
/* Отступ между полями задаёт сетка, иначе вторая колонка уезжает вниз. */
.field-row > .field + .field { margin-top: 0; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  align-items: start;
  margin-top: var(--s6);
}
.field--check input {
  width: 1.05rem; height: 1.05rem;
  margin-top: 0.28rem;
  accent-color: var(--plum-light);
}
.field--check label {
  margin: 0;
  font-size: var(--t--1);
  line-height: 1.5;
  color: rgba(246, 245, 242, 0.68);
}
.field--check .field__error { grid-column: 1 / -1; margin-top: 0; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form .btn { margin-top: var(--s6); }

.form__status {
  margin-top: var(--s4);
  padding: var(--s4) var(--s5);
  border-left: 2px solid var(--plum-light);
  background: rgba(246, 245, 242, 0.06);
  font-size: var(--t--1);
  line-height: 1.6;
  color: var(--bone);
}
.form__status.is-error {
  border-left-color: #C98371;
  color: #EFC9BC;
}

.booking__done {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--rule-dark);
  border-left: 2px solid var(--plum-light);
  background: rgba(246, 245, 242, 0.05);
}

.booking__done-title {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: var(--t-2);
  line-height: 1.3;
  color: var(--bone);
  text-wrap: pretty;
}

.booking__done-note {
  margin-top: var(--s3);
  max-width: 46ch;
  font-size: var(--t--1);
  line-height: 1.6;
  color: rgba(246, 245, 242, 0.6);
}

/* Правая колонка блока записи */

.booking__side h3 {
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-dark);
}
.booking__side h3 + * { margin-top: var(--s4); }
.booking__side > * + h3 { margin-top: var(--s7); }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--s3);
  padding-block: var(--s3);
  font-size: var(--t--1);
  line-height: 1.55;
  color: rgba(246, 245, 242, 0.68);
}
.steps li + li { border-top: 1px solid var(--rule-dark); }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  color: var(--plum-light);
  font-variant-numeric: tabular-nums;
}

.plain--slots li {
  font-family: var(--font-display);
  font-size: var(--t-1);
  color: var(--bone);
}

.booking__side .plain { color: rgba(246, 245, 242, 0.68); }

.contacts li + li { margin-top: var(--s3); }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.5rem;
  text-decoration: none;
}

.contact-link span {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0 1px;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease, color 0.18s ease;
}

.contact-link:hover span {
  color: var(--bone);
  background-size: 100% 1px;
}

.contact-link__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link:hover .contact-link__icon { color: var(--bone); }

@media (min-width: 940px) {
  .booking { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* ------------------------------------------------------------- Вопросы -- */

.faq__item { border-top: 1px solid var(--rule); }

.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: clamp(1rem, 2vw, 1.35rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--t-1);
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.18s ease;
}
.faq__item summary:hover { color: var(--plum); }
.faq__item summary::-webkit-details-marker { display: none; }

/* Плюс складывается в минус: вертикальная планка схлопывается по высоте. */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  margin-top: 0.35rem;
  background:
    linear-gradient(var(--plum), var(--plum)) center / 11px 1px no-repeat,
    linear-gradient(var(--plum), var(--plum)) center / 1px 11px no-repeat;
  transition: background-size 0.24s ease;
}
.faq__item[open] summary::after {
  background-size: 11px 1px, 1px 0;
}

.faq__body {
  padding-bottom: clamp(1.1rem, 2.2vw, 1.5rem);
  animation: faq-in 0.26s ease both;
}
.faq__body p {
  max-width: 68ch;
  color: var(--stone);
  text-wrap: pretty;
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- Подвал -- */

.footer {
  background: var(--veil);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--t--1);
  color: var(--stone);
}

.footer__inner {
  display: grid;
  gap: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}

.footer__inner--links {
  gap: var(--s6);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__nav a {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.footer__nav a:hover {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (min-width: 760px) {
  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: clamp(1.25rem, 3vw, 2.25rem);
    row-gap: 0.75rem;
  }
}

/* ------------------------------------------------------ Юридические стр. -- */

.legal {
  padding-block: clamp(2rem, 4vw, 3.5rem) var(--band);
}

.legal__wrap { max-width: 720px; }

.legal__back {
  margin: 0 0 var(--s5);
  font-size: var(--t--1);
}
.legal__back a {
  color: var(--stone);
  text-decoration: none;
}
.legal__back a:hover { color: var(--plum); }

.legal h1 {
  margin: 0;
  font-size: var(--t-4);
}

.legal__meta {
  margin: var(--s3) 0 0;
  color: var(--stone);
  font-size: var(--t--1);
}

.legal__body {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
  color: var(--stone-dark);
  font-size: var(--t-0);
  line-height: 1.65;
}

.legal__body h2 {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 var(--s3);
  font-size: var(--t-2);
  color: var(--ink);
}

.legal__body h2:first-child { margin-top: 0; }

.legal__body h3 {
  margin: var(--s5) 0 var(--s2);
  font-size: var(--t-1);
  color: var(--ink);
}

.legal__body p {
  margin: 0 0 var(--s4);
  max-width: 68ch;
  text-wrap: pretty;
}

.legal__body ul,
.legal__body ol {
  margin: 0 0 var(--s4);
  padding-left: 1.25rem;
  max-width: 68ch;
}

.legal__body li { margin-bottom: var(--s2); }

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s5);
  font-size: var(--t--1);
}

.legal__body th,
.legal__body td {
  border: 1px solid var(--rule);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal__body th {
  background: var(--veil);
  color: var(--ink);
  font-weight: 500;
}

.legal__note {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
  font-size: var(--t--1);
  color: var(--stone);
}

/* -------------------------------------------------------------- Явление -- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.75s cubic-bezier(0.22, 0.68, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 95ms + 100ms);
}

@keyframes reveal {
  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; }
  .hero__slot-dot { box-shadow: none; }
  .portrait__frame img,
  .portrait__frame:hover img { transform: none; }
}
