/* ============================================================
   4V HORIZON BALI — премиальный лендинг ретрита
   Дизайн-система. Природная премиум-палитра Бали.
   ============================================================ */

:root {
  /* Палитра */
  --sand:        #F4EEE4;   /* песок — основной фон */
  --sand-deep:   #E8DECB;
  --paper:       #FBF8F2;   /* карточки */
  --ink:         #23201B;   /* основной текст */
  --ink-soft:    #5A544A;   /* вторичный текст */
  --jungle:      #2E4034;   /* тёмная зелень джунглей — тёмные секции */
  --jungle-2:    #1E2B22;
  --ocean:       #2E7D77;   /* бирюза океана — акцент */
  --gold:        #B08A4F;   /* тёплое золото — акцент/линии */
  --gold-soft:   #CBA96B;
  --line:        rgba(35,32,27,.14);

  /* Типографика */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Ритм */
  --maxw: 1160px;
  --gap:  clamp(64px, 9vw, 130px);   /* вертикальный ритм секций */
  --radius: 16px;
}

/* ---------- Reset / базовое ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: .3px; }
h1 { font-size: clamp(40px, 7vw, 82px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); }
p  { margin: 0 0 1em; }

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

/* Надзаголовок-кикер */
.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  letter-spacing: .02em;
  padding: 17px 34px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 30px rgba(176,138,79,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(176,138,79,.42); background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--jungle); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.btn .wa { width: 20px; height: 20px; display: inline-block; }

/* ---------- Тёмные секции ---------- */
.dark { background: var(--jungle); color: #EFE9DC; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: rgba(239,233,220,.8); }
.dark .kicker { color: var(--gold-soft); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled { background: rgba(251,248,242,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: 12px 32px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: .5px; }
.site-header.scrolled .brand { color: var(--ink); }
.brand b { color: var(--gold-soft); font-weight: 600; }
.site-header.scrolled .brand b { color: var(--gold); }
.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: stretch;
  color: #fff; overflow: hidden;
}
/* Плейсхолдер фона: закат над океаном (заменяется фото/видео из папки «Океан») */
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(120deg, #2E7D77 0%, #4E9A86 30%, #C79A5B 62%, #D98F5E 82%, #7A4B3A 100%);
  background-size: cover; background-position: center;
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Затемняющий overlay поверх фото — чтобы белый текст читался, а картинка осталась сочной */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,26,22,.55) 0%, rgba(18,26,22,.35) 30%, rgba(18,26,22,.55) 70%, rgba(14,20,17,.88) 100%),
    linear-gradient(90deg, rgba(14,20,17,.60) 0%, rgba(14,20,17,.18) 55%, rgba(14,20,17,0) 100%);
}
.hero__media::after { /* лёгкая «дымка» горизонта */
  content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  filter: blur(.5px);
}
.hero__inner {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100svh;
  padding-top: clamp(104px, 17vh, 168px);
  padding-bottom: clamp(48px, 8vh, 92px);
}
.hero__meta { margin-bottom: 0; }        /* пробел теперь задаёт распределение по высоте */
.hero__title { margin-top: 0; margin-bottom: 0; }
.hero__bottom { display: flex; flex-direction: column; align-items: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 24px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft); }
.hero h1 { max-width: 24ch; margin: 0 auto; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__sub { font-size: clamp(18px, 2.2vw, 23px); max-width: 64ch; margin: 28px auto 40px; color: rgba(255,255,255,.92); font-family: var(--serif); font-style: italic; }
/* Явные переносы (2 строки) на десктопе; на мобильном — естественный перенос */
.brk { display: inline; }
@media (max-width: 640px) { .brk { display: none; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero__note { font-size: 14px; color: rgba(255,255,255,.78); text-align: center; margin-top: 26px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ============================================================
   Универсальные плейсхолдеры фото/видео
   ============================================================ */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #cdbfa6, #b7a98d);
  min-height: 240px; display: flex; align-items: center; justify-content: center;
}
.ph--ocean  { background: linear-gradient(135deg, #3E8F86, #79B4A3); }
.ph--jungle { background: linear-gradient(135deg, #33513E, #5C7A57); }
.ph--sunset { background: linear-gradient(135deg, #C79A5B, #D98F5E, #9C5F45); }
.ph--sand   { background: linear-gradient(135deg, #E0D3B8, #C9B893); }
/* Реальное фото поверх плейсхолдера. Если файла нет — onerror убирает img и остаётся градиент+подпись */
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph:has(.ph__img) .ph__label { display: none; }
.ph__label {
  font-size: 13px; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.92);
  text-align: center; padding: 12px 18px; border: 1px dashed rgba(255,255,255,.6);
  border-radius: 10px; background: rgba(0,0,0,.14); backdrop-filter: blur(2px);
}

/* ============================================================
   «Для кого» / боль → обещание
   ============================================================ */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.forwhom ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.forwhom li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.forwhom li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--gold); }

/* ============================================================
   Метод 4V
   ============================================================ */
.v-grid { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 680px)  { .v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .v-grid { grid-template-columns: repeat(4, 1fr); } }
.v-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .25s ease, background .25s ease;
}
.v-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.v-card .num { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: var(--gold-soft); }
.v-card h3 { margin: 12px 0 10px; }
.v-card p { font-size: 15.5px; color: rgba(239,233,220,.78); margin: 0; }

/* ============================================================
   Программа — таймлайн
   ============================================================ */
.part-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 8px 0 30px; }
.part-head .tag { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ocean); }
.days { display: grid; gap: 16px; }
@media (min-width: 760px) { .days { grid-template-columns: repeat(2, 1fr); } }
.day {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  overflow: hidden;
}
.day:hover { box-shadow: 0 14px 40px rgba(35,32,27,.09); }
.day[open] { border-color: var(--gold); box-shadow: 0 16px 46px rgba(35,32,27,.11); }

/* Кликабельная «шапка» дня */
.day > summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px;
  padding: 24px 24px;
}
.day > summary::-webkit-details-marker { display: none; }
.day .d-num { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: .9; }
.day .d-head h3 { margin: 4px 0 6px; }
.day .d-quote { font-family: var(--serif); font-style: italic; color: var(--ocean); margin: 0; font-size: 18px; display: block; }
/* Кнопка-стрелка */
.day .d-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .3s ease, background .25s ease, border-color .25s ease; margin-top: 4px;
}
.day .d-toggle::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-2px) rotate(45deg); transition: border-color .25s ease;
}
.day:hover .d-toggle { background: var(--sand); }
.day[open] .d-toggle { transform: rotate(180deg); background: var(--gold); border-color: var(--gold); }
.day[open] .d-toggle::after { border-color: #fff; }

/* Раскрывающееся тело дня */
.day .d-body { padding: 0 24px 26px; }
.day .d-body > p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 20px; }
.day .d-sched h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
}
.day .d-sched ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.day .d-sched li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink); }
.day .d-sched li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ocean); }
.day .d-summary {
  border-left: 3px solid var(--gold); background: rgba(176,138,79,.07);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 15px; color: var(--ink);
}
.day .d-summary b {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.program-hint { margin-top: 22px; font-size: 14px; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   Подробная бизнес-программа (дни 2–3)
   ============================================================ */
.bizprog { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.bizprog[open] { border-color: var(--gold); box-shadow: 0 16px 46px rgba(35,32,27,.10); }
.bizprog > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; }
.bizprog > summary::-webkit-details-marker { display: none; }
.bizprog .bp-kick { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ocean); }
.bizprog summary h3 { margin: 8px 0 8px; }
.bizprog summary > div p { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 64ch; }
.bp-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff; background: var(--gold); padding: 13px 24px; border-radius: 999px; white-space: nowrap; transition: background .2s ease; }
.bizprog[open] .bp-toggle { background: var(--jungle); }
.bp-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-2px); transition: transform .3s ease; }
.bizprog[open] .bp-toggle::after { transform: rotate(-135deg) translateY(-1px); }
.bp-body { padding: 2px 30px 32px; }
.bp-day { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.bp-day:first-of-type { border-top: 0; margin-top: 8px; padding-top: 4px; }
.bp-day > h4 { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 27px); margin: 0 0 6px; color: var(--jungle); }
.bp-context { font-style: italic; color: var(--ink-soft); margin: 0 0 16px; font-size: 15px; }
.bp-focus { background: rgba(46,125,119,.07); border-left: 3px solid var(--ocean); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 18px; font-size: 15px; color: var(--ink); }
.bp-focus b { color: var(--ocean); }
.bp-sub { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 20px 0 10px; }
.bp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.bp-list > li { font-size: 15px; color: var(--ink); }
.bp-list .bp-t { font-weight: 700; }
.bp-res { display: block; margin-top: 5px; font-size: 14px; color: var(--ink-soft); padding-left: 14px; border-left: 2px solid var(--gold-soft); }
.bp-res b { color: var(--gold); font-weight: 700; }
.bp-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bp-simple li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
.bp-simple li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--gold); }
.bp-results-grid { display: grid; gap: 16px; margin-top: 14px; }
@media (min-width: 760px) { .bp-results-grid { grid-template-columns: repeat(2, 1fr); } }
.bp-rescard { background: rgba(176,138,79,.06); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.bp-rescard h5 { margin: 0 0 10px; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.bp-rescard ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.bp-rescard li { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 620px) { .bizprog > summary { flex-direction: column; align-items: flex-start; } .bp-body { padding: 2px 20px 26px; } }
.part-divider { text-align: center; margin: 56px 0; color: var(--gold); letter-spacing: .3em; font-size: 13px; text-transform: uppercase; }

/* ============================================================
   Инвест-тур (магнит)
   ============================================================ */
.gift { position: relative; overflow: hidden; }
.gift .badge {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--jungle); background: var(--gold-soft); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}

/* ============================================================
   Галерея локаций
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery .ph { min-height: 220px; }
.gallery .tall { grid-row: span 2; }
@media (min-width: 760px) { .gallery .tall { min-height: 454px; } }

/* ============================================================
   Команда
   ============================================================ */
.team { display: grid; gap: 26px; margin-top: 44px; }
@media (min-width: 820px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member .ph { min-height: 340px; margin-bottom: 20px; }
.member h3 { margin: 0 0 4px; }
.member .role { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.member p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Слайдер «Марина в работе» — единый overlay + тон-фильтр
   ============================================================ */
.slider { position: relative; margin-top: 46px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 9;
  overflow: hidden; background-size: cover; background-position: center; background-color: #1e2b22;
}
/* размытая заливка тем же кадром — заполняет поля, чтобы фото не обрезалось */
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: inherit; background-size: cover; background-position: center;
  filter: blur(26px) brightness(.5) saturate(.8); transform: scale(1.25);
}
.slide img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: saturate(.94); /* лёгкая унификация без потери лица */
}
/* единый overlay поверх слайда (лицо остаётся читаемым) */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(0deg, rgba(20,28,24,.42) 0%, rgba(20,28,24,0) 42%),
    linear-gradient(155deg, rgba(46,64,52,.14) 0%, rgba(122,75,58,.14) 100%);
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(251,248,242,.92); box-shadow: 0 6px 20px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease;
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-btn.prev { left: 16px; } .slider-btn.next { right: 16px; }
.slider-btn::after { content: ""; width: 11px; height: 11px; border-right: 2px solid var(--jungle); border-bottom: 2px solid var(--jungle); }
.slider-btn.prev::after { transform: rotate(135deg); margin-left: 4px; }
.slider-btn.next::after { transform: rotate(-45deg); margin-right: 4px; }
.slider-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.slider-dots button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.32); transition: background .25s ease, width .25s ease, border-radius .25s ease;
}
.slider-dots button.active { background: var(--gold-soft); width: 26px; border-radius: 5px; }
.slider-count { text-align: center; margin-top: 20px; font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: rgba(239,233,220,.7); }
@media (max-width: 640px) { .slider-btn { width: 42px; height: 42px; } }

/* ============================================================
   Сертификаты и дипломы
   ============================================================ */
/* Карусель сертификатов */
.cert-carousel { position: relative; margin-top: 46px; }
.cert-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; align-items: stretch;
  scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px 8px;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-card {
  flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; order: 2;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.cert-card.is-v { order: 1; }   /* вертикальные дипломы — вперёд, горизонтальные (order:2) — дальше */
@media (max-width: 900px) { .cert-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 560px) { .cert-card { flex-basis: 84%; } }
/* стрелки карусели (переиспользуют .slider-btn) вынесены чуть за край */
.cert-carousel .slider-btn.prev { left: -6px; }
.cert-carousel .slider-btn.next { right: -6px; }
@media (max-width: 560px) { .cert-carousel .slider-btn { display: none; } } /* на моб. — свайп */
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(35,32,27,.14); border-color: var(--gold); }
.cert-thumb {
  position: relative; aspect-ratio: 4 / 5; background: #fbfaf7;
  overflow: hidden; min-height: 0; flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}
.cert-thumb::after { /* тонкая золотая внутренняя рамка */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(176,138,79,.5); border-radius: 6px; pointer-events: none; z-index: 3;
}
/* Единый затемняющий overlay в ленте (при наведении светлеет; в лайтбоксе документа его нет) */
.cert-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(155deg, rgba(46,64,52,.5) 0%, rgba(20,28,24,.62) 100%);
  transition: opacity .3s ease;
}
.cert-card:hover .cert-thumb::before { opacity: .3; }
.cert-thumb img {
  position: absolute; inset: 18px; z-index: 1;
  width: calc(100% - 36px); height: calc(100% - 36px);
  object-fit: contain; filter: saturate(.9);
}
.cert-loupe { z-index: 4; }
.cert-loupe {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(176,138,79,.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease;
}
.cert-card:hover .cert-loupe { opacity: 1; transform: scale(1); }
.cert-loupe::before { content: ""; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; }
.cert-loupe::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 7px; height: 2px; background: #fff; transform: rotate(45deg); }
.cert-cap {
  padding: 14px 16px 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45;
  height: 96px; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.cert-cap b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; font-size: 14px; }

/* Лайтбокс */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(14,20,17,.92); padding: 24px; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb__close, .lb__nav {
  position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  color: #fff; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; font-size: 24px;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.28); }
.lb__close { top: 22px; right: 26px; }
.lb__nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb__nav { width: 42px; height: 42px; } }

/* ============================================================
   Видео-приглашение
   ============================================================ */
.invite { text-align: center; }
.invite .video-frame {
  position: relative; max-width: 900px; margin: 40px auto 0; aspect-ratio: 16/9; cursor: pointer;
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, #24382c, #395645);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.invite-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invite .video-frame::after { content: ""; position: absolute; inset: 0; background: rgba(20,28,24,.28); transition: background .25s ease; }
.invite .video-frame:hover::after { background: rgba(20,28,24,.14); }
.invite .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.invite .play {
  position: relative; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.invite .video-frame:hover .play { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.invite .play::after { content: ""; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.invite-cta { margin-top: 28px; }

/* ============================================================
   Отзывы
   ============================================================ */
.reviews-grid { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-video { position: relative; aspect-ratio: 9/13; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #cdbfa6, #a99a7d); display: flex; align-items: flex-end; }
.review-video .rv-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.review-video .rv-play span { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; }
.review-video .rv-play span::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--jungle); margin-left: 4px; }
.review-video .rv-cap { position: relative; z-index: 1; padding: 16px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.5)); width: 100%; }

/* ============================================================
   Видео-отзывы — карусель горизонтальных карточек
   ============================================================ */
.rev-carousel { position: relative; margin-top: 44px; }
.rev-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px 10px;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-card {
  flex: 0 0 calc((100% - 20px) / 2); scroll-snap-align: start; cursor: pointer;
  position: relative; border-radius: 16px; overflow: hidden; background: #1e2b22;
  box-shadow: 0 16px 44px rgba(0,0,0,.28); transition: transform .25s ease, box-shadow .25s ease;
}
.rev-card:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(0,0,0,.36); }
@media (min-width: 1040px) { .rev-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 720px) { .rev-card { flex-basis: 86%; } }
.rev-poster { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; }
/* единый overlay поверх постера */
.rev-poster::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(20,28,24,.62) 0%, rgba(20,28,24,0) 55%),
    linear-gradient(155deg, rgba(46,64,52,.30), rgba(122,75,58,.30));
}
.rev-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rev-g1 { background: linear-gradient(135deg, #3E8F86, #79B4A3); }
.rev-g2 { background: linear-gradient(135deg, #33513E, #5C7A57); }
.rev-g3 { background: linear-gradient(135deg, #C79A5B, #9C5F45); }
.rev-g4 { background: linear-gradient(135deg, #6E8E86, #B4A17A); }
.rev-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.rev-card:hover .rev-play { background: var(--gold); border-color: var(--gold); transform: translate(-50%,-50%) scale(1.08); }
.rev-play::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.rev-name { position: relative; z-index: 2; padding: 16px 20px; color: #fff; font-family: var(--serif); font-size: 21px; }
.rev-name span { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 2px; }
@media (max-width: 560px) { .rev-carousel .slider-btn { display: none; } }

/* Всплывающий видео-плеер */
.vlb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(14,20,17,.94); padding: 24px; }
.vlb.open { display: flex; }
.vlb-inner { position: relative; width: min(960px, 92vw); }
.vlb-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 84vh; border-radius: 10px; overflow: hidden; background: #000; }
.vlb-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlb-hint { color: rgba(255,255,255,.85); text-align: center; font-size: 16px; padding: 40px 20px; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; }
.vlb-close { position: absolute; top: 20px; right: 24px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vlb-close:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 44px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--gold); transition: transform .25s ease; font-family: var(--sans);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 0 20px; color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   Финальный CTA
   ============================================================ */
.final { position: relative; text-align: center; overflow: hidden; }
.final__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(20,28,24,.72), rgba(20,28,24,.82)),
    linear-gradient(120deg, #2E7D77, #C79A5B 70%, #7A4B3A);
}
.final .container { position: relative; z-index: 1; color: #fff; }
.final h2 { color: #fff; max-width: 18ch; margin: 0 auto 20px; }
.final .lead { color: rgba(255,255,255,.85); margin: 0 auto 32px; }
.final .seats { display: inline-block; margin-bottom: 26px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--jungle-2); color: rgba(239,233,220,.6); padding: 46px 0; text-align: center; font-size: 14px; }
.site-footer .brand { color: #fff; display: inline-block; margin-bottom: 12px; }
.site-footer a { color: var(--gold-soft); }

/* ---------- Плавное появление ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Плавающая кнопка WhatsApp (моб.) ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
