:root {
  --green-900: #0f2e25;
  --green-700: #1f5a45;
  --green-500: #2f8466;
  --sea: #1f7a99;
  --sand: #f6f1e7;
  --orange: #ec7a1c;
  --orange-dark: #c9620f;
  --ink: #1b2420;
  --muted: #5d6b65;
  --line: #e3ddd0;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 46, 37, .08);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}
/* Фон страницы: горизонтали Сочи и Абхазии по карте Ильи поверх послойной окраски (море синее, горы
   от зелёного к красно-коричневому), мягкое свечение моря и мандарина,
   плёночное зерно. Слой зафиксирован — контент едет поверх карты. Карта: tools/make_topo_map.py */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .15 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    url("../img/topo.c1add5c0bbcc.svg") center / cover no-repeat,
    url("../img/topo-tint.875ed02c2c97.png") center / cover no-repeat,
    radial-gradient(60vmax 45vmax at 0% 0%, rgba(31, 122, 153, .16), transparent 70%),
    radial-gradient(55vmax 40vmax at 100% 100%, rgba(236, 122, 28, .15), transparent 70%),
    var(--sand);
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 19px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: transparent; color: var(--green-700); border: 1.5px solid var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.header { background: var(--green-900); color: var(--white); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { color: var(--white); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo span { color: var(--orange); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--white); }
.header-phone { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; margin-left: auto; padding: 4px 8px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--green-900); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Первый экран ---------- */
.hero {
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(15,46,37,.88) 0%, rgba(15,46,37,.62) 55%, rgba(15,46,37,.35) 100%),
    url("../img/mountains-bg.ec7184c2bd68.jpg") center 40%/cover no-repeat var(--green-900);
  padding: 72px 0;
  position: relative; overflow: hidden; isolation: isolate;
}
/* Видео лежит под тем же затемнением, что и фото: текст читается на любом кадре. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(15,46,37,.74) 0%, rgba(15,46,37,.42) 55%, rgba(15,46,37,.12) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
@media (max-width: 860px) {
  .hero::before { background: linear-gradient(180deg, rgba(15,46,37,.45) 0%, rgba(15,46,37,.75) 45%, rgba(15,46,37,.88) 100%); }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%;
  border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(15,46,37,.82); backdrop-filter: blur(6px);
  padding: 10px 16px; border-radius: 14px; font-size: 14px; line-height: 1.35;
}
.hero-photo figcaption b { display: block; font-size: 16px; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 4/3; object-position: center 22%; }
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 640px; opacity: .92; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-facts b { display: block; font-size: 26px; }
.hero-facts span { opacity: .8; font-size: 14px; }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat {
  background: var(--white); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--green-500); transform: translateY(-2px); }
.cat h3 { margin-bottom: 4px; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Карточки туров ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 800; font-size: 19px; color: var(--green-900); }
.price small { white-space: nowrap; font-weight: 600; font-size: 13px; color: var(--muted); }

/* Карточка тура: вертикальная 4:5, как пост в Instagram, текст поверх фото */
.tcard {
  position: relative; display: block; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; box-shadow: var(--shadow); background: var(--green-900);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 46, 37, .22); }
.tcard-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; aspect-ratio: auto;
  transition: transform .6s ease;
}
.tcard:hover .tcard-img { transform: scale(1.06); }
.tcard::after {  /* затемнение снизу — чтобы текст читался на любом фото */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 24, 19, .92) 0%, rgba(8, 24, 19, .55) 38%, rgba(8, 24, 19, 0) 62%),
              linear-gradient(to bottom, rgba(8, 24, 19, .35), rgba(8, 24, 19, 0) 22%);
}
.tcard-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tchip {
  font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
}
.tchip-easy::before, .tchip-medium::before, .tchip-hard::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px;
}
.tchip-easy::before { background: #5fd38a; }
.tchip-medium::before { background: #ffb547; }
.tchip-hard::before { background: #ff6b5e; }
.tcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tcard-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.tcard h3 { margin: 0; color: #fff; font-size: 22px; line-height: 1.2; text-wrap: balance; }
.tcard p {
  margin: 0; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .82);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.tcard-price { font-weight: 800; font-size: 20px; }
.tcard-price small { font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.tcard-go {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: var(--orange); color: #fff; transition: transform .25s ease;
}
.tcard:hover .tcard-go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .tcard, .tcard-img, .tcard-go { transition: none; } }

.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef4f1; color: var(--green-700); }
.tag-easy { background: #e7f6ec; color: #1b7a3d; }
.tag-medium { background: #fff3e0; color: #b45d00; }
.tag-hard { background: #fdeaea; color: #b42318; }

/* Заглушка вместо фото */
.ph {
  aspect-ratio: 4/3; width: 100%; display: grid; place-items: center; color: rgba(255,255,255,.9);
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  background: url("../img/mountains.6cc4007aa11a.svg") bottom/100% auto no-repeat, linear-gradient(160deg, #3c8f75, #1f7a99);
}
.ph-abkhazia { background: url("../img/mountains.6cc4007aa11a.svg") bottom/100% auto no-repeat, linear-gradient(160deg, #3c8f75, #1f7a99); }
.ph-sochi { background: url("../img/mountains.6cc4007aa11a.svg") bottom/100% auto no-repeat, linear-gradient(160deg, #e59a4b, #c95d63); }
.ph-hiking { background: url("../img/mountains.6cc4007aa11a.svg") bottom/100% auto no-repeat, linear-gradient(160deg, #5b8c5a, #2c5d4a); }
.ph-gifts { background: url("../img/mountains.6cc4007aa11a.svg") bottom/100% auto no-repeat, linear-gradient(160deg, #f0a030, #ec7a1c); }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ico { font-size: 28px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.cta {
  background:
    linear-gradient(rgba(31,90,69,.82), rgba(15,46,37,.86)),
    url("../img/mountains-bg.ec7184c2bd68.jpg") center 60%/cover no-repeat var(--green-700);
  color: var(--white); border-radius: 24px; padding: 40px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta p { margin: 0; opacity: .9; }

/* ---------- Каталог ---------- */
.page-head {
  background:
    linear-gradient(rgba(15,46,37,.72), rgba(15,46,37,.82)),
    url("../img/mountains-bg.ec7184c2bd68.jpg") center 45%/cover no-repeat var(--green-900);
  color: var(--white); padding: 44px 0 36px;
}
.page-head p { margin: 0; opacity: .85; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 14px; border: 1px solid var(--line);
}
.chip.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.search { display: flex; gap: 8px; margin-left: auto; }
.search input { min-width: 0; width: 220px; }
@media (max-width: 640px) { .search { margin-left: 0; width: 100%; flex-wrap: wrap; } .search select, .search input { flex: 1 1 100%; width: auto; } }
.empty { background: var(--white); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Страница тура ---------- */
.breadcrumbs { font-size: 14px; margin-bottom: 14px; opacity: .8; }
.breadcrumbs a { color: inherit; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .tour-layout { grid-template-columns: 1fr; } }
.tour-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.tour-hero-img .ph, .tour-hero-img img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.gallery img, .gallery .ph { aspect-ratio: 1; object-fit: cover; border-radius: 10px; font-size: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 28px; }
.fact { background: var(--white); border-radius: 12px; padding: 14px 16px; }
.fact span { display: block; font-size: 13px; color: var(--muted); }
.fact b { font-size: 15px; }
.block { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.route { list-style: none; padding: 0; margin: 0; counter-reset: pt; }
.route li { position: relative; padding: 0 0 14px 40px; counter-increment: pt; }
.route li::before {
  content: counter(pt); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #e7f0ec; color: var(--green-700); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.route li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: #e7f0ec; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.prewrap { white-space: pre-line; margin: 0; }

/* ---------- Форма брони ---------- */
.booking { position: sticky; top: 84px; }
.booking .price { font-size: 26px; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
input[type=text], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: #fdfcf9;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); background: var(--white); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.errorlist { list-style: none; padding: 0; margin: 5px 0 0; color: #b42318; font-size: 13px; }
.form-errors { background: #fdeaea; color: #b42318; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.or { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 10px; }
.dates-list { list-style: none; padding: 0; margin: 0; }
.dates-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dates-list li:last-child { border: 0; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 17px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.about-photo { margin: 0; position: sticky; top: 84px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.about-grid .block { margin-bottom: 0; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-photo { position: static; }
  .about-photo img { aspect-ratio: 4/3; object-position: center 22%; }
}
.contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.contact-list a { font-weight: 700; font-size: 18px; }

/* ---------- Подвал ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 44px 0 28px; margin-top: 40px; font-size: 15px; }
.footer a { color: var(--white); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--white); margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Плавающая кнопка Telegram на телефоне */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 56px; height: 56px; border-radius: 50%;
  background: #229ed9; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.fab svg { width: 28px; height: 28px; }

/* ---------- Статьи ---------- */
.crumbs { margin: 0 0 8px; font-size: 14px; }
.crumbs a { color: rgba(255,255,255,.8); }
.article { padding: 28px; }
.article h2 { font-size: 24px; margin: 28px 0 10px; }
.article p, .article li { font-size: 17px; line-height: 1.65; }
.article-cover { width: 100%; border-radius: 12px; margin-bottom: 20px; aspect-ratio: 16/10; object-fit: cover; }
.lead-text { font-size: 19px !important; font-weight: 600; color: var(--green-700); }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.article-gallery figure { margin: 0; }
.article-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.article-gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) { .article { padding: 18px; } }

/* ---------- Трансфер ---------- */
.prices { width: 100%; border-collapse: collapse; font-size: 15px; }
.prices th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 8px 10px; }
.prices td { padding: 12px 8px; border-top: 1px solid var(--line); }
.prices td:first-child { font-weight: 700; }
.prices td.p { white-space: nowrap; font-weight: 800; color: var(--green-900); }
.prices small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .prices { font-size: 14px; } .prices td, .prices th { padding-left: 4px; padding-right: 4px; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sent { background: #e7f4ee; color: var(--green-900); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.to-form { display: none; }
@media (max-width: 960px) { .to-form { display: inline-flex; margin-top: 14px; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs .chip { font: inherit; font-size: 14px; cursor: pointer; }
