/* ===== Токены ===== */
:root {
  --sky-top: #033d2e;
  --sky-mid: #0a805f;
  --sky-low: #1bb07f;
  --grass: #2fa12a;
  --grass-light: #6fd83a;
  --grass-deep: #1a6b14;
  --water: #07ac6a;
  --water-deep: #046841;
  --gold: #f2c14e;
  --white: #ffffff;
  --ink: #0e3e23;
  --glass: rgba(255, 255, 255, .16);
  --glass-line: rgba(255, 255, 255, .38);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
/* плавной прокруткой к разделам управляет js/main.js — встроенная плавность браузера конфликтовала с «примагничиванием» */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ===== Кнопки — то же «жидкое стекло», что и главное меню Waterline =====
   Стеклянная капсула + внутри «капля воды», как у выбранного пункта меню.
   У главной кнопки капля видна всегда, у остальных — проявляется при наведении. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 500 16px/1 var(--sans); letter-spacing: -.01em;
  color: #fff; text-shadow: 0 1px 2px rgba(4, 102, 70, .35);
  white-space: nowrap; cursor: pointer;
  /* стекло — как у меню */
  background: rgba(9, 41, 33, .18);
  -webkit-backdrop-filter: blur(10px) saturate(1.2) brightness(1.08);
          backdrop-filter: blur(10px) saturate(1.2) brightness(1.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    0 12px 32px -14px rgba(0, 90, 53, .5),
    0 2px 6px rgba(0, 90, 53, .1);
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
/* в Chrome — то же преломление «сквозь воду», что и у меню */
html.nimbus-refract .btn {
  -webkit-backdrop-filter: url(#nimbus-refract) blur(2px) saturate(1.2) brightness(1.08);
          backdrop-filter: url(#nimbus-refract) blur(2px) saturate(1.2) brightness(1.08);
}
/* капля воды внутри капсулы — один в один с каплей меню */
.btn::before {
  content: ""; position: absolute; inset: 5px; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, .38);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .95),
    inset 0 -2px 6px rgba(0, 255, 102, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    0 6px 16px -6px rgba(0, 140, 75, .45);
  opacity: 0; transform: scale(.82, .7);
  transition: opacity .35s, transform .55s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.btn--white::before,
.btn:hover::before { opacity: 1; transform: none; }
/* «мениск»: поверхность приподнимается там, где курсор */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 65%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
/* круги на воде от нажатия */
.btn-ripple {
  position: absolute; z-index: -1; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .7) 62%, rgba(255, 255, 255, 0) 72%);
  animation: btnRipple .8s ease-out forwards;
}
@keyframes btnRipple { from { transform: scale(1); opacity: 1; } to { transform: scale(34); opacity: 0; } }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) { .btn-ripple { display: none; } .btn::before { transition: none; } }

/* ===== Навигация ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* слева столько же, сколько сверху, — логотип стоит с равными отступами */
  padding: 18px var(--gutter) 18px 18px;
  color: var(--white);
  transition: background .4s, padding .4s;
}
/* при прокрутке шапка выглядит так же, как на первом экране: без полосы и рамки.
   Под ней только невидимое размытие, которое плавно сходит на нет книзу:
   небо под ним выглядит так же, а текст, уезжающий под логотип, мягко растворяется */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -36px 0; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity .4s;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.nav.is-scrolled::before { opacity: 1; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 14px;
  height: auto;
  /* рукописный Caveat — как в логотипе Dr.Baranchuk */
  font: 700 clamp(32px, 8.6vw, 46px)/1 "Caveat", var(--serif);
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(4, 102, 70, .35), 0 2px 16px rgba(5, 123, 83, .35);
}
.brand-name { white-space: nowrap; display: block; }
/* мандала у названия: крупнее, но выходит за строку меню, не раздвигая её */
.brand-mark {
  position: relative; flex-shrink: 0;
  width: 70px; aspect-ratio: 1;
  border-radius: 50%;
}
/* логотип плавно увеличивается и «приближается»:
   на компьютере — при наведении мышкой, на телефоне — по касанию (класс .is-zoomed) */
.brand-mark {
  transform-origin: 0 0; /* растёт вправо-вниз от верхнего левого угла, не уходя за край */
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s;
  z-index: 2;
}
.brand-name { transition: opacity .5s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.nav__brand.is-zoomed .brand-mark {
  transform: translate(4px, 4px) scale(2.4);
  filter: drop-shadow(0 10px 24px rgba(4, 102, 70, .35));
}
.nav__brand.is-zoomed .brand-name { opacity: 0; transform: translateX(24px); }
@media (hover: hover) and (pointer: fine) {
  .nav__brand:hover .brand-mark,
  .nav__brand:focus-visible .brand-mark {
    transform: translate(4px, 4px) scale(2.4);
    filter: drop-shadow(0 10px 24px rgba(4, 102, 70, .35));
  }
  .nav__brand:hover .brand-name,
  .nav__brand:focus-visible .brand-name {
    opacity: 0; transform: translateX(24px); /* имя мягко уступает место */
  }
}
/* золотые частицы, разлетающиеся от кольца */
.brand-sparks {
  position: absolute; left: 50%; top: 50%;
  width: 420%; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.brand-mark::before {
  content: ""; position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 222, 140, .7), rgba(255, 214, 120, 0));
  filter: blur(4px);
  animation: halo 7s ease-in-out infinite;
}
/* исходное видео логотипа (assets/logo.mp4 = «Лого Dr-Sergey Baranchuk.mp4», 1080×1080) — без изменений:
   без фильтров, только зеркально (чтобы кольцо крутилось влево). Круг вырезается рамкой вокруг видео, а не маской на самом видео —
   так кадры обновляются в любом браузере (маска и фильтр на видео в Safari могут «замораживать» его).
   Видео чуть крупнее рамки: край золотого кольца в кадре на 95% радиуса, чёрные углы остаются за кругом */
.brand-video {
  position: absolute; inset: 0; z-index: 1;
  border-radius: 50%; overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}
/* картинка услуги в том же круге, что и логотип (без отражения) */
.brand-video img { position: absolute; display: block; object-fit: cover; }
.brand-video video {
  position: absolute; left: -3%; top: -3%;
  width: 106%; height: 106%;
  object-fit: cover; display: block;
  transform: scaleX(-1); /* зеркально: в исходнике золотое кольцо крутится вправо, на сайте — влево (против часовой) */
}
/* Если браузер не запустил видео сам (энергосбережение, настройки Opera/Safari), золотое кольцо всё равно крутится:
   поверх стоит то же изображение логотипа (первый кадр видео), у которого вращается только золотое кольцо —
   с той же скоростью и в ту же сторону, что в видео. Как только видео пошло, этот слой прячется (main.js). */
.brand-ring {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/logo-poster-480.jpg") center / 106% 106% no-repeat;
  -webkit-mask: radial-gradient(closest-side, transparent 81%, #000 84%);
          mask: radial-gradient(closest-side, transparent 81%, #000 84%);
  transform: scaleX(-1);
  opacity: 0; visibility: hidden;
}
.brand-video.is-still .brand-ring {
  opacity: 1; visibility: visible;
  animation: ring-turn 10.3s linear infinite;
}
@keyframes ring-turn { from { transform: scaleX(-1) rotate(0deg); } to { transform: scaleX(-1) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-video.is-still .brand-ring { animation: none; } }
.nav__brand em { font-style: italic; }
.nav__cta { display: none !important; }

/* ===== Выбор языка: «Рус» / «Укр» =====
   Стеклянная капсула рядом с «Контактами»; выбранный язык светится золотом.
   На телефоне стоит в шапке слева от кнопки меню. */
.nav__end { display: flex; align-items: center; gap: 10px; margin-left: auto; margin-right: 10px; }
.lang {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px;
  height: 44px; padding: 4px;
  border: 1px solid rgba(255, 255, 255, .36); border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -12px rgba(2, 82, 57, .55);
}
.lang__opt {
  height: 100%; min-width: 42px; padding: 0 10px; margin: 0;
  border: 0; border-radius: 999px; background: none;
  font: 600 13px/1 var(--sans); letter-spacing: .04em;
  color: rgba(255, 255, 255, .78); cursor: pointer;
  text-shadow: 0 1px 2px rgba(2, 82, 57, .4);
  -webkit-tap-highlight-color: transparent;
  transition: color .25s, background .3s, box-shadow .3s;
}
.lang__opt:hover { color: #fff; }
.lang__opt:focus-visible { outline: 2px solid #ffd36b; outline-offset: 1px; }
.lang__opt.is-active {
  color: #ffd36b; cursor: default;
  background: radial-gradient(circle at 50% 40%, rgba(255, 214, 110, .34), rgba(255, 201, 53, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 214, 110, .75), 0 0 16px rgba(255, 200, 80, .45);
  text-shadow: 0 0 8px rgba(255, 210, 100, .7), 0 1px 2px rgba(2, 82, 57, .45);
}
/* подсказка, пока украинской версии нет */
.lang__hint {
  position: absolute; top: calc(100% + 8px); right: 0;
  padding: 7px 12px; border-radius: 12px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(7, 133, 95, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 13px/1.2 var(--sans); color: #fff;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.lang__hint.is-shown { opacity: 1; transform: none; }

.nav__burger {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--glass-line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-content: center; gap: 6px; cursor: pointer; position: relative; z-index: 60;
}
.nav__burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .35s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 96px var(--gutter) 40px;
  background: linear-gradient(170deg, rgba(15, 229, 154,.94), rgba(7, 172, 106,.97));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transition: opacity .35s;
}
.mobile-menu.is-open { opacity: 1; }
/* закрытое меню полностью убрано со страницы — иначе невидимый слой перехватывает нажатия */
.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu a {
  color: var(--white); font: italic 400 clamp(34px, 9vw, 44px)/1.15 var(--serif);
  padding: 4px 0;
}
.mobile-menu__support { margin-top: 18px; font-family: var(--sans) !important; font-style: normal !important; font-size: 18px !important; font-weight: 600 !important; color: var(--gold) !important; }

@media (min-width: 1200px) {
  .nav__cta { display: inline-flex !important; }
  .nav__burger { display: none; }
  .nav__end { gap: 8px; }
  .nav .nav__cta .nimbus-item { padding: 0 17px; }
  .lang { height: 50px; padding: 5px; }
  .lang__opt { min-width: 40px; padding: 0 8px; font-size: 14px; }
  /* шапка в три зоны: логотип | меню | «Контакты».
     Логотип стоит ровно посередине между левым краем и меню, «Контакты» — между меню и правым краем;
     меню точно по центру экрана, на любой ширине всё симметрично */
  .nav {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 0; padding-left: 0; padding-right: 0;
  }
  .nav__brand { justify-self: center; }
  /* логотип крупный и заметный — растёт вместе с экраном */
  .brand-mark { width: clamp(84px, 6.4vw, 112px); }
  .nav__liquid { grid-column: 2; }
  /* «Контакты» так же посередине между меню и правым краем — шапка симметрична */
  .nav__end { grid-column: 3; justify-self: center; margin: 0; }
}

/* ===== Первый экран ===== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

/* ===== Живое небо — общий фон всех разделов =====
   Закреплено на экране: при прокрутке разделы плывут поверх одного и того же неба,
   поэтому цвет, облака и искры одинаковые на всём сайте и стыков между разделами нет. */
body { background: var(--sky-mid); }
main { position: relative; z-index: 2; }
.sky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 0;
  height: 100vh; height: 100lvh; /* на телефоне не прыгает, когда прячется адресная строка */
  overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 100%);
}
.sky::after { /* мягкий свет сверху справа, как было на первом экране */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 75% 30%, rgba(255,255,255,.18), transparent 60%);
}

/* Изумрудный фон (2026-12-02): один неподвижный насыщенный градиент с мягкими переходами тонов —
   глубокий изумруд сверху, светлее к низу, с бирюзовой и светлой подсветкой. Без анимации: так быстрее на телефоне. */
.sky {
  background:
    radial-gradient(70% 55% at 82% 18%, rgba(110, 255, 205, .20), transparent 62%),
    radial-gradient(75% 60% at 8% 88%, rgba(0, 200, 170, .26), transparent 66%),
    radial-gradient(60% 45% at 30% 35%, rgba(4, 120, 90, .35), transparent 70%),
    linear-gradient(172deg, #033d2e 0%, #06604a 34%, #0a805f 64%, #12a074 88%, #1bb07f 100%);
}
.cloud {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(closest-side at 30% 55%, rgba(255,255,255,.95), rgba(255,255,255,0)),
    radial-gradient(closest-side at 60% 45%, rgba(255,255,255,.9), rgba(255,255,255,0)),
    radial-gradient(closest-side at 80% 60%, rgba(255,255,255,.8), rgba(255,255,255,0));
  filter: blur(14px);
  opacity: .75;
  animation: drift linear infinite;
  will-change: transform;
}
.cloud--1 { width: 420px; height: 140px; top: 18%; left: -10%; animation-duration: 120s; }
.cloud--2 { width: 300px; height: 100px; top: 42%; left: 40%; animation-duration: 160s; animation-delay: -60s; opacity: .55; }
.cloud--3 { width: 520px; height: 170px; top: 70%; left: 10%; animation-duration: 140s; animation-delay: -30s; opacity: .7; }
.cloud--4 { width: 260px; height: 90px; top: 8%; left: 65%; animation-duration: 180s; animation-delay: -100s; opacity: .45; }
@keyframes drift {
  from { transform: translateX(-40vw); }
  to   { transform: translateX(120vw); }
}

/* Искры света */
.sparkles {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column-reverse; justify-content: center; align-items: center;
  gap: 8px;
  padding: 80px var(--gutter) 48px;
  pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }

.hero__text { text-align: center; max-width: 640px; }
.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: .9;
}
@media (max-width: 420px) {
  .hero .hero__greeting { font-size: clamp(21px, 6.3vw, 27px); white-space: nowrap; margin-bottom: 12px; }
  .hero .hero__body { font-size: 15px; line-height: 1.55; }
  .hero .hero__final { font-size: 22px; margin-bottom: 20px; }
  /* две кнопки в один ряд */
  .hero .hero__actions { gap: 10px; flex-wrap: nowrap; }
  .hero .hero__actions .btn { flex: 1 1 0; max-width: none; min-width: 0; padding: 0 12px; min-height: 50px; font-size: 15px; }
}
.hero__title {
  margin: 0 0 18px;
  font: 500 clamp(30px, 8.4vw, 64px)/1.08 var(--sans);
  letter-spacing: -.03em;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(5, 123, 83, .25);
}
.hero__title .serif {
  font-size: 1.14em; letter-spacing: -.01em;
}
/* выделенные строки (приветствие и последний абзац) — одним рукописным шрифтом, как в логотипе */
.hero__accent {
  font-family: "Caveat", var(--serif); font-weight: 700;
  color: #ffc935; /* насыщенное золото */
  /* чёткая тёмная тень вокруг букв — читается на любом оттенке неба */
  text-shadow:
    0 1px 1px rgba(4, 102, 70, .55),
    0 2px 6px rgba(4, 102, 70, .45),
    0 0 20px rgba(4, 102, 70, .35);
}
.hero__greeting {
  margin: 0 0 16px;
  font-size: clamp(30px, 8vw, 46px); line-height: 1.05;
}
.hero__final {
  margin: 4px auto 26px; max-width: 30em;
  font-size: clamp(22px, 5.6vw, 30px); line-height: 1.2;
  text-wrap: pretty;
}
/* «Меня зовут Сергей» — подчёркнуто золотой линией, имя выделено золотом */
.hero__intro {
  text-decoration: underline;
  text-decoration-color: rgba(255, 201, 53, .85);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  text-decoration-skip-ink: none;
}
.hero__name { font-weight: 700; color: #ffc935; }
.hero__body {
  max-width: 36em; margin: 0 auto;
  font: 400 clamp(15px, 4vw, 17.5px)/1.6 var(--sans);
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(5, 123, 83, .35);
}
.hero__body p { margin: 0 0 12px; opacity: .95; }
.hero__body .hero__first {
  font-size: 1.12em; font-weight: 500; opacity: 1;
}
.hero__lead {
  margin: 0 auto 28px; max-width: 34em;
  font: 400 clamp(15.5px, 4.1vw, 19px)/1.6 var(--sans);
  opacity: .96;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(5, 123, 83, .35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__actions .btn { flex: 1 1 210px; max-width: 280px; }

/* Портрет: вырезанное фото на небе с тёплым свечением за спиной */
.portrait {
  position: absolute; z-index: 1;
  left: 50%; top: 76px;
  height: min(46svh, 430px);
  max-width: 100vw;
  aspect-ratio: 885 / 1100;
  transform: translateX(-50%);
  pointer-events: none;
}
.portrait__img {
  position: relative; display: block;
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(1.06) saturate(1.06); /* тени уже подняты в самом фото */
  /* низ фото плавно растворяется в небе */
  -webkit-mask: linear-gradient(180deg, #000 84%, transparent 100%);
          mask: linear-gradient(180deg, #000 84%, transparent 100%);
}
.portrait__glow {
  position: absolute; left: 50%; top: -14%;
  width: 104%; aspect-ratio: 1;
  margin-left: -52%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 250, 232, .95) 0%,
    rgba(255, 228, 150, .55) 38%,
    rgba(255, 214, 120, .18) 64%,
    rgba(255, 214, 120, 0) 100%);
  filter: blur(6px);
  animation: halo 8s ease-in-out infinite;
}
.portrait__aura {
  position: absolute; left: 50%; top: -6%;
  width: 84%; aspect-ratio: 1;
  margin-left: -42%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,230,160,0) 18%, rgba(255,255,255,0) 50%, rgba(255,240,200,.6) 62%, rgba(255,255,255,0) 75%);
  -webkit-mask: radial-gradient(closest-side, transparent 92%, #000 95%, #000 97.5%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 92%, #000 95%, #000 97.5%, transparent 100%);
  filter: blur(1.5px);
  animation: spin 40s linear infinite reverse; /* против часовой, как кольцо мандалы */
}

/* на телефоне: фото сверху, под ним весь текст (страница может прокручиваться) */
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; }
  .portrait {
    position: relative; order: 0; flex-shrink: 0;
    left: auto; top: auto; transform: none;
    margin: 116px auto 0;
  }
  .hero__inner {
    order: 1; min-height: 0;
    justify-content: flex-start;
    padding: 0 var(--gutter) 44px;
    margin-top: -18px; /* текст слегка заходит на растворяющийся низ фото */
  }
}
@keyframes breath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes halo { 0%,100% { opacity: .75; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Подсказка "листайте" */
.hero__scroll {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 22px;
  display: none; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.9);
}
.hero__scroll-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--white);
  position: relative;
}
.hero__scroll-dot::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 7px; height: 7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { margin-top: 0; } 50% { margin-top: 3px; } }

/* Компьютер: текст слева, портрет справа, стоит на нижнем крае экрана */
@media (min-width: 900px) {
  .portrait {
    left: auto; top: auto; bottom: 0; transform: none;
    right: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
    height: min(84svh, 820px);
  }
  .portrait__img {
    -webkit-mask: linear-gradient(180deg, #000 95%, transparent 100%);
            mask: linear-gradient(180deg, #000 95%, transparent 100%);
  }
  .hero__inner {
    flex-direction: row; justify-content: flex-start; align-items: center;
    gap: 4vw;
    padding: 96px var(--gutter) 64px;
    max-width: 1240px; margin: 0 auto;
  }
  .hero__text { text-align: left; flex: 1 1 0; max-width: 600px; }
  .hero__title { font-size: clamp(40px, 4.2vw, 68px); }
  .hero__greeting { font-size: clamp(32px, 2.8vw, 42px); white-space: nowrap; }
  .hero__body { margin-left: 0; font-size: clamp(16px, 1.15vw, 17.5px); }
  .hero__final { margin-left: 0; font-size: clamp(24px, 2vw, 30px); }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__scroll { display: flex; }
}

/* ===== Следующая секция (заглушка) ===== */
.next {
  background: linear-gradient(180deg, var(--sky-low) 0%, #e9fff2 25%, var(--white) 70%);
  padding: 80px var(--gutter) 120px;
}
.next__inner { max-width: 720px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.6; }
.section-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--water); margin: 0 0 10px; }
.section-title { font: 500 clamp(34px, 7vw, 56px)/1.05 var(--sans); letter-spacing: -.03em; margin: 0 0 18px; color: var(--water-deep); }
.section-title .serif { font-size: 1.1em; color: var(--grass); }

/* ===== Обо мне ===== */
/* Раздел — один неподвижный экран на том же живом небе.
   Фото стоит на месте, а длинный текст листается внутри своей колонки:
   строки выплывают из мягкой размытой линии сверху и растворяются внизу. */
.about {
  position: relative;
  height: 100svh; min-height: 560px;
  display: flex; overflow: hidden;
  color: var(--white);
}
.about__inner {
  flex: 1; min-height: 0; width: 100%;
  display: flex; flex-direction: column;
  max-width: 1240px; margin: 0 auto;
}
.about__photo {
  position: relative; flex-shrink: 0;
  /* на телефоне — того же размера, что и фото на главной (у компьютера своя высота ниже) */
  height: min(46svh, 430px); aspect-ratio: 880 / 1094;
  margin: 84px auto 0;
}
.about__img {
  position: relative; display: block;
  width: 100%; height: 100%; object-fit: contain;
  -webkit-mask: linear-gradient(180deg, #000 84%, transparent 100%);
          mask: linear-gradient(180deg, #000 84%, transparent 100%);
}
.about__text {
  position: relative; z-index: 1;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  margin: -14px var(--gutter) 16px; padding: 18px 18px 0;
  text-align: center;
  /* стеклянная подложка, как у меню: небо под ней размыто и чуть затемнено — буквы читаются чётко */
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(8, 88, 63, .44), rgba(6, 74, 53, .32));
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
          backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    0 18px 40px -18px rgba(0, 80, 53, .55);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
/* переходы к семи частям: стоят на месте, текст под ними листается.
   Стекло — как у меню; выбранная кнопка подсвечена такой же «каплей», как пункт меню */
.about__toc {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 0 -18px;
}
/* на телефоне семь переходов — одна строка, листается пальцем вбок, края мягко растворяются;
   золотая кнопка документов стоит справа от строки и видна всегда */
.about__toc-row {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; gap: 6px;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 2px 14px 4px 18px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.about__toc-row::-webkit-scrollbar { display: none; }
.about__chip { flex-shrink: 0; }
.about__chip {
  position: relative;
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 13px; border-radius: 999px;
  font: 500 13.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap;
  color: rgba(241, 255, 249, .85); text-decoration: none;
  text-shadow: 0 1px 2px rgba(2, 82, 57, .35);
  background: rgba(9, 41, 33, .16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: color .25s, background .35s, box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
.about__chip:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.about__chip.is-active {
  color: #fff;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255,255,255,.6), rgba(255,255,255,0) 55%), rgba(255,255,255,.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -2px 6px rgba(0, 255, 102,.22),
              inset 0 0 0 1px rgba(255,255,255,.55), 0 6px 16px -6px rgba(0, 140, 75,.45);
}
.about__chip:focus-visible { outline: 2px solid #FFD36B; outline-offset: 2px; }
/* «Дипломы и сертификаты» — отдельная золотая кнопка в конце ряда переходов.
   Ведёт на свою страницу, поэтому выглядит иначе, чем переходы по тексту.
   На телефоне стоит справа от листающегося ряда и видна всегда */
.about__toc-docs {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px 0 10px; border-radius: 999px;
  font: 600 13.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap;
  color: #ffe39a; text-decoration: none;
  text-shadow: 0 1px 2px rgba(2, 82, 57, .45);
  background: linear-gradient(135deg, rgba(255, 201, 53, .34), rgba(255, 170, 40, .16)), rgba(10, 82, 61, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255, 240, 200, .6), inset 0 0 0 1px rgba(255, 201, 53, .7),
              0 6px 16px -6px rgba(255, 170, 40, .45);
  transition: color .25s, box-shadow .35s, transform .35s;
  -webkit-tap-highlight-color: transparent;
}
.about__toc-docs svg { width: 17px; height: 17px; flex-shrink: 0; }
.about__toc-docs-full { display: none; }
.about__toc-docs:hover { color: #fff; box-shadow: inset 0 1px 1px rgba(255, 240, 200, .8), inset 0 0 0 1px #ffc935, 0 8px 20px -6px rgba(255, 170, 40, .65); }
.about__toc-docs:focus-visible { outline: 2px solid #FFD36B; outline-offset: 2px; }
/* заголовки частей — золотым рукописным шрифтом и с золотой линией «от руки» снизу.
   Рукописное золото теперь только у заголовков и подзаголовков — их не спутать с цитатами */
.about__part-title {
  display: inline-block; max-width: 100%;
  margin: 0 0 18px; padding-bottom: 10px;
  font-size: clamp(26px, 7vw, 40px); line-height: 1.1;
  text-wrap: balance;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 50 2, 120 9, 198 4' stroke='%23ffc935' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat;
}
.about__part { position: relative; }
.about__part + .about__part { margin-top: 44px; }
/* ключевая мысль внутри текста — как цитата: изящный наклонный шрифт с засечками,
   светлое золото, по центру, с тонкими золотыми чёрточками сверху и снизу */
.about__body .about__accent,
.about__text .about__final {
  margin: 26px auto;
  max-width: 30em;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 5.6vw, 27px); line-height: 1.3;
  color: #ffe39a;
  text-align: center; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(3, 66, 47, .5), 0 0 16px rgba(4, 102, 70, .3);
}
.about__body .about__accent::before, .about__body .about__accent::after,
.about__text .about__final::before, .about__text .about__final::after {
  content: ""; display: block;
  width: 38px; height: 1.5px; margin: 10px auto;
  background: rgba(255, 201, 53, .75); border-radius: 2px;
}
/* подзаголовки внутри части — тем же рукописным золотом, но мельче заголовка части */
.about__body .about__sub {
  margin: 30px 0 12px;
  font-size: clamp(22px, 5.6vw, 27px); line-height: 1.15;
  text-wrap: balance;
}
/* подпись в конце — справа, рукописным золотом, как от руки */
.about__body .about__sign {
  margin: 30px 0 6px;
  font-size: clamp(22px, 5.6vw, 27px); line-height: 1.25;
  text-align: right;
}
.about__sign-wish { display: block; margin-top: 8px; font-size: .85em; opacity: .9; }
/* выделение внутри абзаца — плотнее и с тёплым золотистым оттенком */
.about__body strong { font-weight: 600; color: #ffe39a; }
/* столбик вопросов — курсивом, с тонкой золотой чертой слева */
.about__questions {
  padding-left: 14px;
  border-left: 2px solid rgba(255, 201, 53, .6);
  line-height: 1.8;
}
/* «Листайте ниже»: стеклянная пилюля внизу колонки с покачивающейся золотой стрелкой.
   Нажатие перелистывает текст; когда дочитали до конца — пилюля плавно исчезает */
.about__more {
  position: absolute; left: 50%; bottom: 16px; z-index: 3;
  /* лёгкая и небольшая: прозрачное светлое стекло, тонкий текст, маленькая стрелка */
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px 0 12px; border: 0; border-radius: 999px;
  font: 400 11.5px/1 var(--sans); letter-spacing: .02em;
  color: rgba(255, 255, 255, .82); cursor: pointer;
  text-shadow: 0 1px 2px rgba(2, 82, 57, .35);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: translateX(-50%);
  transition: opacity .45s, transform .45s, background .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.about__more:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.about__more:focus-visible { outline: 2px solid #FFD36B; outline-offset: 2px; }
.about__more.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 8px); }
.about__more-arrow {
  width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid #ffd76a; border-bottom: 1.5px solid #ffd76a;
  transform: rotate(45deg);
  animation: about-nudge 1.8s ease-in-out infinite;
}
@keyframes about-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
/* полоска прочитанного справа внутри колонки */
.about__progress {
  position: absolute; right: 8px; top: 70px; bottom: 26px; z-index: 2; /* на телефоне — ниже строки кнопок */
  width: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.about__progress span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(180deg, #ffe39a, #ffc935);
  transform: scaleY(0); transform-origin: top;
  transition: transform .15s linear;
}
/* временная пометка там, где текст ещё не утверждён */
.about__todo { font-style: italic; opacity: .75; }
.about__docs { margin-top: 14px; font: 500 15px/1.6 var(--sans); }
.about__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.about__liquid { --n-tint: rgba(6, 74, 53, .26); padding: 5px; }
.about__liquid .nimbus-item { height: 44px; padding: 0 20px; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(2, 82, 57, .4); }
.about__scroll {
  position: relative; /* от него считаются позиции частей при перелистывании */
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 56px;
  /* размытые края: текст появляется из линии сверху и тает внизу */
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 30px, #000 calc(100% - 60px), transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 30px, #000 calc(100% - 60px), transparent 100%);
  scrollbar-width: none;
  outline: none;
}
.about__scroll::-webkit-scrollbar { display: none; }
.about__body {
  max-width: 36em; margin: 0 auto;
  font: 500 clamp(15px, 4vw, 17.5px)/1.65 var(--sans);
  color: #fff;
  text-align: left; /* длинный текст удобнее читать ровным левым краем */
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgba(3, 66, 47, .45);
}
.about__body p { margin: 0 0 14px; }
.about__name { font-size: 1.12em; font-weight: 600; }
.about__question { font-weight: 600; font-style: italic; }

/* компьютер: фото слева стоит на нижнем крае экрана, текст справа листается */
@media (min-width: 900px) {
  .about__inner {
    flex-direction: row; align-items: stretch;
    gap: 4vw; padding: 0 var(--gutter);
  }
  .about__photo {
    align-self: flex-end;
    height: min(84svh, 820px); margin: 0;
  }
  .about__img {
    -webkit-mask: linear-gradient(180deg, #000 95%, transparent 100%);
            mask: linear-gradient(180deg, #000 95%, transparent 100%);
  }
  .about__text {
    flex: 1 1 0; max-width: 640px;
    margin: clamp(104px, 13svh, 130px) 0 clamp(24px, 4svh, 44px);
    padding: 30px 38px 0;
    border-radius: 30px;
    text-align: left;
  }
  .about__scroll {
    padding: 22px 0 90px;
    -webkit-mask: linear-gradient(180deg, transparent 0, #000 36px, #000 calc(100% - 100px), transparent 100%);
            mask: linear-gradient(180deg, transparent 0, #000 36px, #000 calc(100% - 100px), transparent 100%);
  }
  .about__body { margin: 0; font-size: clamp(16px, 1.15vw, 17.5px); }
  .about__part-title { font-size: clamp(30px, 2.5vw, 38px); }
  /* на компьютере переходы стоят столбиком слева от колонки, в просвете рядом с фото,
     и написаны рукописным шрифтом — без стеклянных «таблеток». Колонке остаётся больше места для текста */
  .about__toc {
    position: absolute; right: calc(100% + 20px); top: 34px; z-index: 2;
    flex-direction: column; align-items: flex-end; gap: 0;
    width: max-content; margin: 0;
  }
  .about__toc-row {
    flex-direction: column; align-items: flex-end; gap: 4px;
    overflow: visible; padding: 0; -webkit-mask: none; mask: none;
  }
  .about__chip {
    height: auto; padding: 2px 0; border-radius: 0;
    background: none; box-shadow: none;
    font: 700 clamp(22px, 1.75vw, 27px)/1.15 "Caveat", var(--serif); letter-spacing: .01em;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 1px rgba(4, 102, 70, .55), 0 2px 6px rgba(4, 102, 70, .45), 0 0 18px rgba(4, 102, 70, .35);
    transform-origin: 100% 50%;
    transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), color .3s;
  }
  .about__chip:hover { background: none; color: #fff; transform: translateX(6px); }
  /* выбранный пункт: золотой, чуть крупнее и заезжает на край колонки с текстом */
  .about__chip.is-active {
    background: none; box-shadow: none;
    color: #ffc935;
    transform: translateX(34px) scale(1.2);
  }
  .about__progress { top: 30px; right: 12px; }
  /* золотая кнопка документов: под столбиком переходов, отделена небольшим отступом */
  .about__toc-docs {
    margin-top: 16px; height: auto; padding: 8px 16px 9px 14px; gap: 10px;
    border-radius: 18px; white-space: normal; text-align: right;
    font: 700 clamp(21px, 1.6vw, 25px)/1.05 "Caveat", var(--serif); letter-spacing: .01em;
    transform-origin: 100% 50%;
    transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), color .3s, box-shadow .35s;
  }
  .about__toc-docs svg { width: 24px; height: 24px; }
  .about__toc-docs:hover { transform: translateX(6px); }
  .about__toc-docs-short { display: none; }
  .about__toc-docs-full { display: inline; }
}

/* при прокрутке страница мягко «встаёт» ровно на раздел, чтобы он был целым экраном */
html { scroll-snap-type: y proximity; }
.hero, .about { scroll-snap-align: start; }
/* телефон и планшет: без «примагничивания» — разделы там высокие и листаются пальцем,
   а Safari на iPhone после перехода по меню возвращал страницу к прежнему разделу (к главной) */
@media (max-width: 1199px) { html { scroll-snap-type: none !important; } }

/* ===== Меньше движения ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* на ноутбуках имя в шапке чуть компактнее, чтобы рядом поместилось всё меню */
@media (min-width: 1400px) and (max-width: 1799px) {
  .nav__brand { font-size: 38px; }
}
/* небольшие ноутбуки (1200–1399): шапка компактнее, чтобы меню, «Контакты» и выбор языка поместились */
@media (min-width: 1200px) and (max-width: 1399px) {
  .nav .nav__cta .nimbus-item { padding: 0 13px; font-size: 14px; }
  .nav .nav__liquid .nimbus-item { padding: 0 6px; }
  .lang__opt { min-width: 36px; padding: 0 7px; font-size: 13px; }
  .nav__brand { font-size: 30px; gap: 10px; }
  .brand-mark { width: 84px; }
}

/* ===== «‹ Обо мне» — возврат на предыдущую страницу =====
   Общая для отдельных страниц сайта: просто стрелка и текст, без стеклянной подложки */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; height: 34px;
  font: 500 15px/1 var(--sans); color: #fff; text-decoration: none;
  text-shadow: 0 1px 2px rgba(2, 82, 57, .5), 0 0 12px rgba(2, 82, 57, .3);
  transition: color .25s;
}
.back-link svg { width: 18px; height: 18px; transition: transform .3s; }
.back-link:hover { color: #ffe39a; }
.back-link:hover svg { transform: translateX(-3px); }
.back-link:focus-visible { outline: 2px solid #FFD36B; outline-offset: 3px; border-radius: 6px; }

/* ===== Нижний колонтитул (на всех страницах): слева правовые ссылки, справа © год ===== */
.site-footer {
  position: relative; z-index: 2; scroll-snap-align: end; /* до самого низа можно докрутить — страница не «отпрыгивает» к последнему разделу */
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 214, 110, .35);
  background: linear-gradient(180deg, rgba(6, 80, 61, .35), rgba(5, 65, 51, .55));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .85); font: 400 13.5px/1.4 var(--sans);
}
.site-footer__inner { max-width: 1320px; margin: 0 auto; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }

/* подписка */
.subscribe { flex: 1 1 340px; max-width: 520px; margin: 0; }
.subscribe__label { display: block; margin-bottom: 8px; font: 700 21px/1.1 "Caveat", var(--serif); color: #ffc935; }
.subscribe__row { display: flex; gap: 8px; }
.subscribe__input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font: 400 14px/1 var(--sans);
  transition: border-color .2s, background .2s;
}
.subscribe__input::placeholder { color: rgba(255, 255, 255, .6); }
.subscribe__input:focus { outline: none; border-color: #ffd36b; background: rgba(255, 255, 255, .16); }
.subscribe__input.is-error { border-color: #ff9a8a; }
.subscribe__btn {
  flex-shrink: 0; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ffd760, #f2b631); color: #3a2600; font: 600 14px/1 var(--sans);
  box-shadow: 0 8px 18px -10px rgba(255, 170, 30, .9); transition: transform .2s, box-shadow .2s;
}
.subscribe__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(255, 170, 30, 1); }
.subscribe__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.subscribe__msg { min-height: 1.2em; margin: 6px 0 0 4px; font-size: 13px; color: #ffe39a; }
.subscribe__msg.is-error { color: #ffb4a8; }

/* соцсети и партнёры */
.site-footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.social { display: flex; gap: 10px; }
.social__link {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 214, 110, .5); background: rgba(255, 255, 255, .08); color: #ffe39a;
  transition: transform .25s, background .25s, box-shadow .25s, color .25s;
}
.social__link svg { width: 52%; height: 52%; }
.social__link:hover { transform: translateY(-2px); background: rgba(255, 201, 53, .2); color: #fff3c9; box-shadow: 0 0 16px rgba(255, 205, 80, .45); }
.social__link:focus-visible { outline: 2px solid #ffd36b; outline-offset: 3px; }
.social__link.is-pending { cursor: default; }
.partners { position: relative; }
.partners__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; margin: 0;
  border: 1px solid rgba(255, 214, 110, .55); border-radius: 999px; background: rgba(255, 201, 53, .1);
  color: #ffe39a; font: 600 13.5px/1 var(--sans); cursor: pointer; transition: background .2s;
}
.partners__btn svg { width: 18px; height: 18px; }
.partners__btn:hover, .partners__btn[aria-expanded="true"] { background: rgba(255, 201, 53, .24); }
.partners__btn:focus-visible { outline: 2px solid #ffd36b; outline-offset: 3px; }
.partners__panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5; width: min(320px, 80vw);
  padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255, 214, 110, .45);
  background: linear-gradient(165deg, rgba(8, 94, 72, .92), rgba(8, 94, 72, .82));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px -18px rgba(1, 41, 34, .8);
  animation: partners-in .25s ease;
}
.partners__panel[hidden] { display: none; }
@keyframes partners-in { from { opacity: 0; transform: translateY(6px); } }
.partners__empty { margin: 0; font: italic 400 14px/1.5 var(--sans); color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) { .partners__panel { right: auto; left: 0; } }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__links a { color: rgba(255, 255, 255, .88); text-decoration: none; border-bottom: 1px solid rgba(255, 214, 110, .35); transition: color .2s, border-color .2s; }
.site-footer__links a:hover { color: #ffe39a; border-color: #ffd36b; }
.site-footer__links a:focus-visible { outline: 2px solid #ffd36b; outline-offset: 3px; border-radius: 2px; }
.site-footer__copy { margin: 0; color: rgba(255, 255, 255, .78); }
@media (max-width: 640px) { .site-footer__inner { flex-direction: column; align-items: flex-start; } }

/* ===== Страница «Правовая информация» ===== */
.legal-page { position: relative; z-index: 1; min-height: 100svh; padding: 104px var(--gutter) 56px; }
@media (min-width: 900px) { .legal-page { padding-top: clamp(132px, calc(6.4vw + 50px), 168px); } }
.legal {
  max-width: 860px; margin: 0 auto; padding: clamp(22px, 3vw, 40px) clamp(20px, 3.4vw, 48px);
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(165deg, rgba(7, 133, 95, .42), rgba(7, 133, 95, .22));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; font: 400 16px/1.7 var(--sans); text-shadow: 0 1px 8px rgba(5, 113, 83, .25);
}
.legal .back-link { margin-bottom: 10px; }
.legal__title { margin: 4px 0 6px; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.05; }
.legal__date { margin: 0 0 18px; font-size: 13px; color: rgba(255, 226, 154, .9); letter-spacing: .02em; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.legal__toc a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 214, 110, .45); background: rgba(255, 201, 53, .1);
  color: #ffe39a; font-size: 13px; text-decoration: none; transition: background .2s;
}
.legal__toc a:hover { background: rgba(255, 201, 53, .22); }
.legal section { scroll-margin-top: 130px; padding-top: 6px; }
.legal h2 { margin: 26px 0 10px; font: 700 clamp(26px, 2.6vw, 32px)/1.1 "Caveat", var(--serif); color: #ffc935; }
.legal h3 { margin: 18px 0 6px; font: 600 16px/1.4 var(--sans); color: #ffe39a; }
.legal p { margin: 0 0 .8em; }
.legal ul { margin: 0 0 .8em; padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal b { font-weight: 600; color: #fff6dc; }
.legal .todo { padding: 1px 8px; border-radius: 6px; background: rgba(255, 201, 53, .2); border: 1px dashed rgba(255, 214, 110, .7); color: #ffe39a; }
.legal a { color: #ffe39a; }

.footer-visible .svcp__more, .footer-visible .about__more { opacity: 0 !important; pointer-events: none; transition: opacity .3s; }

/* подписи под двумя значками TikTok — чтобы было видно, какой о чём (на телефоне подсказок при наведении нет) */
.social__link { position: relative; }
.social__cap {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  font: 500 10.5px/1 var(--sans); color: rgba(255, 226, 154, .9); white-space: nowrap; pointer-events: none;
}
.site-footer__social { padding-bottom: 14px; }
@media (max-width: 640px) { .site-footer__social { row-gap: 26px; } }

/* значки соцсетей — в фирменных цветах самих соцсетей */
.social { gap: 12px; }
.social__link { width: 40px; height: 40px; border: 0; border-radius: 0; background: none; color: inherit; filter: drop-shadow(0 6px 10px rgba(1, 41, 34, .35)); }
.social__link svg { width: 100%; height: 100%; }
.social__link:hover { background: none; box-shadow: none; transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 8px 14px rgba(1, 41, 34, .45)) drop-shadow(0 0 10px rgba(255, 255, 255, .25)); }
.social { gap: 18px; } /* место под подписями «духовность» и «массаж» */

/* окошко «Сайты-партнёры» в колонтитуле: крупные картинки сайтов, каждая — ссылка.
   На компьютере открывается при наведении, на телефоне — первым нажатием */
.partners__panel.has-sites { width: min(600px, calc(100vw - 2 * var(--gutter))); max-height: min(70svh, 560px); overflow-y: auto; padding: 14px; scrollbar-width: thin; }
.partners__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* «мостик» к кнопке, чтобы окно не закрывалось по дороге */
.partners__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.partners__link {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07);
  color: #fff; text-decoration: none; transition: border-color .25s, box-shadow .25s;
}
.partners__link img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .5s ease; }
.partners__link span { padding: 8px 12px 10px; font: 600 14px/1.3 var(--sans); }
.partners__link:hover { border-color: rgba(255, 214, 110, .6); box-shadow: 0 10px 24px -14px rgba(255, 190, 60, .8); }
.partners__link:hover img { transform: scale(1.03); }
.partners__link:focus-visible { outline: 2px solid #ffd36b; outline-offset: 2px; }
@media (max-width: 640px) { .partners__list { grid-template-columns: minmax(0, 1fr); } }

/* колонтитул без подписки (она на странице «Контакты»): соцсети и «Сайты-партнёры» по центру */
.site-footer__top { justify-content: center; }
.subscribe__btn[disabled] { opacity: .7; cursor: wait; }

/* выбор языка — компактная строка «Рус / Укр» без капсулы, чтобы не спорил с меню */
.lang, .nav .lang { height: auto; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.lang .lang__opt { height: auto; min-width: 0; padding: 4px 3px; font: 600 12.5px/1 var(--sans); letter-spacing: .03em; color: rgba(255, 255, 255, .72); background: none; box-shadow: none; border-radius: 4px; }
.lang .lang__opt:hover { color: #fff; }
.lang .lang__opt.is-active { color: #ffd36b; background: none; box-shadow: none; text-shadow: 0 0 8px rgba(255, 210, 100, .55), 0 1px 2px rgba(2, 82, 57, .45); }
.lang__sep { padding: 0 1px; font: 400 12.5px/1 var(--sans); color: rgba(255, 255, 255, .45); text-shadow: 0 1px 2px rgba(2, 82, 57, .4); }
@media (max-width: 1199px) { .nav__end { gap: 12px; } }

/* ===== Телефон и планшет (до 1199px): логотип слева, справа — три ровные строки разделов,
   в третьей строке «Рус / Укр». Шапка закреплена, кнопки меню нет.
   На компьютере (от 1200px) шапка прежняя: «жидкое» меню, «Контакты» и «Рус / Укр» ===== */
.mnav { display: none; }
@media (max-width: 1199px) {
  .nav {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px;
    padding-top: 10px; padding-bottom: 10px; padding-right: 12px;
  }
  .nav__burger, .mobile-menu, .nav__end, .nav__liquid { display: none !important; }
  .brand-mark { width: 74px; } /* логотип крупнее, буквы меню мельче — чтобы логотип не «придавливали» */
  /* четыре столбца по ширине самого длинного слова в столбце — края строк совпадают */
  .mnav {
    display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 5px 4px;
    max-width: 330px; justify-self: end; width: 100%;
  }
  .mnav__link {
    display: grid; place-items: center; min-width: 0; padding: 6px 6px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .26); background: rgba(3, 61, 46, .45);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #fff; font: 600 10.5px/1 var(--sans); white-space: nowrap; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .25s, border-color .25s, color .25s;
  }
  .mnav__link.is-on {
    border-color: rgba(255, 220, 130, .95); color: #3a2600;
    background: linear-gradient(180deg, #ffd760, #f2b631);
    box-shadow: 0 6px 16px -8px rgba(255, 180, 40, .9);
  }
  .mnav__link:focus-visible { outline: 2px solid #ffd36b; outline-offset: 2px; }
  .mnav__lang { grid-column: span 2; justify-self: end; margin: 0; padding: 0 4px; }
  .mnav__lang .lang__opt { padding: 4px 4px; font-size: 12px; }
  /* если шапка выше прежней — разделы опускаются на разницу (высоту считает js/main.js) */
  main > section, .page-svc main { border-top: var(--mnav-h, 0px) solid transparent; }
  /* граница между разделами главной: тонкая золотая линия, тающая к краям, с мягко светящейся точкой посередине */
  main > section + section { position: relative; }
  main > section + section::before {
    content: ""; position: absolute; z-index: 1; left: 50%; top: calc(-1 * var(--mnav-h, 0px));
    width: min(80%, 340px); height: 16px; transform: translate(-50%, -50%); pointer-events: none;
    background:
      radial-gradient(circle, #ffe7a6 0 2.5px, rgba(255, 214, 110, .5) 3.5px, rgba(255, 214, 110, 0) 8px),
      linear-gradient(90deg, rgba(255, 214, 110, 0), rgba(255, 214, 110, .55) 32%, rgba(255, 214, 110, .55) 68%, rgba(255, 214, 110, 0)) center / 100% 1px no-repeat;
  }
  /* «Обо мне» обрезает всё, что выходит за его края, — там линия стоит чуть внутри раздела, у самого верха */
  #about::before { top: 0; transform: translate(-50%, 0); z-index: 3; }
}
/* узкие телефоны (до 374px): кнопки чуть плотнее, чтобы «Медитации» и «Медитації» помещались */
@media (max-width: 374px) {
  .nav { column-gap: 8px; padding-right: 8px; }
  .brand-mark { width: 62px; }
  .mnav { gap: 5px 3px; }
  .mnav__link { padding: 6px 4px; font-size: 10px; }
}

/* окно выбора языка при первом заходе (телефон и компьютер) */
.langpick {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center; padding: 24px var(--gutter);
  background: rgba(2, 38, 28, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: langpick-in .35s ease;
}
.langpick__card {
  width: min(380px, 100%); padding: 26px 22px 22px; border-radius: 26px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .26);
  background: linear-gradient(165deg, rgba(7, 133, 95, .92), rgba(5, 100, 72, .92));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); color: #fff;
}
.langpick__title { margin: 0 0 18px; display: flex; flex-direction: column; gap: 4px; font: 700 26px/1.15 "Caveat", var(--serif); color: #ffc935; }
.langpick__btns { display: flex; flex-direction: column; gap: 10px; }
.langpick__btn {
  height: 50px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 220, 130, .9); background: linear-gradient(180deg, #ffd760, #f2b631);
  color: #3a2600; font: 600 17px/1 var(--sans);
}
.langpick__btn + .langpick__btn { background: rgba(255, 201, 53, .12); color: #ffe39a; }
.langpick__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes langpick-in { from { opacity: 0; } }

/* пока открыто меню на телефоне, маленький плеер не закрывает его низ (выбор языка) */
html.menu-open .miniplayer { visibility: hidden; }
