/* ============================================================
   АРТ ПРОСТРАНСТВО — студия лепки и рисования
   Дизайн: тёплый минимализм · палитра: Peach Fuzz (Pantone 13-1023) + глубокий синий
   Шрифты: Cormorant Garamond (акциденция) + Manrope (текст)
   ============================================================ */

:root {
  --bg:          #FDF9F3;
  --bg-soft:     #E9F1FB;
  --surface:     #FFFFFF;
  --ink:         #22386B;
  --ink-soft:    #3C4A6B;
  --muted:       #6E7B93;
  --line:        #E2E6EF;
  --line-strong: #C6CFDF;
  --accent:      #FFBE98;
  --accent-deep: #D07C48;
  --cream:       #F4F7FD;
  --cream-dim:   rgba(244, 247, 253, .66);
  --line-dark:   rgba(244, 247, 253, .16);

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans:  "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-gap: clamp(88px, 12vw, 150px);
  --radius: 16px;
}

/* ---------- База ---------- */

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

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

body {
  font: 400 17px/1.7 var(--font-sans);
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
  isolation: isolate; /* подсветка em остаётся внутри заголовка: под текстом, но над фоном секции */
}

h1 em, h2 em, h3 em, .serif-em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
/* Подсветка рисуется псевдоэлементом ПОД текстом (z-index:-1),
   чтобы не перекрывать хвосты букв соседних строк */
h1 em::before, h2 em::before, h3 em::before, .serif-em::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.14em 0 -0.14em;
  background: var(--accent);
  border-radius: 0.12em;
  z-index: -1;
}

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

section { scroll-margin-top: 96px; }

/* ---------- Типографика-помощники ---------- */

.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.overline .star { color: var(--accent); flex: none; }
.overline i { font-style: normal; color: var(--accent); }

.h-display {
  font-size: clamp(46px, 8.4vw, 108px);
  line-height: .98;
  letter-spacing: -0.02em;
}

.h-section {
  font-size: clamp(34px, 5vw, 62px);
  max-width: 18ch;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.text-muted { color: var(--muted); }

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 2px 32px 0;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn--sm { min-height: 44px; padding: 1px 22px 0; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 700 13px/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .25s;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: border-color .35s;
  border-bottom: 1px solid transparent;
}
/* Фон и размытие — на псевдоэлементе: backdrop-filter на самой шапке делает её контейнером
   для position: fixed, и полноэкранное мобильное меню сжималось до высоты шапки. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253, 249, 243, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 44px;
  align-items: center;
}
.brand b { font-weight: 600; }
.brand i { font-style: italic; font-weight: 500; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 30px);
  list-style: none;
}
.nav-links a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 13.5px/1 var(--font-sans);
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .25s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(34, 56, 107, .1);
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.burger span {
  position: absolute;
  left: 14px; right: 14px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ---------- Хиро ---------- */

.hero {
  padding-top: clamp(130px, 18vh, 190px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.hero-grid > * { min-width: 0; }
.cms-text, [data-cms-text] { overflow-wrap: anywhere; }
.hero-copy .overline { margin-bottom: 26px; }

.hero-copy { container-type: inline-size; }
.hero-copy h1 {
  font-size: clamp(42px, 15cqi, 108px);
  text-wrap: wrap;
  margin-bottom: 28px;
}
.hero-copy h1 em {
  display: inline-block;
  max-width: 100%;
}

.hero-sub {
  max-width: 52ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 14px/1.4 var(--font-sans);
  color: var(--ink-soft);
  min-height: 44px;
}
.hero-rating .stars { display: inline-flex; gap: 3px; color: var(--accent); }
.hero-rating u { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: text-decoration-color .25s; }
.hero-rating:hover u { text-decoration-color: var(--accent); }

.hero-figure { position: relative; }

.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-badge {
  position: absolute;
  left: clamp(-34px, -3vw, -16px);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 30px 60px -30px rgba(23, 37, 70, .35);
}
.hero-badge strong {
  font: italic 500 40px/1 var(--font-serif);
  color: var(--accent);
  white-space: nowrap;
}
.hero-badge span {
  font: 600 13px/1.45 var(--font-sans);
  color: var(--muted);
  max-width: 15ch;
}

/* ---------- Бегущая строка ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track ul {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  flex: none;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font: 700 13px/1 var(--font-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track li svg { color: var(--accent); flex: none; }

@keyframes marquee {
  to { transform: translateX(calc(-50% - 22px)); }
}

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

.section { padding-top: var(--section-gap); }
.section:last-of-type { padding-bottom: var(--section-gap); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

/* --- О студии --- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.about-copy h2 { margin-bottom: 26px; }
.about-copy .lead { margin-bottom: 22px; }
.about-copy p + p { margin-top: 16px; }

.feature-list {
  list-style: none;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
}
.feature-list svg { color: var(--accent); flex: none; }

.about-figure { position: sticky; top: 110px; }
.about-figure figcaption {
  margin-top: 14px;
  font: 500 13px/1.5 var(--font-sans);
  color: var(--muted);
}

.img-soft {
  border-radius: var(--radius);
  overflow: hidden;
}
.img-soft img { width: 100%; object-fit: cover; }

/* --- Цифры --- */

.stats {
  margin-top: clamp(56px, 8vw, 90px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 36px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  white-space: nowrap;
  font: 500 clamp(40px, 5vw, 62px)/1 var(--font-serif);
  color: var(--ink);
  margin-bottom: 10px;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat b i { font-style: italic; color: var(--accent); }
/* Число с «+» не разрывается (nowrap у b, цифры без точек переноса), а длинный текст из CMS
   переносится по словам: колонка растёт до самого длинного слова, а не до всей строки. */
.stat b > .cms-text { white-space: normal; overflow-wrap: normal; }
.stat > span { font: 600 13px/1.5 var(--font-sans); color: var(--muted); }

/* --- Направления --- */

.dir-list { border-top: 1px solid var(--line); list-style: none; }

.dir-row {
  display: grid;
  grid-template-columns: 84px 1fr 64px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 38px) 4px;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.dir-row:hover { background: rgba(255, 255, 255, .55); padding-left: 18px; }

.dir-no {
  font: italic 500 clamp(22px, 2.6vw, 30px)/1 var(--font-serif);
  color: var(--line-strong);
  transition: color .3s;
}
.dir-row:hover .dir-no { color: var(--accent); }

.dir-body { min-width: 0; overflow-wrap: anywhere; }
.dir-body h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.dir-body p { color: var(--muted); font-size: 16px; max-width: 62ch; }

.dir-arrow {
  width: 56px; height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.dir-row:hover .dir-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: rotate(45deg);
}

/* --- Цены --- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}
.price-card .overline { margin-bottom: 14px; }
.price-card h3 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 6px; }
.price-card .price-note { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.price-rows { list-style: none; margin-top: auto; }
.price-rows li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 15.5px;
}
.price-rows li:last-child { border-bottom: 0; }
.price-rows .dots { flex: 1; }
.price-rows b {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
[data-cms-trial-price] {
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(255, 190, 152, .28);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 7px 14px;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.price-footnote {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

/* --- Галерея --- */

.gallery {
  columns: 3 300px;
  column-gap: 20px;
}
.gallery figure {
  margin-bottom: 20px;
  break-inside: avoid;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  transition: transform .6s var(--ease), filter .6s;
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 42px 18px 14px;
  background: linear-gradient(to top, rgba(23, 37, 70, .68), transparent);
  color: var(--cream);
  font: 600 13px/1.4 var(--font-sans);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s var(--ease);
  pointer-events: none;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* --- Лайтбокс --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(16, 26, 50, .93);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1080px, 92vw);
  max-height: 80vh;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6);
}
.lightbox figcaption { color: var(--cream-dim); font: 500 14px/1.5 var(--font-sans); text-align: center; }

.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244, 247, 253, .3);
  background: rgba(244, 247, 253, .06);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* --- Отзывы --- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review-card .quote-mark {
  font: italic 500 64px/0.4 var(--font-serif);
  color: var(--accent);
  height: 26px;
}
.review-card blockquote {
  font: italic 500 clamp(18px, 1.8vw, 21px)/1.5 var(--font-serif);
  color: var(--ink);
  flex: 1;
}
.review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.review-card cite {
  font: 700 13px/1.3 var(--font-sans);
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.review-card .stars { display: inline-flex; gap: 2px; color: var(--accent); }

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}

/* --- Запись (тёмная секция) --- */

.section--dark {
  margin-top: var(--section-gap);
  background: var(--ink);
  color: var(--cream);
  padding: var(--section-gap) 0;
}
.section--dark h2 { color: var(--cream); }
.section--dark .overline { color: var(--cream-dim); }
.section--dark .overline i { color: var(--accent); }

.booking-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.booking-info h2 { margin-bottom: 22px; }
.booking-info > p { color: var(--cream-dim); max-width: 44ch; margin-bottom: 36px; }

.booking-phone {
  display: inline-block;
  font: 500 clamp(28px, 3.4vw, 42px)/1.15 var(--font-serif);
  color: var(--cream);
  margin-bottom: 26px;
  transition: color .25s;
}
.booking-phone:hover { color: var(--accent); }

.booking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-bottom: 36px;
}
.booking-links .link-arrow { color: var(--cream); }
.booking-links .link-arrow:hover { color: var(--accent); }

.booking-hours {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--cream-dim);
  font-size: 14.5px;
  max-width: 40ch;
}
.booking-hours svg { flex: none; margin-top: 3px; color: var(--accent); }

/* Форма */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 24px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font: 700 12px/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.form-field label b { color: var(--accent); font-weight: 700; }

.form-field input,
.form-field select,
.form-field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 247, 253, .28);
  border-radius: 0;
  padding: 12px 2px;
  min-height: 48px;
  font: 500 17px/1.4 var(--font-sans);
  color: var(--cream);
  transition: border-color .25s;
}
.form-field textarea { resize: vertical; min-height: 76px; }
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23F4F7FD' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 26px;
}
.form-field select option { color: var(--ink); background: var(--cream); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(244, 247, 253, .38); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-field .field-error {
  display: none;
  font: 600 13px/1.4 var(--font-sans);
  color: #E8927C;
}
.form-field.has-error input { border-bottom-color: #E8927C; }
.form-field.has-error .field-error { display: block; }

/* Согласие на обработку ПД: обычная галочка вместо подчёркнутого поля ввода */
.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font: 500 14px/1.5 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream-dim);
  cursor: pointer;
}
.form-field.form-check input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.form-check a:hover { color: var(--accent); }
.form-field.form-check.has-error input[type="checkbox"] { outline: 2px solid #E8927C; outline-offset: 2px; }
/* Поле-ловушка для ботов: скрыто от людей и экранных дикторов */
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-submit { display: flex; flex-direction: column; gap: 16px; }
.form-submit .btn { width: 100%; }

.form-consent {
  font: 500 12.5px/1.55 var(--font-sans);
  color: rgba(244, 247, 253, .45);
}

.form-status {
  display: none;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 16px 20px;
  font: 500 15px/1.55 var(--font-sans);
}
.form-status.is-ok { display: block; border-color: rgba(154, 205, 158, .4); color: #BFE3C3; }
.form-status.is-err { display: block; border-color: rgba(232, 146, 124, .45); color: #F0B4A3; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

.booking-success {
  display: none;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  text-align: center;
}
.booking-success.is-visible { display: block; }
.booking-success .big {
  font: italic 500 clamp(30px, 3.4vw, 44px)/1.15 var(--font-serif);
  color: var(--cream);
  margin: 18px 0 12px;
}
.booking-success p { color: var(--cream-dim); max-width: 42ch; margin-inline: auto; }
.booking-success svg { color: var(--accent); }

/* --- Контакты --- */

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid;
  grid-template-columns: 30px 118px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list svg { color: var(--accent); margin-top: 3px; }
.contact-list .label {
  font: 700 12px/1.6 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-list .value { font-weight: 500; color: var(--ink); }
.contact-list .value small {
  display: block;
  font: 500 14px/1.55 var(--font-sans);
  color: var(--muted);
  margin-top: 3px;
}
.contact-list a.value:hover { color: var(--accent); }

.socials {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

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

.bio-hero {
  padding-top: clamp(130px, 18vh, 190px);
}
.bio-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.bio-copy .overline { margin-bottom: 26px; }
.bio-copy h1 { margin-bottom: 26px; }
.bio-copy .lead { margin-bottom: 36px; max-width: 30ch; }
.bio-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.bio-figure { position: relative; }
.bio-figure figcaption {
  margin-top: 14px;
  text-align: center;
  font: 500 13px/1.5 var(--font-sans);
  color: var(--muted);
}

.story-cols {
  columns: 2 340px;
  column-gap: clamp(32px, 5vw, 64px);
}
.story-cols p {
  margin-bottom: 18px;
  break-inside: avoid;
}
.story-cols p:first-child::first-letter {
  font: italic 500 64px/0.85 var(--font-serif);
  color: var(--accent);
  float: left;
  padding: 8px 12px 0 0;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
}
.principle .p-no {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: italic 500 22px/1 var(--font-serif);
  color: var(--accent);
  margin-bottom: 22px;
}
.principle h3 { font-size: 26px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15.5px; }

.pull-quote {
  margin-top: var(--section-gap);
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
}
.pull-quote blockquote {
  font: italic 500 clamp(26px, 4vw, 46px)/1.3 var(--font-serif);
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto 22px;
}
.pull-quote cite {
  font: 700 12px/1 var(--font-sans);
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { color: var(--cream-dim); max-width: 46ch; margin: 0 auto 36px; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 9vw, 110px) 0 34px;
}
.section--dark + .site-footer { border-top: 1px solid var(--line-dark); }

.footer-word {
  font: 500 clamp(44px, 9vw, 118px)/1 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: clamp(40px, 6vw, 72px);
  text-wrap: balance;
}
.footer-word i { font-style: italic; color: var(--accent); }

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-cols p { color: var(--cream-dim); font-size: 15px; max-width: 34ch; }

.footer-title {
  font: 700 12px/1 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 20px;
}
.footer-nav { list-style: none; }
.footer-nav li + li { margin-top: 4px; }
.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--cream);
  font-weight: 500;
  transition: color .25s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { font-style: normal; color: var(--cream-dim); font-size: 15px; line-height: 1.8; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 26px;
  font: 500 13px/1.6 var(--font-sans);
  color: rgba(244, 247, 253, .4);
}

.footer-bottom a { transition: color .25s; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Политика и согласие на обработку ПД ---------- */

.legal {
  max-width: calc(820px + 2 * var(--gutter));
  padding-top: clamp(120px, 14vw, 170px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.legal h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 500;
  margin: 18px 0 12px;
  overflow-wrap: anywhere;
}
.legal h2 { font-size: clamp(23px, 3vw, 30px); margin: 44px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent-deep); }
.legal .legal-meta { color: var(--muted); font-size: 14px; }
.site-footer--compact { padding-top: 0; }

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1024px) {
  .hero-grid, .bio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .price-grid, .review-grid, .principle-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) {
    font: 500 clamp(28px, 5vw, 38px)/1.3 var(--font-serif);
    min-height: 56px;
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; }
  .burger { display: block; }
}

@media (max-width: 860px) {
  .hero-grid, .bio-grid { grid-template-columns: minmax(0, 1fr); }
  /* Первый экран на телефоне: сначала название, предложение и кнопка записи,
     фото — следом широкой мягкой аркой, а не портретом на половину экрана. */
  .hero { padding-top: 104px; }
  .hero-grid { gap: 40px; }
  .hero-figure { max-width: 640px; margin-bottom: 26px; }
  .hero-figure .arch { border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); }
  .hero-figure .arch img { aspect-ratio: 4 / 3; object-position: 50% 42%; }
  .bio-figure { max-width: 480px; }
  .bio-hero { padding-top: 110px; }
  .hero-badge { left: 18px; right: auto; bottom: -26px; padding: 12px 18px; }
  .hero-badge strong { font-size: 30px; }

  .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 520px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dir-row { grid-template-columns: 48px 1fr; }
  .dir-arrow { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .map-frame iframe { min-height: 360px; }
}

@media (max-width: 620px) {
  .hero-copy .overline { margin-bottom: 18px; }
  .hero-copy h1 { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .hero-actions .btn { width: 100%; }
  /* Направления идут сразу ниже и есть в меню — третья кнопка на телефоне лишняя */
  .hero-actions .btn--ghost { display: none; }
  .price-grid, .review-grid, .principle-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 26px 1fr; }
  .contact-list .label { display: none; }
  .gallery { columns: 2 150px; column-gap: 12px; }
  .gallery figure { margin-bottom: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* На самых узких телефонах цифры студии — в одну колонку: длинный текст из CMS не распирает сетку */
@media (max-width: 359px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* ---------- Доступность: движение ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Кнопка «О преподавателе» ---------- */

.btn--teacher { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--teacher:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Направления: аккордеон ---------- */

button.dir-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.dir-arrow svg { transition: transform .35s var(--ease); }
.dir-item.is-open > .dir-row { border-bottom-color: transparent; }
.dir-item.is-open .dir-no { color: var(--accent); }
.dir-item.is-open .dir-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.dir-item.is-open .dir-arrow svg { transform: rotate(45deg); }

.dir-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.dir-item.is-open .dir-panel {
  grid-template-rows: 1fr;
  border-bottom: 1px solid var(--line);
}
.dir-panel-inner { overflow: hidden; min-height: 0; }
.dir-panel-inner p {
  color: var(--ink-soft);
  max-width: 72ch;
  padding: 6px 4px 20px calc(84px + clamp(16px, 3vw, 40px));
}
.dir-panel-inner .btn {
  margin: 0 4px 34px calc(84px + clamp(16px, 3vw, 40px));
}

/* ---------- Пробное занятие ---------- */

.trial-hero {
  padding-top: clamp(130px, 18vh, 190px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.trial-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.trial-copy .overline { margin-bottom: 26px; }
.trial-copy h1 { margin-bottom: 22px; }
.trial-copy .lead { margin-bottom: 28px; max-width: 44ch; }

.trial-price {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  /* Подпись в две строки центрируется по высоте цены, а не свисает от её базовой линии */
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 30px;
}
.trial-price strong {
  font: 500 clamp(44px, 6vw, 72px)/1 var(--font-serif);
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.trial-price span { color: var(--muted); font-weight: 600; line-height: 1.35; max-width: 16ch; }

.btn--trial {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  min-height: 58px;
  padding-inline: 38px;
}
.btn--trial:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.trial-figure {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.trial-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.trial-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: clamp(30px, 4vw, 48px) 0 34px;
}

.trial-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 22px 26px;
  background: var(--surface);
}
.trial-note p { color: var(--ink-soft); }
.trial-note b { color: var(--ink); }

/* ---------- Модалка записи на пробное ---------- */

.trial-modal {
  margin: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(680px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 60px 120px -40px rgba(9, 16, 34, .55);
}
.trial-modal::backdrop {
  background: rgba(16, 26, 50, .58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.trial-modal-inner {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  max-height: calc(100vh - 64px);
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.modal-heading { margin-bottom: 30px; padding-right: 44px; }
.modal-heading .overline { color: var(--cream-dim); margin-bottom: 12px; }
.modal-heading h2 { color: var(--cream); font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.modal-heading p { color: var(--cream-dim); }

.success-star { font-size: 40px; color: var(--accent); display: block; }

/* ---------- Адаптив: новые блоки ---------- */

@media (max-width: 860px) {
  .dir-panel-inner p { padding-left: calc(48px + clamp(16px, 3vw, 40px)); }
  .dir-panel-inner .btn { margin-left: calc(48px + clamp(16px, 3vw, 40px)); }
  .dir-item .dir-arrow { display: grid; width: 44px; height: 44px; }
  .dir-item .dir-row { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .trial-hero-grid { grid-template-columns: 1fr; }
  .trial-figure { order: -1; max-width: 480px; }
  .trial-steps { grid-template-columns: 1fr; }
}

/* ---------- Пробное занятие: баннер на главной ---------- */

.trial-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.trial-banner-copy {
  min-width: 0;
  padding: clamp(28px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trial-banner-copy h2 { margin-bottom: 18px; }
.trial-banner-copy > p { max-width: 56ch; margin-bottom: 28px; }
.trial-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}
.trial-banner-actions .trial-price { margin-bottom: 0; }
.trial-banner-figure { min-height: 100%; min-width: 0; }
.trial-banner-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .trial-banner { grid-template-columns: minmax(0, 1fr); }
  .trial-banner-figure { order: -1; max-height: 300px; }
}

/* ---------- Peach Fuzz: читаемость акцентов ----------
   Чистый Peach Fuzz (#FFBE98) — для заливок и тёмного фона;
   текстовые акценты на светлом фоне — углублённый персик. */

.overline i, .overline .star,
.stat b i,
.hero-badge strong,
.trial-price strong,
.hero-rating .stars,
.review-card .stars,
.review-card .quote-mark,
.feature-list svg,
.contact-list svg,
.marquee-track li svg,
.principle .p-no,
.brand i,
.story-cols p:first-child::first-letter,
.dir-row:hover .dir-no,
.dir-item.is-open .dir-no {
  color: var(--accent-deep);
}

.section--dark .overline i,
.site-footer .footer-word i,
.booking-success svg,
.success-star {
  color: var(--accent);
}


/* ---------- Маркерная подсветка заголовков карточек ---------- */

.price-card h3,
.principle h3,
.dir-body h3 {
  background: var(--accent);
  color: var(--ink);
  width: fit-content;
  max-width: 100%;
  padding: 0.05em 0.3em 0.1em;
  border-radius: 0.14em;
}
.price-card h3 { margin-bottom: 10px; }
.principle h3 { margin-bottom: 12px; }
.dir-body h3 { margin-bottom: 10px; }

/* ---------- Обо мне: кратко → полностью ---------- */

.bio-short { max-width: 780px; }
.bio-short .lead { margin-bottom: 18px; }
.bio-short > p:not(.lead) { color: var(--ink-soft); }

.bio-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.bio-tags li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 13.5px/1.2 var(--font-sans);
  color: var(--ink);
}

.bio-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.bio-more.is-open { grid-template-rows: 1fr; }
.bio-more-inner {
  overflow: hidden;
  min-height: 0;
}
.bio-more.is-open .bio-more-inner { padding-top: clamp(36px, 5vw, 56px); }

.bio-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.bio-block h3 { font-size: clamp(24px, 2.6vw, 30px); }
.bio-block p { color: var(--ink-soft); max-width: 66ch; }
.bio-block p + p { margin-top: 12px; }

.bio-edu {
  list-style: none;
  counter-reset: edu;
  display: grid;
  gap: 18px;
}
.bio-edu li {
  counter-increment: edu;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-items: start;
}
.bio-edu li::before {
  content: counter(edu, decimal-leading-zero);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: italic 500 18px/1 var(--font-serif);
  color: var(--accent-deep);
}
.bio-edu b { color: var(--ink); font-weight: 700; line-height: 1.4; padding-top: 2px; }
.bio-edu span { color: var(--muted); font-size: 15.5px; }
.bio-note { margin-top: 20px; font-size: 15.5px; }

.bio-sub {
  margin-top: 22px !important;
  margin-bottom: 12px;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.bio-materials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bio-materials li {
  background: rgba(255, 190, 152, .28);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 13.5px/1.2 var(--font-sans);
}

.bio-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.bio-link:hover { color: var(--accent-deep); }

.bio-credo {
  margin-top: clamp(10px, 2vw, 20px);
  padding: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line);
  text-align: center;
  font: italic 500 clamp(24px, 3vw, 36px)/1.35 var(--font-serif);
  color: var(--ink);
  isolation: isolate;
}
.bio-credo em { position: relative; font-style: italic; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.bio-credo em::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.14em 0 -0.14em;
  background: var(--accent);
  border-radius: 0.12em;
  z-index: -1;
}

.bio-toggle { margin-top: 32px; }
.bio-toggle svg { transition: transform .4s var(--ease); }
.bio-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* подсветка заголовков блоков, как у карточек */
.bio-block h3 {
  background: var(--accent);
  color: var(--ink);
  width: fit-content;
  max-width: 100%;
  height: fit-content;
  padding: 0.05em 0.3em 0.1em;
  border-radius: 0.14em;
}

@media (max-width: 860px) {
  .bio-block { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Обо мне: членство в сообществе ---------- */
.bio-member {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink) !important;
  font: 700 14px/1.3 var(--font-sans);
}
.bio-member::before {
  content: "✦";
  color: var(--ink);
}
