/* ============================================================
   KazAdventure — shared stylesheet (every page links this file)
   Theme system: dark (default) + light, toggled via
   <html data-theme="dark|light"> and persisted in localStorage.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */

:root {
  /* Dark theme (default) — premium near-black */
  --bg: #0a0c10;
  --bg-2: #0e1218;
  --surface: #131924;
  --surface-2: #1a2230;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #141a25;
  --glass: rgba(16, 21, 30, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-2: #a9b2bf;
  --text-3: #8a94a3;

  /* Accent — warm gold */
  --accent: #e3b04b;
  --accent-2: #f2c56a;
  --accent-ink: #201502;            /* text on accent backgrounds */
  --accent-soft: rgba(227, 176, 75, 0.14);
  --accent-glow: rgba(227, 176, 75, 0.28);

  --success: #4cc38a;
  --star: #f5b942;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow-accent: 0 0 0 1px rgba(227, 176, 75, 0.25), 0 8px 30px rgba(227, 176, 75, 0.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
  --container: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f8f9fb;
  --bg-2: #f0f2f6;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --card: #ffffff;
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --border: #e4e8ee;
  --border-strong: #d2d8e0;
  --text: #14181f;
  --text-2: #4c5563;
  --text-3: #7b8494;

  --accent: #c08a1e;
  --accent-2: #a97817;
  --accent-ink: #ffffff;
  --accent-soft: rgba(192, 138, 30, 0.10);
  --accent-glow: rgba(192, 138, 30, 0.22);

  --shadow-sm: 0 2px 8px rgba(20, 24, 31, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 24, 31, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 24, 31, 0.14);
  --glow-accent: 0 0 0 1px rgba(192, 138, 30, 0.25), 0 8px 30px rgba(192, 138, 30, 0.15);

  color-scheme: light;
}

/* ---------- 2. Reset & base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- 3. Layout utilities ---------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- 4. Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--glow-accent); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: #22b358;
  color: #ffffff;
}
.btn-whatsapp:hover { box-shadow: 0 8px 24px rgba(34, 179, 88, 0.35); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}
.tag-outline { background: transparent; border-color: var(--border-strong); color: var(--text-2); }

.stars { color: var(--star); letter-spacing: 2px; font-size: 0.9rem; }

/* ---------- 5. Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover { color: var(--text); background: var(--card); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Language switcher — HIDDEN until RU/KZ translations are ready.
   To re-enable: change "display: none" to "display: flex" here and
   in the mobile ".main-nav .lang-switcher" rule further down. */
.lang-switcher {
  display: none; /* was: flex */
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switcher button {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switcher button.active { background: var(--accent-soft); color: var(--accent); }
.lang-switcher button:hover:not(.active) { color: var(--text); }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.8; }
/* Show sun in dark mode (click → light), moon in light mode */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-burger span { top: 19px; }
.nav-burger span::before { left: 0; top: -6px; }
.nav-burger span::after { left: 0; top: 6px; }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero (home) ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video { opacity: 0; transition: opacity 0.8s ease; }
.hero-media video.is-playing { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0.25) 40%, rgba(10, 12, 16, 0.92) 100%);
}
:root[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.5) 0%, rgba(5, 7, 10, 0.22) 40%, rgba(15, 18, 24, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
  max-width: 720px;
  color: #f5f7fa; /* hero always sits on a photo — keep text light in both themes */
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero-content h1 em { font-style: normal; color: var(--accent-2); }
:root[data-theme="light"] .hero-content h1 em { color: #f2c56a; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(240, 243, 247, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------- 7. Trust bar ---------- */

.trust-bar {
  position: relative;
  z-index: 3;
  margin-top: -46px;
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.trust-item {
  background: var(--card-solid);
  padding: 22px 18px;
  text-align: center;
}
:root[data-theme="light"] .trust-item { background: var(--surface); }
.trust-item strong { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.trust-item strong .accent { color: var(--accent); }
.trust-item span { font-size: 0.85rem; color: var(--text-2); }

/* ---------- 8. Tour cards ---------- */

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.tour-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
:root[data-theme="light"] .tour-card { box-shadow: var(--shadow-sm); }
.tour-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;           /* reserved ratio — real media won't shift layout */
  overflow: hidden;
  background: var(--surface-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.tour-card:hover .card-media img { transform: scale(1.06); }

/* Hover-preview video (injected lazily by main.js when tour.hoverVideo is set) */
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card-media video.is-playing { opacity: 1; }

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-sm);
}
.card-price small { font-weight: 500; opacity: 0.8; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-body h3 { font-size: 1.15rem; margin: 0; }
.card-body h3 a:hover { color: var(--accent); }
.card-tagline {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: auto;
}
.card-meta .stars { font-size: 0.8rem; }
.card-actions { display: flex; gap: 10px; margin-top: 6px; }
.card-actions .btn { flex: 1; padding: 11px 10px; font-size: 0.88rem; }

/* ---------- 9. Category tiles ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.category-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.category-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-tile:hover img { transform: scale(1.07); }
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 14, 0.85) 100%);
}
.category-tile span {
  position: relative;
  z-index: 1;
  padding: 16px;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

/* ---------- 10. Why choose us ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-2); margin: 0; }

/* ---------- 11. Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial blockquote { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-3); }

/* ---------- 12. CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 64px 40px;
  text-align: center;
  border: 1px solid var(--border);
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 10, 14, 0.88), rgba(8, 10, 14, 0.62));
}
.cta-band > div { position: relative; z-index: 1; color: #fff; }
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); max-width: 620px; margin-inline: auto; }
.cta-band p { color: rgba(240, 243, 247, 0.85); max-width: 520px; margin: 0 auto 28px; }

/* ---------- 13. Footer ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-2); max-width: 320px; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 0.82rem;
}

/* ---------- 14. Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 400px at 15% -10%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.page-hero p { color: var(--text-2); max-width: 620px; font-size: 1.05rem; margin: 0; }

/* ---------- 15. Tours listing: filters & toolbar ---------- */

.tours-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 36px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.filters-head h3 { font-size: 1rem; margin: 0; }
.filters-reset { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.filters-reset:hover { text-decoration: underline; }

.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; padding-bottom: 4px; }
.filter-group > h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--text-2);
  cursor: pointer;
}
.filter-option:hover { color: var(--text); }
.filter-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.price-slider { width: 100%; accent-color: var(--accent); margin-top: 4px; }
.price-slider-value { font-size: 0.88rem; font-weight: 600; color: var(--accent); }

.filters-toggle { display: none; }

.tours-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.results-count { color: var(--text-2); font-size: 0.95rem; }
.results-count strong { color: var(--text); }

.sort-select {
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.no-results {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- 16. Tour detail page ---------- */

.tour-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
}

.tour-header { margin-bottom: 22px; }
.tour-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.tour-header .tagline { font-size: 1.1rem; color: var(--text-2); margin-bottom: 14px; }
.tour-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-2);
}
.tour-meta-row .stars { font-size: 0.85rem; }

/* Media gallery: featured item + tiles. Aspect ratios reserved. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.featured { grid-column: span 4; grid-row: span 3; }
.gallery-item.wide { grid-column: span 2; grid-row: span 2; }
@media (min-width: 720px) {
  .gallery-item.featured { grid-column: span 3; grid-row: span 3; }
  .gallery-item:not(.featured):not(.wide) { grid-column: span 1; }
}
.media-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 12, 16, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-overlay::after {
  content: "▶";
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  padding-left: 4px;
  background: rgba(10, 12, 16, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.gallery-item:hover .play-overlay::after { transform: scale(1.1); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  background: rgba(10, 12, 16, 0.62);
}

.detail-section { padding: 36px 0; border-bottom: 1px solid var(--border); }
.detail-section:last-child { border-bottom: none; }
.detail-section h2 { font-size: 1.35rem; margin-bottom: 18px; }

.highlight-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.highlight-tags .tag { font-size: 0.88rem; padding: 8px 16px; }

.included-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.included-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}
.included-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--success);
  background: rgba(76, 195, 138, 0.12);
  margin-top: 2px;
}

/* Bonus — premium callout */
.bonus-callout {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 0% 0%, var(--accent-soft), transparent 70%),
    var(--card);
  border: 1px solid var(--accent);
  box-shadow: var(--glow-accent);
  display: flex;
  gap: 18px;
}
.bonus-callout .feature-icon { flex-shrink: 0; margin: 0; }
.bonus-callout h3 { font-size: 1.1rem; margin-bottom: 6px; }
.bonus-callout h3 .tag { margin-left: 8px; vertical-align: middle; }
.bonus-callout p { margin: 0; color: var(--text-2); }

/* "Watch real tour footage" block */
.footage-block { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.footage-block video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.footage-caption { padding: 14px 18px; font-size: 0.88rem; color: var(--text-2); background: var(--card); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-tile {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.info-tile h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; }
.info-tile p { margin: 0; font-weight: 600; font-size: 0.95rem; }
.info-tile small { color: var(--text-2); font-weight: 400; }

/* Reviews */
.review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.review-score {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.review-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
}
.review-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-card strong { font-size: 0.95rem; }
.review-card time { font-size: 0.8rem; color: var(--text-3); }
.review-card p { margin: 0; font-size: 0.92rem; color: var(--text-2); }

/* Sticky booking box */
.booking-box {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
:root[data-theme="light"] .booking-box { background: var(--surface); }
.booking-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.booking-price strong { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.booking-price span { color: var(--text-2); font-size: 0.9rem; }
.booking-note { font-size: 0.82rem; color: var(--text-3); margin-bottom: 18px; }
.booking-field { margin-bottom: 14px; }
.booking-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 7px;
}
.booking-field input, .booking-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.booking-perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.85rem; color: var(--text-2); }
.booking-perks li { display: flex; gap: 8px; align-items: center; }
.booking-perks li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* Mobile fixed booking bar */
.mobile-book-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mobile-book-bar .booking-price strong { font-size: 1.3rem; }
.mobile-book-bar .booking-price { margin: 0; }

/* ---------- 17. Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 6, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: min(1100px, 92vw); max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- 17b. Booking modal (WhatsApp or Telegram-form choice) ---------- */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.booking-modal[hidden] { display: none; }
.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.booking-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
:root[data-theme="light"] .booking-modal-card { background: var(--surface); }
.booking-modal-card h3 { font-size: 1.15rem; padding-right: 40px; margin-bottom: 4px; }
.booking-modal-card .modal-tour-name { color: var(--accent); }
.booking-modal-sub { color: var(--text-2); font-size: 0.9rem; margin-bottom: 18px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.modal-close:hover { border-color: var(--accent); }
.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.modal-divider::before, .modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- 18. About page ---------- */

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-split .media-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); }
.about-split .media-frame img { width: 100%; height: 100%; object-fit: cover; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.team-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--accent-soft);
}
.team-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.team-card .role { color: var(--accent); font-size: 0.82rem; font-weight: 600; display: block; margin-bottom: 8px; }
.team-card p { font-size: 0.85rem; color: var(--text-2); margin: 0; }

.license-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.license-strip .tag-outline { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- 19. Contact page ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .feature-icon { margin: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.contact-card p { margin: 0; font-size: 0.9rem; color: var(--text-2); word-break: break-word; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-success,
.form-error {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(76, 195, 138, 0.12);
  border: 1px solid rgba(76, 195, 138, 0.4);
  color: var(--success);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.form-error {
  background: rgba(226, 92, 92, 0.12);
  border-color: rgba(226, 92, 92, 0.4);
  color: #e05c5c;
}

.map-placeholder {
  aspect-ratio: 16 / 8;            /* space reserved — swap for a real map embed */
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(500px 200px at 50% 40%, var(--accent-soft), transparent 70%),
    var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.92rem;
}
.map-placeholder .feature-icon { margin: 0; }

/* ---------- 20. Scroll reveal ---------- */

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

/* ---------- 21. Responsive ---------- */

@media (max-width: 1024px) {
  .tour-detail-layout { grid-template-columns: 1fr 340px; gap: 28px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .header-cta, .lang-switcher { display: none; }
  .nav-burger { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    padding: 18px 20px 26px;
    gap: 8px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.2s ease, visibility 0.2s;
  }
  body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 16px; font-size: 1.05rem; }
  /* Language switcher in the mobile menu — set to flex when RU/KZ are ready */
  .main-nav .lang-switcher { display: none; margin-top: 10px; align-self: flex-start; }

  .tours-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; display: none; }
  .filters-panel.open { display: block; }
  .filters-toggle { display: inline-flex; }

  .tour-detail-layout { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .booking-aside { order: 2; }
  .mobile-book-bar { display: flex; }
  body[data-page="tour"] { padding-bottom: 80px; }

  .about-split, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col a, .footer-col li { overflow-wrap: anywhere; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-tile { aspect-ratio: 4 / 3; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 90px; }
  .gallery-item.featured { grid-column: span 4; grid-row: span 3; }
  .gallery-item.wide, .gallery-item { grid-column: span 2; grid-row: span 2; }
  .hero-content { padding: 90px 0 80px; }
  .cta-band { padding: 48px 22px; }
  .bonus-callout { flex-direction: column; }
}

/* ---------- 22. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Videos are also paused/never started by main.js when reduced motion is on */
}
