/* ============================================================
   SNIGOWEEK — гірськолижні тури
   Сучасна Alpine-тема: крижано-синій + тепле сонце
   Шрифти: Unbounded (заголовки) · Onest (текст)
   ============================================================ */

:root {
  --bg: #eef4fa;
  --surface: #ffffff;
  --ink: #0a1b2e;
  --muted: #53657c;
  --line: #dbe6f1;

  --blue: #1477e6;
  --blue-deep: #0a4b9e;
  --sky: #4cc2ff;
  --sun: #ff7a45;

  --navy: #071a2f;
  --navy-2: #0e2c4e;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px rgba(10, 27, 46, .08);
  --shadow-hover: 0 26px 60px rgba(10, 27, 46, .16);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

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

section[id] { scroll-margin-top: 90px; }

/* ---------- Типографіка ---------- */

h1, h2, h3, h4 {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--sky); }

h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Onest", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue) 55%, var(--blue-deep));
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 119, 230, .32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(20, 119, 230, .42); }
.btn:active { transform: translateY(0); }

.btn-small { padding: 10px 22px; font-size: .88rem; }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); box-shadow: none; }

.btn-sun {
  background: linear-gradient(135deg, #ffb347, var(--sun));
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(255, 122, 69, .35);
}
.btn-sun:hover { box-shadow: 0 20px 42px rgba(255, 122, 69, .45); }

/* Контурна кнопка на світлому тлі (модальне вікно) */
.btn-line {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn-line:hover { background: var(--surface); box-shadow: none; }

/* ============================================================
   Хедер
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: 0 10px 30px rgba(10, 27, 46, .1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.main-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .16s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  border-radius: 2px;
  background: var(--blue);
  transition: width .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.social svg { width: 21px; height: 21px; }
.social:hover { background: #e6f0fb; color: var(--blue); transform: translateY(-2px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav a:last-child { color: var(--blue); font-weight: 600; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  padding: 110px 0 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 47, .55) 0%, rgba(7, 26, 47, .35) 40%, rgba(7, 26, 47, .9) 100%),
    radial-gradient(900px 500px at 15% 10%, rgba(76, 194, 255, .35), transparent 65%);
}
.snow {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(20, 119, 230, .4);
}
/* декоративна сніжинка-inline-SVG (замість символів, які телефони
   показують кольоровим емодзі) */
svg.sym {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
  flex: none;
}
.hero-brandline {
  font-family: "Unbounded", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .92);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #9fe3ff, var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Таймер */

.countdown {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.countdown-label {
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 18px;
}
.countdown-label strong { color: #fff; }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cd-cell {
  background: rgba(7, 26, 47, .5);
  border-radius: var(--radius-sm);
  padding: 14px 6px 12px;
  text-align: center;
}
.cd-cell span {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cd-cell small {
  display: block;
  margin-top: 8px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.countdown-date {
  margin-top: 16px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

/* ============================================================
   Біжучий рядок
   ============================================================ */

.ticker {
  overflow: hidden;
  background: var(--navy);
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: ticker 67s linear infinite;
  font-family: "Unbounded", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
/* відступ праворуч у КОЖНОГО елемента (не gap) — тоді половина треку
   дорівнює рівно -50% ширини і цикл замикається без стрибка */
.ticker-track > * { margin-right: 28px; }
.ticker-track b { color: var(--sky); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Переваги
   ============================================================ */

.features { padding: 72px 0 8px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e6f4ff, #d3eaff);
  color: var(--blue);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   Секції
   ============================================================ */

.section { padding: 96px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.section-dark .section-lead { color: rgba(255, 255, 255, .65); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 340px;
  text-align: right;
}

/* Лічильник турів */.tours-count {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Сітка турів */

/* ===== Карусель фото на сторінках турів ===== */
.strip { position: relative; }
.strip-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0 14px; /* місце для підйому картки при наведенні */
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track > * {
  flex: 0 0 var(--strip-item, 300px);
  scroll-snap-align: start;
  min-width: 0;
}
.strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  padding: 0 0 4px;
  box-shadow: 0 10px 26px rgba(10, 27, 46, .18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.strip-btn:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.strip-prev { left: 8px; }
.strip-next { right: 8px; }

/* Сітка турів на головній — усі одразу */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tour-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 119, 230, .4);
}
.tour-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #dbe6f1; }
.tour-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.tour-card:hover .tour-photo img { transform: scale(1.06); }

.tag-new {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(20, 119, 230, .35);
}
.tag-date {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(10, 27, 46, .22);
}

.tour-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.tour-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tour-meta i { width: 3px; height: 3px; border-radius: 50%; background: #b9c9da; }

.tour-body h3 { margin: 10px 0 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.tour-desc { color: var(--muted); font-size: .92rem; }

.tour-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}
.price {
  font-family: "Unbounded", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-deep);
  white-space: nowrap;
}
.price small { font-size: .8rem; font-weight: 500; }
.price-ask {
  font-family: "Onest", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: #c2410c;
}
.tour-btn {
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .18s ease;
}
.tour-card:hover .tour-btn { background: var(--blue); }

/* CTA під сіткою */

.tours-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 46px;
  background: linear-gradient(120deg, var(--surface) 0%, #f3f9ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow);
}
.tours-cta-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--blue-deep);
  max-width: 640px;
  margin: 0;
}
.tours-cta-sub {
  margin-top: 14px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 640px;
}
.tours-cta .btn { flex: 0 0 auto; }

/* ============================================================
   Три кроки
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.step:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(76, 194, 255, .5);
  transform: translateY(-5px);
}
.step-num {
  display: inline-block;
  font-family: "Unbounded", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sky);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: rgba(255, 255, 255, .68); font-size: .95rem; }

/* ============================================================
   Галерея «Атмосфера»
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, opacity .45s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
/* ротація фото: плавний crossfade — нове фото виводиться поверх старого,
   без згасання в фон (прибирає «білий» спалах на телефонах) */
.gallery figure img.sw-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.gallery figure img.sw-fade.sw-on { opacity: 1; }

.g-a { grid-column: span 2; grid-row: span 2; }
.g-b { grid-column: span 2; }
.g-c { grid-column: span 1; }
.g-d { grid-column: span 1; }
.g-e { grid-column: span 2; grid-row: span 1; }
.g-f { grid-column: span 2; grid-row: span 1; }

/* ============================================================
   Лайтбокс-карусель (створюється js/main.js §3c)
   ============================================================ */

body.no-scroll { overflow: hidden; }

.lbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 12, 24, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lbox.open { opacity: 1; pointer-events: auto; }
.lbox-img {
  max-width: 88vw; max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .65);
  transform: scale(.96);
  transition: transform .3s ease, opacity .2s ease;
  user-select: none; -webkit-user-drag: none;
}
.lbox.open .lbox-img { transform: scale(1); }
.lbox-btn, .lbox-close {
  position: absolute;
  z-index: 2; /* кнопки завжди поверх фото (на телефоні фото майже повна ширина) */
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lbox-btn:hover, .lbox-close:hover { background: rgba(255, 255, 255, .2); transform: scale(1.08); }
.lbox-prev, .lbox-next {
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 34px; line-height: 1;
  padding-bottom: 4px;
}
.lbox-prev:hover, .lbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lbox-prev { left: 18px; }
.lbox-next { right: 18px; }
.lbox-close {
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  font-size: 20px;
}
.lbox-meta {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px; text-align: center; padding: 0 80px;
  pointer-events: none;
}
.lbox-caption:empty { display: none; }
.lbox-counter { font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .1em; }

@media (max-width: 720px) {
  .lbox-prev, .lbox-next { width: 42px; height: 42px; font-size: 26px; }
  .lbox-prev { left: 8px; }
  .lbox-next { right: 8px; }
  .lbox-meta { padding: 0 56px; }
  .lbox-img { max-width: 94vw; max-height: 74vh; }
}

/* ============================================================
   Футер
   ============================================================ */

.footer {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, .6);
  font-size: .93rem;
  max-width: 320px;
}
.footer-col h3 {
  font-family: "Onest", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
  padding: 5px 0;
  transition: color .16s ease;
}
.footer-col a:hover { color: #fff; }

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer .social { display: inline-flex; padding: 0; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); }
.footer .social:hover { background: var(--blue); color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   Анімація появи
   ============================================================ */

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

/* Службовий заголовок для скрін-рідерів */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .countdown { max-width: 520px; }
  .tours-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-photos-track { --strip-item: calc((100% - 52px) / 3); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-a { grid-column: span 2; grid-row: span 1; }
  .g-e { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { gap: 10px; }
  .brand img { height: 28px; }
  .header-actions { gap: 2px; }
  .header-actions .social { width: 34px; height: 34px; }
  .header-actions .social svg { width: 19px; height: 19px; }
  .section { padding: 68px 0; }
  .hero { padding: 80px 0 90px; }
  .tours-grid { grid-template-columns: 1fr; }
  .tour-photos-track { --strip-item: 80%; }
  .strip-btn { width: 38px; height: 38px; font-size: 22px; }
  .tour-photos-track figure { height: 210px; }
  .section-lead { text-align: left; max-width: none; }
  .gallery { gap: 12px; }
}

@media (max-width: 460px) {
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}

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

/* ============================================================
   СТОРІНКА ОКРЕМОГО ТУРУ
   ============================================================ */

.tour-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  padding: 84px 0 72px;
}
.tour-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tour-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 47, .62) 0%, rgba(7, 26, 47, .5) 45%, rgba(7, 26, 47, .96) 100%),
    radial-gradient(800px 420px at 12% 0%, rgba(76, 194, 255, .28), transparent 65%);
}
.tour-hero-inner { position: relative; z-index: 2; max-width: 860px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 24px;
  transition: color .16s ease, gap .16s ease;
}
.back-link:hover { color: #fff; gap: 13px; }

.tour-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.meta-dates {
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.tour-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.tour-hero-lead {
  margin-top: 18px;
  max-width: 660px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .86);
}
.tour-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Двоколонковий макет */
.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 54px;
  align-items: start;
}

.tour-h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 56px 0 10px;
  letter-spacing: -.02em;
}
.tour-h2:first-child { margin-top: 0; }

.tour-note {
  background: #eef6ff;
  border: 1px solid rgba(20, 119, 230, .25);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Програма — таймлайн */
.program { display: grid; gap: 12px; }
.program li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color .18s ease, transform .18s ease;
}
.program li:hover { border-color: rgba(20, 119, 230, .4); transform: translateX(4px); }
.program-day {
  font-family: "Unbounded", sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-deep);
  white-space: nowrap;
}
.program li p { font-size: .97rem; }

/* Список особливостей */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .99rem; }
.feature-list li::before {
  content: "";
  flex: 0 0 24px;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e6f4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231477e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Що входить у вартість */
.includes { display: grid; margin-top: 22px; }
.includes li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.03rem;
  line-height: 1.55;
  transition: background .16s ease, padding-left .16s ease;
}
.includes li:first-child { border-top: 1px solid var(--line); }
.includes li:hover { background: #f3f9ff; padding-left: 10px; }
.includes li::before {
  content: "";
  flex: 0 0 26px;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e6f4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231477e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Картка бронювання */
.booking { position: sticky; top: 100px; }
.booking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-hover);
}
.booking-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.booking-price {
  font-family: "Unbounded", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue-deep);
}
.booking-price.is-ask {
  font-family: "Onest", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c2410c;
}
.booking-list {
  display: grid;
  gap: 9px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.booking-list li { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; }
.booking-list span { color: var(--muted); }
.booking-list strong { font-weight: 600; text-align: right; }

/* Назва туру і дати над варіантами розміщення (сірим) */
.booking-meta { padding: 2px 0 6px; }
.booking-meta p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.booking-meta-name { font-weight: 600; }

/* Варіанти розміщення */
.price-opts { display: grid; gap: 10px; }
.price-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.price-opt:hover {
  border-color: rgba(20, 119, 230, .5);
  transform: translateY(-1px);
}
.price-opt input {
  accent-color: var(--blue);
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin: 0;
}
.price-opt .opt-name { flex: 1; min-width: 0; font-size: .93rem; font-weight: 600; }
.price-opt .opt-price {
  font-family: "Unbounded", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-deep);
  white-space: nowrap;
}
.price-opt.is-active {
  border-color: var(--blue);
  background: #eef6ff;
}
.price-opt.is-active .opt-price { color: var(--blue); }
.price-opt:focus-within { outline: 2px solid rgba(20, 119, 230, .55); outline-offset: 2px; }

/* Підсумок */
.booking-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: #eef6ff;
  border: 1px solid rgba(20, 119, 230, .28);
  border-radius: 14px;
  padding: 15px 16px;
  margin: 18px 0 20px;
}
.booking-total span { font-size: .88rem; font-weight: 600; color: var(--muted); }
.booking-total[hidden] { display: none; }

.booking-card .btn { width: 100%; }

/* Інші тури */
.section-more {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 72px 0;
}
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Секція «Фото з минулих турів» на тур-сторінках */
.section-strip { padding: 6px 0 30px; }
.strip-head { margin-bottom: 14px; }
.tour-photos-track { --strip-item: calc((100% - 78px) / 4); }
.tour-photos-track figure {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.tour-photos-track figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tour-photos-track figure:hover img { transform: scale(1.06); }

/* Телефони: одне велике фото на екран (як блок «Атмосфера» на головній),
   базові правила .tour-photos-track вище за медіазапити — повторюємо тут */
@media (max-width: 720px) {
  .tour-photos-track { --strip-item: 84%; }
  .tour-photos-track figure { height: 240px; }
}
.mini-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 119, 230, .4);
}
.mini-card img { flex: 0 0 78px; width: 78px; height: 78px; border-radius: 12px; object-fit: cover; }
.mini-card h3 { font-size: .98rem; }
.mini-card .mini-meta { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.mini-card .mini-price {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-top: 6px;
}

@media (max-width: 1040px) {
  .tour-layout { grid-template-columns: 1fr; gap: 40px; }
  .booking { position: static; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .tour-hero { padding: 68px 0 60px; }
  .program li { grid-template-columns: 1fr; gap: 6px; }
  .more-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Модальне вікно бронювання
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 46, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: 0 30px 80px rgba(10, 27, 46, .4);
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: .95rem;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-head { margin-bottom: 22px; padding-right: 40px; }
.modal-head h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 14px 0 6px;
  letter-spacing: -.02em;
}
.modal-sub { color: var(--muted); font-weight: 600; font-size: .95rem; }

.booking-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field > label:not(.check) { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #93a2b4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 119, 230, .15);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.field-hint { font-size: .82rem; color: var(--muted); }

/* Розрахунок ціни у формі бронювання */
.modal-price {
  display: grid;
  gap: 8px;
  background: #f3f8fd;
  border: 1px solid rgba(20, 119, 230, .2);
  border-radius: 12px;
  padding: 14px 16px;
}
.modal-price[hidden] { display: none; }
.modal-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .92rem;
  color: var(--muted);
}
.modal-price-row strong { color: var(--ink); font-weight: 700; }
.modal-price-row-sub strong { color: var(--blue); }
.modal-price-total { border-top: 1px dashed rgba(20, 119, 230, .3); padding-top: 9px; }
.modal-price-total strong { font-size: 1.06rem; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  margin: 0;
  cursor: pointer;
}
.booking-form > .btn { width: 100%; margin-top: 2px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }

.form-done { text-align: center; }
.done-icon {
  width: 58px;
  height: 58px;
  margin: 4px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(20, 119, 230, .38);
}
.form-done h3 { font-family: "Unbounded", sans-serif; font-size: 1.2rem; margin: 0 0 10px; }
.form-done p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.done-text {
  width: 100%;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  resize: none;
  margin-bottom: 18px;
}
.done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

body.modal-open { overflow: hidden; }

/* атрибут hidden має ховати елемент завжди, навіть якщо клас задає display */
[hidden] { display: none !important; }

@media (max-width: 560px) {
  /* компактніший блок форми бронювання на телефонах (лише модалка) */
  .modal-card { padding: 20px 16px 18px; }
  .modal-head { margin-bottom: 14px; }
  .modal-head h2 { font-size: 1.25rem; margin: 8px 0 4px; }
  .modal-sub { font-size: .88rem; }
  .booking-form { gap: 12px; }
  .field { gap: 5px; }
  .field input[type="text"],
  .field input[type="tel"],
  .field input[type="number"],
  .field select { padding: 10px 12px; }
  .field textarea { min-height: 64px; padding: 10px 12px; }
  .field-row { grid-template-columns: 1fr; }
  .done-actions { grid-template-columns: 1fr; }
}
