/* ═══════════════════════════════════════════════════════
   main.css — Epic Quest Astana (ОБНОВЛЁННАЯ ВЕРСИЯ)
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Raleway:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap');

/* ── VARIABLES ── */
:root {
  --blood:    #8B0000;
  --blood2:   #cc1111;
  --ember:    #ff4500;
  --gold:     #c9a84c;
  --bone:     #ede0cc;
  --ash:      #888;
  --void:     #040404;
  --d1:       #0e0e0e;
  --d2:       #161616;
  --d3:       #202020;
  --d4:       #2c2c2c;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--blood); }

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ══════════════════════════════
   NAV — ВСЕГДА ВИДЕН СВЕРХУ
══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8500; /* выше всего контента */
  height: 68px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Всегда тёмный фон — не исчезает при скролле */
  background: rgba(4,4,4,.97);
  border-bottom: 1px solid rgba(139,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
  /* Тень появляется при скролле через JS-класс .solid */
}
nav.solid {
  background: rgba(4,4,4,.99);
  box-shadow: 0 2px 24px rgba(0,0,0,.6);
  border-bottom-color: rgba(139,0,0,.4);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(1.5);
}
.footer-left .logo-img { height: 60px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: #777; font-size: .75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--blood2);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-socials { display: flex; gap: 6px; }
.nav-socials a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #555; transition: color .2s, background .2s;
}
.nav-socials a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ── БУРГЕР-МЕНЮ ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 900;
  flex-shrink: 0;
}
.burger__line {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(4,4,4,.98);
  border-bottom: 1px solid rgba(139,0,0,.3);
  z-index: 8400;
  padding: 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile__list {
  list-style: none;
  padding: 12px 0;
}
.nav-mobile__list li {
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-mobile__list li:last-child { border-bottom: none; }
.nav-mobile__list a {
  display: block;
  padding: 16px 5%;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  transition: color .2s, background .2s;
}
.nav-mobile__list a:hover,
.nav-mobile__list a:active {
  color: #fff;
  background: rgba(139,0,0,.08);
}
.nav-mobile__socials {
  display: flex;
  gap: 12px;
  padding: 16px 5%;
  border-top: 1px solid rgba(255,255,255,.04);
}
.nav-mobile__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #555; border: 1px solid #1a1a1a;
  transition: color .2s, border-color .2s;
}
.nav-mobile__socials a:hover { color: #fff; border-color: #444; }
.nav-mobile__socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(100,0,0,.22) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 80% 30%, rgba(255,69,0,.05) 0%, transparent 50%),
    linear-gradient(160deg, #040404 0%, #0b0000 50%, #040404 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,0,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--void) 80%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  animation: fadeUp .9s ease both;
}

.hero-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700; line-height: .88; letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 80px rgba(139,0,0,.5);
}
.hero-title-red { color: var(--blood2); display: block; }

.hero-sub {
  font-size: 1rem; color: #777; font-weight: 300; font-style: italic;
  letter-spacing: 2px; margin: 22px 0 34px;
}

.hero-stats {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid rgba(139,0,0,.3);
  margin-bottom: 36px; overflow: hidden;
}
.hero-stat {
  padding: 14px 28px; text-align: center;
  background: rgba(139,0,0,.07);
}
.hero-stat span {
  display: block; font-family: 'Oswald', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1;
}
.hero-stat small {
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; color: #555;
}
.hero-stat-divider { width: 1px; background: rgba(139,0,0,.3); align-self: stretch; }

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-hero {
  display: inline-block; background: var(--blood); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: .95rem; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 16px 48px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 30px rgba(139,0,0,.35);
  white-space: nowrap;
}
.btn-hero:hover {
  background: var(--blood2);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(204,17,17,.45);
}

.btn-hero-secondary {
  background: transparent;
  border: 2px solid var(--blood);
  box-shadow: none;
}
.btn-hero-secondary:hover {
  background: var(--blood);
  box-shadow: 0 4px 30px rgba(139,0,0,.35);
}

.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #333; font-size: .65rem; letter-spacing: 3px;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px; height: 45px;
  background: linear-gradient(to bottom, #444, transparent);
}

/* ══════════════════════════════
   QUESTS SECTION
══════════════════════════════ */
.section-quests {
  padding: 90px 5%;
  background: var(--d1);
  position: relative;
}
.section-quests::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}

.section-header { margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blood2);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: 3px; line-height: 1;
  color: #fff;
}

/* Grid */
.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}

/* Card */
.quest-card {
  background: var(--d2); cursor: pointer;
  transition: transform .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.quest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(139,0,0,.4);
  z-index: 2;
}

.qcard-img {
  position: relative; height: 230px; overflow: hidden;
}
.qcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
  filter: brightness(.82) saturate(1.05) contrast(1.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.quest-card:hover .qcard-img img {
  transform: scale(1.07);
  filter: brightness(.95) saturate(1.2) contrast(1.1);
}
.qcard-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,  rgba(8,0,0,.92)  0%, transparent 55%),
    linear-gradient(to bottom, rgba(60,0,0,.25) 0%, transparent 45%);
}
.qcard-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: 'Oswald', sans-serif; font-size: .7rem;
  font-weight: 600; letter-spacing: 2px; color: #fff;
  padding: 4px 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.qcard-diff {
  position: absolute; bottom: 12px; right: 14px;
  font-size: .75rem; color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}

.qcard-body { padding: 20px 22px 22px; }
.qcard-genre {
  font-size: .65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blood2); margin-bottom: 6px;
}
.qcard-name {
  font-family: 'Oswald', sans-serif; font-size: 1.65rem;
  font-weight: 600; letter-spacing: 1px; color: #fff; margin-bottom: 8px;
}
.qcard-desc {
  font-size: .82rem; color: #666; line-height: 1.6; margin-bottom: 14px; min-height: 40px;
}
.qcard-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .75rem; color: #555; margin-bottom: 16px;
}
.qcard-meta .qcard-meta-item:nth-child(3) { display: none; }
.qcard-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #222; padding-top: 14px;
}
.qcard-price { font-size: .82rem; color: #777; }
.qcard-price strong { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: var(--gold); }

.btn-card-book {
  background: transparent; border: 1px solid var(--blood);
  color: var(--bone); cursor: pointer;
  font-family: 'Raleway', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 18px;
  transition: background .2s, color .2s;
}
.btn-card-book:hover { background: var(--blood); color: #fff; }

/* ══════════════════════════════
   ABOUT / CONTACTS / PACKAGES
══════════════════════════════ */
.section-about { padding: 90px 5%; background: var(--void); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text p { color: #888; font-size: .9rem; line-height: 1.8; }
.about-text .section-title { margin: 10px 0 20px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-badge {
  background: var(--d2); border: 1px solid #2a2a2a;
  font-size: .75rem; font-weight: 600; letter-spacing: 1px;
  padding: 8px 16px; color: #aaa;
}
.about-img-box {
  position: relative; height: 420px; overflow: hidden;
}
.about-img-box img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.78) saturate(.95) contrast(1.05);
}
.about-img-box::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  border: 1px solid rgba(139,0,0,.3);
  box-shadow: inset 0 0 60px rgba(139,0,0,.1);
}
.about-img-label {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  font-family: 'Oswald', sans-serif; font-size: .75rem;
  letter-spacing: 3px; color: #555; text-transform: uppercase;
}

.section-contacts { padding: 90px 5%; background: var(--d1); }
.contacts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; margin-top: 10px;
}
.contact-card {
  background: var(--d2); padding: 30px 24px;
  border-top: 2px solid transparent;
  transition: border-color .25s, background .25s;
}
.contact-card:hover { border-color: var(--blood); background: var(--d3); }
.contact-icon {
  width: 40px; height: 40px; margin-bottom: 14px;
  color: var(--blood); display: flex; align-items: center;
}
.contact-icon svg { width: 28px; height: 28px; fill: currentColor; }
.contact-label {
  font-size: .65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blood2); margin-bottom: 8px;
}
.contact-val { font-size: .95rem; font-weight: 600; color: #ddd; }
a.contact-val:hover { color: var(--gold); }

.section-packages { padding: 90px 5%; background: var(--void); }
.promo-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #1a0a00, #2a1000);
  border: 1px solid var(--gold); border-left: 4px solid var(--gold);
  padding: 20px 24px; margin-bottom: 40px;
}
.promo-icon { font-size: 2.5rem; flex-shrink: 0; }
.promo-banner strong { font-size: 1.1rem; color: var(--gold); display: block; margin-bottom: 4px; }
.promo-banner p { font-size: .85rem; color: #888; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}
.pkg-card {
  background: var(--d2); padding: 26px 24px;
  border-top: 2px solid var(--blood);
  display: flex; flex-direction: column; gap: 14px;
}
.pkg-card-gold { border-top-color: var(--gold); }
.pkg-card-legend { border-top-color: #9b59b6; }
.pkg-header {
  font-family: 'Oswald', sans-serif; font-size: 1.3rem;
  font-weight: 700; letter-spacing: 3px; color: #fff;
}
.pkg-card-gold .pkg-header { color: var(--gold); }
.pkg-card-legend .pkg-header { color: #b39ddb; }
.pkg-list { list-style: none; flex: 1; }
.pkg-list li {
  font-size: .82rem; color: #777; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; align-items: flex-start; gap: 8px;
}
.pkg-list li::before { content: '—'; color: var(--blood); flex-shrink: 0; }
.pkg-meta { font-size: .75rem; color: #555; font-style: italic; }
.pkg-prices { display: flex; flex-direction: column; gap: 6px; }
.pkg-price-row { font-size: .85rem; color: #888; }
.pkg-price-row strong { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--gold); }
.pkg-weekend strong { color: #ff9944; }
.btn-pkg {
  background: transparent; border: 1px solid var(--blood); color: var(--bone);
  cursor: pointer; font-family: 'Raleway', sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 10px;
  transition: background .2s, color .2s; margin-top: auto;
  min-height: 46px;
}
.btn-pkg:hover { background: var(--blood); color: #fff; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: #020202; padding: 28px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid #111;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-left p { font-size: .72rem; color: #333; margin-top: 4px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #444; border: 1px solid #1a1a1a;
  transition: color .2s, border-color .2s;
}
.footer-socials a:hover { color: #fff; border-color: #444; }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-right a {
  font-size: .9rem; font-weight: 700; color: #fff;
  letter-spacing: 1px; text-transform: uppercase;
  border-bottom: 2px solid var(--blood2); padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.footer-right a:hover { color: var(--blood2); }
.footer-right span { font-size: .75rem; color: #333; }

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--d2); width: 100%; max-width: 540px;
  max-height: 92vh; overflow-y: auto;
  border: 1px solid #2a2a2a;
  border-top: 2px solid var(--blood);
  animation: modalIn .3s ease;
}
.modal::-webkit-scrollbar { width: 3px; }
.modal::-webkit-scrollbar-thumb { background: var(--blood); }
.modal-header {
  padding: 22px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid #222;
}
.modal-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blood2); margin-bottom: 5px;
}
.modal-quest-name {
  font-family: 'Oswald', sans-serif; font-size: 1.7rem;
  font-weight: 600; letter-spacing: 1px; color: #fff;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  color: #444; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s; flex-shrink: 0;
}
.modal-close:hover { color: #fff; }
.modal-close svg { width: 20px; height: 20px; fill: currentColor; }
.modal-body { padding: 22px 24px 28px; }
.price-table {
  background: var(--d3); padding: 16px 18px; margin-bottom: 22px;
  border-left: 3px solid var(--blood);
}
.price-table-title {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blood2); margin-bottom: 10px;
}
.price-rows { display: flex; flex-direction: column; gap: 6px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #888; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.price-row:last-child { border-bottom: none; padding-bottom: 0; }
.price-val { font-weight: 700; color: var(--gold); font-family: 'Oswald', sans-serif; font-size: .9rem; }
.price-row-note { color: #666; font-style: italic; }
.price-calc {
  margin-top: 12px; padding: 10px 12px;
  background: rgba(0,0,0,.3); font-size: .82rem; color: #555;
  border: 1px dashed #2a2a2a;
}
.price-calc-active { color: var(--gold); border-color: rgba(201,168,76,.3); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgroup { margin-bottom: 14px; }
.flabel {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #555; margin-bottom: 7px;
}
.finput {
  width: 100%;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 16px; padding: 11px 13px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.finput:focus {
  border-color: #ff0000;
  box-shadow: 0 0 5px rgba(255,0,0,.5);
}
.finput option { background: #111; }
.form-note {
  font-size: .72rem; color: #444; margin-bottom: 16px; line-height: 1.6;
}
.form-note a { color: var(--blood2); }
.form-note a:hover { text-decoration: underline; }
.form-checkbox-wrapper {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; margin: 15px 0;
}
.form-checkbox-wrapper input {
  margin-top: 3px;
  accent-color: #ff0000;
  cursor: pointer;
  width: 18px; height: 18px; flex-shrink: 0;
}
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; margin: 15px 0; font-size: .82rem; color: #777;
}
.form-check input { accent-color: #ff0000; width: 18px; height: 18px; flex-shrink: 0; }
.form-check a { color: var(--blood2); }
.btn-whatsapp {
  width: 100%; background: #1a7a3c; color: #fff; border: none; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: .95rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; padding: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
  min-height: 52px;
}
.btn-whatsapp:hover { background: #22a350; transform: translateY(-1px); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.btn-call {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 10px; padding: 13px;
  border: 1px solid #333; color: #888;
  font-family: 'Oswald', sans-serif; font-size: .88rem;
  letter-spacing: 1.5px; text-align: center;
  transition: border-color .2s, color .2s;
  min-height: 46px;
}
.btn-call:hover { border-color: #666; color: #fff; }

/* ══════════════════════════════
   QUEST PAGE
══════════════════════════════ */
.qpage-hero {
  position: relative; height: 75vh; min-height: 500px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  margin-top: 68px;
  filter: contrast(1.12) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.qpage-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,4,4,1.0)   0%,
    rgba(4,4,4,.50)   40%,
    rgba(4,4,4,.10)  100%
  );
  filter: contrast(0.89) saturate(0.91);
}
.qpage-hero-content {
  position: relative; z-index: 2; padding: 0 5% 50px;
  filter: contrast(0.89) saturate(0.91);
}
.qpage-tag {
  display: inline-block; font-family: 'Oswald', sans-serif; font-size: .7rem;
  font-weight: 600; letter-spacing: 2px; color: #fff;
  padding: 4px 12px; margin-bottom: 14px;
}
.qpage-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; letter-spacing: 3px; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
  margin-bottom: 10px;
}
.qpage-genre { font-size: .78rem; color: var(--blood2); letter-spacing: 3px; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.qpage-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: #888; margin-bottom: 22px; }
.qpage-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-book {
  background: var(--blood); color: #fff; border: none; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: .9rem; font-weight: 500;
  letter-spacing: 2px; padding: 13px 32px;
  transition: background .2s;
}
.btn-hero-book:hover { background: var(--blood2); }
.btn-hero-map {
  background: transparent; border: 1px solid #333; color: #aaa;
  font-family: 'Oswald', sans-serif; font-size: .9rem;
  letter-spacing: 2px; padding: 13px 24px;
  transition: border-color .2s, color .2s;
}
.btn-hero-map:hover { border-color: #666; color: #fff; }
.qpage-body {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
  padding: 50px 5% 80px; align-items: start;
}
.qpage-section { margin-bottom: 44px; }
.qpage-section h2 {
  font-family: 'Oswald', sans-serif; font-size: 1.5rem;
  letter-spacing: 2px; color: #fff; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid #1e1e1e;
}
.qpage-desc { font-size: .9rem; color: #888; line-height: 1.9; }
.qpage-desc p { margin-bottom: 12px; }
.levels-list { display: flex; flex-direction: column; gap: 12px; }
.level-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--d2); padding: 16px 18px;
  border-left: 3px solid var(--blood);
}
.level-num {
  font-family: 'Oswald', sans-serif; font-size: 1.8rem;
  font-weight: 700; color: rgba(139,0,0,.3); line-height: 1; flex-shrink: 0;
}
.level-info strong { display: block; color: #ddd; font-size: .9rem; margin-bottom: 4px; }
.level-info p { font-size: .82rem; color: #666; }
.qpage-address { background: var(--d2); padding: 20px; }
.qpage-address p { font-size: .9rem; color: #888; margin-bottom: 14px; }
.btn-2gis {
  display: inline-block; background: #007a33; color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: 1.5px;
  padding: 10px 20px; transition: background .2s;
}
.btn-2gis:hover { background: #009940; }
.qpage-sidebar { position: sticky; top: 88px; }
.sidebar-box {
  background: var(--d2); padding: 22px;
  border: 1px solid #1e1e1e; margin-bottom: 16px;
}
.sidebar-box h3 {
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  letter-spacing: 2px; color: #fff; text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #222;
}
.rules-list { list-style: none; }
.rules-list li {
  font-size: .82rem; color: #777; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; align-items: center; gap: 8px;
}
.rules-list li::before { content: '!'; color: var(--blood); font-weight: 700; }
.rules-list li:last-child { border-bottom: none; }
.sidebar-price { border-top: 2px solid var(--gold); }
.sp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .82rem; color: #777;
}
.sp-row:last-child { border-bottom: none; }
.sp-row strong { font-family: 'Oswald', sans-serif; color: var(--gold); }
.sp-note { color: #555; font-style: italic; }
.btn-sidebar-book {
  width: 100%; margin-top: 16px; background: var(--blood); color: #fff; border: none; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: .9rem; font-weight: 500;
  letter-spacing: 2px; padding: 14px;
  transition: background .2s;
}
.btn-sidebar-book:hover { background: var(--blood2); }

/* ══════════════════════════════
   OFERTA PAGE
══════════════════════════════ */
.oferta-page { padding: 110px 5% 80px; max-width: 860px; margin: 0 auto; }
.oferta-page h1 {
  font-family: 'Oswald', sans-serif; font-size: 2.5rem;
  letter-spacing: 3px; margin-bottom: 8px;
}
.oferta-page .updated { font-size: .75rem; color: #555; margin-bottom: 36px; }
.oferta-page h2 {
  font-family: 'Oswald', sans-serif; font-size: 1.2rem;
  letter-spacing: 2px; color: var(--blood2);
  margin: 28px 0 10px;
}
.oferta-page p { font-size: .88rem; color: #777; line-height: 1.8; margin-bottom: 8px; }
.oferta-page strong { color: #aaa; }

/* ══════════════════════════════
   ПЛАВАЮЩИЕ КНОПКИ
══════════════════════════════ */
.float-btns {
  position: fixed; bottom: 28px; right: 20px;
  z-index: 8000; display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .2s, box-shadow .2s;
}
.float-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(0,0,0,.7); }
.float-btn svg { width: 22px; height: 22px; }
.float-wa  { background: #25D366; color: #fff; }
.float-ig  {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

/* ══ КНОПКА НАВЕРХ ══ */
.btn-top {
  position: fixed;
  bottom: 110px; right: 20px;
  z-index: 7000;
  width: 44px; height: 44px;
  background: var(--blood);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
  pointer-events: none;
}
.btn-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.btn-top:hover { background: var(--blood2); }
.btn-top svg { width: 20px; height: 20px; fill: #fff; }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════════ */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-img-box { height: 280px; }
  .qpage-body { grid-template-columns: 1fr; }
  .qpage-sidebar { position: static; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE (≤680px)
══════════════════════════════ */
@media (max-width: 680px) {
  /* ── НАВИГАЦИЯ ── */
  nav {
    padding: 0 4%;
    height: 60px;
  }
  .burger {
    display: flex;
    order: -1;
    margin-right: 12px;
  }
  .logo { margin-right: auto; }
  .nav-links { display: none; }
  .logo-img { height: 38px; width: auto; max-width: 130px; }
  .nav-socials { display: none; }
  .nav-mobile { display: block; top: 60px; }

  /* ── HERO ── */
  .hero-content { padding: 0 16px; }
  .hero-tag { font-size: .65rem; letter-spacing: 2px; margin-bottom: 12px; }
  .hero-title { font-size: clamp(3.8rem, 22vw, 6rem); letter-spacing: 2px; }
  .hero-sub { font-size: .88rem; letter-spacing: 1px; margin: 14px 0 24px; }
  .hero-stats { width: 100%; flex-direction: row; flex-wrap: nowrap; margin-bottom: 28px; }
  .hero-stat { padding: 10px 0; flex: 1; }
  .hero-stat span { font-size: 1.4rem; }
  .hero-stat small { font-size: .55rem; letter-spacing: 1px; }
  .hero-btns { flex-direction: column; width: 100%; gap: 12px; }
  .btn-hero,
  .btn-hero-secondary { width: 100%; padding: 14px 24px; font-size: .85rem; letter-spacing: 2px; text-align: center; }

  /* ── СЕКЦИИ ── */
  .section-quests,
  .section-about,
  .section-contacts,
  .section-packages { padding: 56px 4%; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.8rem); letter-spacing: 2px; }
  .section-header { margin-bottom: 32px; }

  /* ── КВЕСТЫ ── */
  .quests-grid { grid-template-columns: 1fr; gap: 2px; }
  .qcard-img { height: 200px; }
  .qcard-name { font-size: 1.4rem; }

  /* ── О НАС ── */
  .about-img-col { display: none; }
  .about-badges { gap: 8px; }
  .about-badge { font-size: .7rem; padding: 6px 12px; }

  /* ── ПАКЕТЫ ── */
  .packages-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .promo-icon { font-size: 2rem; }

  /* ── КОНТАКТЫ ── */
  .contacts-grid { grid-template-columns: 1fr; gap: 1px; }
  .contact-card { padding: 20px 18px; }

  /* ── ФУТЕР ── */
  footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 4%; }
  .footer-right { align-items: flex-start; }
  .footer-socials { display: flex; }

  /* ── ПЛАВАЮЩИЕ КНОПКИ ── */
  .float-btns { bottom: 80px; right: 14px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 20px; height: 20px; }
  .btn-top { bottom: 150px; right: 14px; }

  /* ── МОДАЛКА ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; max-height: 95vh; border-radius: 0; border-top: 3px solid var(--blood); }
  .modal-header { padding: 16px 18px 12px; }
  .modal-quest-name { font-size: 1.4rem; }
  .modal-body { padding: 16px 18px 24px; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .price-table { padding: 14px; }

  /* ── QUEST PAGE ── */
  .qpage-hero { height: 55vh; min-height: 340px; margin-top: 60px; }
  .qpage-title { font-size: clamp(2rem, 10vw, 3.5rem); }
  .qpage-hero-content { padding: 0 4% 32px; }
  .qpage-body { padding: 32px 4% 100px; gap: 28px; }
  .qpage-hero-btns { flex-direction: column; }
  .btn-hero-book, .btn-hero-map { width: 100%; text-align: center; padding: 14px; }

  /* ── ОФЕРТА ── */
  .oferta-page { padding: 90px 4% 60px; }
  .oferta-page h1 { font-size: 1.8rem; letter-spacing: 2px; }
}

/* ══════════════════════════════
   RESPONSIVE — SMALL (≤400px)
══════════════════════════════ */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(3.2rem, 24vw, 5rem); }
  .hero-stat span { font-size: 1.2rem; }
  .hero-stat small { font-size: .5rem; letter-spacing: 0; }
  .logo-img { height: 32px; width: auto; max-width: 110px; }
}

/* ══ Фикс для Telegram/Safari ══ */
@media (max-width: 850px) {
  .hero-stats { display: flex !important; width: 100%; margin-bottom: 24px; }
  .hero-btns { display: flex !important; flex-direction: column; width: 100%; gap: 12px; }
  .btn-hero, .btn-hero-secondary { width: 100%; text-align: center; padding: 14px 24px; }
}