/* ===== Мусина Анна - премиум-лендинг v2: режиссура секций, mobile-first ===== */

:root {
  --dark: #0E2C2A;
  --dark-2: #123330;
  --light: #F1F3EF;
  --surface: #FFFFFF;
  --hairline: #DFE4DD;
  --ink: #12201E;
  --ink-2: #5A6763;
  --amber: #C98A3B;
  --amber-on-dark: #D9A45C;
  --text-on-dark: #E9EDE8;
  --r-ui: 14px;
  --r-media: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Spectral", Georgia, serif;
  --font-text: "Golos Text", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, blockquote { text-wrap: balance; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* Появления */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; }

/* Кнопки: заливка снизу вверх */
.btn {
  position: relative;
  display: inline-block;
  padding: 15px 26px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--amber);
  border-radius: var(--r-ui);
  color: var(--dark);
  background: var(--amber);
  overflow: hidden;
  z-index: 1;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: #E0A55A;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleY(1); }
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(233,237,232,0.4);
}
.btn--ghost::before { background: rgba(233,237,232,0.12); }
.btn--ghost:hover { border-color: rgba(233,237,232,0.8); }

/* ============ КАДР 1: HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  background: var(--dark);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../assets/hero-916-poster.webp") center / cover no-repeat var(--dark);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,44,42,0.6) 0%, rgba(14,44,42,0.18) 34%, rgba(14,44,42,0.05) 55%, rgba(14,44,42,0.72) 86%, rgba(14,44,42,0.85) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: max(9svh, 56px);
  padding-bottom: 96px;
}
.hero__kicker { color: var(--amber-on-dark); margin-bottom: 20px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 10.5vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #F4F7F3;
}
.hero__line { display: block; }
.hero__role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  color: var(--amber-on-dark);
  margin-top: 14px;
}
.hero__clinic {
  max-width: 44ch;
  color: rgba(233, 237, 232, 0.9);
  font-size: 1rem;
}
.hero__phone { margin-top: 16px; color: rgba(233,237,232,0.75); }
.hero__phone a { color: var(--text-on-dark); text-decoration: none; border-bottom: 1px solid rgba(233,237,232,0.35); transition: border-color 0.25s var(--ease); }
.hero__phone a:hover { border-color: var(--amber-on-dark); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero__hint {
  position: absolute; left: 20px; bottom: 26px;
  color: rgba(233,237,232,0.55);
  font-size: 0.68rem;
  display: flex; align-items: center; gap: 10px;
}
.hero__hint::after {
  content: ""; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--amber-on-dark), transparent);
  animation: hintDrop 2.6s var(--ease) infinite;
}
@keyframes hintDrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Сигнатурный вход: из расфокуса в резкость */
.js [data-focusline] { opacity: 0; filter: blur(12px); transform: translateY(10px); }
.js .hero.in [data-focusline] {
  animation: focusIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--fl) * 120ms + 150ms);
}
@keyframes focusIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* ============ КАДР 2: ЦИТАТА (капля и кольца) ============ */
.quote {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background: var(--dark-2);
  color: var(--text-on-dark);
  overflow: hidden;
}
.quote__bg { position: absolute; inset: 0; background: url("../assets/drop-rings-poster.webp") 66% 20% / cover no-repeat var(--dark-2); }
.quote__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 20%; }
.quote__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,51,48,0.25) 0%, rgba(18,51,48,0.05) 40%, rgba(14,44,42,0.55) 78%, rgba(14,44,42,0.7) 100%);
}
.quote__inner { position: relative; width: 100%; padding-top: 24svh; padding-bottom: clamp(56px, 10svh, 110px); }
.quote__text p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 5.4vw, 2.5rem);
  line-height: 1.38;
  letter-spacing: -0.01em;
  max-width: 21ch;
}
.quote__text .w { opacity: 0.15; transition: opacity 0.4s linear; }
.quote__text .w.on { opacity: 1; }
html:not(.js) .quote__text .w { opacity: 1; }
.quote__author { margin-top: 26px; color: var(--amber-on-dark); }

/* ============ Светлые секции: общее ============ */
.section { padding: clamp(76px, 12vh, 150px) 0; }
.section--tight { padding-top: 0; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 6.4vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: clamp(30px, 5vh, 56px);
}

/* ============ КАДР 3: РАБОТАЮ С ВОПРОСАМИ (страты) ============ */
.issues__media {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(6, 20, 19, 0.28);
}
.issues__media img {
  width: 100%;
  height: clamp(220px, 36svh, 340px);
  object-fit: cover;
  object-position: 0% center;
}
.issues__media figcaption {
  position: absolute;
  right: 14px; top: 14px;
  padding: 8px 14px;
  background: rgba(241, 243, 239, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--r-ui);
  color: var(--ink-2);
}
.issues__title { margin-top: -1.55em; position: relative; color: #F4F7F3; padding-left: 22px; }
.registry { list-style: none; }
.registry__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 20px 0;
}
.registry__row::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.registry__row:last-child { border-bottom: 1px solid var(--hairline); }
.registry__num { color: var(--amber); padding-top: 3px; }
.registry__row p { max-width: 66ch; }
.js .registry__row p, .js .creds li, .js .final__takeaways li { opacity: 0; transition: opacity 0.6s var(--ease) 0.25s; }
.js [data-line].in::before { transform: scaleX(1); }
.js [data-line].in p, .js .creds li.in, .js .final__takeaways li.in { opacity: 1; }
html:not(.js) .registry__row p, html:not(.js) .creds li, html:not(.js) .final__takeaways li { opacity: 1; }

/* ============ КАДР 4: ДОКУМЕНТ на матовом стекле ============ */
.doc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-media);
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(6, 20, 19, 0.12);
}
.doc__media { position: relative; }
.doc__media img {
  width: 100%;
  height: clamp(180px, 26svh, 320px);
  object-fit: cover;
  object-position: left center;
}
.doc__media::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 100%);
  pointer-events: none;
}
.doc__head {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 16px 20px;
  color: var(--text-on-dark);
}
.doc__paper { padding: clamp(24px, 4.5vw, 52px); }
.doc__intro { margin-bottom: 6px; max-width: 68ch; font-weight: 500; }
.doc__group { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.doc__group:last-child { border-bottom: 0; }
.doc__row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: baseline; }
.doc__code { color: var(--amber); white-space: nowrap; }
.doc__label { font-weight: 500; }
.doc__list { list-style: none; margin-top: 12px; }
.doc__list li { position: relative; padding: 7px 0; color: var(--ink-2); }
.doc__list li + li { border-top: 1px solid #EDF0EB; }
.doc__more {
  display: none;
  margin-top: 18px;
  background: none; border: none;
  color: var(--amber);
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid var(--amber);
}
.doc__note { margin-top: 24px; color: var(--ink-2); font-size: 0.95rem; }
.doc__body.collapsed .doc__group:nth-child(n+2) { display: none; }

/* Зона тишины: Не работаю с */
.quiet { margin-top: clamp(64px, 10vh, 110px); max-width: 640px; }
.quiet::before { content: ""; display: block; width: 48px; height: 1px; background: var(--ink); margin-bottom: 22px; }
.quiet__head { color: var(--ink-2); margin-bottom: 14px; }
.quiet__list { list-style: none; }
.quiet__list li { padding: 12px 0; border-top: 1px solid var(--hairline); }
.quiet__list li:last-child { border-bottom: 1px solid var(--hairline); }

/* ============ КАДР 6: ОБО МНЕ (льняной натюрморт) ============ */
.about {
  position: relative;
  padding: clamp(76px, 12vh, 150px) 0;
  color: var(--text-on-dark);
  background: var(--dark-2);
  overflow: hidden;
}
.about__bg {
  position: absolute; inset: 0;
  background: url("../assets/linen-desk.webp") center / cover no-repeat var(--dark-2);
}
.about__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,44,42,0.55) 0%, rgba(14,44,42,0.35) 40%, rgba(14,44,42,0.6) 100%);
}
.about__inner { position: relative; }
.about__title { color: #F4F7F3; }
.about__layout { display: grid; gap: 40px; }
.about__photo {
  background: var(--light);
  padding: 10px 10px 12px;
  max-width: 250px;
  border-radius: 12px;
  transform: rotate(-1.6deg);
  box-shadow: 0 24px 60px rgba(6, 20, 19, 0.45);
}
.about__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  object-fit: cover;
  filter: grayscale(100%) sepia(14%) hue-rotate(120deg) saturate(0.55) brightness(0.98);
}
.about__photo figcaption { color: var(--ink-2); padding-top: 9px; font-size: 0.66rem; }
.js .about__photo { clip-path: inset(100% 0 0 0); transition: clip-path 0.8s var(--ease); }
.js .about__photo.in { clip-path: inset(0 0 0 0); }
html:not(.js) .about__photo { clip-path: none; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px;
  background: linear-gradient(180deg, rgba(14,44,42,0.5), rgba(14,44,42,0.28));
  padding: 16px 16px 14px;
  border-radius: var(--r-ui);
}
.stats__item { border-top: 1px solid rgba(233,237,232,0.25); padding-top: 12px; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1;
  color: #F4F7F3;
}
.stats__plus { color: var(--amber-on-dark); }
.stats__item dd { color: rgba(233,237,232,0.7); font-size: 0.85rem; margin-top: 6px; }

.creds { list-style: none; }
.creds li {
  position: relative;
  padding: 15px 0 15px 32px;
  border-top: 1px solid rgba(233,237,232,0.2);
  max-width: 62ch;
}
.creds li:last-child { border-bottom: 1px solid rgba(233,237,232,0.2); }
.creds li::before {
  content: "";
  position: absolute; left: 2px; top: 26px;
  width: 14px; height: 1px;
  background: var(--amber-on-dark);
}
.creds strong { font-weight: 600; color: #F4F7F3; }

/* ============ КАДР 7: FAQ (страница-фактура) ============ */
.faq-section { position: relative; }
.faq-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/paper-texture.webp") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.faq-section > .container { position: relative; }
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 4vw, 1.45rem);
  font-weight: 400;
  transition: color 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--amber); }
.faq__icon { position: relative; flex: 0 0 16px; height: 16px; transition: transform 0.45s var(--ease); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--amber);
  top: 50%; left: 50%;
}
.faq__icon::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item[open] { box-shadow: inset 2px 0 0 var(--amber); }
.faq__item[open] .faq__q { padding-left: 18px; }
.faq__item[open] .faq__a { padding-left: 18px; }
.faq__q, .faq__a { transition: padding-left 0.45s var(--ease); }
.faq__a { overflow: hidden; }
.faq__inner { padding: 4px 0 28px; max-width: 66ch; color: var(--ink-2); }
.faq__inner p + p, .faq__inner ul + p, .faq__inner p + ul, .faq__inner ul + ul { margin-top: 14px; }
.faq__inner ul { list-style: none; }
.faq__inner li { position: relative; padding: 6px 0 6px 24px; }
.faq__inner li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 12px; height: 1px; background: var(--amber);
}
.faq__inner strong { color: var(--ink); font-weight: 600; }

/* ============ КАДР 8: ФИНАЛ (рассвет) ============ */
.final {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  color: var(--text-on-dark);
  overflow: hidden;
}
.final__media { position: absolute; inset: 0; background: url("../assets/dawn-916-poster.webp") center / cover no-repeat var(--dark); }
.final__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.final__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,44,42,0.55) 0%, rgba(14,44,42,0.2) 34%, rgba(14,44,42,0.45) 62%, rgba(14,44,42,0.82) 100%);
}
.final__inner { position: relative; width: 100%; padding-top: 16svh; padding-bottom: 44px; }
.final__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 6.4vw, 3rem);
  line-height: 1.22;
  max-width: 17ch;
  color: #F4F7F3;
}
.final__takeaways { list-style: none; margin-top: 34px; max-width: 540px; }
.final__takeaways li {
  position: relative;
  padding: 15px 0;
  border-top: 1px solid rgba(233,237,232,0.2);
  font-size: 1.05rem;
}
.final__takeaways li:last-child { border-bottom: 1px solid rgba(233,237,232,0.2); }
.final__takeaways [data-line]::before { background: rgba(233,237,232,0.2); }
.final__cta { margin-top: 44px; }
.final__label { color: var(--amber-on-dark); margin-bottom: 16px; }
.final__actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.final__phone { margin-top: 20px; }
.final__phone a { color: var(--text-on-dark); text-decoration: none; border-bottom: 1px solid rgba(233,237,232,0.35); }
.final__phone a:hover { border-color: var(--amber-on-dark); }
.final__socials { margin-top: 52px; }
.final__socials ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.final__socials a {
  position: relative;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.96rem;
  padding: 6px 0;
}
.final__socials a::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--amber-on-dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.final__socials a:hover::after { transform: scaleX(1); }
.final__foot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(233,237,232,0.16);
  color: rgba(233,237,232,0.5);
  font-size: 0.7rem;
}

/* ============ Планшет и десктоп (расширение мобильной композиции) ============ */
@media (min-width: 769px) {
  body { font-size: 17px; }
  .container { padding: 0 24px; }

  /* Hero: горизонтальный клип, всё в левой тёмной зоне */
  .hero { align-items: center; }
  .hero__inner {
    justify-content: center;
    padding-top: 96px; padding-bottom: 120px;
  }
  .hero__sky { margin-bottom: 0; }
  .hero__shore { margin-top: 26px; max-width: 560px; }
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(14,44,42,0.92) 0%, rgba(14,44,42,0.72) 38%, rgba(14,44,42,0.28) 72%, rgba(14,44,42,0.45) 100%),
      linear-gradient(0deg, rgba(14,44,42,0.65) 0%, rgba(14,44,42,0) 32%);
  }
  .hero__actions { flex-direction: row; gap: 14px; margin-top: 36px; }
  .btn { width: auto; }
  .hero__hint { left: 24px; }

  /* Цитата: капля справа, текст слева на глади */
  .quote { align-items: center; min-height: 88vh; }
  .quote__bg, .quote__bg video { object-position: center; background-position: center; }
  .quote__scrim {
    background: linear-gradient(90deg, rgba(14,44,42,0.55) 0%, rgba(14,44,42,0.28) 45%, rgba(18,51,48,0.05) 100%);
  }
  .quote__inner { padding-top: 10vh; padding-bottom: 10vh; }
  .quote__text p { max-width: 24ch; }

  /* Вопросы: стопка слева, реестр справа */
  .issues__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .issues__media { margin: 0; position: sticky; top: 6vh; }
  .issues__media img { height: min(78vh, 720px); object-position: 30% center; }
  .issues__title { margin-top: 0; color: var(--ink); }

  /* Документ */
  .doc__media img { object-position: left 40%; }
  .doc__row { grid-template-columns: 96px 1fr; gap: 18px; }
  .doc__list { padding-left: 114px; }

  /* Обо мне */
  .about__layout { grid-template-columns: 320px 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .about__photo { max-width: 300px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }

  /* Финал: текст слева, свет справа */
  .final { align-items: center; min-height: 92vh; }
  .final__media video, .final__media { object-position: 62% center; background-position: 62% center; }
  .final__scrim {
    background: linear-gradient(90deg, rgba(14,44,42,0.9) 0%, rgba(14,44,42,0.66) 42%, rgba(14,44,42,0.18) 100%);
  }
  .final__inner { padding-top: 100px; padding-bottom: 56px; max-width: none; }
  .final__text { max-width: 640px; }
  .final__actions { flex-direction: row; max-width: none; }
}

@media (min-width: 1100px) {
  .issues__media img { object-position: 22% center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-focusline] { opacity: 1; filter: none; transform: none; }
  .js [data-reveal], .js [data-line] p, .js .creds li, .js .final__takeaways li { opacity: 1; transform: none; }
  .quote__text .w { opacity: 1; }
  .js .about__photo { clip-path: none; }
  .hero__hint::after { animation: none; }
}
