/* =========================================================
   Сайт психолога — стили
   Спокойная тёплая палитра, антиква в заголовках, много воздуха.
   ========================================================= */

@font-face {
  font-family: "Lora";
  src: url("../fonts/site/lora-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 700; 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: "Lora";
  src: url("../fonts/site/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; 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+2190-21FF;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/site/lora-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/site/lora-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; 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+2190-21FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/site/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800; 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: "Manrope";
  src: url("../fonts/site/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; 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+2190-21FF;
}

:root {
  --bg: #f7f2eb;
  --bg-deep: #efe6da;
  --paper: #fcfaf6;
  --ink: #2b2723;
  --ink-soft: #5f5750;
  --muted: #8a8077;
  --line: #e2d7c9;
  --accent: #a0573a;
  --accent-deep: #84452c;
  --accent-tint: #f3e3d9;
  --sage: #6f7d67;
  --sage-tint: #e4e8de;
  --rose-tint: #f2e1dc;
  --sand-tint: #efe4d3;
  --accent-solid: #a0573a;
  --accent-solid-deep: #84452c;
  --on-accent: #fff;
  --on-ink: #fff;
  --booking-bg: #2b2723;
  --form-bg: #fcfaf6;
  --field-bg: #fff;
  --placeholder: #b3a99f;
  --error: #b9412e;
  --photo-filter: none;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 25, .04), 0 12px 32px -12px rgba(60, 40, 25, .14);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

/* Тёмная тема: те же роли цветов, тёплый графит вместо крема. Кнопки остаются тёмной терракотой. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1f1a17;
  --bg-deep: #2a231e;
  --paper: #342b26;
  --ink: #f1e9df;
  --ink-soft: #cfc4b8;
  --muted: #b0a498;
  --line: #43382f;
  --accent: #e0987a;
  --accent-deep: #eab093;
  --accent-tint: #3d2a22;
  --sage: #a9b89f;
  --sage-tint: #2c322a;
  --rose-tint: #3a2a28;
  --sand-tint: #352c23;
  --accent-solid: #a0573a;
  --accent-solid-deep: #8d4b31;
  --on-accent: #fff;
  --on-ink: #1f1a17;
  --booking-bg: #33291f;
  --form-bg: #1f1a17;
  --field-bg: #2b2420;
  --placeholder: #b0a498;
  --error: #f0917c;
  --photo-filter: brightness(.9);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px -12px rgba(0, 0, 0, .5);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: 450; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: var(--on-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }

.section { padding: var(--section) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.7; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-solid); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-solid-deep); color: var(--on-accent); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; min-width: 0; text-decoration: none; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.brand__role { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.brand:hover { color: inherit; }
.brand:hover .brand__name { color: var(--accent); }

.nav { display: flex; flex-shrink: 0; margin-left: auto; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__link { text-decoration: none; font-size: .97rem; font-weight: 500; color: var(--ink-soft); padding: 6px 0; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav-toggle { display: none; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.theme-toggle { display: inline-flex; flex-shrink: 0; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle span:not(.visually-hidden) { display: inline-flex; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { display: none !important; }
[data-theme="dark"] .theme-toggle__sun { display: inline-flex !important; }
.no-js .theme-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 2; margin-left: -12px; }
  .theme-toggle { order: 1; margin-left: auto; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    box-shadow: 0 20px 30px -20px rgba(60, 40, 25, .25);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 18px; }
}

/* ---------- Первый экран ---------- */
.hero { padding: clamp(24px, 3vw, 36px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: clamp(32px, 4vw, 56px); align-items: center; max-width: 1120px; }
.hero h1 { margin-bottom: .45em; }
.hero__text { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2rem; }
.hero__note { font-size: .92rem; color: var(--muted); max-width: 260px; line-height: 1.45; }

.portrait { justify-self: center; width: 100%; max-width: 430px; }
.portrait__media { position: relative; }
.portrait__caption { position: relative; z-index: 1; margin: 16px 0 0; text-align: center; line-height: 1.35; }
.portrait__caption strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.portrait__caption span { display: block; margin-top: 2px; font-size: .9rem; color: var(--ink-soft); }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--sand-tint), var(--rose-tint));
  box-shadow: var(--shadow); z-index: 1;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.portrait__blob { position: absolute; z-index: 0; color: var(--sage-tint); }
.portrait__blob--a { width: 78%; right: -22%; top: -6%; }
.portrait__blob--b { width: 46%; left: -18%; bottom: -8%; color: var(--accent-tint); }
.portrait__badge {
  position: absolute; z-index: 2; left: -6%; bottom: 3%;
  background: var(--paper); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.35; max-width: 220px; display: flex; gap: 12px; align-items: center;
}
.portrait__badge-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-tint); color: var(--sage); display: grid; place-items: center; flex: none; }
.portrait__badge-icon svg { width: 20px; height: 20px; }
.portrait__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); font-family: var(--serif); font-size: 5rem; font-style: italic; opacity: .55; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .portrait__badge { left: auto; right: -4%; bottom: 2%; }
}

/* ---------- Карточки направлений ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.topic {
  position: relative; display: flex; flex-direction: column; min-height: 240px;
  padding: 28px 26px 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.topic:nth-child(4n+1) { background: var(--sand-tint); border-color: transparent; }
.topic:nth-child(4n+2) { background: var(--sage-tint); border-color: transparent; }
.topic:nth-child(4n+3) { background: var(--rose-tint); border-color: transparent; }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.topic__num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.05rem; margin-bottom: auto; }
.topic h3 { margin: 28px 0 .45em; }
.topic p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.2em; }
.topic__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .92rem; color: var(--ink); }
.topic__more svg { width: 16px; height: 16px; transition: transform .2s; }
.topic:hover .topic__more { color: var(--accent); }
.topic:hover .topic__more svg { transform: translateX(4px); }
@media (max-width: 600px) { .topic { min-height: 0; padding: 22px 22px 20px; } .topic h3 { margin-top: 14px; } }

/* ---------- Обо мне (коротко) ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-grid__media { position: relative; }
.about-grid__media .portrait__frame { border-radius: 26px 26px 999px 999px; aspect-ratio: 4 / 4.6; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.5; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 1.2em; margin: 0 0 1.4em; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 32px 0; }
.stat { padding: 18px 18px 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.stat__label { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-grid__media { max-width: 360px; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Как проходит работа ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--serif); font-style: italic; color: var(--accent);
  font-size: 1.1rem; position: relative; z-index: 1; margin-bottom: 22px;
}
.step::after { content: ""; position: absolute; top: 29px; left: 58px; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 0 0 18px 82px; min-height: 76px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step::after { top: 58px; bottom: 0; left: 29px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
}

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.price--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price__tag { position: absolute; top: -13px; left: 26px; background: var(--accent-solid); color: var(--on-accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price h3 { font-size: 1.25rem; margin-bottom: .2em; }
.price__duration { color: var(--muted); font-size: .92rem; }
.price__value { font-family: var(--serif); font-size: 2.2rem; line-height: 1; margin: 22px 0 18px; }
.price__desc { color: var(--ink-soft); font-size: .96rem; margin-bottom: 24px; }
.price .btn { margin-top: auto; }
/* На всю ширину карточки делят строки: цены и кнопки стоят на одной высоте при любых переносах. */
@media (min-width: 901px) {
  .prices { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .price { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
}
.prices-note { margin-top: 24px; color: var(--muted); font-size: .92rem; text-align: center; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 400px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.review { scroll-snap-align: start; background: var(--paper); border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.review__mark { font-family: var(--serif); font-size: 3.6rem; line-height: .6; color: var(--accent); opacity: .5; height: 28px; }
.review__text { flex: 1; color: var(--ink); margin: 10px 0 20px; }
.review__author { font-weight: 600; }
.review__caption { font-size: .88rem; color: var(--muted); }
@media (max-width: 520px) { .reviews { grid-auto-columns: 86%; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s, background .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] .faq__icon { background: var(--accent-tint); border-color: transparent; }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { padding: 0 60px 26px 0; color: var(--ink-soft); white-space: pre-line; }

/* ---------- Блог: карточки ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 22px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card:hover { color: inherit; }
.post-card__cover { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--sand-tint); margin-bottom: 18px; position: relative; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__cover img { transform: scale(1.04); }
.post-card__pattern { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); opacity: .35; }
.post-card__pattern svg { width: 60%; }
.post-card:nth-child(3n+2) .post-card__cover { background: var(--sage-tint); }
.post-card:nth-child(3n+2) .post-card__pattern { color: var(--sage); }
.post-card:nth-child(3n) .post-card__cover { background: var(--rose-tint); }
.post-meta { font-size: .85rem; color: var(--muted); display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.post-card h3 { margin: 8px 0 .4em; transition: color .2s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Запись ---------- */
.booking { background: var(--booking-bg); color: #efe7dd; border-radius: clamp(24px, 3vw, 36px); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); position: relative; overflow: hidden; }
.booking::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(160, 87, 58, .35), transparent 65%); right: -180px; top: -220px; pointer-events: none; }
.booking h2 { color: #fff; }
.booking h2 em { color: #e2a688; }
.booking .eyebrow { color: #b9c2b1; }
.booking__text { color: #cfc5ba; }
.booking__contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.booking__contacts .btn--ghost { color: #efe7dd; border-color: rgba(255, 255, 255, .22); }
.booking__contacts .btn--ghost:hover { color: #fff; border-color: #fff; }
.booking__aside { color: #a69b90; font-size: .92rem; margin-top: 24px; }
.booking__aside a { color: #efe7dd; }

.form { background: var(--form-bg); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); position: relative; z-index: 1; }
.form h3 { margin-bottom: .2em; }
.form__hint { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"] {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--field-bg); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input[type="text"]::placeholder { color: var(--placeholder); }
.field input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field--error input[type="text"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .85rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; margin: 6px 0 22px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; gap: 14px; align-items: flex-start; background: var(--sage-tint); color: var(--ink); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.form-success svg { width: 24px; height: 24px; color: var(--sage); flex: none; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 60px); }
.page-hero h1 { max-width: 860px; }
@media (max-width: 480px) { .page-hero h1 { font-size: min(2.3rem, 8.4vw); } }
.page-hero .lead { max-width: 680px; }

.breadcrumbs { list-style: none; display: flex; gap: 6px 10px; padding: 0; margin: 0 0 28px; font-size: .86rem; color: var(--muted); }
.breadcrumbs li { flex: none; white-space: nowrap; }
.breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; opacity: .6; }
.breadcrumbs a { text-decoration: none; }

.prose { font-size: 1.07rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p + p, .prose > ul + p, .prose > ol + p { margin-top: 1.1em; }
.prose a[href^="tel:"] { white-space: nowrap; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 1.2em; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.18em; color: var(--ink); }
.prose a { color: var(--accent); }
.prose img { border-radius: var(--radius-sm); margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }

.article-cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 clamp(36px, 5vw, 56px); aspect-ratio: 1200 / 630; background: var(--sand-tint); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.aside-card { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside-card h3 { font-size: 1.25rem; }
.aside-card p { color: var(--ink-soft); font-size: .95rem; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { border-top: 1px solid var(--line); }
.aside-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; text-decoration: none; font-size: .96rem; }
.aside-list svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
/* страховка: любые иконки без явного размера не разрастаются */
svg:not([width]) { max-width: 100%; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .aside-card { position: static; } }

.diplomas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.diploma { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diploma__img { aspect-ratio: 4 / 3; background: var(--sand-tint); display: block; }
.diploma__img img { width: 100%; height: 100%; object-fit: cover; }
.diploma__body { padding: 18px 20px 20px; }
.diploma__year { font-family: var(--serif); font-style: italic; color: var(--accent); }
.diploma h3 { font-size: 1.08rem; margin: 4px 0 4px; font-family: var(--sans); font-weight: 600; line-height: 1.35; }
.diploma__place { font-size: .9rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; display: block; }
a.contact-card:hover { border-color: var(--accent); color: inherit; }
.contact-card__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card__value { font-family: var(--serif); font-size: 1.3rem; margin-top: 8px; word-break: break-word; }
.contact-card__note { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 46px; height: 46px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination [aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pagination .is-disabled { opacity: .4; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Подвал ---------- */
.footer { padding: clamp(56px, 7vw, 88px) 0 32px; background: var(--bg-deep); margin-top: var(--section); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ink-soft); }
.footer a:hover { color: var(--accent); }
.footer__about { color: var(--ink-soft); max-width: 340px; margin-top: 12px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: .85rem; }
.footer__bottom a { color: var(--muted); }
.footer__legal { flex-basis: 100%; font-size: .78rem; }
.footer__crisis { background: var(--paper); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink-soft); font-size: .88rem; margin-top: 20px; max-width: 360px; line-height: 1.5; }
.footer__crisis p { margin: 0 0 8px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Cookie-плашка ---------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px 24px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 16px 20px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.cookie-bar__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 600px) {
  .cookie-bar { bottom: 12px; flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .cookie-bar__text { font-size: .85rem; }
  .cookie-bar__actions .btn { flex: 1; }
}

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.section-cta { margin-top: 40px; text-align: center; }
