/* ============================================================
   ЗОЛОТАЯ ПОДКОВА · акварельные арты (золотой час фермы)
   Реальные акварельные фото-сцены + тёплая типографика.
   ============================================================ */

:root {
  --paper:    #f4e9d3;
  --paper-2:  #efe1c6;
  --cream:    #faf3e3;
  --ink:      #45382899;  /* не используется напрямую */
  --text:     #4a3d2c;
  --soft:     #7c6c52;
  --ochre:    #b0702f;
  --ochre-d:  #8f5a26;
  --olive:    #6c7d44;
  --olive-d:  #566436;
  --gold:     #c69a55;
  --gold-pl:  #e6cf97;
  --serif: "Cormorant", "Times New Roman", serif;
  --script: "Marck Script", cursive;
  --caps: "Marcellus", "Cormorant", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; }
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--text);
  font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.locked { overflow: hidden; height: 100dvh; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: rgba(176,112,47,.22); }

/* бумажная текстура поверх всего — единый акварельный лист */
.paper-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ---------- общие ---------- */
.script { font-family: var(--script); font-weight: 400; }
.shoe-ico { width: 54px; height: 54px; color: var(--ochre); display: block; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--caps); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), background .4s, color .4s;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.97); }
.btn--gold { color: var(--ochre-d); border: 1px solid var(--ochre); background: rgba(255,255,255,.35); }
.btn--gold:hover { background: var(--ochre); color: var(--cream); }

/* ============================================================
   КОНВЕРТ
   ============================================================ */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; color: var(--text); }
/* фон конверта = бумага логотипа (#f3e2c2), эмблема растворяется в ней без шва */
.gate__wash { position: absolute; inset: 0; background: #f2e1c0; }
.gate__inner { position: relative; display: grid; justify-items: center; gap: 13px; padding: 32px 30px; text-align: center; max-width: 92vw; }
.gate__logo {
  width: clamp(210px, 62vw, 300px); height: auto; margin-bottom: -2px;
  -webkit-mask: radial-gradient(circle at 50% 47%, #000 52%, transparent 76%);
  mask: radial-gradient(circle at 50% 47%, #000 52%, transparent 76%);
}
.gate__seal { position: relative; width: 152px; height: 152px; margin-bottom: 4px; color: var(--ochre); }
.gate__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 36s linear infinite; }
.gate__ring text { font-family: var(--caps); font-size: 11px; letter-spacing: .26em; fill: var(--ochre); }
@keyframes spin { to { transform: rotate(360deg); } }
.gate__shoe { position: absolute; inset: 38px; color: var(--olive-d); }
.gate__eyebrow { font-family: var(--caps); font-size: 11.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--soft); }
.gate__title { font-family: var(--caps); font-weight: 400; font-size: clamp(42px, 12vw, 78px); line-height: 1.02; color: var(--olive-d); }
.gate__sub { font-size: 16px; letter-spacing: .2em; color: var(--ochre-d); }
.gate__btn {
  margin-top: 22px; position: relative; overflow: hidden;
  font-family: var(--caps); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ochre-d); background: rgba(255,255,255,.4); border: 1px solid var(--ochre); border-radius: 999px;
  padding: 17px 40px; cursor: pointer;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), background .5s, color .5s;
}
.gate__btn:hover { background: var(--ochre); color: var(--cream); transform: translateY(-2px); }
.gate__btn:active { transform: scale(.97); }
.gate__btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; left: -90px; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shine 3.6s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes shine { 55%, 100% { left: 130%; } }
.gate__hint { font-size: 13px; color: var(--soft); opacity: .8; }

/* ============================================================
   КНОПКА ЗВУКА
   ============================================================ */
.sound {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(176,112,47,.5); background: rgba(250,243,227,.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ochre); cursor: pointer; display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.sound[hidden] { display: none; }
.sound:active { transform: scale(.92); }
.sound__ico { width: 21px; height: 21px; }
.sound__waves { position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; }
.sound__waves i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(176,112,47,.5); opacity: 0; }
.sound.is-on .sound__waves i { animation: wave 2.6s ease-out infinite; }
.sound.is-on .sound__waves i:nth-child(2) { animation-delay: .85s; }
.sound.is-on .sound__waves i:nth-child(3) { animation-delay: 1.7s; }
@keyframes wave { from { transform: scale(1); opacity: .6; } to { transform: scale(1.85); opacity: 0; } }
.sound.is-off .sound__ico { opacity: .42; }

/* ============================================================
   ГЕРОЙ · РЕКА
   ============================================================ */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(116% 60% at 50% 45%, rgba(249,241,222,.66) 0%, rgba(249,241,222,.2) 44%, transparent 68%),
    linear-gradient(180deg, rgba(250,243,227,.5) 0%, transparent 22%, transparent 54%, rgba(244,233,211,.5) 82%, var(--paper) 100%);
}
.hero__content { position: relative; z-index: 3; align-self: center; justify-self: center; text-align: center; display: grid; gap: 18px; justify-items: center; padding: 24px; }
.hero__eyebrow { font-family: var(--caps); font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: var(--ochre-d); text-shadow: 0 1px 10px rgba(249,241,222,.95); }
.hero__title {
  font-family: var(--caps); font-weight: 400; line-height: .98;
  font-size: clamp(54px, 16vw, 120px); letter-spacing: .01em; color: #3f3320;
  text-shadow: 0 1px 2px rgba(249,241,222,.95), 0 2px 16px rgba(249,241,222,.95), 0 0 44px rgba(249,241,222,.7); display: grid;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ch { display: inline-block; will-change: transform; }
.hero__rule { width: min(200px, 46vw); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ochre) 18%, var(--ochre) 82%, transparent); }
.hero__date { font-family: var(--serif); font-size: clamp(16px, 4.4vw, 21px); letter-spacing: .14em; color: var(--text); text-shadow: 0 1px 12px rgba(250,243,227,.9); }
.hero__scroll { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 10px; color: var(--olive-d); }
.hero__scroll span { font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; }
.hero__scroll i { width: 2px; height: 38px; border-radius: 2px; background: linear-gradient(180deg, var(--ochre), transparent); animation: drip 2.2s cubic-bezier(.22,.61,.36,1) infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0);opacity:1} 55%{transform:scaleY(1);opacity:.8} 100%{transform:scaleY(1) translateY(10px);opacity:0} }

/* ============================================================
   КРЕМОВЫЕ ТЕКСТ-СЕКЦИИ
   ============================================================ */
.note { position: relative; z-index: 1; padding: clamp(70px, 16vw, 130px) 26px; max-width: 660px; margin-inline: auto; text-align: center; display: grid; gap: 22px; justify-items: center; background: radial-gradient(140% 80% at 50% 0%, var(--cream), var(--paper) 72%); }
.note--tight { padding-block: clamp(54px, 12vw, 96px); }
.note__lead { font-size: clamp(23px, 6vw, 32px); font-style: italic; font-weight: 300; line-height: 1.36; display: grid; gap: 2px; color: var(--text); }
.note__guest { font-size: clamp(38px, 10vw, 56px); color: var(--ochre); line-height: 1.05; }
.note__label { font-family: var(--caps); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ochre); }
.note__text { font-size: clamp(18px, 4.8vw, 21px); color: var(--soft); max-width: 40ch; }
.note__text--lg { font-size: clamp(19px, 5vw, 24px); color: var(--text); line-height: 1.5; }

/* ============================================================
   ПОЛНОЭКРАННЫЕ ФОТО-СЦЕНЫ
   ============================================================ */
.scene { position: relative; min-height: 100svh; overflow: hidden; display: grid; content-visibility: auto; contain-intrinsic-size: auto 100svh; }
/* фото мягко растворяются в кремовой бумаге сверху и снизу — единый «свиток», без резких стыков */
.scene::before, .scene::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; height: clamp(90px, 17vh, 168px); }
.scene::before { top: -1px; background: linear-gradient(180deg, var(--paper) 0%, rgba(244,233,211,.72) 34%, transparent 100%); }
.scene::after { bottom: -1px; background: linear-gradient(0deg, var(--paper) 0%, rgba(244,233,211,.72) 34%, transparent 100%); }
.scene__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; will-change: transform; animation: kenburns 24s ease-in-out infinite alternate; }
.scene__img.loaded { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.13) translateY(-2%); } }

.scene__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene__scrim--b { background: linear-gradient(180deg, transparent 38%, rgba(40,32,20,.12) 62%, rgba(35,28,16,.62) 100%); }
.scene__scrim--t { background: linear-gradient(180deg, rgba(250,243,227,.82) 0%, rgba(250,243,227,.58) 38%, rgba(250,243,227,.22) 64%, transparent 84%); }
.scene__scrim--soft { background: radial-gradient(120% 80% at 50% 70%, rgba(250,243,227,.5) 0%, transparent 60%), linear-gradient(180deg, rgba(250,243,227,.25), transparent 30%); }

.scene__cap { position: relative; z-index: 2; align-self: end; justify-self: center; text-align: center; padding: 0 26px clamp(48px, 12vw, 92px); display: grid; gap: 8px; }
.cap-label { font-family: var(--caps); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-pl); text-shadow: 0 2px 12px rgba(30,22,12,.7); }
.cap-line { font-size: clamp(30px, 8.5vw, 50px); color: var(--cream); line-height: 1.18; text-shadow: 0 3px 20px rgba(30,22,12,.6); }
/* подпись сверху — на светлом небе, тёмная «акварельная» надпись */
.scene__cap--t { align-self: start; padding: clamp(72px, 17vw, 124px) 26px 0; }
.scene__cap--t .cap-label { color: var(--ochre-d); text-shadow: 0 1px 8px rgba(249,241,222,.92); }
.scene__cap--t .cap-line { color: #463826; text-shadow: 0 1px 10px rgba(249,241,222,.95); }

/* карточка (как доехать) */
.scene--route { place-items: center; }
.card {
  position: relative; z-index: 2; width: min(90vw, 460px); margin: 0 auto;
  background: rgba(250,243,227,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(176,112,47,.34); border-radius: 22px;
  padding: clamp(28px, 7vw, 44px); text-align: center; display: grid; gap: 14px;
  box-shadow: 0 30px 70px -40px rgba(60,45,25,.6);
}
.card__label { font-family: var(--caps); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ochre); }
.card__name { font-family: var(--caps); font-size: clamp(26px, 7vw, 34px); color: var(--olive-d); line-height: 1.1; }
.card__addr { color: var(--text); font-size: 17px; line-height: 1.4; }
.card__addr span { display: inline-block; margin-top: 5px; font-size: 13px; color: var(--soft); letter-spacing: .01em; }
.card__maps-label { font-family: var(--caps); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-btn {
  font-family: var(--caps); font-size: 13px; letter-spacing: .04em; color: var(--ochre-d);
  background: rgba(255,255,255,.55); border: 1px solid rgba(176,112,47,.42); border-radius: 13px;
  padding: 14px 8px; text-decoration: none; text-align: center;
  transition: background .3s, color .3s, transform .25s;
}
.map-btn:hover { background: var(--ochre); color: var(--cream); }
.map-btn:active { transform: scale(.97); }

/* финал */
.scene--fin { align-items: start; }
.fin { position: relative; z-index: 2; align-self: start; justify-self: center; text-align: center; padding: clamp(44px, 12vw, 88px) 26px 0; display: grid; gap: 12px; justify-items: center; }
.fin__shoe { width: 52px; height: 52px; color: var(--ochre); }
.fin__label { font-family: var(--caps); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--ochre-d); }
.fin__time { font-family: var(--caps); font-size: clamp(56px, 17vw, 104px); line-height: .9; color: var(--olive-d); text-shadow: 0 2px 18px rgba(250,243,227,.9); }
.fin__date { font-family: var(--serif); font-size: clamp(18px, 5vw, 24px); letter-spacing: .12em; color: var(--text); }
.fin__big { font-size: clamp(34px, 9vw, 50px); color: var(--ochre); line-height: 1.1; margin-top: 6px; }
.fin__site { font-family: var(--caps); margin-top: 8px; font-size: 13px; letter-spacing: .2em; color: var(--ochre-d); text-decoration: none; border-bottom: 1px solid rgba(176,112,47,.4); padding-bottom: 3px; }
.count { display: flex; gap: clamp(12px, 4vw, 22px); margin: 8px 0 2px; }
.count__cell { display: grid; gap: 4px; }
.count__cell b { font-family: var(--serif); font-size: clamp(26px, 7vw, 38px); font-weight: 400; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.count__cell span { font-family: var(--caps); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* ============================================================
   ДОСТУПНОСТЬ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene__img { opacity: 1; }
}
