/* ============================================================
   Kuznetsova Travel — лендинг авторских туров
   Палитра: песочный / олива / тёплый коричневый / крем
   ============================================================ */

:root {
  --sand:      #e9e1d4;
  --cream:     #f7f3ec;
  --olive:     #5b5638;
  --brown:     #6e5847;
  --terracotta:#a96b4f;
  --ink:       #2b2722;
  --muted:     #8a8275;
  --line:      #ddd3c4;
  --white:     #fffdf9;
  --shadow:    0 18px 50px rgba(43, 39, 34, 0.12);
  --radius:    18px;
  --maxw:      1160px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Якоря не прячутся под липкой шапкой */
section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: .8rem;
}

.section { padding: 96px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.section-lead { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all .25s ease;
}
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-small { padding: 11px 22px; font-size: .82rem; background: var(--brown); color: var(--white); }
.btn-small:hover { background: var(--ink); }
.btn-block { width: 100%; text-align: center; }

/* ============================ ШАПКА ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--olive); color: var(--white);
  display: grid; place-items: center; font-size: 1rem;
}
.logo-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.logo-text small { display: block; font-size: .62rem; letter-spacing: .42em; color: var(--muted); font-family: var(--sans); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .9rem; transition: color .2s; }
.nav a:hover { color: var(--terracotta); }
.nav-cta { background: var(--olive); color: var(--white) !important; padding: 10px 20px; border-radius: 999px; }
.nav-cta:hover { background: var(--ink); }
.nav-vk { display: inline-flex; align-items: center; gap: 7px; background: var(--terracotta); }
.nav-vk:hover { background: var(--brown); }
.nav-vk svg { width: 17px; height: 17px; }
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ============================ ГЛАВНЫЙ ЭКРАН ============================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #6e5847, #45403a 60%, #2b2722);
  background-image: url('images/hero-poster.jpg');
  background-size: cover; background-position: center;
  text-align: center;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(20,16,12,.4), rgba(20,16,12,.6));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-kicker { text-transform: uppercase; letter-spacing: .42em; font-size: .8rem; margin-bottom: 1.2rem; opacity: .92; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: 1.2rem; font-weight: 600; }
.hero-sub { font-size: 1.12rem; max-width: 600px; margin: 0 auto 2.2rem; font-weight: 300; opacity: .95; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-badges { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: .82rem; letter-spacing: .04em; opacity: .9; }
.hero-badges span { display: inline-flex; align-items: center; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--white); text-decoration: none; font-size: 1.4rem; z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ============================ ПРЕИМУЩЕСТВА (features) ============================ */
.features { padding: 92px 0; background: var(--cream); }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 28px 32px;
  text-align: center;
  transition: transform .4s cubic-bezier(.2,.8,.25,1), box-shadow .4s ease, border-color .4s ease;
}
.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 56px rgba(43, 39, 34, .16);
  border-color: transparent;
}
.feature-ico {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 22px;
  background: var(--sand); color: var(--olive);
  transition: background .4s ease, color .4s ease, transform .4s cubic-bezier(.2,.8,.25,1);
}
.feature:hover .feature-ico { background: var(--olive); color: var(--cream); transform: rotate(-6deg) scale(1.08); }
.feature-ico svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.42rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* появление при прокрутке */
.js .feature { opacity: 0; }
.js .feature.reveal-in { animation: cardIn .6s cubic-bezier(.2,.8,.25,1) forwards; }
@media (prefers-reduced-motion: reduce) { .js .feature { opacity: 1; } .feature, .feature-ico { transition: none; animation: none; } }

/* ============================ ТУРЫ ============================ */
.tours-section { background: var(--sand); }
.tours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tour-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.tour-card:hover { transform: translateY(-6px); }
.tour-media {
  height: 230px; background-size: cover; background-position: center;
  background-color: var(--brown); position: relative;
}
.tour-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,253,249,.92); color: var(--ink);
  padding: 5px 14px; border-radius: 999px; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
}
.tour-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tour-body h3 { font-size: 1.7rem; margin-bottom: 12px; }
.tour-meta { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.tour-desc { font-size: .92rem; color: var(--ink); margin-bottom: 20px; flex: 1; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tour-price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--olive); }
.tours-note { text-align: center; margin-top: 40px; color: var(--brown); }

/* ---------- Карточки направлений ---------- */
.dirs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.dir-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.dir-card:hover { transform: translateY(-6px); }
.dir-media {
  position: relative; height: 260px; display: block;
  background-size: cover; background-position: center;
  background-color: var(--brown); text-decoration: none;
}
.dir-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,12,.6), rgba(20,16,12,0) 55%);
}
.dir-name {
  position: absolute; left: 20px; bottom: 16px; z-index: 1;
  color: var(--white); font-family: var(--serif); font-size: 2rem; font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.dir-media.is-placeholder {
  background: linear-gradient(135deg, var(--brown), var(--olive));
  display: flex; align-items: flex-end;
}
.dir-soon {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  background: rgba(255,255,255,.85); color: var(--ink);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 999px;
}
.dir-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.dir-dates-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 10px;
}
.dir-dates { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-content: flex-start; }
.dir-dates li {
  background: var(--sand); color: var(--ink);
  font-size: .85rem; padding: 6px 14px; border-radius: 999px;
}
.dir-dates li.muted {
  background: rgba(169, 107, 79, .1);
  color: var(--terracotta);
  border: 1px dashed rgba(169, 107, 79, .45);
  font-style: normal;
  font-weight: 500;
}
.dir-link {
  align-self: flex-start; text-decoration: none; color: var(--olive);
  font-weight: 500; font-size: .92rem; transition: color .2s;
}
.dir-link:hover { color: var(--terracotta); }

/* ============================ ОБ АВТОРЕ ============================ */
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-photo {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  background-color: var(--sand); box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.about-text p { color: var(--ink); margin-bottom: 1rem; }
.about-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.about-list li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); font-size: .95rem; }
.about-list li::before { content: "🫶"; position: absolute; left: 0; top: 0; }
.about-stats { display: flex; gap: 36px; margin: 28px 0 32px; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--serif); font-size: 2.2rem; color: var(--terracotta); line-height: 1.05; margin-bottom: 6px; }
.about-stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); line-height: 1.2; }

/* ============================ ОТЗЫВЫ ============================ */
.reviews-section { background: var(--sand); }
/* ---------- Отзывы как рукописные письма ---------- */
.letters { position: relative; max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.letter-wrap { flex: 1; min-height: 1px; }
.letter {
  position: relative;
  background: #fffdf6;
  border-radius: 5px;
  padding: 54px 52px 40px;
  box-shadow: 0 26px 60px rgba(43, 39, 34, .2);
  transform: rotate(-1deg);
  opacity: 0;
}
.letter.in { animation: letterIn .5s ease forwards; }
@keyframes letterIn {
  from { opacity: 0; transform: rotate(-1deg) translateY(18px) scale(.985); }
  to   { opacity: 1; transform: rotate(-1deg) translateY(0) scale(1); }
}
/* «скотч» по верхним углам */
.letter::before, .letter::after {
  content: ""; position: absolute; top: -10px; width: 96px; height: 26px;
  background: rgba(169, 107, 79, .18);
  border: 1px dashed rgba(169, 107, 79, .35);
}
.letter::before { left: 28px; transform: rotate(-5deg); }
.letter::after  { right: 28px; transform: rotate(5deg); }
.letter-stars { color: #d9a441; letter-spacing: .15em; font-size: .95rem; margin-bottom: 12px; }
.letter-quote { font-family: "Caveat", cursive; font-size: 1.95rem; line-height: 1.48; color: #3a342c; }
.letter-foot { margin-top: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 16px; }
.letter-author { font-family: "Caveat", cursive; font-size: 1.7rem; color: var(--terracotta); }
.letter-place { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.letter-heart { position: absolute; right: 26px; bottom: 22px; color: var(--terracotta); opacity: .5; font-size: 1.3rem; }

.letters-nav {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid var(--brown); background: transparent; color: var(--brown);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.letters-nav:hover { background: var(--brown); color: var(--cream); transform: scale(1.08); }
.letters-dots { display: flex; gap: 9px; justify-content: center; margin-top: 30px; }
.letters-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(110, 88, 71, .3); transition: background .25s ease, transform .25s ease;
}
.letters-dots button.active { background: var(--terracotta); transform: scale(1.35); }
.letters-more { text-align: center; margin-top: 22px; }
.letters-more a { color: var(--brown); text-decoration: none; font-size: .92rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s; }
.letters-more a:hover { color: var(--terracotta); }
@media (prefers-reduced-motion: reduce) { .letter { opacity: 1; } .letter.in { animation: none; } }
@media (max-width: 640px) {
  .letter { padding: 44px 26px 32px; }
  .letter-quote { font-size: 1.6rem; }
  .letters-nav { width: 42px; height: 42px; font-size: 1.4rem; }
}

/* ============================ FAQ ============================ */
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--terracotta); font-size: 1.5rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: var(--muted); }

/* ============================ ЗАЯВКА ============================ */
.contact-section { background: var(--olive); color: var(--cream); }
.contact-section .eyebrow { color: #d9c9a8; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--cream); }
.contact-text p { opacity: .9; margin-bottom: 1.6rem; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-link {
  color: var(--cream); text-decoration: none; border: 1px solid rgba(255,255,255,.4);
  padding: 9px 20px; border-radius: 999px; font-size: .85rem; transition: all .2s;
}
.contact-link:hover { background: rgba(255,255,255,.14); }
.contact-form { background: var(--cream); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: block; margin-bottom: 16px; font-size: .82rem; color: var(--brown); font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; margin-top: 6px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: .95rem; background: var(--white); color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--olive); }
.form-hint { font-size: .72rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ============================ ПОДВАЛ ============================ */
.site-footer { background: var(--ink); color: #cfc6b8; padding: 60px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-text { color: var(--cream); }
.footer-brand p { margin-top: 12px; font-size: .9rem; opacity: .7; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: #cfc6b8; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .82rem; opacity: .7; }
.footer-bottom a { color: #cfc6b8; text-decoration: none; }

/* ============================ ГАЛЕРЕЯ (polaroid-лента) ============================ */
.gallery-section { background: var(--cream); overflow: hidden; }
.reel {
  overflow: hidden;
  padding: 26px 0 56px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reel-track {
  display: flex; width: max-content;
  animation: reel-scroll 70s linear infinite;
}
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.polaroid {
  flex: 0 0 auto;
  margin-right: 34px;
  background: #fffdf9;
  padding: 13px 13px 0;
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(43, 39, 34, .18);
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.pol-photo {
  width: 250px; height: 280px;
  background-size: cover; background-position: center;
  background-color: var(--sand);
}
.polaroid figcaption {
  font-family: "Caveat", cursive;
  font-size: 1.7rem; line-height: 1;
  text-align: center; color: var(--brown);
  padding: 12px 6px 16px;
}
/* «разбросанные» углы и смещения по вертикали — не в одну линию */
.polaroid:nth-child(4n+1) { transform: rotate(-4deg) translateY(0); }
.polaroid:nth-child(4n+2) { transform: rotate(3deg)  translateY(30px); }
.polaroid:nth-child(4n+3) { transform: rotate(-2deg) translateY(14px); }
.polaroid:nth-child(4n)   { transform: rotate(4deg)  translateY(40px); }
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); box-shadow: 0 22px 44px rgba(43,39,34,.28); z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
}

/* ============================ АДАПТИВ ============================ */
@media (max-width: 920px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 0;
  }
  .nav.open a { padding: 14px 24px; width: 100%; }
  .nav.open .nav-cta { margin: 8px 24px; text-align: center; }
  .burger { display: block; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tours-grid, .reviews-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .dirs-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .pol-photo { width: 200px; height: 230px; }
  .polaroid figcaption { font-size: 1.45rem; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .dirs-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .hero-badges { gap: 14px; flex-direction: column; }
}

/* ============================ МОДАЛЬ ТУРА ============================ */
.tour-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.tour-modal.open { display: flex; }
.tm-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 16, 12, .6);
  backdrop-filter: blur(6px);
  animation: tmFade .3s ease;
}
@keyframes tmFade { from { opacity: 0; } to { opacity: 1; } }
.tm-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 880px; max-height: 90vh;
  background: var(--cream); border-radius: 22px; overflow: hidden auto;
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
  animation: tmPop .4s cubic-bezier(.2,.8,.25,1);
}
@keyframes tmPop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.tm-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,253,249,.9); color: var(--ink); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.tm-close:hover { transform: rotate(90deg); background: #fff; }

.tm-banner {
  position: relative; min-height: 300px; overflow: hidden;
  background-color: var(--brown);
  display: flex; align-items: flex-end;
}
.tm-banner-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 38%;
  transform-origin: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.2) translate(-1.5%, -2.5%); }
}
.tm-banner-grad { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20,16,12,.82), rgba(20,16,12,.15) 70%); }
@media (prefers-reduced-motion: reduce) { .tm-banner-img { animation: none; } }
.tm-head { position: relative; z-index: 2; padding: 28px 32px; color: var(--white); width: 100%; }
.tm-sub { font-family: var(--serif); font-size: 1.3rem; opacity: .92; margin-bottom: 2px; }
.tm-head h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--white); line-height: 1; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tm-meta span {
  background: rgba(255,253,249,.16); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); font-size: .82rem; padding: 6px 13px; border-radius: 999px;
}

.tm-body { padding: 24px 32px 8px; }
.tm-daynav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tm-daynav button {
  font-family: var(--sans); font-size: .85rem; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--brown); transition: all .2s;
}
.tm-daynav button:hover { border-color: var(--olive); }
.tm-daynav button.active { background: var(--olive); color: var(--white); border-color: var(--olive); }
.tm-progress { height: 4px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.tm-progress span { display: block; height: 100%; background: var(--terracotta); border-radius: 999px; transition: width .45s cubic-bezier(.2,.8,.25,1); }

.tm-day-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.tm-day-num { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: var(--terracotta); line-height: .8; }
.tm-day-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.timeline { list-style: none; position: relative; padding: 0 0 6px 52px; margin: 0; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--terracotta), var(--sand));
  transform-origin: top; animation: tmDraw .7s ease;
}
@keyframes tmDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.timeline li {
  position: relative; margin-bottom: 18px; padding-top: 4px;
  opacity: 0; transform: translateY(12px);
  animation: tmItem .5s ease forwards;
}
@keyframes tmItem { to { opacity: 1; transform: none; } }
.ti-dot {
  position: absolute; left: -52px; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--sand);
  display: grid; place-items: center; font-size: 1.1rem;
}
.ti-text { font-size: .96rem; color: var(--ink); line-height: 1.5; }

.tm-empty { text-align: center; color: var(--muted); padding: 24px 0 36px; }
.tm-empty strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }

.tm-foot {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; background: var(--cream); border-top: 1px solid var(--line);
}
.tm-foot-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--olive); }

@media (max-width: 640px) {
  .tour-modal { padding: 0; }
  .tm-panel { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .tm-body { padding: 20px 20px 8px; }
  .tm-head { padding: 22px 20px; }
  .tm-foot { padding: 14px 20px; }
  .tm-foot .btn { padding: 13px 20px; font-size: .82rem; }
  .tm-foot-price { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-panel, .tm-backdrop, .timeline::before, .timeline li { animation: none; opacity: 1; transform: none; }
}

/* ---------- Фото локаций в программе ---------- */
.timeline li { display: flex; align-items: center; gap: 14px; }
.timeline li .ti-text { flex: 1; }
.ti-photo {
  flex: 0 0 auto; width: 70px; height: 70px;
  border: none; cursor: pointer; padding: 0;
  border-radius: 12px; background-size: cover; background-position: center;
  box-shadow: 0 6px 16px rgba(43,39,34,.18);
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.ti-photo::after {
  content: "🔍"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 1.1rem;
  background: rgba(20,16,12,.35); color: #fff; border-radius: 12px;
  opacity: 0; transition: opacity .25s ease;
}
.ti-photo:hover { transform: scale(1.07); box-shadow: 0 10px 24px rgba(43,39,34,.3); }
.ti-photo:hover::after { opacity: 1; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1100;
  display: none; align-items: center; justify-content: center;
  padding: 30px; background: rgba(20,16,12,.88); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: tmFade .25s ease; }
.lightbox figure { max-width: 92vw; max-height: 90vh; text-align: center; margin: 0; }
.lightbox img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: tmPop .35s cubic-bezier(.2,.8,.25,1);
}
.lightbox figcaption {
  color: var(--cream); font-family: var(--serif); font-size: 1.4rem;
  margin-top: 16px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,253,249,.9); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: transform .2s, background .2s; z-index: 2;
}
.lb-close:hover { transform: rotate(90deg); background: #fff; }

@media (max-width: 640px) {
  .ti-photo { width: 56px; height: 56px; }
}

/* ============================ WOW-карточки направлений ============================ */
.dirs-grid { perspective: 1400px; }
.dir-card {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.25,1), box-shadow .4s ease;
  will-change: transform;
}
.dir-card:hover { box-shadow: 0 34px 70px rgba(43, 39, 34, .32); }
.dir-media { overflow: hidden; }
.dir-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.2,.8,.25,1);
}
.dir-media::after { z-index: 1; }
.dir-glare {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.dir-name { z-index: 3; transition: transform .4s ease, letter-spacing .4s ease; }
.dir-card:hover .dir-name { transform: translateY(-4px); letter-spacing: .015em; }
.dir-link { transition: transform .3s ease, color .2s ease; }
.dir-card:hover .dir-link { transform: translateX(5px); }

/* появление при прокрутке */
.js .dir-card { opacity: 0; }
.js .dir-card.reveal-in { animation: cardIn .65s cubic-bezier(.2,.8,.25,1) forwards; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .dir-card { opacity: 1; }
  .dir-card, .dir-bg, .dir-name, .dir-link { transition: none; animation: none; }
}

/* ============================ КОНТАКТ / VK ============================ */
.contact-points { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 11px; }
.contact-points li { position: relative; padding-left: 28px; opacity: .95; }
.contact-points li::before { content: "✓"; position: absolute; left: 0; color: #d9c9a8; font-weight: 600; }

.vk-card {
  background: var(--cream); color: var(--ink);
  border-radius: 22px; padding: 38px 30px; text-align: center;
  box-shadow: 0 26px 60px rgba(0,0,0,.28);
}
.vk-card-ico {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--sand); color: var(--terracotta);
}
.vk-card-ico svg { width: 42px; height: 42px; }
.vk-card h3 { font-size: 1.7rem; margin-bottom: 4px; }
.vk-card-sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.btn-vk { background: var(--terracotta); color: var(--cream); width: 100%; text-align: center; }
.btn-vk:hover { background: var(--brown); color: var(--cream); transform: translateY(-2px); }
.vk-card-link { display: inline-block; margin-top: 14px; color: var(--olive); text-decoration: none; font-size: .92rem; transition: color .2s; }
.vk-card-link:hover { color: var(--terracotta); }
.vk-card-hint { margin-top: 16px; font-size: .8rem; color: var(--muted); }

/* всплывающая подсказка */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1200;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream);
  padding: 13px 24px; border-radius: 999px; font-size: .9rem;
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================ ПЛАВАЮЩАЯ VK-КНОПКА ============================ */
.vk-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center;
  height: 60px; background: var(--terracotta); color: var(--cream);
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 12px 30px rgba(169,107,79,.45);
  animation: vkPulse 2.8s infinite;
}
.vk-fab svg { width: 60px; height: 60px; padding: 16px; box-sizing: border-box; flex: 0 0 auto; }
.vk-fab-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; font-weight: 500; font-size: .92rem;
  transition: max-width .35s ease, opacity .3s ease, padding .35s ease;
}
.vk-fab:hover { animation: none; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(169,107,79,.55); }
.vk-fab:hover .vk-fab-label { max-width: 170px; opacity: 1; padding-right: 22px; }
@keyframes vkPulse {
  0%   { box-shadow: 0 12px 30px rgba(169,107,79,.45), 0 0 0 0 rgba(169,107,79,.45); }
  70%  { box-shadow: 0 12px 30px rgba(169,107,79,.45), 0 0 0 16px rgba(169,107,79,0); }
  100% { box-shadow: 0 12px 30px rgba(169,107,79,.45), 0 0 0 0 rgba(169,107,79,0); }
}
@media (prefers-reduced-motion: reduce) { .vk-fab { animation: none; } }
@media (max-width: 640px) { .vk-fab { right: 16px; bottom: 16px; height: 54px; } .vk-fab svg { width: 54px; height: 54px; padding: 15px; } }

/* атрибуция фото в подвале */
.footer-credits { font-size: .72rem; opacity: .6; }
.footer-credits a { color: inherit; text-decoration: underline; }

/* ---------- Галерея фото тура (вкладка «Фото») ---------- */
.tm-daynav .tm-tab-photos { border-color: var(--terracotta); color: var(--terracotta); }
.tm-daynav .tm-tab-photos.active { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.tm-gal-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.tm-gal-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.tm-gal-count { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tm-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 8px;
}
.tm-gal-item {
  aspect-ratio: 1; border: none; padding: 0; cursor: pointer; border-radius: 12px;
  background-size: cover; background-position: center; background-color: var(--sand);
  box-shadow: 0 6px 16px rgba(43,39,34,.14);
  transition: transform .28s cubic-bezier(.2,.8,.25,1), box-shadow .28s ease;
  opacity: 0; animation: galIn .45s ease forwards;
}
@keyframes galIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.tm-gal-item:nth-child(4n+1) { animation-delay: .02s; }
.tm-gal-item:nth-child(4n+2) { animation-delay: .06s; }
.tm-gal-item:nth-child(4n+3) { animation-delay: .10s; }
.tm-gal-item:nth-child(4n)   { animation-delay: .14s; }
.tm-gal-item:hover { transform: scale(1.05); box-shadow: 0 14px 30px rgba(43,39,34,.28); z-index: 2; }
@media (max-width: 640px) { .tm-gallery { grid-template-columns: repeat(3, 1fr); gap: 7px; } }
@media (prefers-reduced-motion: reduce) { .tm-gal-item { opacity: 1; animation: none; } }

/* ============================ БЕНТО-СЕТКА НАПРАВЛЕНИЙ ============================ */
.dirs-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 20px;
}
/* герой — 2×2 */
.dirs-bento .dir-card.is-hero { grid-column: span 2; grid-row: span 2; }
/* широкие — 2×1 */
.dirs-bento .dir-card.is-wide { grid-column: span 2; }

/* внутри бенто карточка = фото на всю плитку, текст поверх снизу */
.dirs-bento .dir-card { position: relative; overflow: hidden; }
.dirs-bento .dir-media { position: absolute; inset: 0; height: 100%; }
.dirs-bento .dir-media::after {
  background: linear-gradient(to top, rgba(18,14,10,.94) 0%, rgba(18,14,10,.72) 32%, rgba(18,14,10,.28) 58%, rgba(18,14,10,0) 82%);
}
.dirs-bento .dir-body {
  position: relative; z-index: 3; flex: 0 0 auto; margin-top: auto;
  padding: 0 22px 20px; background: none;
}
.dirs-bento .dir-name {
  position: static; display: block; margin: 0 0 10px;
  z-index: 3; font-size: 1.9rem; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.dirs-bento .dir-card.is-hero .dir-name { font-size: 2.9rem; }
.dirs-bento .dir-dates-label { color: rgba(255,253,249,.8); margin-bottom: 7px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.dirs-bento .dir-dates { margin-bottom: 12px; }
.dirs-bento .dir-dates li {
  background: rgba(255,253,249,.92); color: var(--ink);
  font-size: .8rem; padding: 5px 12px;
}
.dirs-bento .dir-dates li.muted {
  background: rgba(255,253,249,.16); color: var(--cream);
  border-color: rgba(255,253,249,.5);
}
.dirs-bento .dir-link { color: var(--cream); font-size: .88rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.dirs-bento .dir-link:hover { color: #fff; }

/* адаптив: 2 колонки → всё в одну */
@media (max-width: 1000px) {
  .dirs-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; gap: 14px; }
  .dirs-bento .dir-card.is-hero { grid-column: span 2; grid-row: span 1; }
  .dirs-bento .dir-card.is-wide { grid-column: span 2; }
  .dirs-bento .dir-card.is-hero .dir-name { font-size: 2.3rem; }
}
@media (max-width: 560px) {
  .dirs-bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .dirs-bento .dir-card.is-hero, .dirs-bento .dir-card.is-wide { grid-column: span 1; }
  .dirs-bento .dir-name, .dirs-bento .dir-card.is-hero .dir-name { font-size: 1.8rem; }
}

/* ============================ СТРАНИЦА ТУРА ============================ */
.tour-page { background: var(--cream); }

/* баннер */
.tp-banner { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: var(--brown); }
.tp-banner-img {
  position: absolute; inset: 0; background-size: cover; background-position: center 38%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.tp-banner-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,12,.86), rgba(20,16,12,.2) 70%); }
.tp-banner-in { position: relative; z-index: 2; color: var(--white); padding: 40px 0 46px; }
.tp-crumbs { font-size: .8rem; opacity: .85; margin-bottom: 18px; }
.tp-crumbs a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(255,253,249,.4); }
.tp-crumbs a:hover { border-color: var(--cream); }
.tp-crumbs span { margin: 0 6px; opacity: .6; }
.tp-sub { font-family: var(--serif); font-size: 1.4rem; opacity: .92; margin-bottom: 4px; }
.tp-banner-in h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin-bottom: 18px; }

/* содержимое */
.tp-main { padding: 54px 0 90px; }
.tp-h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 20px; }
.tp-lead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tp-price { color: var(--brown); }
.tp-price strong { font-family: var(--serif); font-size: 1.4rem; color: var(--olive); }

.tp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.tp-tab {
  font-family: var(--sans); font-size: .85rem; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--brown); transition: all .2s;
}
.tp-tab:hover { border-color: var(--olive); }
.tp-tab.active { background: var(--olive); color: var(--white); border-color: var(--olive); }

/* без JS видны все дни (важно для поисковиков), с JS — только активный */
.tp-day { margin-bottom: 40px; }
.js-tabs .tp-tabs { display: flex; }
.js-tabs .tp-day { display: none; margin-bottom: 0; }
.js-tabs .tp-day.is-open { display: block; animation: tmItem .4s ease both; }
html:not(.js-tabs) .tp-tabs { display: none; }

.tp-day-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.tp-day .timeline li { animation: none; opacity: 1; transform: none; }

.tp-gallery-sec { margin-top: 26px; padding-top: 34px; border-top: 1px solid var(--line); }
.tp-gallery-sec .tm-gal-count { font-size: .75rem; margin-left: 10px; }
.tp-gallery-sec .tm-gal-item { animation: none; opacity: 1; }

.tp-cta {
  margin-top: 54px; padding: 40px 34px; border-radius: 22px;
  background: var(--olive); color: var(--cream); text-align: center;
}
.tp-cta h2 { font-family: var(--serif); font-size: 2rem; color: var(--cream); margin-bottom: 8px; }
.tp-cta p { opacity: .9; margin-bottom: 22px; }
.tp-cta .btn-vk { width: auto; padding: 15px 38px; }

.tp-others { margin-top: 54px; }
.tp-others-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-other {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--brown); text-decoration: none; font-size: .9rem; transition: all .2s;
}
.tp-other:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }

@media (max-width: 640px) {
  .tp-banner { min-height: 320px; }
  .tp-main { padding: 34px 0 70px; }
  .tp-h2 { font-size: 1.6rem; }
  .tp-cta { padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) { .tp-banner-img { animation: none; } }

/* ---------- Галерея тура: выровненные ряды ---------- */
/* Без JS — простая сетка (фото не обрезаются). С JS ряды выравниваются по ширине. */
.tp-masonry { display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; }
.tp-masonry .tm-gal-item { flex: 0 0 auto; width: calc(25% - 11px); aspect-ratio: 4/3; }
.tp-masonry.is-rows .tm-gal-item { width: auto; aspect-ratio: auto !important; }

.tp-masonry .tm-gal-item {
  border-radius: 14px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform .35s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease, filter .35s ease;
}
.tp-masonry .tm-gal-item::after {
  content: "⤢"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 1.5rem;
  color: #fff; background: rgba(20,16,12,.32);
  opacity: 0; transition: opacity .3s ease;
}
.tp-masonry .tm-gal-item:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 20px 42px rgba(43,39,34,.3); z-index: 2; }
.tp-masonry .tm-gal-item:hover::after { opacity: 1; }

@media (max-width: 900px) { .tp-masonry { gap: 10px; } .tp-masonry .tm-gal-item { width: calc(33.333% - 7px); } }
@media (max-width: 560px) { .tp-masonry { gap: 8px; } .tp-masonry .tm-gal-item { width: calc(50% - 4px); } }
