:root {
  --forest: #171c18;
  --forest-2: #20261f;
  --ivory: #f1ede3;
  --moss: #596b50;
  --ochre: #c79551;
  --sand: #ded3be;
  --text: #242823;
  --muted: #6e726a;
  --line: rgba(36, 40, 35, .18);
  --line-dark: rgba(241, 237, 227, .18);
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 5px;
  --header-h: 86px;
  --section-y: clamp(48px, 4vw, 68px);
  --section-y-tight: clamp(36px, 3.2vw, 54px);
  --section-mark-gap: clamp(22px, 2vw, 30px);
  --block-gap: clamp(22px, 2.4vw, 34px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  background: var(--ivory);
  font-family: "Onest", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--ochre); color: var(--forest); }
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: var(--ivory); color: var(--forest); transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, height .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  height: 72px;
  background: rgba(23, 28, 24, .93);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(241,237,227,.1);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; filter: brightness(0) invert(1); opacity: .94; }
.brand-text { font-family: "Montserrat Alternates", Arial, sans-serif; font-size: 24px; font-weight: 600; letter-spacing: .045em; line-height: 1; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); font-size: 14px; font-weight: 500; }
.main-nav > a:not(.nav-cta) { position: relative; padding-block: 8px; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--ochre); transition: right .25s ease; }
.main-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.nav-cta { background: var(--ochre); color: var(--forest); }
.nav-cta span, .button span, .text-link span { transition: transform .2s ease; }
.nav-cta:hover span, .button:hover span, .text-link:hover span { transform: translateX(4px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 11px 8px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 7px 0; background: var(--ivory); }

.hero { position: relative; min-height: 100svh; height: max(820px, 100svh); overflow: hidden; background: var(--forest); color: var(--ivory); }
.hero-media { position: absolute; inset: 0 0 0 38%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 47%; filter: saturate(.94) contrast(1.03); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest) 0%, rgba(23,28,24,.98) 28%, rgba(23,28,24,.58) 51%, rgba(23,28,24,.08) 74%, rgba(23,28,24,.2) 100%); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: var(--header-h); }
.hero-copy { width: min(720px, 58%); padding-block: 80px 60px; }
.eyebrow, .section-mark { font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 500; }
.hero .eyebrow { color: rgba(241,237,227,.68); margin: 0 0 28px; }
.hero h1, h2, h3 { font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; margin: 0; line-height: .97; font-weight: 600; }
.hero h1 { font-size: clamp(60px, 6.6vw, 100px); letter-spacing: -.025em; text-transform: uppercase; max-width: 820px; }
.hero h1 em { color: var(--ochre); font-style: normal; }
.hero-lead { width: min(540px, 90%); margin: 30px 0 0; color: rgba(241,237,227,.82); font-size: clamp(18px, 1.35vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 40px; }
.button-primary { background: var(--ochre); color: var(--forest); }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; line-height: 1.2; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.text-link-light { color: rgba(241,237,227,.9); }

.quick-facts { border-bottom: 1px solid var(--line); background: var(--ivory); }
.facts-grid { display: grid; grid-template-columns: 1.1fr 1.25fr 1.45fr 1.2fr; }
.fact { min-height: 190px; padding: 36px 28px 30px 0; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 32px; }
.fact:last-child { border-right: 0; }
.fact strong { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 25px; line-height: 1.05; font-weight: 600; text-transform: uppercase; }
.fact span { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 9px; max-width: 250px; }
.fact-number strong { color: var(--ochre); font-size: 66px; line-height: .8; }

.section { padding: var(--section-y) 0; }
.section-mark { display: flex; align-items: center; gap: 16px; color: var(--muted); margin-bottom: var(--section-mark-gap); }
.section-mark span:first-child { color: var(--ochre); }
.section-mark::after { content: ""; width: min(260px, 24vw); height: 1px; background: var(--line); margin-left: 8px; }
.section-mark-dark { color: rgba(241,237,227,.58); }
.section-mark-dark::after { background: var(--line-dark); }
.about { padding-top: var(--section-y-tight); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .9fr); gap: clamp(56px, 8vw, 130px); align-items: center; }
.about-photo { margin: 0; height: clamp(520px, 55vw, 720px); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 45%; }
.about-copy h2, .section-heading h2, .schedule h2 { font-size: clamp(48px, 5vw, 76px); text-transform: uppercase; letter-spacing: -.02em; }
.about-copy .lead { margin: 34px 0 24px; font-size: clamp(20px, 1.55vw, 24px); line-height: 1.55; }
.about-copy p:not(.lead) { color: var(--muted); max-width: 650px; }

.animals { padding-bottom: 0; color: var(--ivory); background: var(--forest); overflow: hidden; }
.section-heading { display: grid; grid-template-columns: 1.15fr .7fr; gap: 64px; align-items: end; margin-bottom: 58px; }
.section-heading h2 { max-width: 800px; }
.section-heading p { color: var(--muted); margin: 0 0 7px; max-width: 520px; }
.section-heading-dark p { color: rgba(241,237,227,.58); }
.animal-carousel { position: relative; }
.animal-carousel-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.animal-carousel-viewport::-webkit-scrollbar { display: none; }
.animal-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; align-items: stretch; }
.animal-slide { scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; min-width: 0; min-height: 100%; color: var(--forest); background: var(--ivory); border: 1px solid rgba(241,237,227,.14); }
.animal-slide-photo { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: #0c0f0d; }
.animal-slide-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.animal-slide:hover .animal-slide-photo img { transform: scale(1.025); }
.animal-slide-copy { display: flex; flex-direction: column; flex: 1; min-height: 260px; padding: 28px 28px 32px; }
.animal-kind { margin-bottom: 14px; color: var(--ochre); font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.animal-slide h3 { margin: 0; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(27px, 2vw, 34px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.015em; }
.animal-slide em { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.animal-slide p { margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.62; }
.animal-carousel-nav { display: flex; justify-content: center; align-items: center; min-height: 28px; margin-top: 24px; }
.animal-carousel-arrow { position: absolute; top: 45%; z-index: 6; width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(199,149,81,.78); background: rgba(23,28,24,.94); color: var(--ivory); font-size: 23px; cursor: pointer; transform: translateY(-50%); transition: background .2s, color .2s, border-color .2s, transform .2s; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.animal-carousel-arrow[data-animal-prev] { left: -25px; }
.animal-carousel-arrow[data-animal-next] { right: -25px; }
.animal-carousel-arrow:hover:not(:disabled) { background: var(--ochre); color: var(--forest); border-color: var(--ochre); transform: translateY(-50%) scale(1.04); }
.animal-carousel-arrow:disabled { opacity: .3; cursor: default; }
.animal-carousel-dots { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; max-width: calc(100% - 24px); overflow: hidden; }
.animal-carousel-dot { width: 8px; height: 8px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: rgba(241,237,227,.28); cursor: pointer; transition: width .25s, border-radius .25s, background .25s; }
.animal-carousel-dot.is-active { width: 28px; border-radius: 999px; background: var(--ochre); }
.animal-carousel-viewport:focus-visible { outline: 2px solid var(--ochre); outline-offset: 5px; }
.species-strip { margin-top: 54px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 20px 0; white-space: nowrap; overflow: hidden; color: rgba(241,237,227,.48); font-family: "IBM Plex Sans Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 22px; }
.species-track { display: flex; width: max-content; will-change: transform; transform: translate3d(0,0,0); }
.species-group { display: flex; flex: 0 0 auto; width: max-content; }
.species-item { display: block; flex: 0 0 auto; white-space: nowrap; padding-right: 0; }

.visit { background: var(--ivory); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.visit-option { padding: 38px 7vw 52px 0; min-height: 420px; }
.visit-option + .visit-option { border-left: 1px solid var(--line); padding-left: 7vw; padding-right: 0; }
.tag { border-radius: 999px; padding: 5px 10px; color: var(--forest); background: var(--sand); letter-spacing: .05em; }
.tag-outline { background: transparent; border: 1px solid var(--line); }
.visit-option h3, .night-tour h3 { margin-top: 56px; font-size: clamp(34px, 3vw, 48px); text-transform: uppercase; line-height: 1; }
.price { margin-top: 28px; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 58px; line-height: 1; font-weight: 600; color: var(--ochre); }
.price small { font-size: 18px; font-weight: 500; }
.visit-option p { max-width: 480px; color: var(--muted); margin: 24px 0 32px; }
.night-tour {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
  gap: clamp(58px, 7vw, 112px);
  align-items: center;
  margin-top: 38px;
  padding: clamp(44px, 5vw, 74px);
  color: var(--ivory);
  background:
    radial-gradient(circle at 76% 36%, rgba(25,71,91,.17), transparent 31%),
    linear-gradient(135deg, #0d1512 0%, #0f1815 52%, #0a1319 100%);
  overflow: hidden;
}
.night-tour::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(241,237,227,.06);
}
.night-content { position: relative; z-index: 2; min-width: 0; }
.tag-night { color: var(--ivory); background: rgba(199,149,81,.1); border: 1px solid rgba(199,149,81,.58); }
.night-tour h3 {
  margin: clamp(42px, 5vw, 70px) 0 0;
  max-width: 8ch;
  font-size: clamp(48px, 4.8vw, 70px);
  line-height: .92;
  letter-spacing: -.015em;
}
.night-content > p {
  margin: 30px 0 0;
  max-width: 540px;
  color: rgba(241,237,227,.68);
}
.night-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 42px; }
.price-light { margin: 0; font-size: clamp(64px, 6.4vw, 88px); color: var(--ochre); }
.price-light small { font-size: clamp(18px, 1.7vw, 24px); color: var(--ivory); }
.night-media {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 18px;
  align-self: center;
}
.night-shot { margin: 0; overflow: hidden; background: transparent; }
.night-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.night-shot-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  box-shadow: none;
}
.night-shot-main img { object-position: center center; }
.night-note {
  position: static;
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(199,149,81,.32);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(241,237,227,.54);
}
.button-outline { border: 1px solid rgba(241,237,227,.55); color: var(--ivory); }
.button-outline:hover { background: var(--ivory); color: var(--forest); }

.schedule { padding: clamp(90px, 9vw, 135px) 0; background: var(--sand); }
.schedule-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 8vw, 120px); align-items: start; }
.schedule-list { border-top: 1px solid rgba(36,40,35,.28); }
.schedule-list > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid rgba(36,40,35,.28); }
.schedule-list span { font-family: "IBM Plex Sans Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 17px; font-weight: 500; }
.schedule-list strong { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(28px, 3vw, 44px); font-weight: 600; }
.schedule-list small { grid-column: 2; color: var(--muted); margin-top: -16px; }

.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: stretch; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  :root { --gutter: clamp(20px, 3.5vw, 42px); }
  .hero-media { left: 32%; }
  .hero-copy { width: 64%; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid { gap: 60px; }
  .animal-carousel-track { grid-auto-columns: calc((100% - 18px) / 2); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }
  /* Пока мобильное меню открыто, отключаем backdrop-filter у header.
     Иначе браузеры могут использовать header как containing block для
     position: fixed и полноэкранное меню начинает «схлопываться» при скролле. */
  body.menu-open .site-header {
    height: var(--header-h);
    background: var(--forest);
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .brand img { width: 48px; height: 48px; }
  .brand-text { font-size: 20px; }
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .main-nav { position: fixed; inset: 0; z-index: 55; width: 100vw; height: 100vh; height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 100px var(--gutter) 60px; background: rgba(23,28,24,.995); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s; font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 34px; text-transform: uppercase; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-cta { margin-top: 20px; font-family: "Onest", sans-serif; font-size: 15px; text-transform: none; }

  .hero { height: auto; min-height: 880px; }
  .hero-media { inset: 39% 0 0; }
  .hero-media img { object-position: 58% 44%; }
  .hero-shade { background: linear-gradient(180deg, var(--forest) 0%, var(--forest) 36%, rgba(23,28,24,.82) 51%, rgba(23,28,24,.12) 77%, rgba(23,28,24,.38) 100%); }
  .hero-inner { align-items: flex-start; padding-top: 138px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero h1 { font-size: clamp(52px, 13vw, 74px); }
  .hero-lead { max-width: 500px; }
  
  .about-grid, .section-heading, .schedule-grid, .location-grid { grid-template-columns: 1fr; }
  .about-photo { height: 560px; }
  .section-heading { gap: 18px; }
  .animal-carousel-track { grid-auto-columns: minmax(310px, 72%); }
  .animal-slide-copy { min-height: 245px; }
  .visit-option { padding-right: 5vw; }
  .visit-option + .visit-option { padding-left: 5vw; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hero { min-height: 840px; }
  .hero-inner { padding-top: 120px; }
  .hero .eyebrow { margin-bottom: 19px; max-width: 320px; line-height: 1.5; }
  .hero h1 { font-size: clamp(48px, 15.5vw, 64px); }
  .hero-lead { margin-top: 22px; font-size: 17px; max-width: 360px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 30px; }
  .button { width: 100%; }
    .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .fact-number strong { font-size: 56px; }
  .section { padding: 88px 0; }
  .section-mark { margin-bottom: 38px; }
  .section-mark::after { flex: 1; width: auto; }
  .about-grid { gap: 45px; }
  .about-photo { height: 120vw; max-height: 620px; }
  .about-copy h2, .section-heading h2, .schedule h2 { font-size: 44px; }
  .animal-carousel-track { grid-auto-columns: 88%; gap: 12px; }
  .animal-slide-copy { min-height: 250px; padding: 24px 22px 28px; }
  .animal-slide h3 { font-size: 30px; }
  .animal-slide p { font-size: 15px; }
  .animal-carousel-nav { margin-top: 20px; }
  .animal-carousel-arrow { top: 42%; width: 44px; height: 44px; }
  .animal-carousel-arrow[data-animal-prev] { left: 7px; }
  .animal-carousel-arrow[data-animal-next] { right: 7px; }
  .animal-carousel-dots { gap: 6px; }
  .animal-carousel-dot { width: 7px; height: 7px; }
  .animal-carousel-dot.is-active { width: 22px; }
  .species-strip { font-size: 18px; }
  .visit-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .visit-option, .visit-option + .visit-option { min-height: 0; padding: 34px 0 46px; border-left: 0; border-bottom: 1px solid var(--line); }
  .visit-option h3 { margin-top: 40px; font-size: 38px; }
  .price { font-size: 50px; }
  .schedule-list > div { grid-template-columns: 1fr; gap: 7px; }
  .schedule-list small { grid-column: 1; margin-top: 0; }
  }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .species-track { transform: none; }
  .animal-carousel-viewport { scroll-behavior: auto; }
}

/* ============================================================
   ТУМАН — consolidated project styles
   Legacy version-specific overrides were folded into this block.
   ============================================================ */

/* Hero refinements */
@media (min-width: 861px) {
  .hero-actions { transform: translateY(-16px); }
}

@media (min-width: 861px) and (max-aspect-ratio: 4/5) {
  .hero { min-height: 720px; height: clamp(720px, 75vw, 900px); }
  .hero-media { inset: 0 0 0 32%; }
  .hero-media img { object-position: 60% 48%; }
  .hero-copy { width: min(660px, 62%); }
}

@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; min-height: 0; height: auto; padding-top: var(--header-h); }
  .hero-inner { order: 1; height: auto; flex: none; align-items: flex-start; padding-top: clamp(54px, 9vw, 82px); padding-bottom: 0; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-media { position: relative; order: 2; inset: auto; width: 100%; height: clamp(430px, 74vw, 650px); margin-top: 42px; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--forest) 0%, rgba(23,28,24,.24) 18%, rgba(23,28,24,0) 45%, rgba(23,28,24,.3) 100%); pointer-events: none; }
  .hero-media img { object-position: 61% 45%; }
  .hero-shade { display: none; }
}

@media (max-width: 620px) {
  .hero-inner { padding-top: 44px; }
  .hero h1 { font-size: clamp(46px, 14vw, 60px); }
  .hero-media { height: 112vw; min-height: 420px; max-height: 600px; margin-top: 34px; }
  .hero-media img { object-position: 62% 48%; }
}

/* 03 / Смотрите внимательнее — aligned to the shared site container */
.closer-look {
  position: relative;
  padding: var(--section-y-tight) 0;
  color: var(--ivory);
  background: var(--forest);
  overflow: hidden;
}
.closer-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 4.2vw, 66px);
  align-items: center;
}
.closer-copy { min-width: 0; }
.closer-text { width: 100%; max-width: 560px; padding: 0; }
.closer-text .section-mark { margin-bottom: clamp(24px, 2.4vw, 32px); }
.closer-text .section-mark::after { width: min(150px, 12vw); }
.closer-text h2 {
  max-width: 100%;
  font-size: clamp(52px, 4.55vw, 76px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.closer-text p {
  max-width: 430px;
  margin: 24px 0 0;
  color: rgba(241,237,227,.68);
  font-size: 18px;
}
.closer-image {
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.closer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}

@media (max-width: 860px) {
  .closer-look { padding: 48px 0; }
  .closer-layout { grid-template-columns: 1fr; gap: 28px; }
  .closer-text { max-width: none; }
  .closer-text p { max-width: 620px; }
  .closer-image { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .closer-look { padding: 34px 0 40px; }
  .closer-layout { gap: 22px; }
  .closer-text .section-mark { margin-bottom: 26px; gap: 10px; }
  .closer-text .section-mark::after { width: auto; flex: 1; }
  .closer-text h2 { font-size: clamp(36px, 10.2vw, 46px); line-height: .95; letter-spacing: -.02em; }
  .closer-text p { margin-top: 20px; max-width: 100%; font-size: 16px; }
}

/* Visits / prices */
.visit { background: var(--ivory); }
.section.visit { padding-top: var(--section-y-tight); padding-bottom: var(--section-y); }
.visit > .container > .section-mark { margin-bottom: clamp(24px, 2.2vw, 30px); }
.visit > .container > .section-heading { margin-bottom: clamp(28px, 2.8vw, 38px); }
.visit-option { min-height: 340px; padding: 28px 5vw 38px 0; }
.visit-option + .visit-option { padding-left: 5vw; padding-right: 0; }
.visit-option h3 { margin-top: 36px; }
.price { margin-top: 20px; }
.visit-option p { margin: 18px 0 26px; }

/* School programs, discounts, certificates: one shared rhythm */
.school-programs,
.visit-discounts,
.gift-certificate { margin-top: var(--block-gap); }

.school-programs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.school-programs-kicker {
  display: block;
  margin: 0;
  padding: clamp(24px, 2.4vw, 34px) 0 0;
}
.school-programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.school-programs-column {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px) clamp(28px, 3vw, 48px) clamp(28px, 2.8vw, 38px) 0;
}
.school-programs-column + .school-programs-column {
  padding-left: clamp(28px, 3vw, 48px);
  padding-right: clamp(24px, 2.8vw, 40px);
  border-left: 1px solid var(--line);
}
.school-programs h3 {
  margin: 0 0 20px;
  max-width: 11ch;
  color: var(--text);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.school-programs-column p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.school-programs-column p + p { margin-top: 12px; }
.school-programs-column .school-programs-emphasis {
  margin-top: 18px;
  color: var(--text);
}
.school-programs-emphasis strong {
  color: var(--ochre);
  font-weight: 600;
}

.visit-discounts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.discount-item { min-width: 0; padding: clamp(24px, 2.4vw, 34px) clamp(22px, 2.7vw, 40px) clamp(26px, 2.6vw, 36px) 0; }
.discount-item + .discount-item { padding-left: clamp(22px, 2.7vw, 40px); border-left: 1px solid var(--line); }
.discount-kicker { display: block; margin-bottom: 14px; color: var(--muted); font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.discount-item > strong,
.birthday-discount strong { color: var(--ochre); font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(42px, 4.2vw, 62px); font-weight: 600; line-height: .95; }
.discount-item p { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.discount-item p b { color: var(--text); font-weight: 600; }
.birthday-discount { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.birthday-discount span { color: var(--text); font-size: 15px; }
.discount-list { list-style: none; display: grid; gap: 7px; max-width: 520px; margin: 16px 0 0; padding: 0; color: var(--text); font-size: 15px; }
.discount-list li { position: relative; padding-left: 22px; }
.discount-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--ochre); }
.discount-note { margin-top: 16px !important; }
.birthday-window { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.birthday-window strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 34px; padding: 0 10px; border-radius: 999px; color: var(--forest); background: var(--ochre); font-size: 15px; line-height: 1; }

.gift-certificate { display: block; padding: clamp(24px, 2.4vw, 34px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gift-certificate-copy { max-width: 920px; padding-left: clamp(20px, 2.2vw, 32px); border-left: 2px solid rgba(199,149,81,.7); }
.gift-certificate-copy .discount-kicker { margin-bottom: 10px; }
.gift-certificate-copy h3 { margin: 0; color: var(--text); font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.05; text-transform: uppercase; }
.gift-certificate-copy p { max-width: 650px; margin: 13px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* 05 / Schedule */
.schedule { padding: var(--section-y-tight) 0; background: var(--sand); }
.schedule-grid { align-items: start; }
.schedule-intro .section-mark { margin-bottom: clamp(30px, 3vw, 40px); }
.schedule-list { margin-top: 0; }
.schedule-list > div { padding: 22px 0; }

/* 06 / Reviews */
.reviews { padding: var(--section-y) 0; color: var(--ivory); background: var(--forest); overflow: hidden; }
.reviews .section-mark { margin-bottom: var(--section-mark-gap); }
.reviews-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(36px, 5vw, 78px); align-items: end; margin-bottom: clamp(32px, 3.4vw, 44px); }
.reviews-heading h2 { margin: 0; font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; font-size: clamp(56px, 6vw, 88px); line-height: .92; font-weight: 600; letter-spacing: -.025em; text-transform: uppercase; }
.reviews-heading p { max-width: 520px; margin: 0 0 4px; color: rgba(241,237,227,.62); font-size: 17px; }
.reviews-carousel { position: relative; }
.reviews-carousel-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.reviews-carousel-viewport::-webkit-scrollbar { display: none; }
.reviews-carousel-viewport:focus-visible { outline: 2px solid var(--ochre); outline-offset: 5px; }
.reviews-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; align-items: stretch; }
.review-card { min-width: 0; display: flex; flex-direction: column; min-height: 390px; padding: clamp(28px, 2.7vw, 38px); background: var(--forest-2); border: 1px solid rgba(241,237,227,.12); scroll-snap-align: start; scroll-snap-stop: always; }
.review-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.review-source { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(241,237,227,.55); }
.review-stars { color: var(--ochre); font-size: 14px; letter-spacing: .1em; white-space: nowrap; }
.review-card blockquote { margin: 30px 0 34px; padding: 0; font-family: "Onest", Arial, sans-serif; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; font-weight: 400; color: var(--ivory); }
.review-card footer { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(241,237,227,.14); }
.review-card footer strong { font-size: 14px; font-weight: 600; }
.review-card footer span { color: rgba(241,237,227,.48); font-size: 12px; white-space: nowrap; }
.reviews-carousel-nav { display: flex; justify-content: center; align-items: center; min-height: 28px; margin-top: 22px; }
.reviews-carousel-arrow { position: absolute; top: 45%; z-index: 6; width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(199,149,81,.78); background: rgba(23,28,24,.94); color: var(--ivory); font-size: 23px; cursor: pointer; transform: translateY(-50%); transition: background .2s, color .2s, border-color .2s, transform .2s; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.reviews-carousel-arrow[data-review-prev] { left: -25px; }
.reviews-carousel-arrow[data-review-next] { right: -25px; }
.reviews-carousel-arrow:hover { background: var(--ochre); color: var(--forest); border-color: var(--ochre); transform: translateY(-50%) scale(1.04); }
.reviews-carousel-dots { display: flex; justify-content: center; align-items: center; gap: 7px; min-width: 0; max-width: calc(100% - 24px); overflow: hidden; }
.reviews-carousel-dot { width: 8px; height: 8px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: rgba(241,237,227,.28); cursor: pointer; transition: width .25s, border-radius .25s, background .25s; }
.reviews-carousel-dot.is-active { width: 26px; border-radius: 999px; background: var(--ochre); }
.reviews-footer { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: clamp(28px, 3vw, 40px); }
.reviews-footer p { max-width: 640px; margin: 0; color: rgba(241,237,227,.58); font-size: 14px; }
.review-platform-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.review-platform-links .button { width: auto; }
.review-yandex { border-color: rgba(241,237,227,.38); }

/* 07 / Location */
.location { padding: var(--section-y-tight) 0; background: var(--ivory); }
.location-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 5vw, 74px); align-items: start; }
.location h2 { margin-top: 8px; font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; font-size: clamp(48px, 5vw, 76px); line-height: .97; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; }
.location-copy p { color: var(--muted); max-width: 560px; margin: 18px 0 24px; }
.location-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.location-links .text-link { flex: 0 0 auto; }
.map-widget { position: relative; width: 100%; min-width: 0; min-height: 500px; overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.map-widget iframe { width: 100% !important; max-width: 100% !important; height: 500px !important; min-height: 500px !important; border: 0 !important; }
.map-widget object { max-width: 100% !important; }
.map-widget .dg-widget-link { display: none !important; font-size: 13px; color: var(--muted); }
.map-widget:not(.is-loaded)::before {
  content: "Карта 2ГИС загрузится при приближении к этому разделу";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(222,211,190,.72), rgba(241,237,227,.9));
  font-size: 14px;
  text-align: center;
}
.map-widget.is-loading::before { content: "Загружаем карту 2ГИС…"; }
.map-widget.is-error::before { content: "Карту не удалось загрузить. Маршрут можно открыть по ссылкам рядом."; }
.map-widget.is-loaded::before { display: none; }
.map-noscript { display: block; padding: 22px; color: #9a2d22; font-weight: 600; }

/* 08 / Contacts */
.contacts { padding: var(--section-y-tight) 0; color: var(--ivory); background: var(--moss); }
.contacts-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(44px, 6vw, 96px); align-items: start; }
.contacts .eyebrow { margin: 0 0 16px; color: rgba(241,237,227,.62); }
.contacts h2 { font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; margin: 0; font-size: clamp(48px, 5vw, 76px); line-height: .97; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; }
.contact-list { border-top: 1px solid rgba(241,237,227,.25); }
.contact-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(241,237,227,.25); }
.contact-item span { font-family: "IBM Plex Sans Condensed", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: rgba(241,237,227,.58); }
.contact-item strong { font-size: clamp(20px, 2vw, 29px); font-weight: 500; overflow-wrap: anywhere; }
.contact-item em { font-style: normal; font-size: 14px; color: rgba(241,237,227,.72); white-space: nowrap; transition: transform .2s ease, color .2s ease; }
.contact-item:hover em { transform: translateX(4px); color: var(--ivory); }

/* Footer */
.site-footer {
  padding: clamp(40px, 3.8vw, 56px) 0;
  color: rgba(241, 237, 227, .74);
  background: var(--forest);
  border-top: 1px solid var(--line-dark);
}
.site-footer .footer-inner { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: clamp(28px, 3.5vw, 54px); align-items: start; font-size: 14px; line-height: 1.65; }
.footer-brand img { width: 110px; height: auto; max-height: none; filter: none; opacity: 1; }
.footer-copy { max-width: 850px; }
.footer-copy p { margin: 0; color: rgba(241, 237, 227, .74); }
.footer-copy p + p { margin-top: 13px; }
.footer-copy .footer-lead { color: var(--ivory); font-weight: 600; }
.footer-license { color: var(--ivory); border-bottom: 1px solid rgba(199,149,81,.7) !important; transition: color .2s ease, border-color .2s ease; }
.footer-license:hover { color: var(--ochre); border-bottom-color: var(--ochre) !important; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; white-space: nowrap; }
.footer-links a { color: var(--ivory); border-bottom: 1px solid rgba(241,237,227,.3); }
.footer-links a:hover { color: var(--ochre); border-bottom-color: rgba(199,149,81,.8); }

@media (max-width: 1100px) {
  .reviews-carousel-track { grid-auto-columns: calc((100% - 18px) / 2); }
}

@media (max-width: 980px) {
  .reviews-heading { grid-template-columns: 1fr; gap: 22px; }
  .reviews-heading p { max-width: 620px; }
  .reviews-footer { align-items: flex-start; flex-direction: column; }
  .review-platform-links { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 100px minmax(0, 1fr); }
  .footer-brand img { width: 90px; }
  .footer-links { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 12px 26px; }
}

@media (max-width: 860px) {
  .schedule-grid, .location-grid, .contacts-grid { grid-template-columns: 1fr; }
  .location-grid { gap: 42px; }
  .map-widget { min-height: 500px; }
  .map-widget iframe { min-height: 500px !important; }
  .contact-item { grid-template-columns: 105px 1fr; }
  .contact-item em { grid-column: 2; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-mark { margin-bottom: 30px; }
  .section-heading { margin-bottom: 34px; }
  .section.visit { padding-top: 52px; padding-bottom: 58px; }

  .school-programs-grid { grid-template-columns: 1fr; }
  .school-programs-kicker { padding-top: 24px; }
  .school-programs-column {
    padding: 18px 0 26px;
  }
  .school-programs-column + .school-programs-column {
    padding: 24px 0 30px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .school-programs h3 {
    max-width: none;
    font-size: 34px;
  }

  .visit-discounts { grid-template-columns: 1fr; }
  .discount-item, .discount-item + .discount-item { padding: 28px 0 32px; border-left: 0; }
  .discount-item + .discount-item { border-top: 1px solid var(--line); }
  .discount-item > strong, .birthday-discount strong { font-size: 48px; }
  .birthday-window { grid-template-columns: 1fr auto 1fr; width: 100%; gap: 8px; padding: 10px 8px; text-align: center; }

  .gift-certificate { padding: 24px 0 28px; }
  .gift-certificate-copy { padding-left: 18px; }
  .gift-certificate-copy h3 { font-size: 34px; }

  .schedule, .location, .contacts, .reviews { padding: 60px 0; }
}

@media (max-width: 620px) {
  .location { overflow: hidden; }
  .location-grid { width: calc(100% - 2 * var(--gutter)); max-width: none; min-width: 0; margin-inline: var(--gutter); padding: 0; gap: 36px; }
  .location-copy { width: 100%; min-width: 0; max-width: 100%; }
  .location h2 { width: 100%; max-width: 100%; font-size: clamp(36px, 10.5vw, 40px); line-height: .98; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .location-copy p { width: 100%; max-width: 100%; overflow-wrap: break-word; }
  .map-widget { width: 100%; max-width: 100%; min-width: 0; min-height: 390px; overflow: hidden; }
  .map-widget iframe, .map-widget > iframe { display: block; width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 390px !important; height: 390px !important; margin: 0 !important; }

  .brand { gap: 10px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text { font-size: 16px; letter-spacing: .04em; }

  .visit .container, .visit-grid, .visit-option { min-width: 0; max-width: 100%; }
  .visit-grid { width: 100%; overflow: hidden; }
  .visit-option, .visit-option + .visit-option { width: 100%; padding-left: 0; padding-right: 0; }
  .tag { flex: 0 0 auto; max-width: calc(100% - 52px); white-space: nowrap; }
  .visit-option h3 { max-width: 100%; font-size: clamp(28px, 8.5vw, 36px); line-height: .98; overflow-wrap: normal; word-break: normal; hyphens: none; }

  .reviews-heading { margin-bottom: 36px; }
  .reviews-heading h2 { font-size: clamp(45px, 13vw, 58px); }
  .reviews-heading p { font-size: 16px; }
  .reviews-carousel-track { grid-auto-columns: 88%; gap: 12px; }
  .review-card { min-height: 390px; padding: 28px 24px 26px; }
  .review-card blockquote { margin: 26px 0 30px; font-size: 17px; line-height: 1.54; }
  .review-card footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .reviews-footer { align-items: stretch; flex-direction: column; gap: 24px; padding-top: 32px; }
  .reviews-footer .button { width: 100%; }
  .review-platform-links { width: 100%; align-items: stretch; flex-direction: column; }
  .review-platform-links .button { width: 100%; }
  .location-links { align-items: flex-start; flex-direction: column; gap: 16px; }

  .animal-carousel-nav, .reviews-carousel-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; width: 100%; min-height: 44px; margin-top: 18px; }
  .animal-carousel-arrow, .reviews-carousel-arrow { position: static; top: auto; left: auto !important; right: auto !important; width: 44px; height: 44px; transform: none; box-shadow: none; background: rgba(23,28,24,.92); }
  .animal-carousel-arrow:hover:not(:disabled), .reviews-carousel-arrow:hover { transform: none; }
  .animal-carousel-dots, .reviews-carousel-dots { width: 100%; max-width: 100%; justify-self: center; }

  .contact-item { grid-template-columns: 1fr; gap: 7px; padding: 22px 0; }
  .contact-item em { grid-column: 1; margin-top: 5px; }

  .site-footer { padding: 42px 0; }
  .site-footer .footer-inner { display: flex; flex-direction: column; gap: 24px; font-size: 13.5px; }
  .footer-brand img { width: 94px; }
  .footer-copy p + p { margin-top: 16px; }
  .footer-links { width: 100%; flex-direction: column; gap: 12px; padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-carousel-viewport { scroll-behavior: auto; }
}

/* Ticket headers, child admission and final night-tour layout */
.visit-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}
.visit-title-row h3 { min-width: 0; margin: 0; }
.visit-title-row .tag {
  flex: 0 0 auto;
  margin-top: 3px;
  white-space: nowrap;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.visit-option { padding-top: 26px; }
.visit-option h3 { margin-top: 0; }

.discount-free {
  max-width: 520px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.discount-free strong { color: var(--ochre); font-weight: 600; }
.discount-free + .discount-note { margin-top: 12px !important; }

.night-tour {
  grid-template-rows: auto;
  align-items: start;
  gap: clamp(38px, 4.6vw, 68px);
  margin-top: 28px;
}
.night-content { position: relative; z-index: 2; min-width: 0; }
.night-tour h3 { margin-top: 0; }
.night-content > p { margin-top: 22px; }
.night-meta { gap: 22px; margin-top: 30px; }
.night-note { padding-top: 13px; }
.night-tour-tag-photo { display: inline-flex; }
.night-tour-tag-mobile { display: none; }

@media (min-width: 921px) {
  .night-tour {
    grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
    grid-template-rows: auto;
    column-gap: clamp(42px, 5vw, 78px);
    row-gap: 0;
    padding: clamp(32px, 3.4vw, 46px) clamp(38px, 4vw, 58px) clamp(34px, 3.6vw, 50px);
  }
  .night-content { grid-column: 1; grid-row: 1; }
  .night-media {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    gap: 14px;
  }
  .night-shot-main { position: relative; }
  .night-tour-tag-photo {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    margin: 0;
    background: rgba(13, 21, 18, .82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

/* Desktop mode on narrow phones/tablets: let the photo use the right column vertically too.
   This removes the large empty area under the image without changing the normal desktop composition. */
@media (min-width: 921px) and (max-width: 1180px) {
  .night-tour {
    grid-template-columns: minmax(270px, .62fr) minmax(0, 1.38fr);
    column-gap: clamp(28px, 3.2vw, 42px);
    padding: clamp(28px, 3vw, 38px);
  }
  .night-tour h3 { font-size: clamp(46px, 5.2vw, 58px); }
  .night-content > p { font-size: 16px; line-height: 1.58; }
  .night-meta { margin-top: 26px; }
  .price-light { font-size: clamp(60px, 7vw, 76px); }
  .night-media {
    align-self: stretch;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .night-shot-main {
    height: 100%;
    min-height: 350px;
    aspect-ratio: auto;
  }
  .night-shot-main img { object-position: 52% 50%; }
}

@media (max-width: 920px) {
  .visit-title-row { flex-wrap: wrap; row-gap: 12px; }
  .visit-title-row .tag { margin-left: auto; }
  .night-tour {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0;
    padding: 30px 22px 34px;
  }
  .night-tour-tag-photo { display: none; }
  .night-tour-tag-mobile {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin: 0 0 18px;
  }
  .night-content { grid-column: 1; grid-row: 2; }
  .night-content > p { max-width: 680px; }
  .night-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .night-media {
    grid-column: 1;
    grid-row: 3;
    margin-top: 34px;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .visit-option,
  .visit-option + .visit-option { padding-top: 28px; }
  .visit-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .visit-title-row .tag {
    order: -1;
    align-self: flex-end;
    margin: 0;
    max-width: 100%;
  }
  .visit-title-row h3 { width: 100%; }
  .night-tour { margin-top: 28px; padding: 26px 22px 34px; }
  .night-tour-tag-mobile { margin-bottom: 16px; }
  .night-tour h3 { max-width: 9ch; font-size: 40px; }
  .night-content > p { margin-top: 22px; }
  .night-meta { align-items: flex-start; flex-direction: column; margin-top: 32px; }
  .price-light { font-size: 58px; }
  .night-media { gap: 14px; margin-top: 34px; }
  .night-shot-main { aspect-ratio: 4 / 3; }
  .night-note { padding-top: 14px; font-size: 12px; }
}

/* 404 page */
.error-page {
  min-height: 100svh;
  background: var(--ivory);
  color: var(--text);
}
.error-header {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.error-header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.error-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-family: "Montserrat Alternates", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1;
}
.error-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}
.error-home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
}
.error-home-link span,
.error-button span { transition: transform .2s ease; }
.error-home-link:hover span,
.error-button:hover span { transform: translateX(4px); }
.error-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h) - 1px);
  display: grid;
  align-items: center;
  padding: clamp(54px, 7vw, 104px) 0;
}
.error-main::before,
.error-main::after {
  content: "";
  position: absolute;
  aspect-ratio: 2027 / 1930;
  background-color: rgba(89, 107, 80, .1);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
  z-index: 0;
}
.error-main::before {
  left: clamp(-116px, -7vw, -28px);
  top: clamp(42px, 7vw, 110px);
  width: clamp(180px, 18vw, 280px);
  transform: rotate(-10deg);
  opacity: .72;
}
.error-main::after {
  right: clamp(-118px, -7vw, -28px);
  bottom: clamp(18px, 5vw, 74px);
  width: clamp(190px, 20vw, 300px);
  transform: rotate(10deg) scaleX(-1);
  opacity: .68;
}
.error-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr);
  gap: clamp(46px, 8vw, 128px);
  align-items: center;
}
.error-code {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(150px, 20vw, 310px);
  font-weight: 600;
  line-height: .72;
  letter-spacing: -.055em;
  color: var(--ochre);
}
.error-copy .section-mark {
  margin-bottom: clamp(24px, 2.8vw, 38px);
}
.error-copy .section-mark span:first-child { color: var(--ochre); }
.error-copy h1 {
  margin: 0;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.error-copy p {
  max-width: 690px;
  margin: clamp(26px, 3vw, 38px) 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
}
.error-button { margin-top: clamp(30px, 3.4vw, 44px); }

@media (max-width: 760px) {
  .error-header-inner { min-height: 74px; }
  .error-brand { gap: 10px; font-size: 16px; }
  .error-brand img { width: 42px; height: 42px; }
  .error-home-link { font-size: 13px; }
  .error-main { min-height: calc(100svh - 75px); padding: 46px 0 58px; }
  .error-main::before { width: 160px; left: -56px; top: 44px; opacity: .56; transform: rotate(-8deg); }
  .error-main::after { width: 168px; right: -60px; bottom: 18px; opacity: .54; transform: rotate(8deg) scaleX(-1); }
  .error-grid { grid-template-columns: 1fr; gap: 38px; }
  .error-code { font-size: clamp(112px, 38vw, 180px); line-height: .75; }
  .error-copy .section-mark { margin-bottom: 24px; }
  .error-copy h1 { font-size: clamp(46px, 14vw, 66px); }
  .error-copy p { margin-top: 24px; }
}

@media (max-width: 430px) {
  .error-header-inner { gap: 16px; }
  .error-brand span { font-size: 14px; }
  .error-main::before { width: 138px; left: -54px; top: 54px; opacity: .48; }
  .error-main::after { width: 144px; right: -56px; bottom: 26px; opacity: .46; }
  .error-home-link { font-size: 0; border-bottom: 0; padding: 10px; }
  .error-home-link span { font-size: 22px; }
  .error-copy .section-mark { gap: 10px; font-size: 11px; letter-spacing: .12em; }
  .error-copy .section-mark::after { display: none; }
}

/* v49: lazy 2GIS widget is isolated in its own iframe.
   This prevents the legacy DGWidgetLoader/document.write() from replacing
   the main page when the map is initialized after scrolling. */
.map-widget-frame {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 500px !important;
  min-height: 500px !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0;
  transition: opacity .2s ease;
  background: var(--sand);
}
.map-widget.is-loaded .map-widget-frame { opacity: 1; }
.map-widget .map-noscript a { color: inherit; text-decoration: underline; }

@media (max-width: 620px) {
  .map-widget-frame {
    height: 390px !important;
    min-height: 390px !important;
  }
}


/* ============================================================
   Decorative foliage — subtle side accents in the brand palette
   ============================================================ */
:root {
  --leaf-monstera-mask: url("../images/decor/leaf-monstera-mask.webp");
  --leaf-banana-mask: url("../images/decor/leaf-banana-mask.webp");
}

.about,
.animals,
.closer-look,
.visit,
.school-programs-band,
.schedule,
.location,
.contacts,
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about > .container,
.animals > .container,
.closer-look > .container,
.visit > .container,
.school-programs-band > .container,
.schedule > .container,
.location > .container,
.contacts > .container,
.site-footer > .container {
  position: relative;
  z-index: 1;
}

.about::before,
.animals::after,
.closer-look::after,
.visit::before,
.visit::after,
.school-programs-band::after,
.schedule::after,
.location::before,
.contacts::after,
.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.about::before {
  right: clamp(-102px, -5.8vw, -18px);
  top: clamp(118px, 8vw, 176px);
  width: clamp(196px, 19vw, 288px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(89, 107, 80, .11);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: rotate(10deg) scaleX(-1);
  opacity: .72;
}

.animals::after {
  left: clamp(-110px, -6vw, -20px);
  top: clamp(-68px, -4vw, -6px);
  width: clamp(185px, 17vw, 280px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(241, 237, 227, .09);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: rotate(-8deg);
  opacity: .74;
}

.closer-look::after {
  content: none;
}

/* Full-width school area: the viewport edge, not the content column, clips the leaf. */
.school-programs-band::after {
  right: clamp(-94px, -5vw, -22px);
  top: 60%;
  width: clamp(155px, 12vw, 218px);
  aspect-ratio: 692 / 2048;
  background-color: var(--moss);
  opacity: .08;
  -webkit-mask-image: var(--leaf-banana-mask);
  mask-image: var(--leaf-banana-mask);
  transform: translateY(-50%) rotate(-16deg) scaleX(-1);
}

.visit::before {
  left: clamp(-78px, -4vw, -10px);
  top: clamp(148px, 13vw, 224px);
  width: clamp(170px, 16vw, 242px);
  aspect-ratio: 692 / 2048;
  background-color: rgba(89, 107, 80, .14);
  -webkit-mask-image: var(--leaf-banana-mask);
  mask-image: var(--leaf-banana-mask);
  transform: rotate(18deg);
  transform-origin: center 18%;
}

.visit::after {
  right: clamp(-114px, -6vw, -18px);
  top: clamp(86px, 7vw, 142px);
  width: clamp(190px, 18vw, 300px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(89, 107, 80, .11);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: rotate(10deg) scaleX(-1);
  opacity: .68;
}

.schedule::after {
  left: clamp(-128px, -7vw, -36px);
  bottom: clamp(-28px, -1vw, 24px);
  width: clamp(220px, 21vw, 344px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(89, 107, 80, .13);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: rotate(-10deg);
  opacity: .72;
}

.location::before {
  left: clamp(-140px, -8vw, -44px);
  top: clamp(36px, 4vw, 64px);
  width: clamp(180px, 18vw, 300px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(89, 107, 80, .11);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: rotate(-10deg);
}

.contacts::after {
  right: clamp(-84px, -5vw, -12px);
  top: 50%;
  bottom: auto;
  width: clamp(240px, 20vw, 340px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(241, 237, 227, .14);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: translateY(-42%) rotate(10deg) scaleX(-1);
  transform-origin: center;
  opacity: .82;
}

.site-footer::before {
  left: clamp(-132px, -8vw, -46px);
  bottom: clamp(-138px, -7vw, -40px);
  width: clamp(205px, 18vw, 300px);
  aspect-ratio: 2027 / 1930;
  background-color: rgba(89, 107, 80, .16);
  -webkit-mask-image: var(--leaf-monstera-mask);
  mask-image: var(--leaf-monstera-mask);
  transform: rotate(-26deg);
}

@media (max-width: 860px) {
  .about::before { width: 214px; right: -56px; top: 520px; opacity: .62; transform: rotate(10deg) scaleX(-1); }
  .school-programs-band::after { width: 138px; right: -48px; }
  .animals::after { width: 214px; left: -82px; top: -32px; opacity: .7; transform: rotate(-8deg); }
  .closer-look::after { content: none; }
  .visit::before { width: 162px; left: -56px; top: 194px; transform: rotate(18deg); }
  .visit::after { width: 220px; right: -84px; top: 110px; opacity: .62; transform: rotate(10deg) scaleX(-1); }
  .schedule::after { width: 246px; left: -82px; bottom: -8px; opacity: .68; transform: rotate(-10deg); }
  .location::before { width: 210px; left: -82px; top: 112px; opacity: .8; transform: rotate(-8deg); }
  .contacts::after { width: 230px; right: -62px; top: 52%; bottom: auto; transform: translateY(-42%) rotate(12deg) scaleX(-1); opacity: .78; }
  .site-footer::before { width: 198px; left: -86px; bottom: -82px; opacity: .78; }
}

@media (max-width: 620px) {
  .about::before,
  .location::before { opacity: .58; }
  .about::before { width: 168px; right: -44px; top: 462px; opacity: .48; transform: rotate(10deg) scaleX(-1); }
  .animals::after { width: 168px; left: -66px; top: -18px; opacity: .62; transform: rotate(-8deg); }
  .closer-look::after { content: none; }
  .visit::before { width: 140px; left: -48px; top: 214px; opacity: .7; transform: rotate(17deg); }
  .visit::after { width: 170px; right: -62px; top: 132px; opacity: .56; transform: rotate(10deg) scaleX(-1); }
  .schedule::after { width: 176px; left: -58px; bottom: -2px; opacity: .62; transform: rotate(-10deg); }
  .location::before { width: 170px; left: -62px; top: 108px; opacity: .56; transform: rotate(-8deg); }
  .contacts::after { width: 188px; right: -54px; top: 55%; bottom: auto; opacity: .72; transform: translateY(-44%) rotate(12deg) scaleX(-1); }
  .site-footer::before { width: 160px; left: -64px; bottom: -66px; opacity: .72; }
}
