/* Шрифты Cormorant Garamond и Manrope (Google Fonts, OFL) — хранятся на своём сервере */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-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;
}

/* ==========================================================
   Julia Dolmatova — «Природа и тепло»
   Палитра по фото: жакет цвета слоновой кости, сизо-синий фон,
   медовые волосы, салатовая сердцевина ромашки
   ========================================================== */

:root {
  /* Цвета (все пары текст/фон ≥ 4.5:1) */
  --ivory: #F6F2EB;       /* фон — слоновая кость, как жакет */
  --pearl: #ECE8E0;       /* второй фон — жемчужный */
  --cream: #FBF9F5;       /* светлый текст на тёмном */
  --ink: #2B2E3B;         /* основной текст — глубокий сине-графитовый */
  --ink-soft: #5B5E6C;    /* второстепенный текст */
  --slate: #4D5570;       /* главный цвет — сизо-синий фон фото */
  --slate-deep: #353A4F;  /* тёмные секции */
  --slate-tint: #E3E4EA;
  --honey: #8A5B34;       /* акцент — медовый, как волосы */
  --bloom: #C8D27E;       /* сердцевина ромашки — на тёмном */
  --bloom-deep: #9FAE52;  /* она же — для декора на светлом */
  --line: #D9D3C8;
  --line-light: rgba(251, 249, 245, .22);

  /* Шрифты */
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Отступы (8pt, просторная сетка) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur: 250ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

/* Тонкое «бумажное» зерно — фактура дорогой бумаги. Это фон, а не слой поверх
   страницы: так прокрутка на телефонах не тормозит */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body { background-image: var(--grain); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

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

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

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

.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: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transition: top var(--dur);
}
.skip-link:focus { top: 16px; }

/* ---------- Типографика ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: var(--space-3);
}
.eyebrow--light { color: var(--bloom); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border: 1px solid var(--slate);
  border-radius: 999px;
  background: var(--slate);
  color: var(--cream);
  font: 500 15px/1 var(--font-sans);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:hover { background: var(--slate-deep); border-color: var(--slate-deep); }
.btn:active { transform: scale(.98); }

.btn--small { min-height: 44px; padding: 10px 22px; font-size: 14px; }

.btn--light { background: var(--cream); border-color: var(--cream); color: var(--slate-deep); }
.btn--light:hover { background: transparent; color: var(--cream); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur), gap var(--dur) var(--ease-out);
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 235, .86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  height: 76px;
}
.header__inner > .logo { margin-right: auto; }
.nav a, .lang { white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Переключатель языка RU / EN — тумблер: тёмный «ползунок» переезжает под выбранный язык */
.lang {
  --lang-ease: cubic-bezier(.65, 0, .35, 1);
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}
.lang::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--slate);
  box-shadow: 0 2px 6px -2px rgba(43, 46, 59, .35);
  transition: transform .42s var(--lang-ease);
}
.lang[data-pos="right"]::before { transform: translateX(100%); }
.lang__item {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .42s var(--lang-ease);
}
.lang a.lang__item:hover { color: var(--ink); }
.lang[data-pos="left"] .lang__item:first-child,
.lang[data-pos="right"] .lang__item:last-child { color: var(--cream); }

.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo em { font-style: italic; color: var(--slate); }
.logo--small { font-size: 22px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  position: relative;
  padding-block: 8px;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}
.nav-toggle__bar:nth-child(1) { top: 18px; }
.nav-toggle__bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero {
  padding-block: var(--space-6) var(--space-8);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: var(--space-7);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(64px, 9.5vw, 132px);
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: var(--space-5);
}
.hero__title em { font-style: italic; color: var(--slate); padding-left: .55em; }

/* Анимация имени: буквы проявляются из лёгкой дымки, одна за другой */
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.28em) rotate(2deg);
  filter: blur(12px);
  animation: char-in 1.3s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--i) * 55ms + 150ms);
  will-change: transform, opacity, filter;
}
@keyframes char-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Тонкая линия прорисовывается под «Dolmatova» после появления букв */
.hero__title em { position: relative; display: inline-block; }
.js .hero__title em::after {
  content: "";
  position: absolute;
  left: .55em; right: 0; bottom: -.06em;
  height: 1px;
  background: var(--honey);
  opacity: .6;
  transform: scaleX(0);
  transform-origin: left;
  animation: line-in 1.4s cubic-bezier(.65, 0, .35, 1) 1.15s forwards;
}
@keyframes line-in { to { transform: scaleX(1); } }

.hero__promise {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
  max-width: 22ch;
  margin-bottom: var(--space-3);
}

.hero__lead {
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: var(--space-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.hero__photo {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 440px);
}

/* Арка — мягкая «природная» форма вместо жёсткого прямоугольника */
.arch {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--pearl);
}
.arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  /* лёгкое смягчение: снимок мягче ложится на светлый фон */
  --photo-filter: saturate(.94) contrast(1.02);
  filter: var(--photo-filter);
}

/* Тонкий контур арки со смещением */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--honey);
  border-radius: 999px 999px var(--radius) var(--radius);
  opacity: .55;
  z-index: -1;
}

.hero__daisy {
  position: absolute;
  /* крупнее и ниже: лепестки прикрывают два нижних пальца руки с букетом */
  width: 112px; height: 112px;
  left: -28px; bottom: -32px;
  color: var(--bloom-deep);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Секции ---------- */
.section { padding-block: var(--space-8); }
.section--pearl { background: var(--pearl) var(--grain); }
.section--slate { background: var(--slate-deep); color: var(--cream); }

.section-head {
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-head__daisy {
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto var(--space-3);
  color: var(--slate);
  /* медленно вращается — в полтора раза быстрее ромашки у фото на первом экране */
  animation: spin 40s linear infinite;
}

/* ---------- Обо мне ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-7);
}
.about__head { align-self: start; }

/* Живое фото в «Обо мне»: та же арка, что на первом экране, только меньше */
.about__photo {
  position: relative;
  margin: var(--space-6) 0 0;
  width: min(100%, 340px);
}
.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px var(--radius) var(--radius);
  /* яркую салатовую стену слегка приглушаем, чтобы она жила в палитре */
  --photo-filter: saturate(.72) contrast(1.02);
  filter: var(--photo-filter);
}
.about__photo::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--honey);
  border-radius: 999px 999px var(--radius) var(--radius);
  opacity: .45;
  z-index: -1;
}

.about__text {
  font-size: 19px;
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: var(--space-6);
}
.about__text::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 4.2em;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--slate);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: calc(var(--space-6) * -1 + var(--space-5)) 0 var(--space-6);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact__value {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  color: var(--slate);
  font-variant-numeric: lining-nums;
}
.fact__label {
  margin: 0;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.method {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.method:nth-child(odd) { border-right: 1px solid var(--line); }
.method:nth-child(even) { padding-left: var(--space-4); padding-right: 0; }

.method__name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: var(--space-1);
}
.method p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---------- Запросы: три смысловые группы вместо ровного списка ---------- */
.req-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  max-width: 1100px;
  margin-inline: auto;
}
.req-group__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--slate);
  margin-bottom: var(--space-2);
}
.req-group__list li {
  padding-block: 18px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.3;
}
.req-group__list li:last-child { border-bottom: 1px solid var(--line); }
.requests__note {
  text-align: center;
  color: var(--ink-soft);
  margin-top: var(--space-5);
  max-width: 62ch;
  margin-inline: auto;
}
/* вторая приписка (про диагнозы и психиатра) идёт сразу под первой */
.requests__note + .requests__note { margin-top: var(--space-2); }

/* ---------- Работа и стоимость ---------- */
.process {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-7);
  align-items: start;
}
.process .section-title { margin-bottom: var(--space-5); }

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  font-style: italic;
  color: var(--honey);
}
.step__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 6px;
}
.step p { color: var(--ink-soft); max-width: 46ch; }

.price {
  position: sticky;
  top: 120px;
  padding: var(--space-6) var(--space-5);
  background: var(--slate);
  color: var(--cream);
  border-radius: 999px 999px var(--radius) var(--radius);
  text-align: center;
}
.price__value {
  font-family: var(--font-serif);
  font-size: clamp(64px, 6vw, 84px);
  line-height: 1;
  margin-top: var(--space-2);
}
.price__value span { font-size: .55em; font-style: italic; }
.price__unit {
  font-size: 14px;
  letter-spacing: .06em;
  opacity: .85;
  margin: var(--space-2) 0 var(--space-5);
}
.price__list {
  text-align: left;
  margin-bottom: var(--space-5);
  border-top: 1px solid var(--line-light);
}
.price__list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  line-height: 1.5;
}
.price__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bloom);
}
.price .btn { width: 100%; }

/* ---------- Образование ---------- */
.edu-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-3) var(--space-7);
  align-items: end;
  margin-bottom: var(--space-6);
}
.edu-head__text { color: var(--ink-soft); max-width: 52ch; }
.edu-head__note {
  grid-column: 2;
  margin-top: calc(var(--space-2) * -1);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}

.certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}
.cert { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }

/* Миниатюра: документ лежит на «листе», как на столе */
.cert__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.cert__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 1px 2px rgba(43, 46, 59, .12), 0 6px 16px -8px rgba(43, 46, 59, .3);
  transition: transform 400ms var(--ease-out);
}
.cert__thumb::after {
  content: "";
  position: absolute;
  right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--slate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF9F5' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(.85);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.cert__thumb:hover, .cert__thumb:focus-visible {
  border-color: var(--slate);
  box-shadow: 0 12px 28px -18px rgba(43, 46, 59, .45);
}
.cert__thumb:hover img { transform: scale(1.04); }
.cert__thumb:hover::after, .cert__thumb:focus-visible::after { opacity: 1; transform: none; }

.cert__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--honey);
}
.cert__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  margin: 4px 0 6px;
  text-wrap: balance;
}
.cert__org { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* Дополнительные документы и кнопка «Ещё» */
.certs[hidden] { display: none; }
.certs--extra { margin-top: var(--space-5); }

.certs-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}
.btn--ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}
.btn--ghost:hover { background: var(--slate); color: var(--cream); border-color: var(--slate); }
.certs-more__btn svg {
  width: 18px; height: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.certs-more__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Окно просмотра документа */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 33, 45, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lb-in 250ms var(--ease-out);
}
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
:root:has(.lightbox[open]) { overflow: hidden; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
}
.lightbox__count {
  margin-right: auto;
  font-size: 13px;
  letter-spacing: .12em;
  opacity: .75;
  font-variant-numeric: tabular-nums;
}
.lightbox__open {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
  padding-block: 10px 2px;
}
.lightbox__open:hover { border-color: var(--cream); }
.lightbox__close, .lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(251, 249, 245, .06);
  color: var(--cream);
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
}
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(251, 249, 245, .16); border-color: var(--cream); }

.lightbox__stage {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 0 calc(var(--gutter) + 56px);
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--cream);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  cursor: zoom-in;
}
/* Нажатие на документ — увеличить до реального размера и листать */
.lightbox__img.is-zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.lightbox__stage:has(.is-zoomed) { place-items: start center; }

.lightbox__caption {
  padding: var(--space-2) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  text-wrap: balance;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

/* ---------- Контакты ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.contact__text {
  font-size: 18px;
  opacity: .85;
  margin: var(--space-3) 0 var(--space-5);
  max-width: 40ch;
}
/* строка про очные кабинеты — сразу под приглашением написать, чуть мельче */
.contact__text--place {
  font-size: 16px;
  margin-top: calc(var(--space-2) - var(--space-5));
}

.messengers { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.messenger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 28px 12px 22px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background var(--dur) var(--ease-out), border-color var(--dur), color var(--dur);
}
.messenger svg { width: 22px; height: 22px; }
.messenger:hover { background: var(--cream); color: var(--slate-deep); border-color: var(--cream); }

.contact__photo {
  position: relative;
  margin: var(--space-6) 0 0;
  max-width: 400px;
}
.contact__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  /* цвет как в оригинале (нейтральный фильтр нужен для плавного проявления) */
  --photo-filter: contrast(1);
  filter: var(--photo-filter);
}
/* Тонкая смещённая рамка — как контур арки на первом экране */
.contact__photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--bloom);
  border-radius: var(--radius);
  opacity: .45;
  pointer-events: none;
}

/* Форма */
.form {
  padding: var(--space-5);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(251, 248, 243, .04);
}
.form__title {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-bottom: var(--space-4);
}

.field { margin-bottom: var(--space-3); border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
}
.field__optional { opacity: .65; font-weight: 400; }

.field input[type="text"], .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(251, 248, 243, .06);
  color: var(--cream);
  font: 16px/1.5 var(--font-sans);
  transition: border-color var(--dur), background var(--dur);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: rgba(251, 248, 243, .45); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bloom);
  background: rgba(251, 248, 243, .1);
}
.field.has-error input { border-color: #F2B49C; }

.field__hint { font-size: 13px; opacity: .7; margin-top: 6px; }
.field__error { font-size: 13px; color: #F6C3AF; margin-top: 6px; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 14px;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.chip input:checked + span { background: var(--cream); color: var(--slate-deep); border-color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--bloom); outline-offset: 2px; }

.consent {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5;
  opacity: .9;
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--bloom);
}
.consent a { color: var(--cream); }

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

.form__status { margin-top: var(--space-2); font-size: 15px; min-height: 1.5em; text-align: center; }
.form__status.is-success { color: var(--bloom); }
.form__status.is-error { color: #F6C3AF; }

/* ---------- Подвал ---------- */
.footer {
  background: var(--slate-deep);
  color: rgba(251, 248, 243, .7);
  border-top: 1px solid var(--line-light);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
}
.footer .logo { color: var(--cream); }
.footer .logo em { color: var(--bloom); }
.footer a:not(.logo) { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.footer a:not(.logo):hover { color: var(--cream); }

/* ---------- Движение ---------- */
/* Первый экран — одна сцена: имя по буквам, остальное следом */
.js .hero .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 900ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-out) var(--d, 0ms);
}
.js .hero .reveal.is-visible { opacity: 1; transform: none; }

/* Фото медленно проявляется, как изображение на фотобумаге:
   из прозрачности и лёгкой дымки, с едва заметным «отъездом» */
.js .mask-reveal img {
  opacity: 0;
  filter: var(--photo-filter, ) blur(6px);
  transform: scale(1.03);
  transition:
    opacity 1.8s cubic-bezier(.33, 0, .2, 1) var(--d, 0ms),
    filter 2.2s cubic-bezier(.33, 0, .2, 1) var(--d, 0ms),
    transform 2.6s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
}
.js .mask-reveal.is-visible img { opacity: 1; filter: var(--photo-filter, none); transform: none; }

/* Линии в списках прорисовываются слева направо */
.draw-line { position: relative; }
.draw-line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.js .draw-line::before {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1) var(--d, 0ms);
}
.js .draw-line.is-visible::before { transform: none; }

/* ---------- Панель быстрой связи (только телефон) ---------- */
.mobile-cta { display: none; }

.nav-backdrop { display: none; }
@media (max-width: 1100px) { .nav-backdrop { display: block; } }

/* ---------- Новогодний сезон (1 декабря — 14 января, включается скриптом) ---------- */
.season-bar {
  position: relative;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 52px;
  background: var(--slate-deep);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .03em;
  text-align: center;
}
.season-bar[hidden] { display: none; }
.season-bar__flake {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--bloom);
  animation: spin 40s linear infinite;
}
.season-bar__text { margin: 0; }
.season-bar__close {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--cream);
  opacity: .7;
  cursor: pointer;
  transition: opacity var(--dur), background var(--dur);
}
.season-bar__close:hover { opacity: 1; background: rgba(251, 249, 245, .1); }
.season-bar__close svg { width: 18px; height: 18px; }

/* Хвойные ветки с ёлочными игрушками (рисунок — tools/make_fir.py) */
.winter-deco {
  display: none;
  position: absolute;
  z-index: 2;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.is-winter .winter-deco { display: block; }
/* зимой снежинка у фото — медовое золото, в тон нитям и шару на ветке */
.is-winter .hero__daisy { color: #C9A05A; }
/* ветка на правой стороне арки, чуть выше края — шары висят на фоне, а не на лице */
.winter-deco--hero { right: -7%; top: -14.9%; width: 60%; }  /* ветка наклонена на 15° */
.winter-deco--price { left: -14px; top: -40px; width: 156px; }  /* слева, наклон 15° */
/* вариант 2 — «новогодняя композиция»: стоит в нижнем правом углу арки и в верхнем левом углу карточки цены */
.winter-deco--hero.winter-deco--v2 { left: auto; top: auto; right: -12%; bottom: -8%; width: 54%; }
.winter-deco--price.winter-deco--v2 { right: auto; left: 6%; top: 7%; width: 128px; }
/* игрушки едва покачиваются, каждая в своём ритме */
.bauble { animation: bauble-sway 5.5s ease-in-out infinite alternate; }
@keyframes bauble-sway {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg); }
}
/* шары по очереди мягко бликуют: блик разгорается, на миг вспыхивает искорка */
.glint { animation: glint 4.8s ease-in-out infinite; animation-delay: var(--gd, 0s); }
@keyframes glint {
  0%, 68%, 100% { opacity: .4; }
  80%           { opacity: .95; }
}
.glint-star {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: glint-star 4.8s ease-in-out infinite;
  animation-delay: var(--gd, 0s);
}
@keyframes glint-star {
  0%, 70%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  80%           { opacity: .95; transform: scale(1) rotate(20deg); }
  88%           { opacity: .35; transform: scale(.7) rotate(30deg); }
}

/* «Снежный шар»: редкий снег падает только внутри арки с фото */
.arch__snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero__grid, .about, .process, .contact { gap: var(--space-6); }
  .about { grid-template-columns: 1fr; }
  .about__photo { width: min(80%, 300px); margin-top: var(--space-5); margin-left: 14px; }
  .process { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu-head { grid-template-columns: 1fr; }
  .edu-head__note { grid-column: 1; margin-top: 0; }
  .price { position: relative; max-width: 460px; width: 100%; justify-self: center; }
}

/* Меню-«бургер»: на узких ноутбуках и планшетах пункты меню вместе с переключателем языка
   в одну строку не помещаются (особенно русские) */
@media (max-width: 1100px) {
  .nav-toggle { display: block; order: 3; }
  .lang { order: 2; }
  .lang__item { height: 34px; min-width: 40px; }
  /* Меню плавно разворачивается сверху вниз, как шторка; закрывается чуть быстрее */
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-4);
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -28px rgba(43, 46, 59, .35);
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .34s cubic-bezier(.4, 0, 1, 1), opacity .3s ease, visibility 0s linear .34s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 0 -60px 0);
    transition: clip-path .6s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s;
  }
  /* пункты появляются по очереди с лёгким сдвигом */
  .nav > * {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open > * {
    opacity: 1;
    transform: none;
    transition: opacity .45s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
  }
  .nav.is-open > :nth-child(1) { transition-delay: .08s; }
  .nav.is-open > :nth-child(2) { transition-delay: .13s; }
  .nav.is-open > :nth-child(3) { transition-delay: .18s; }
  .nav.is-open > :nth-child(4) { transition-delay: .23s; }
  .nav.is-open > :nth-child(5) { transition-delay: .28s; }
  .nav.is-open > :nth-child(6) { transition-delay: .33s; }

  /* затемнение страницы под открытым меню; нажатие по нему закрывает меню */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(43, 46, 59, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility 0s;
  }
  .nav a:not(.btn) {
    padding-block: 14px;
    font-family: var(--font-serif);
    font-size: 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--space-3); }
}

@media (max-width: 860px) {

  /* Первый экран на телефоне — своя композиция: имя сразу видно,
     небольшая арка с фото рядом с обещанием, кнопка — в пределах экрана */
  .hero { padding-block: var(--space-3) var(--space-4); }
  .hero__grid {
    grid-template-columns: minmax(0, 57%) minmax(0, 1fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "title   title"
      "photo   promise"
      "lead    lead"
      "actions actions";
    column-gap: var(--space-3);
    row-gap: 0;
    align-items: center;
  }
  .hero__text { display: contents; }
  .hero__text > .eyebrow { grid-area: eyebrow; margin-bottom: var(--space-2); font-size: 11px; letter-spacing: .11em; text-wrap: balance; }
  .hero__title { grid-area: title; margin-bottom: var(--space-3); }
  .is-winter .hero__title { margin-bottom: calc(var(--space-4) + 14px); }  /* зимой — место для ветки над аркой */
  .hero__photo { grid-area: photo; width: auto; justify-self: stretch; margin-left: 10px; }
  .hero__photo::before { inset: -10px 10px 10px -10px; }
  .hero__promise { grid-area: promise; font-size: 21px; line-height: 1.3; margin: 0; align-self: center; }
  .hero__lead { grid-area: lead; margin: var(--space-4) 0 var(--space-3); }
  .hero__actions { grid-area: actions; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__daisy { width: 66px; height: 66px; left: -15px; bottom: -22px; }

  .req-groups { grid-template-columns: 1fr; gap: var(--space-5); }

  /* Панель быстрой связи: «Записаться» и три мессенджера под большим пальцем */
  html { scroll-padding-bottom: 96px; }
  .mobile-cta {
    position: fixed;
    z-index: 60;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(53, 58, 79, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px -12px rgba(30, 33, 45, .55);
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    transition: transform 450ms var(--ease-out), opacity 300ms var(--ease-out);
  }
  .mobile-cta.is-visible { opacity: 1; transform: none; }
  .mobile-cta__main {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--slate-deep);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
  }
  .mobile-cta__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    color: var(--cream);
  }
  .mobile-cta__icon svg { width: 22px; height: 22px; }
  .mobile-cta a:focus-visible { outline-color: var(--bloom); }

  .section { padding-block: var(--space-7); }
  /* «Обо мне» на том же фоне, что и первый экран, — отступ между ними меньше */
  .hero + .section { padding-top: var(--space-5); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .methods { grid-template-columns: 1fr; }
  .method, .method:nth-child(even) { padding: var(--space-3) 0; border-right: 0 !important; }
  .about__text { font-size: 17px; }
  .step { grid-template-columns: 52px 1fr; gap: var(--space-2); }
  .step__num { font-size: 36px; }
  .step__title { font-size: 24px; }
  .price { padding: var(--space-6) var(--space-3) var(--space-4); }
  .form { padding: var(--space-4) var(--space-3); }
  .messengers { flex-direction: column; }

  /* Образование на телефоне: миниатюра слева, текст справа */
  .certs { grid-template-columns: 1fr; gap: var(--space-3); }
  .cert {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: var(--space-2);
    align-items: start;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .cert__thumb { padding: 8px; }
  .cert__thumb::after { display: none; }
  .cert__title { font-size: 19px; margin-top: 2px; }
  .cert__org { font-size: 13px; }

  .lightbox__stage { padding: 0 var(--gutter); }
  .lightbox__nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; width: 44px; height: 44px; }
  .lightbox__caption { font-size: 17px; padding-inline: calc(var(--gutter) + 52px); }
  .messenger { justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .hero .reveal, .js .mask-reveal img, .js .draw-line::before { opacity: 1; transform: none; }
  .js .mask-reveal img { filter: var(--photo-filter, none); }
}
