/* Филин — одностраничный сайт */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0b;
  --bg-alt: #111111;
  --bg-card: #161616;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.55);
  --line: #2a2a2a;
  --accent: #8b1a2b;
  --accent-hover: #a42235;
  --gold: #c9a25a;
  --header-h: 76px;
  --radius: 16px;
  --container: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

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

section { position: relative; }
.section {
  padding: 112px 0;
}
.section--alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 40px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--ghost:hover { background: #fff; color: #0b0b0b; }
.btn--sm { padding: 11px 22px; font-size: 14px; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-solid,
.header.is-open {
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: #1c1c1c;
}
.header__inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
}
.logo span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.16em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}
.nav a:hover { color: #fff; }
.nav .btn { margin-left: 4px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.header.is-open .burger span { background: transparent; }
.header.is-open .burger span::before { top: 0; transform: rotate(45deg); }
.header.is-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 24px) 20px 64px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(11, 11, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.28) 0%, rgba(11, 11, 11, 0.45) 50%, rgba(11, 11, 11, 0.88) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__logo {
  width: min(340px, 72vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
.hero__lead {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.hero__tag {
  margin: 0 0 36px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1a1a1a;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.about__text p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Zones */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.zone-card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  text-decoration: none;
  isolation: isolate;
}
.zone-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.zone-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.15) 20%, rgba(11, 11, 11, 0.85) 100%);
}
.zone-card h3 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.zone-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}
.event-card__poster {
  position: relative;
  background: #1a1a1a;
  min-height: 260px;
}
.event-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.event-card__body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.event-card__body h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.event-card__meta {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.event-card__info {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.event-card__body .btn { margin-top: auto; }

.past-block { margin-top: 64px; }
.past-block h3 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}
.events-grid--past {
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  gap: 16px;
}
.event-card--past {
  grid-template-columns: 1fr;
  min-height: 0;
  filter: grayscale(0.45) saturate(0.7) brightness(0.82);
  opacity: 0.92;
}
.event-card--past .event-card__poster {
  aspect-ratio: 3 / 4;
  min-height: 0;
}
.event-card--past .event-card__body {
  padding: 16px 18px 20px;
  gap: 4px;
}
.event-card--past h3 { font-size: 18px; }
.event-card--past .event-card__meta,
.event-card--past .event-card__info { font-size: 14px; }
.badge-past {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(11, 11, 11, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1a;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery a:nth-child(1) img { object-position: 50% 60%; }
.gallery a:nth-child(4) img { object-position: 50% 40%; }
.gallery a:nth-child(5) img { object-position: 50% 40%; }
.gallery a:nth-child(10) img { object-position: 50% 35%; }
.gallery a:nth-child(11) img { object-position: 50% 20%; }

/* Reviews */
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.reviews-head .section-title { margin: 0; }
.reviews-nav { display: flex; gap: 8px; }
.reviews-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.reviews-nav button:hover { background: #1a1a1a; border-color: #444; }
.reviews-nav button:disabled { opacity: 0.35; cursor: default; }

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 min(380px, calc(100% - 28px));
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.review-card__stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.review-card p {
  margin: 14px 0 20px;
  font-size: 16px;
  line-height: 1.55;
  flex: 1;
}
.review-card__name {
  font-weight: 700;
  font-size: 16px;
}
.review-card__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-2);
}

/* Map */
.map-section .map-lead {
  margin: -24px 0 28px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}
.map-section .map-lead span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.map-frame {
  position: relative;
  width: 100%;
  padding-top: 56%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Approved arrow geometry, origin at iframe center */
.map-arrow-origin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.map-arrow-origin svg {
  position: absolute;
  left: -10px;
  top: -170px;
  overflow: visible;
}
.map-label {
  position: absolute;
  left: 84px;
  top: -136px;
  background: #8b1a2b;
  color: #fff;
  font: 700 14px/1.2 "Montserrat", Arial, sans-serif;
  padding: 6px 10px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.map-actions { margin-top: 24px; }

/* Footer */
.footer {
  background: #080808;
  padding: 64px 0 36px;
  border-top: 1px solid #1a1a1a;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__logo img {
  width: 160px;
  margin-bottom: 16px;
}
.footer__addr,
.footer__copy {
  margin: 0;
  font-size: 14px;
  color: var(--muted-2);
}
.footer__copy { margin-top: 28px; }
.footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer a.phone {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.footer a.phone:hover { color: #fff; }
.socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}
.socials a:hover { color: #fff; }
.socials svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__btn {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 12px; right: 16px; font-size: 36px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Reveal: visible by default, animated only when JS is ready */
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

section[id] { scroll-margin-top: var(--header-h); }
#top { scroll-margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .about { gap: 40px; }
  .zones-grid { grid-template-columns: 1fr; }
  .zone-card { min-height: 240px; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid--past { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 11, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 28px 24px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav { visibility: hidden; pointer-events: none; }
  .header.is-open .nav { transform: none; visibility: visible; pointer-events: auto; }
  .nav a {
    font-size: 22px;
    font-weight: 700;
    padding: 14px 0;
    border-bottom: 1px solid #1c1c1c;
    color: #fff;
  }
  .nav .btn {
    margin: 24px 0 0;
    align-self: stretch;
    text-align: center;
  }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { aspect-ratio: 4 / 5; max-height: 520px; margin-inline: auto; width: 100%; }
  .event-card { grid-template-columns: 160px 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container,
  .header__inner { width: min(100% - 32px, var(--container)); }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 28px; }
  .hero__logo { width: min(260px, 78vw); margin-bottom: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .about__text p { font-size: 16px; }
  .event-card,
  .event-card--past { grid-template-columns: 1fr; }
  .event-card__poster { aspect-ratio: 3 / 4; max-height: 420px; min-height: 0; }
  .events-grid--past { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .reviews-nav { display: none; }
  .review-card { flex-basis: min(380px, calc(100vw - 64px)); min-height: 0; }
  .map-frame { padding-top: 78%; }
  .map-arrow-origin { transform: scale(0.62); }
  .map-section .map-lead { font-size: 17px; }
  .footer { padding: 48px 0 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .lightbox { padding: 56px 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
}

@media (max-width: 400px) {
  .map-arrow-origin { transform: scale(0.54); }
}

/* Постеры ближайших событий целиком, без обрезки */
.event-card:not(.event-card--past) .event-card__poster img { object-fit: contain; }

/* Мобильное меню поверх всего экрана со сплошным фоном */
@media (max-width: 820px) {
  .header.is-open {
    background: #0b0b0b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    z-index: 300;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #0b0b0b;
  }
}

/* Прошедшие события: горизонтальная лента как у отзывов */
.past-head h3 { margin: 0; }
.past-track { gap: 16px; }
.past-track .event-card--past {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .past-track .event-card--past { flex-basis: 80%; }
}

/* Ближайшие события того же размера и вида, что и прошедшие */
.events-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.events-grid .event-card { grid-template-columns: 1fr; min-height: 0; }
.events-grid .event-card__poster { aspect-ratio: 3 / 4; min-height: 0; max-height: none; }
.events-grid .event-card:not(.event-card--past) .event-card__poster img { object-fit: cover; }
.events-grid .event-card__body { padding: 16px 18px 20px; gap: 4px; }
.events-grid .event-card__body h3 { font-size: 18px; }
.events-grid .event-card__meta,
.events-grid .event-card__info { font-size: 14px; }
@media (max-width: 980px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } .events-grid .event-card { width: 80%; } }
