/* ═══════════════════════════════════════════════════════════════════════
   Дом-музей Раневской — стили лендинга.
   Палитра: сливки (бумага старой усадьбы) + вишня + золото рамы.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-cyrillic-wght-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-latin-wght-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #f5eee3;
  --paper: #ece2d3;
  --ink: #241316;
  --ink-soft: #5b4a4c;
  --cherry: #7b1e2b;
  --cherry-deep: #4a0f19;
  --night: #170b0e;
  --blossom: #f1c9d0;
  --gold: #b08d57;
  --line: rgba(36, 19, 22, .14);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--cherry); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* шум бумаги поверх всего — едва заметное зерно */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ─────────── типографика ─────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--cherry);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--blossom); }
.eyebrow--muted { color: var(--ink-soft); margin-top: 18px; }
.title {
  margin: 0 0 28px; font: 400 clamp(36px, 5.2vw, 72px)/1.02 var(--serif); letter-spacing: -.01em;
}
.title em, h1 em { font-style: italic; color: var(--cherry); }
.muted { color: var(--ink-soft); font-size: 15px; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head__lead { font-size: 19px; color: var(--ink-soft); }

/* ─────────── кнопки ─────────── */
.btn {
  --bg: var(--cherry); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg); font: 600 14px/1 var(--sans); letter-spacing: .06em;
  transition: transform .5s var(--ease), color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--night); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn--small { padding: 12px 20px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1px rgba(245, 238, 227, .5); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); }
.btn--light { --bg: var(--cream); --fg: var(--ink); }
.btn--light::before { background: var(--blossom); }

.link-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cherry);
}
.link-btn svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--cherry); fill: var(--cream); transition: transform .4s var(--ease); }
.link-btn:hover svg { transform: scale(1.12); }
.link-btn.is-playing svg { animation: pulse 1s infinite; }
.link-btn--light { color: var(--blossom); border-bottom: 1px solid currentColor; padding-bottom: 4px; text-transform: none; letter-spacing: 0; font-size: 15px; }

/* ─────────── заставка ─────────── */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--night); color: var(--blossom);
  transition: clip-path 1.1s var(--ease-in-out) .1s;
  clip-path: inset(0 0 0 0);
}
.loader__flower { width: 64px; animation: spin 6s linear infinite, bloom 1.2s var(--ease) both; }
.loader__word { margin: 0; font: italic 400 30px/1 var(--serif); letter-spacing: .02em; animation: fadeUp 1s var(--ease) .2s both; }
.loader__line { width: 140px; height: 1px; background: rgba(241, 201, 208, .25); position: relative; overflow: hidden; }
.loader__line::after { content: ""; position: absolute; inset: 0; background: var(--blossom); transform-origin: left; animation: load 1.3s var(--ease-in-out) both; }
body.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ─────────── курсор ─────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; }
.cursor span {
  display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--cherry); mix-blend-mode: multiply;
  transition: transform .35s var(--ease), background .3s, opacity .3s;
}
.cursor.is-hover span { transform: scale(3.4); background: rgba(123, 30, 43, .25); }
.cursor.is-dark span { background: var(--blossom); mix-blend-mode: normal; }
.cursor.is-dark.is-hover span { background: rgba(241, 201, 208, .3); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; background: var(--cherry); transform-origin: left; transform: scaleX(0); }

/* ─────────── шапка ─────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter); color: var(--cream);
  transition: background .5s, color .5s, padding .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.nav.is-solid { background: rgba(245, 238, 227, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); color: var(--ink); padding-block: 12px; box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font: 400 15px/1.05 var(--serif); letter-spacing: .02em; }
.nav__logo b { font-weight: 600; font-size: 19px; }
.nav__logo svg { width: 38px; height: 38px; color: currentColor; }
.nav.is-solid .nav__logo svg { color: var(--cherry); }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; z-index: 2; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
body.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
body.menu-open .nav { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--cherry-deep); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease-in-out);
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu nav { display: grid; gap: 4px; }
.menu a { font: 400 clamp(38px, 10vw, 64px)/1.15 var(--serif); display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease); }
.menu a i { font: 500 12px/1 var(--sans); color: var(--blossom); letter-spacing: .1em; }
body.menu-open .menu a { opacity: 1; transform: none; }
body.menu-open .menu a:nth-child(2) { transition-delay: .05s; } body.menu-open .menu a:nth-child(3) { transition-delay: .1s; }
body.menu-open .menu a:nth-child(4) { transition-delay: .15s; } body.menu-open .menu a:nth-child(5) { transition-delay: .2s; }
body.menu-open .menu a:nth-child(6) { transition-delay: .25s; }
.menu__quote { margin-top: auto; font: italic 22px/1.3 var(--serif); color: var(--blossom); }

/* ─────────── первый экран ─────────── */
.hero { position: relative; height: 100svh; min-height: 620px; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--night); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.9); transform: scale(1.25); transition: transform 2.8s var(--ease); will-change: transform; }
body.is-loaded .hero__media img { transform: scale(1.06); }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(23, 11, 14, .6) 0%, rgba(23, 11, 14, .2) 30%, rgba(23, 11, 14, .45) 55%, rgba(23, 11, 14, .92) 100%),
  linear-gradient(90deg, rgba(23, 11, 14, .7) 0%, rgba(23, 11, 14, .25) 60%, transparent 100%),
  radial-gradient(120% 80% at 0% 100%, rgba(74, 15, 25, .6), transparent 60%); }
.hero__inner { position: relative; width: min(1240px, 100%); margin-inline: auto; padding: 0 var(--gutter) clamp(70px, 11vh, 130px); }
.hero__eyebrow { color: var(--blossom); gap: 16px; }
.hero__eyebrow span + span::before { content: "·"; margin-right: 16px; }
.hero__title { margin: 0; font: 400 clamp(56px, 11.5vw, 178px)/.9 var(--serif); letter-spacing: -.025em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title em { font-style: italic; color: var(--blossom); padding-left: .55em; }
.hero__lead { max-width: 520px; margin: 28px 0 34px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(245, 238, 227, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 70px; background: rgba(245, 238, 227, .3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--cream); animation: drip 2s var(--ease-in-out) infinite; }
.hero__meta { position: absolute; right: var(--gutter); top: 110px; text-align: right; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 238, 227, .7); }
.hero__meta b { display: block; font: italic 400 26px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--cream); }

/* построчное и побуквенное появление */
.split .ch { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: left bottom; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 35ms + .55s); }
body.is-loaded .split .ch { transform: none; }
.hero__eyebrow, .hero__lead, .hero__actions, .hero__meta, .hero__scroll { opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1.2s var(--ease); }
body.is-loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: .5s; }
body.is-loaded .hero__lead { opacity: 1; transform: none; transition-delay: 1.15s; }
body.is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: 1.3s; }
body.is-loaded .hero__meta, body.is-loaded .hero__scroll { opacity: 1; transform: none; transition-delay: 1.6s; }

/* ─────────── бегущая строка ─────────── */
.marquee { background: var(--cherry); color: var(--cream); padding: 22px 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.02); margin: -14px 0 0; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: italic 400 clamp(26px, 3vw, 40px)/1 var(--serif); white-space: nowrap; }
.marquee svg { width: 26px; height: 26px; color: var(--blossom); flex: none; animation: spin 8s linear infinite; }

/* ─────────── появление при прокрутке ─────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.reveal-words.is-in .w > span { transform: none; }

/* ─────────── о музее ─────────── */
.about { padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__text > p { color: var(--ink-soft); max-width: 560px; }
.about .title { font-size: clamp(34px, 4.2vw, 58px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(40px, 4.4vw, 60px)/1 var(--serif); color: var(--cherry); }
.stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.stat:nth-child(2) { --d: .1s; } .stat:nth-child(3) { --d: .2s; }
.about__media { position: relative; margin: 0; }
.about__media figcaption { margin-top: 14px; font: italic 16px/1.3 var(--serif); color: var(--ink-soft); }
.clip { position: relative; overflow: hidden; border-radius: 300px 300px var(--radius) var(--radius); aspect-ratio: 4 / 5; background: var(--paper); }
.clip img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; }
.about__media .clip { clip-path: inset(100% 0 0 0 round 300px 300px var(--radius) var(--radius)); transition: clip-path 1.6s var(--ease-in-out); }
.about__media.is-in .clip { clip-path: inset(0 0 0 0 round 300px 300px var(--radius) var(--radius)); }
.about__stamp { position: absolute; left: -60px; bottom: 40px; width: 150px; height: 150px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; box-shadow: 0 20px 50px -20px rgba(36, 19, 22, .4); }
.about__stamp > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.about__stamp text { font: 600 13.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--cherry); }
.about__stamp-mark { width: 48px; height: 48px; color: var(--cherry); }

/* ─────────── экспозиция ─────────── */
.expo { position: relative; height: 520vh; background: var(--night); color: var(--cream); }
.expo__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.expo__head { margin: 0 auto 4vh; display: flex; align-items: end; flex-wrap: wrap; gap: 0 40px; }
.expo__head .eyebrow { color: var(--blossom); width: 100%; }
.expo__head .title { margin: 0; }
.expo__hint { margin: 0 0 10px auto; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 238, 227, .5); }
.expo__track { display: flex; gap: clamp(20px, 2.5vw, 36px); padding-inline: var(--gutter) 30vw; will-change: transform; width: max-content; }
.room { width: clamp(280px, 30vw, 430px); flex: none; }
.room__img { height: min(44vh, 460px); border-radius: var(--radius); overflow: hidden; position: relative; }
.room__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease), filter .8s; filter: saturate(.85); }
.room:hover .room__img img { transform: scale(1.02); filter: saturate(1.05); }
.room__body { padding: 22px 6px 0; }
.room__num { font: italic 400 18px/1 var(--serif); color: var(--gold); }
.room h3 { margin: 8px 0 10px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); }
.room p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(245, 238, 227, .72); }
.room .link-btn { color: var(--blossom); margin-top: 16px; }
.room .link-btn svg { background: var(--blossom); fill: var(--night); }
.room:nth-child(even) { transform: translateY(4vh); }
.expo__end { width: clamp(280px, 30vw, 420px); flex: none; align-self: center; }
.expo__end p { font: italic 400 clamp(26px, 2.6vw, 36px)/1.25 var(--serif); margin: 0 0 30px; color: var(--blossom); }
.expo__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 3vh; height: 1px; background: rgba(245, 238, 227, .15); }
.expo__bar span { position: absolute; inset: 0; background: var(--blossom); transform-origin: left; transform: scaleX(0); }

/* ─────────── экскурсии ─────────── */
.tours { padding: clamp(100px, 13vw, 170px) 0; }
.tours__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1200px; }
.tour { background: #fff9f0; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(74, 15, 25, .45); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s, opacity 1s var(--ease); }
.tour.is-in { transition: transform .6s var(--ease), box-shadow .6s, opacity 1s var(--ease); }
.tour:nth-child(2) { --d: .12s; } .tour:nth-child(3) { --d: .24s; }
.tour:hover { box-shadow: 0 1px 0 var(--line), 0 40px 80px -40px rgba(74, 15, 25, .6); }
.tour__img { aspect-ratio: 4 / 3; overflow: hidden; }
.tour__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tour:hover .tour__img img { transform: scale(1.06); }
.tour__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tour__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tour__tags span { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 99px; background: rgba(123, 30, 43, .08); color: var(--cherry); }
.tour h3 { margin: 0 0 10px; font: 500 30px/1.1 var(--serif); }
.tour p { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; }
.tour__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px dashed var(--line); }
.tour__foot b { font: 500 28px/1 var(--serif); }

/* ─────────── героиня ─────────── */
.heroine { padding: clamp(60px, 8vw, 110px) 0 clamp(100px, 13vw, 170px); }
.heroine__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.heroine__portrait { margin: 0; position: sticky; top: 110px; }
.heroine__portrait figcaption { margin-top: 14px; font: italic 16px/1.3 var(--serif); color: var(--ink-soft); }
.heroine__portrait .clip img { filter: sepia(.25) contrast(1.05); }
.heroine__text > p { color: var(--ink-soft); }
.letters { list-style: none; margin: 10px 0 0; padding: 0; }
.letters li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.letters li:nth-child(2) { --d: .08s; } .letters li:nth-child(3) { --d: .16s; } .letters li:nth-child(4) { --d: .24s; }
.letters time { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cherry); font-weight: 600; }
.letters q { font: italic 400 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); quotes: "«" "»"; }

/* ─────────── цитаты ─────────── */
.quotes { position: relative; padding: clamp(110px, 14vw, 190px) 0; color: var(--cream); overflow: hidden; background: var(--cherry-deep); }
.quotes__bg { position: absolute; inset: 0; }
.quotes__bg img { width: 100%; height: 130%; object-fit: cover; position: absolute; top: -15%; opacity: .35; filter: grayscale(.3); }
.quotes__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cherry-deep), rgba(74, 15, 25, .55) 30%, rgba(74, 15, 25, .55) 70%, var(--cherry-deep)); }
.quotes__inner { position: relative; text-align: center; }
.quotes__inner .eyebrow { justify-content: center; }
.quotes__slider { display: grid; min-height: 280px; align-items: center; }
.q { grid-area: 1 / 1; margin: 0 auto; max-width: 980px; opacity: 0; pointer-events: none; }
.q p { margin: 0 0 28px; font: italic 400 clamp(30px, 4.4vw, 58px)/1.15 var(--serif); }
.q p::before { content: "“"; display: block; font: 400 120px/0.6 var(--serif); color: var(--blossom); margin-bottom: 24px; font-style: normal; }
.q cite { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blossom); font-style: normal; }
.q .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(12px); transition: opacity .8s, filter .8s, transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.q.is-active { opacity: 1; pointer-events: auto; }
.q.is-active .w { opacity: 1; filter: none; transform: none; }
.q cite { display: inline-block; opacity: 0; transition: opacity .8s .4s; }
.q.is-active cite { opacity: 1; }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 46px; }
.round { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(245, 238, 227, .35); transition: background .4s, box-shadow .4s; }
.round svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.round:hover { background: var(--cream); color: var(--cherry-deep); }
.quotes__dots { display: flex; gap: 8px; }
.quotes__dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(245, 238, 227, .3); transition: width .5s var(--ease), background .4s; }
.quotes__dots button.is-active { width: 34px; background: var(--blossom); }

/* ─────────── жизнь в усадьбе ─────────── */
.life { padding: clamp(100px, 13vw, 170px) 0 clamp(60px, 8vw, 100px); }
.life__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 40px 34px 40px 0; border-right: 1px solid var(--line); position: relative; }
.pillar + .pillar { padding-left: 34px; }
.pillar:last-child { border-right: 0; }
.pillar:nth-child(2) { --d: .12s; } .pillar:nth-child(3) { --d: .24s; }
.pillar__num { font: italic 400 76px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--cherry); }
.pillar h3 { margin: 18px 0 12px; font: 500 36px/1 var(--serif); }
.pillar p { margin: 0; color: var(--ink-soft); }
.pillar::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--cherry); transition: width 1s var(--ease); }
.pillar + .pillar::after { left: 34px; }
.pillar:hover::after { width: 60px; }

/* ─────────── история ─────────── */
.history { padding: clamp(60px, 8vw, 100px) 0 clamp(100px, 13vw, 170px); }
.history__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.history__aside { position: sticky; top: 110px; }
.history__portrait { margin: 10px 0 0; max-width: 320px; }
.history__portrait .clip { aspect-ratio: 3 / 4; }
.history__portrait figcaption { margin-top: 12px; font: italic 16px/1.3 var(--serif); color: var(--ink-soft); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 42px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 10px; width: 1px; height: var(--tl, 0%); background: var(--cherry); }
.timeline li { position: relative; padding-bottom: 54px; }
.timeline li::before { content: ""; position: absolute; left: -42px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cherry); transition: background .5s, transform .5s var(--ease); }
.timeline li.is-in::before { background: var(--cherry); transform: scale(1.15); }
.timeline time { font: 400 clamp(46px, 5vw, 68px)/1 var(--serif); color: var(--cherry); }
.timeline h3 { margin: 10px 0 10px; font: 600 20px/1.3 var(--sans); }
.timeline p { margin: 0; color: var(--ink-soft); }

/* ─────────── финал ─────────── */
.finale { position: relative; min-height: 100vh; display: grid; align-items: center; color: var(--cream); background: var(--night); overflow: hidden; text-align: center; }
.finale__bg { position: absolute; inset: 0; }
.finale__bg img { position: absolute; top: -15%; width: 100%; height: 130%; object-fit: cover; filter: grayscale(.55) brightness(.5); }
.finale__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, transparent, var(--night)); }
.finale__inner { position: relative; padding-block: 120px; }
.finale__remark { max-width: 640px; margin: 0 auto 30px; font: italic 20px/1.5 var(--serif); color: rgba(245, 238, 227, .7); }
.finale__title { margin: 0 auto 50px; max-width: 1000px; font: 400 clamp(40px, 6.4vw, 92px)/1.02 var(--serif); }
.string-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blossom); }
.string-btn__line { width: 240px; height: 1px; background: currentColor; transform-origin: center; }
.string-btn:hover .string-btn__line, .string-btn.is-playing .string-btn__line { animation: twang .9s var(--ease); }

/* ─────────── посещение ─────────── */
.visit { padding: clamp(100px, 13vw, 170px) 0; background: var(--paper); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; }
.visit__card { background: var(--cream); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.visit__card:nth-child(2) { --d: .1s; } .visit__card:nth-child(3) { --d: .2s; }
.visit__card h3 { margin: 0 0 6px; font: 500 30px/1 var(--serif); }
.visit__card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.visit__card .btn { align-self: flex-start; margin-top: auto; }
dl { margin: 0; display: grid; gap: 0; }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
dt { color: var(--ink-soft); } dd { margin: 0; font-weight: 600; text-align: right; }
.map { width: 100%; height: auto; margin-top: auto; }
.map__road { fill: none; stroke: var(--cherry); stroke-width: 2; stroke-dasharray: 6 7; stroke-dashoffset: 400; animation: road 6s linear infinite; }
.map__trees circle { fill: var(--blossom); }
.map__pin { fill: var(--cherry); }
.map__pin-pulse { fill: var(--cherry); opacity: .3; transform-origin: 214px 68px; animation: ping 2s var(--ease) infinite; }
.map text { font: 600 10px var(--sans); fill: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; }

.faq { margin-top: 60px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font: 300 30px/1 var(--sans); color: var(--cherry); transition: rotate .5s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 700px; animation: fadeUp .6s var(--ease); }

/* ─────────── подвал ─────────── */
.footer { background: var(--night); color: var(--cream); padding: 40px 0 34px; overflow: hidden; }
.footer__big { font: italic 400 clamp(64px, 15vw, 230px)/1 var(--serif); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(241, 201, 208, .35); white-space: nowrap; margin: 20px 0 50px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(245, 238, 227, .12); }
.footer h4 { margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blossom); }
.footer__grid > div > a:not(.nav__logo) { display: block; padding: 4px 0; color: rgba(245, 238, 227, .75); transition: color .3s; }
.footer__grid > div > a:hover { color: var(--blossom); }
.footer__note { color: rgba(245, 238, 227, .55); font-size: 14px; max-width: 340px; }
.nav__logo--light svg { color: var(--blossom); }
.footer__copy { margin: 26px 0 0; font-size: 13px; color: rgba(245, 238, 227, .45); }

/* ─────────── окна ─────────── */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--ink); }
.modal[open] { display: grid; place-items: center; padding: 16px; }
.modal::backdrop { background: rgba(23, 11, 14, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] .modal__box { animation: modalIn .7s var(--ease); }
.modal[open]::backdrop { animation: fade .5s; }
.modal__box { position: relative; width: min(460px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--cream); border-radius: 26px; padding: 40px 34px 30px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.modal__box--wide { width: min(760px, 100%); }
.modal__box h3 { margin: 0 0 24px; font: 400 40px/1 var(--serif); }
.modal__close { position: absolute; right: 16px; top: 14px; width: 42px; height: 42px; border-radius: 50%; font: 300 28px/1 var(--sans); transition: background .3s, rotate .5s var(--ease); }
.modal__close:hover { background: var(--paper); rotate: 90deg; }
.modal__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); text-align: center; }
.ticket-form label { display: grid; gap: 6px; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-form input, .ticket-form select { font: 500 16px/1.2 var(--sans); color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff9f0; text-transform: none; letter-spacing: 0; width: 100%; transition: border-color .3s, box-shadow .3s; }
.ticket-form input:focus, .ticket-form select:focus { outline: none; border-color: var(--cherry); box-shadow: 0 0 0 4px rgba(123, 30, 43, .12); }
.counter { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.counter span { margin-right: auto; }
.counter button { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; color: var(--ink); transition: background .3s; }
.counter button:hover { background: var(--paper); }
.counter output { font: 500 26px/1 var(--serif); min-width: 24px; text-align: center; color: var(--ink); }
.ticket-form__step { display: none; }
.ticket-form__step.is-active { display: block; animation: fadeUp .6s var(--ease); }
.ticket-form__done { text-align: center; }
.done-flower { width: 76px; color: var(--cherry); margin: 0 auto 10px; animation: bloom 1.2s var(--ease), spin 12s linear infinite; }
.ticket-form__summary { color: var(--ink-soft); }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.credits li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.credits img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.credits a { color: var(--cherry); border-bottom: 1px solid rgba(123, 30, 43, .3); }
.credits small { display: block; color: var(--ink-soft); }

/* ─────────── ключевые кадры ─────────── */
@keyframes spin { to { rotate: 360deg; } }
@keyframes bloom { from { scale: 0; opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes load { from { transform: scaleX(0); } }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { transform: scale(1.15); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes road { to { stroke-dashoffset: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes twang {
  0% { transform: scaleY(1); } 10% { transform: scaleY(14); } 25% { transform: scaleY(-9); } 40% { transform: scaleY(6); }
  55% { transform: scaleY(-3); } 70% { transform: scaleY(1.5); } 100% { transform: scaleY(1); }
}

/* ─────────── адаптив ─────────── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { margin-left: auto; }
  .nav__burger { margin-left: 0; }
  .tours__grid { grid-template-columns: 1fr 1fr; }
  .tours__grid .tour:last-child { grid-column: span 2; flex-direction: row; }
  .tours__grid .tour:last-child .tour__img { aspect-ratio: auto; width: 45%; }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__card--map { grid-column: span 2; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .about__grid, .heroine__grid, .history__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__stamp { left: auto; right: -6px; bottom: -40px; width: 120px; height: 120px; }
  .heroine__portrait, .history__aside { position: static; }
  .heroine__portrait { max-width: 420px; }
  .letters li { grid-template-columns: 1fr; gap: 6px; }
  .life__grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar + .pillar::after { left: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
  /* экспозиция на телефоне — обычная лента с прокруткой пальцем */
  .expo { height: auto; padding: 100px 0 80px; }
  .expo__sticky { position: static; height: auto; overflow: visible; }
  .expo__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; transform: none !important; padding-right: var(--gutter); }
  .expo__track::-webkit-scrollbar { display: none; }
  .room, .expo__end { width: 78vw; scroll-snap-align: start; }
  .room:nth-child(even) { transform: none; }
  .room__img { height: 54vw; }
  .expo__bar, .expo__hint { display: none; }
}
@media (max-width: 640px) {
  .tours__grid { grid-template-columns: 1fr; }
  .tours__grid .tour:last-child { grid-column: auto; flex-direction: column; }
  .tours__grid .tour:last-child .tour__img { width: auto; aspect-ratio: 4 / 3; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__card--map { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stat span { font-size: 12px; }
  .hero__scroll { display: none; }
  .hero__eyebrow span + span { display: none; }
  .hero__title em { padding-left: .2em; }
  .nav__cta { display: none; }
  .nav__burger { margin-left: auto; }
  .marquee { padding: 16px 0; }
  .modal__box { padding: 34px 22px 24px; }
  .letters q { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .petals { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
