/* ===================================
   СЕВЕР БАЙКАЛ — LIGHT THEME
   =================================== */

:root {
  --color-bg: #f3f6f7;
  --color-surface: #ffffff;
  --color-surface-alt: #e9eff1;
  --color-primary: #153a4a;
  --color-primary-light: #245a6f;
  --color-accent: #1f6f8b;
  --color-accent2: #185a70;
  --color-text: #17252c;
  --color-muted: #5c6d74;
  --color-border: rgba(21, 58, 74, 0.14);
  --color-nav-bg: #0d2732;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 160ms;
  --motion-enter: 480ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-primary);
}

h1 { font-size: clamp(48px, 7vw, 86px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 1.2rem; }
h3 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 0.8rem; }

p { max-width: 68ch; margin-bottom: 1.4rem; color: var(--color-text); }

a { color: var(--color-accent); text-decoration: none; transition: color var(--motion-fast) ease; }
a:hover { color: var(--color-primary); }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; width: 100%;
  min-height: 72px;
  padding: 12px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--color-nav-bg);
  transition: min-height 220ms var(--ease-out), background-color 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

nav.scrolled {
  min-height: 60px;
  background: rgba(13,39,50,0.96);
  box-shadow: 0 8px 28px rgba(4,18,24,0.16);
}

.nav-links { display: flex; gap: 2rem; }

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.8);
  transition: color var(--motion-fast) ease;
}
.nav-link:hover { color: #b9dce7; }
.nav-link.active { color: #b9dce7; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform 120ms ease;
  border-radius: 8px;
}
.btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-solid {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn:active { transform: scale(0.98); }
.btn-solid:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
}
.btn-white {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-white:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 128px max(6vw, 32px) 72px;
  background-image:
    linear-gradient(90deg, rgba(7,28,37,0.88) 0%, rgba(7,28,37,0.62) 42%, rgba(7,28,37,0.12) 76%),
    linear-gradient(to top, rgba(7,28,37,0.62) 0%, transparent 44%),
    url('../images/vk/puteshestvie2019/001.jpg');
  background-size: cover;
  background-position: center top;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.3); margin-bottom: 24px; }
.hero .subtitle { color: rgba(255,255,255,0.78); font-size: 17px; letter-spacing: 0; margin-bottom: 32px; }
.hero-lead {
  max-width: 560px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.84);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-solid {
  background: #f2f6f7;
  border-color: #f2f6f7;
  color: #0d2732;
}
.hero .btn-solid:hover {
  background: #dce9ed;
  border-color: #dce9ed;
  color: #0d2732;
}
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.58); font-size: 22px; }

/* ===== SOCIAL BAR ===== */
.social-bar {
  background: var(--color-primary);
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.social-bar a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.25s;
}
.social-bar a:hover { color: #64b5f6; }
.social-bar .sep { color: rgba(255,255,255,0.2); }
.social-bar .phone-link {
  color: #64b5f6;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ===== SECTIONS ===== */
section { padding: 96px 8%; }
.section-title { margin-bottom: 2.2rem; }

/* Section divider with Baikal waves / rapids (перекаты) */
.section-wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 1.5rem 0;
}
.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* ===== ПЕРЕКАТЫ: ДЕКОРАТИВНЫЕ РАЗДЕЛИТЕЛИ СЕКЦИЙ ===== */
.perekati-divider {
  padding: 2rem 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.perekati-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
}
.perekati-line {
  flex: 1;
  height: 1px;
  min-width: 40px;
  background: rgba(31, 111, 139, 0.24);
}
.perekati-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.perekati-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  opacity: 0.9;
}
.perekati-text {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.45;
  max-width: 760px;
}
.perekati-hint {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  font-weight: 500;
}
@media (max-width: 768px) {
  .perekati-divider { padding: 1.5rem 5%; }
  .perekati-content { gap: 0.8rem; }
  .perekati-text {
    font-size: 16px;
  }
}

.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 8% 40px;
}
.intro h2 { margin-bottom: 1.5rem; }

/* ===== TOUR GRID ===== */
.tours-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.tours-grid.reverse { grid-template-columns: 1fr 2fr; }

@media (max-width: 900px) {
  .tours-grid, .tours-grid.reverse { grid-template-columns: 1fr; }
}

.tour-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-surface-alt);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--color-border);
}
.tour-card.horizontal { aspect-ratio: 16/9; }

.tour-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out), filter 220ms ease;
}
.tour-card:hover img { transform: scale(1.018); filter: saturate(0.94); }

.tour-card-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 2.5rem 2rem 1.8rem;
  background: linear-gradient(to top, rgba(13,33,55,0.92) 0%, transparent 100%);
  color: #fff;
}
.tour-card-content .label {
  font-size: 13px;
  letter-spacing: 0;
  color: #b9dce7;
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.tour-card-content h3 { color: #fff; font-size: 22px; margin-bottom: 0; }

.card-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.card-stack .tour-card { flex: 1; aspect-ratio: auto; min-height: 220px; }

/* ===== STATS ===== */
.stats {
  background: var(--color-primary);
  display: flex;
  justify-content: space-around;
  padding: 80px 8%;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 100px);
  line-height: 1;
  color: #c1e2e9;
  margin-bottom: 0.5rem;
}
.stat-item .label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: var(--color-surface);
  padding: 100px 8%;
}
.about-img {
  width: 100%; height: 580px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(13,33,55,0.10);
}
.about-content { }
.about-content h2 { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .about-preview { grid-template-columns: 1fr; padding: 60px 6%; gap: 3rem; }
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 0.75rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: var(--color-surface-alt);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out), filter 220ms ease;
}
.gallery-item:hover img { transform: scale(1.018); filter: saturate(0.94); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
}

/* ===== CONTACT ===== */
.contact-section {
  max-width: 620px; margin: 0 auto;
  text-align: center; padding: 100px 4%;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-form input:not([type="checkbox"]):not([type="radio"]), 
.contact-form textarea {
  width: 100%; 
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 8px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.contact-form input:not([type="checkbox"]):not([type="radio"]):focus, 
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(31,111,139,0.12);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-status.is-success { color: #39715f; }
.form-status.is-error { color: #a7463f; }
.contact-form button[disabled] { cursor: wait; opacity: 0.65; }

/* Consent checkbox in contact forms */
.form-consent-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0.4rem 0 0.8rem !important;
  cursor: pointer;
  text-align: left !important;
  width: 100%;
  box-sizing: border-box;
}
.form-consent-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--color-accent) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
.form-consent-label span {
  font-size: 13px !important;
  color: var(--color-muted) !important;
  line-height: 1.45 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}
.form-consent-label a {
  color: var(--color-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-nav-bg);
  color: rgba(255,255,255,0.75);
  padding: 4rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
footer .footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.02em;
}
footer .nav-link { color: rgba(255,255,255,0.65); }
footer .nav-link:hover { color: #b9dce7; }
footer .label { font-size: 12px; color: rgba(255,255,255,0.4); }
@media (max-width: 768px) { footer { flex-direction: column; text-align: center; } }

/* ===== TOUR DETAIL PAGE ===== */
.tour-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 128px 8% 64px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.tour-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,33,55,0.3), rgba(13,33,55,0.78));
}
.tour-hero-content { position: relative; z-index: 1; }
.tour-hero h1 { color: #fff; }

.tour-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 4%;
  background: var(--color-surface);
}
.tour-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 24px;
}
.tour-body p { max-width: none; }
.tour-body ul {
  margin: 0.8rem 0 1.5rem 1.5rem;
  color: var(--color-text);
  line-height: 2;
}
.tour-program {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}
.tour-price-block {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem;
  border-radius: 16px;
  margin-top: 3rem;
  text-align: center;
}
.tour-price-block h3 { color: #c1e2e9; font-size: 32px; margin-bottom: 1rem; }
.tour-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
.tour-photos-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), filter 220ms ease;
}
.tour-photos-grid img:hover { transform: translateY(-2px); filter: saturate(0.94); }

/* ===== PAGE HEADER ===== */
.page-header {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 128px 8% 64px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,33,55,0.3), rgba(13,33,55,0.75));
}
.page-header h1, .page-header .label { position: relative; z-index: 1; }
.page-header h1 { color: #fff; }
.page-header .label { color: rgba(255,255,255,0.7); margin-top: 0.8rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,20,35,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999; cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; cursor: default; border-radius: 3px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2.5rem; color: #fff; cursor: pointer; opacity: 0.7; line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; transition: transform 180ms var(--ease-out), opacity 180ms ease;
}

/* ===== GALLERY FILTER ===== */
.btn-active {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-color: var(--color-accent) !important;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--motion-enter) var(--ease-out), transform var(--motion-enter) var(--ease-out);
}
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 50ms; }
.delay-200 { transition-delay: 100ms; }

/* Text motion: words rise once when a heading enters the viewport. */
.text-reveal-ready {
  opacity: 1;
}
.text-reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: calc(var(--word-index, 0) * 42ms);
}
.text-reveal-ready.is-text-visible .text-reveal-word {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(31,111,139,0.42);
  outline-offset: 3px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav { min-height: 64px; padding: 10px 20px; }
  .hamburger { display: flex; }
  nav .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; width: 100%;
    flex-direction: column;
    background: var(--color-nav-bg);
    padding: 20px; gap: 12px; z-index: 99;
  }
  nav .nav-links.open { display: flex; }
  section { padding: 60px 5%; }
  .stats { padding: 60px 5%; }
  .social-bar { padding: 1rem 1.5rem; gap: 1.2rem; }
  .hero {
    align-items: flex-end;
    padding: 112px 24px 72px;
    background-position: 43% center;
    background-image:
      linear-gradient(to top, rgba(7,28,37,0.92) 0%, rgba(7,28,37,0.44) 62%, rgba(7,28,37,0.16) 100%),
      url('../images/vk/puteshestvie2019/001.jpg');
  }
  .hero h1 { font-size: clamp(44px, 15vw, 68px); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { text-align: center; }
  .page-header, .tour-hero { padding: 112px 24px 48px; }
}

@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;
    scroll-behavior: auto !important;
  }
  .fade-in-up,
  .text-reveal-word {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== LOGO OVERRIDE — принудительно белый =====  */
nav .logo a,
nav .logo a:link,
nav .logo a:visited,
nav .logo a:hover,
nav .logo a:active {
  color: #ffffff !important;
  font-size: 28px !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

nav .logo span {
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

nav .nav-link[style*="#64b5f6"] {
  color: #b9dce7 !important;
}
