/* ============================================================
   Локальные шрифты. Подключены файлами, а не с Google Fonts:
   сайт не делает запросов на сторонние домены и не зависит
   от их доступности. Оба шрифта под SIL Open Font License 1.1,
   тексты лицензий — в assets/fonts/.
   ============================================================ */

/* Lora — cyrillic-ext (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/lora-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Lora — cyrillic (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/lora-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Lora — latin-ext (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Lora — latin (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Golos Text — cyrillic-ext (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Golos Text — cyrillic (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Golos Text — latin-ext (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/golos-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Golos Text — latin (вариативный: вес 400–500 в одном файле) */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --ink:        #3b3033;   /* основной тёмный */
  --ink-soft:   #6f5f63;   /* приглушённый текст */
  --accent:     #b07d8a;   /* акцент, ссылки */
  --accent-dk:  #97626f;
  --sand:       #ddbfc7;   /* светлая роза */
  --cream:      #f3e8ea;   /* фон секций */
  --white:      #ffffff;
  --line:       rgba(59,48,51,.16);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --radius: 4px;
  --header-h: 76px;
}

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

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

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

img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent-dk); text-decoration:none; }
a:hover{ color:var(--ink); }
p{ margin:0 0 1.1em; }
h1,h2,h3{ font-family:var(--font-head); font-weight:500; line-height:1.15; margin:0 0 .5em; }

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

/* ---------- типовые элементы ---------- */
.eyebrow{
  font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent); font-weight:500; margin:0 0 14px;
}
.eyebrow--light{ color:var(--sand); }

.section{ padding:96px 0; }
.section--cream{ background:var(--cream); }
.section--dark{ background:var(--ink); color:var(--white); }
.section__title{ font-size:clamp(30px,4vw,40px); margin-bottom:.6em; }
/* приглушённый заголовок: для секций, которые не должны спорить с основными */
.section__title--sm{ font-size:clamp(22px,2.4vw,26px); }
.section__title--light{ color:var(--white); }
.section__lead{ max-width:62ch; color:var(--ink-soft); }
.subtitle{ font-size:24px; margin:56px 0 20px; }
/* «Дети и подростки» идёт сразу за списком запросов взрослых — отодвигаем */
.tags + .subtitle{ margin-top:80px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 30px; border:1px solid transparent; border-radius:var(--radius);
  font-family:var(--font-body); font-size:14px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; cursor:pointer;
  transition:background .25s, color .25s, border-color .25s;
}
.btn--primary{ background:var(--ink); color:var(--white); }
.btn--primary:hover{ background:var(--accent-dk); color:var(--white); }
.btn--ghost{ border-color:var(--line); color:var(--ink); }
.btn--ghost:hover{ border-color:var(--ink); color:var(--ink); }

/* ---------- шапка ---------- */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid var(--line);
}
.header__inner{ display:flex; align-items:center; gap:24px; min-height:var(--header-h); }
.brand{ display:flex; flex-direction:column; line-height:1.2; color:var(--ink); }
.brand__name{ font-family:var(--font-head); font-size:25px; }
.brand__role{ font-size:10px; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-soft); }

.nav{ margin-left:auto; display:flex; align-items:center; gap:28px; }
.nav__list{ display:flex; gap:22px; list-style:none; margin:0; padding:0; }
.nav__link{
  font-size:13px; letter-spacing:.04em; color:var(--ink-soft);
  padding-bottom:2px; border-bottom:1px solid transparent;
}
.nav__link:hover, .nav__link.is-active{ color:var(--ink); border-bottom-color:var(--accent); }
.nav__contacts{ display:none; }

.burger{ display:none; width:40px; height:40px; margin-left:auto; padding:9px 8px;
  background:none; border:0; cursor:pointer; flex-direction:column; justify-content:space-between; }
.burger span{ display:block; height:1.5px; background:var(--ink); transition:transform .25s, opacity .2s; }

/* ---------- hero ---------- */
.hero{ padding:80px 0 0; background:linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
/* «Обо мне» идёт сразу за hero — весь просвет задаётся одним этим отступом */
.hero + .section{ padding-top:40px; }
.hero__inner{ display:block; }
.hero__title{ font-size:clamp(19px,2vw,21px); margin:0; }

/* фото и имя под ним — одной колонкой слева */
.hero__media{ display:flex; flex-direction:column; align-items:flex-start; gap:26px; }
.hero__photo{ width:242px; height:325px; border-radius:var(--radius); object-fit:cover; }

/* ---------- цифры ---------- */
.facts{ padding:56px 0; border-block:1px solid var(--line); }
.facts__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.fact{ text-align:center; }
.fact__num{ font-family:var(--font-head); font-size:52px; line-height:1; color:var(--accent); }
.fact__num::after{ content:"+"; }
.fact__text{ margin-top:10px; font-size:14px; color:var(--ink-soft); }

/* ---------- обо мне ---------- */
.about__grid{ display:block; }
.about__text{ max-width:70ch; }
.ticks{ list-style:none; margin:28px 0 0; padding:0; }
.ticks li{ position:relative; padding-left:26px; margin-bottom:10px; color:var(--ink-soft); }
.ticks li::before{ content:"—"; position:absolute; left:0; color:var(--accent); }

/* ---------- карточки образования ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.card__img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.card__body{ padding:22px 24px 26px; }
.card__title{ font-size:22px; margin-bottom:.3em; }
.card__meta{ margin:0; font-size:14px; color:var(--ink-soft); }

.chips{ display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:0; padding:0; }
.chips li{ padding:9px 18px; border:1px solid var(--line); border-radius:100px; font-size:14px; background:var(--white); }

/* ---------- практика ---------- */
.timeline{ list-style:none; margin:0; padding:0; max-width:900px; }
.timeline li{ display:grid; grid-template-columns:180px 1fr; gap:24px;
  padding:22px 0; border-top:1px solid rgba(255,255,255,.16); }
.timeline li:last-child{ border-bottom:1px solid rgba(255,255,255,.16); }
.timeline__year{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--sand); }
.timeline__text{ font-size:19px; }

/* ---------- принципы ---------- */

/* ---------- запросы ---------- */
.tags{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; list-style:none; margin:36px 0 0; padding:0; }
.tags li{ padding:18px 22px; background:var(--cream); border-left:2px solid var(--sand); font-size:16px; }
.tags li:hover{ border-left-color:var(--accent); }

/* ---------- метод ---------- */
.method__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:36px; }
.method__item{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:30px; }
.method__item h3{ font-size:24px; }
.method__item p{ margin:0; color:var(--ink-soft); }


/* ---------- запись ---------- */
/* «Как записаться» и «Адрес кабинета» — один смысловой блок, прижимаем их
   друг к другу: адрес занимает две строки, обычные 96px вокруг него пустуют */
.booking{ padding-bottom:40px; }
.booking + .section{ padding-top:40px; padding-bottom:64px; }

.booking__grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.booking__contacts{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.contact{
  display:flex; flex-direction:column; gap:4px; padding:16px 18px;
  background:var(--cream); border:1px solid var(--line); border-radius:var(--radius);
  transition:border-color .25s, background .25s;
}
.contact:hover{ border-color:var(--accent); background:var(--white); }
.contact__label{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); }
.contact__value{ font-family:var(--font-head); font-size:19px; color:var(--ink); }
/* контакт во всю ширину — когда плиток нечётное число */
.contact--wide{ grid-column:1 / -1; }

/* ---------- статьи ---------- */
.articles{ list-style:none; margin:36px 0 0; padding:0; }
.article{ display:grid; grid-template-columns:70px 1fr; gap:20px; padding:26px 0; border-top:1px solid var(--line); }
.article:last-child{ border-bottom:1px solid var(--line); }
.article__num{ font-family:var(--font-head); font-size:30px; color:var(--accent); }
.article__title{ font-size:24px; margin-bottom:.2em; }
.article__title a{ color:var(--ink); }
.article__title a:hover{ color:var(--accent-dk); }
.article__meta{ margin:0; font-size:14px; color:var(--ink-soft); }

/* ---------- подвал ---------- */
.footer{ background:var(--ink); color:rgba(255,255,255,.78); padding:64px 0 28px; font-size:15px; }
.footer a{ color:rgba(255,255,255,.78); }
.footer a:hover{ color:var(--sand); }
.footer__inner{ display:grid; grid-template-columns:1.6fr .7fr .7fr; gap:40px; }
.footer__col{ display:flex; flex-direction:column; gap:8px; }
.footer__name{ font-family:var(--font-head); font-size:26px; color:var(--white); margin:0; }
.footer__role{ margin:0; font-size:12px; letter-spacing:.14em; text-transform:uppercase; }
.footer__note{ margin:12px 0 0; max-width:40ch; }
.footer__bottom{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-top:48px; padding-top:20px; border-top:1px solid rgba(255,255,255,.14); font-size:13px; color:rgba(255,255,255,.5); }

/* ---------- служебные страницы (contract.html, privacy.html) ---------- */
.page{ padding:64px 0 96px; }
.page__content{ max-width:74ch; }
.page__content h2{ font-size:28px; margin-top:1.6em; }
.page__content ul, .page__content ol{ padding-left:22px; color:var(--ink-soft); }
.page__content li{ margin-bottom:8px; }

/* ---------- появление при скролле ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* якоря не уезжают под липкую шапку */
[id]{ scroll-margin-top:calc(var(--header-h) + 16px); }

/* ============================== адаптив ============================== */
@media (max-width:1024px){
  .booking__grid{ grid-template-columns:1fr; gap:40px; }
  .cards, .method__grid{ grid-template-columns:repeat(2,1fr); }
  .tags{ grid-template-columns:repeat(2,1fr); }
  .facts__grid{ grid-template-columns:repeat(2,1fr); gap:28px; }
  .footer__inner{ grid-template-columns:1fr 1fr; }
}

/* Меню уходит под бургер раньше остальной вёрстки. Шапке нужно
   356px (имя с подписью) + 24 + 581 (меню) + 48 (поля) = 1010px;
   ниже этого пункты начинают переноситься на вторую строку. */
@media (max-width:1024px){
  .burger{ display:flex; }
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--white); border-bottom:1px solid var(--line);
    padding:12px var(--gutter) 28px; margin:0;
    transform:translateY(-120%); transition:transform .3s ease;
    max-height:calc(100vh - var(--header-h)); overflow-y:auto;
  }
  .nav.is-open{ transform:none; }
  .nav__list{ flex-direction:column; gap:0; width:100%; }
  .nav__list li{ border-bottom:1px solid var(--line); }
  .nav__link{ display:block; padding:14px 0; font-size:16px; border:0; }
  .nav__contacts{ display:flex; flex-direction:column; gap:8px; padding-top:18px; font-size:15px; }
  body.is-locked{ overflow:hidden; }
}

@media (max-width:768px){
  body{ font-size:16px; }
  /* имя в шапке тянется по ширине экрана: на 360px — ~15px, на 768px — 25px.
     Фиксированный кегль ломал ФИО на две строки на узких телефонах. */
  .brand__name{ font-size:clamp(13px,4.2vw,25px); }
  .section{ padding:64px 0; }

  .cards, .method__grid, .tags{ grid-template-columns:1fr; }
  .booking__contacts{ grid-template-columns:1fr; }
  .timeline li{ grid-template-columns:1fr; gap:6px; }
  .footer__inner{ grid-template-columns:1fr; }
  .hero{ padding:48px 0 0; }
  .hero + .section{ padding-top:32px; }
  /* фото поменьше, чтобы текст начинался примерно с середины экрана */
  .hero__photo{ width:150px; height:201px; }
  .hero__media{ gap:18px; }
}

@media (max-width:420px){
  .facts__grid{ grid-template-columns:1fr; }
  .btn{ width:100%; }
}

/* ============================================================
   Дополнительные блоки
   ============================================================ */

/* светлый вариант таймлайна (на кремовом фоне) */
.timeline--light li{ border-top-color:var(--line); }
.timeline--light li:last-child{ border-bottom-color:var(--line); }
.timeline--light .timeline__year{ color:var(--accent); }

/* частота встреч в карточке «форматы работы» */
.method__freq{
  margin:-6px 0 14px; font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent);
}

/* аннотация статьи */
.article__excerpt{ margin:0 0 8px; color:var(--ink-soft); max-width:70ch; }

/* адрес кабинета */
.office__addr{ font-family:var(--font-head); font-size:19px; line-height:1.5; margin:0; }

