/*
Theme Name:  Роминта
Theme URI:   https://romintafest.ru
Description: Тема фестиваля духовного поиска Роминта. Лендинг с тёмным hero, обратным отсчётом, историей и разделами программы.
Version:     1.0.0
Author:      Роминта
Author URI:  https://romintafest.ru
Text Domain: romintafest
*/

/* ═══════════════════════════════════════════════
   ТОКЕНЫ
════════════════════════════════════════════════ */
:root {
  --forest:   #1B2F1E;
  --earth:    #4A3226;
  --amber:    #C8952A;
  --amber-lt: #E8B84B;
  --sage:     #6B8F6B;
  --sage-lt:  #9DB89D;
  --cream:    #F7F2E8;
  --cream-dk: #EDE6D6;
  --bark:     #8B6B4A;
  --moss:     #3D5C3D;
  --text:     #2A1F14;
  --text-m:   #5C4A35;
  --text-lt:  #8B7A65;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }

/* Fallback for ruble sign U+20BD — Playfair Display / Lora do not include it */
@font-face {
  font-family: 'Ruble';
  src: local('Arial'), local('Segoe UI'), local('Helvetica Neue'), local('Tahoma');
  unicode-range: U+20BD;
}

body  {
  font-family: 'Ruble', 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* ═══════════════════════════════════════════════
   NAV
════════════════════════════════════════════════ */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 60px;
  background: linear-gradient(to bottom, rgba(247,242,232,.55) 0%, transparent 100%);
  transition: background .4s, padding .4s, box-shadow .4s;
}
nav#nav.scrolled {
  background: rgba(247,242,232,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 60px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--forest); letter-spacing: .02em;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--amber); }

/* Desktop nav */
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links li { margin: 0; padding: 0; }
.nav-links a, .nav-links a:visited {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(27,47,30,.75); text-decoration: none;
  transition: color .22s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--amber-lt); }
.nav-cta, .nav-cta:visited {
  background: var(--amber) !important;
  color: var(--forest) !important;
  padding: 9px 22px; border-radius: 30px;
  transition: background .22s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-lt) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer;
  z-index: 110;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--forest); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 105;
  background: rgba(247,242,232,.98);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.nav-drawer.open { opacity: 1; pointer-events: all; }
.nav-drawer a, .nav-drawer a:visited {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 400; font-style: italic;
  color: rgba(27,47,30,.75); text-decoration: none;
  padding: 16px 0; letter-spacing: .02em;
  border-bottom: 1px solid rgba(0,0,0,.08);
  width: 240px; text-align: center;
  transform: translateY(12px); opacity: 0;
  transition: transform .4s, opacity .4s, color .2s;
}
.nav-drawer.open a { transform: translateY(0); opacity: 1; }
.nav-drawer.open a:nth-child(1) { transition-delay:.05s; }
.nav-drawer.open a:nth-child(2) { transition-delay:.10s; }
.nav-drawer.open a:nth-child(3) { transition-delay:.15s; }
.nav-drawer.open a:nth-child(4) { transition-delay:.20s; }
.nav-drawer.open a:nth-child(5) { transition-delay:.25s; }
.nav-drawer.open a:nth-child(6) { transition-delay:.30s; }
.nav-drawer a:hover { color: var(--amber-lt); }
.nav-drawer .drawer-cta, .nav-drawer .drawer-cta:visited {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px; font-weight: 700; font-style: normal;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--amber); color: var(--forest) !important;
  border-radius: 30px; border-bottom: none;
  padding: 14px 40px; margin-top: 24px; width: auto;
}
.nav-drawer .drawer-cta:hover { background: var(--amber-lt); }

/* ═══════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #f5f2ea 0%, #ede8d8 40%, #e4ddc8 70%, #dbd4ba 100%);
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,42,.18) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,143,107,.22) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite reverse;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.leaves-bg { position: absolute; inset: 0; pointer-events: none; opacity: .12; }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-tag {
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(200,149,42,.4);
  padding: 6px 20px; border-radius: 30px;
  margin-bottom: 32px;
  animation: fadeUp .8s .2s both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 96px); font-weight: 700; line-height: 1.05;
  color: var(--forest); animation: fadeUp .8s .4s both;
}
.hero h1 em { font-style: italic; color: var(--amber); display: block; }
.hero-subtitle {
  font-family: 'Lora', serif; font-size: clamp(16px, 2vw, 20px);
  color: var(--text-m); max-width: 560px; margin: 24px auto 0;
  animation: fadeUp .8s .6s both;
}
.hero-date {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: .1em;
  color: var(--text-lt); text-transform: uppercase;
  margin-top: 14px; animation: fadeUp .8s .7s both;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 44px; animation: fadeUp .8s .8s both;
}
.btn-primary {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  background: var(--amber); color: var(--forest);
  padding: 16px 40px; border-radius: 50px; border: none;
  text-decoration: none; cursor: pointer; display: inline-block;
  transition: transform .2s, background .2s;
}
.btn-primary:hover { background: var(--amber-lt); transform: translateY(-2px); }
.btn-ghost {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600; font-size: 15px; letter-spacing: .06em;
  background: transparent; color: var(--forest);
  padding: 15px 40px; border-radius: 50px;
  border: 1.5px solid rgba(27,47,30,.25);
  text-decoration: none; display: inline-block;
  transition: border-color .2s, transform .2s;
}
.btn-ghost:hover { border-color: rgba(27,47,30,.6); transform: translateY(-2px); }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(27,47,30,.4);
  font-family: 'Nunito Sans', sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  animation: fadeUp 1s 1.2s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(27,47,30,.35), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   COUNTDOWN
════════════════════════════════════════════════ */
.countdown-bar { background: var(--cream-dk); padding: 48px 20px; text-align: center; }
.countdown-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-lt); margin-bottom: 28px;
}
.countdown-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.cd-item { text-align: center; }
.cd-num {
  font-family: 'Playfair Display', serif;
  font-size: 64px; font-weight: 700; line-height: 1;
  color: var(--amber); min-width: 90px; display: block;
}
.cd-unit {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-lt); margin-top: 6px;
}
.cd-sep { font-family: 'Playfair Display', serif; font-size: 48px; color: rgba(107,143,107,.5); align-self: flex-start; margin-top: 8px; }

/* ═══════════════════════════════════════════════
   SECTION COMMONS
════════════════════════════════════════════════ */
section { padding: 96px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); font-weight: 700; margin-bottom: 14px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 50px); font-weight: 700;
  line-height: 1.15; color: var(--forest); margin-bottom: 24px;
}
h2 em { font-style: italic; color: var(--bark); }
.lead { font-size: 18px; color: var(--text-m); max-width: 640px; line-height: 1.8; margin-bottom: 48px; }

/* ═══════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════ */
.about { background: var(--cream); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; border-radius: 4px; overflow: hidden; }
.about-img-wrap img { width: 100%; display: block; border-radius: 4px; filter: saturate(.9) brightness(.95); }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--amber);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.about-badge .big { font-size: 36px; font-weight: 700; color: var(--forest); line-height: 1; }
.about-badge .sm  { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); opacity: .75; }
.about-text p { color: var(--text-m); margin-bottom: 20px; }
.about-text .highlight {
  border-left: 3px solid var(--amber);
  padding-left: 20px; margin: 32px 0;
  font-style: italic; color: var(--text); font-size: 19px; line-height: 1.65;
}
.meta-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta-tag {
  font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 600;
  background: rgba(107,143,107,.12); color: var(--moss);
  padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(107,143,107,.25);
}

/* ═══════════════════════════════════════════════
   ACTIVITIES
════════════════════════════════════════════════ */
.activities { background: var(--cream-dk); }
.activities h2 { color: var(--forest); }
.activities .section-tag { color: var(--amber); }
.activities .lead { color: var(--text-m); }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; border: 2px solid rgba(107,143,107,.25); border-radius: 8px; overflow: hidden; }
.act-card { background: var(--cream); padding: 36px 32px; border: 1px solid rgba(107,143,107,.2); transition: background .3s; cursor: default; }
.act-card:hover { background: rgba(255,255,255,.85); }
.act-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(200,149,42,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
.act-card h3 { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; color: var(--forest); margin-bottom: 10px; }
.act-card p  { font-size: 14.5px; color: var(--text-lt); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   MASTERS
════════════════════════════════════════════════ */
.masters { background: var(--cream); }
.masters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px; margin-top: 8px;
}
.master-card {
  cursor: pointer; text-align: center;
  border-radius: 16px; padding: 28px 20px 24px;
  background: var(--cream-dk);
  border: 1px solid rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  outline: none;
  display: flex; flex-direction: column;
}
.master-card .master-info { flex: 1; display: flex; flex-direction: column; }
.master-card:hover,
.master-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,.13);
  border-color: rgba(200,149,42,.4);
}
.master-photo-wrap {
  width: 110px; height: 110px;
  border-radius: 50%; overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid rgba(200,149,42,.3);
  transition: border-color .25s;
}
.master-card:hover .master-photo-wrap,
.master-card:focus-visible .master-photo-wrap { border-color: var(--amber); }
.master-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.master-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--moss), var(--forest));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 38px; color: var(--amber-lt);
}
.master-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600;
  color: var(--forest); line-height: 1.3; margin-bottom: 8px;
}
.master-practics {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--amber);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 3);
}

/* ── Pending master placeholder ── */
.master-card--pending { position: relative; cursor: pointer; text-decoration: none !important; color: inherit !important; display: flex; flex-direction: column; }
.master-card--pending:hover, .master-card--pending:focus { text-decoration: none !important; }
.master-placeholder-shimmer {
  background: linear-gradient(90deg, var(--cream-dk) 25%, rgba(200,149,42,.15) 50%, var(--cream-dk) 75%);
  background-size: 200% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pending-icon { font-size: 30px; color: var(--amber); opacity: .5; }
.master-name--pending { color: var(--text-lt) !important; font-style: italic; }
.master-pending-tooltip {
  position: absolute; inset: 0; border-radius: 16px;
  background: rgba(27,47,30,.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.master-card--pending:hover .master-pending-tooltip,
.master-card--pending:focus-visible .master-pending-tooltip { opacity: 1; }
.master-pending-tooltip p {
  font-family: 'Lora', serif; font-size: 13px; color: var(--cream);
  line-height: 1.65; margin-bottom: 10px;
}
.master-pending-tooltip p:last-child { margin-bottom: 0; }
.master-pending-tooltip strong { color: var(--amber-lt); font-weight: 700; }

/* Master modal */
.master-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,20,12,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modalFadeIn .2s ease;
}
.master-modal[hidden] { display: none; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.master-modal-inner {
  background: var(--cream); border-radius: 20px;
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 52px 44px 44px; position: relative;
  animation: modalSlideUp .3s cubic-bezier(.34,1.4,.64,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.master-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--text-lt);
  padding: 4px 8px; border-radius: 6px;
  transition: color .2s, transform .2s, background .2s;
}
.master-modal-close:hover { color: var(--forest); transform: rotate(90deg); background: rgba(0,0,0,.05); }
.mm-photo-wrap {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 20px; border: 3px solid rgba(200,149,42,.35);
}
.mm-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-photo-wrap .master-photo-placeholder { font-size: 34px; }
.mm-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--forest); text-align: center; margin-bottom: 8px;
}
.mm-practics {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); text-align: center; margin-bottom: 28px;
}
.mm-descr {
  font-size: 15.5px; color: var(--text-m); line-height: 1.8;
  border-top: 1px solid rgba(0,0,0,.08); padding-top: 24px;
}
.mm-descr p { margin-bottom: 14px; }
.mm-descr p:last-child { margin-bottom: 0; }
.mm-descr a { color: var(--amber); text-decoration: underline; }
.mm-descr ol, .mm-descr ul { padding-left: 22px; margin-bottom: 14px; }
.mm-descr li { margin-bottom: 6px; }
.master-data { display: none; }

/* ═══════════════════════════════════════════════
   ATMOSPHERE
════════════════════════════════════════════════ */
.atmosphere { background: var(--cream-dk); overflow: hidden; }
.atm-header { text-align: center; margin-bottom: 56px; }
.atm-header .lead { margin: 0 auto; }
.atm-strip { display: flex; gap: 3px; overflow: hidden; border-radius: 6px; }
.atm-card { flex: 1; min-height: 380px; position: relative; overflow: hidden; cursor: pointer; transition: flex .6s cubic-bezier(.25,.46,.45,.94); border-radius: 4px; }
.atm-card:hover { flex: 3; }
.atm-card-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.atm-card-bg .atm-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.atm-c1 { background: linear-gradient(135deg, #2C4A2C, #1B2F1E); }
.atm-c2 { background: linear-gradient(135deg, #3D5C3D, #2a3d1a); }
.atm-c3 { background: linear-gradient(135deg, #5C3D2E, #3d2718); }
.atm-c4 { background: linear-gradient(135deg, #6B8F6B, #3D5C3D); }
.atm-c5 { background: linear-gradient(135deg, #8B6B4A, #5C3D2E); }
.atm-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%); }
.atm-svg    { position: absolute; inset: 0; opacity: .2; }
.atm-label  { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.atm-card:hover .atm-label { opacity: 1; transform: translateY(0); }
.atm-label h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--cream); margin-bottom: 4px; }
.atm-label p  { font-family: 'Nunito Sans', sans-serif; font-size: 13px; color: rgba(247,242,232,.7); }

/* ═══════════════════════════════════════════════
   HISTORY / TIMELINE
════════════════════════════════════════════════ */
.history { background: var(--cream); overflow: hidden; }
.history-header { text-align: center; margin-bottom: 72px; }
.history-header .lead { margin: 0 auto; }
.timeline { position: relative; padding-bottom: 16px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--amber) 8%, var(--amber) 92%, transparent); transform: translateX(-50%); }
.tl-year { display: flex; align-items: flex-start; gap: 48px; margin-bottom: 64px; position: relative; }
.tl-year:nth-child(odd)  { flex-direction: row; }
.tl-year:nth-child(even) { flex-direction: row-reverse; }
.tl-card { flex: 1; max-width: calc(50% - 56px); background: var(--cream-dk); border-radius: 12px; padding: 28px 32px; border: 1px solid rgba(0,0,0,.07); position: relative; transition: transform .3s, box-shadow .3s; }
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.tl-year:nth-child(odd) .tl-card::after  { content: ''; position: absolute; right: -10px; top: 28px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 10px solid var(--cream-dk); }
.tl-year:nth-child(even) .tl-card::after { content: ''; position: absolute; left: -10px; top: 28px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 10px solid var(--cream-dk); }
.tl-dot-wrap { display: flex; align-items: flex-start; justify-content: center; flex-shrink: 0; width: 56px; padding-top: 22px; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--amber); position: relative; z-index: 1; flex-shrink: 0; transition: transform .3s; }
.tl-year:hover .tl-dot { transform: scale(1.3); }
.tl-empty { flex: 1; max-width: calc(50% - 56px); }
.tl-year-label { font-family: 'Nunito Sans', sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 8px; }
.tl-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--forest); margin-bottom: 10px; line-height: 1.25; }
.tl-card p  { font-size: 14.5px; color: var(--text-m); line-height: 1.75; margin-bottom: 14px; }
.history-cta { text-align: center; margin-top: 48px; padding: 40px; background: rgba(200,149,42,.12); border-radius: 16px; }
.history-cta p { font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic; color: var(--forest); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════
   PROGRAM
════════════════════════════════════════════════ */
.program { background: var(--cream); }
.program-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.program-days { position: sticky; top: 120px; }
.program-day-btn { display: block; width: 100%; font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-lt); background: none; border: none; border-left: 2px solid var(--cream-dk); padding: 12px 20px; text-align: left; cursor: pointer; transition: all .2s; }
.program-day-btn.active { color: var(--amber); border-left-color: var(--amber); background: rgba(200,149,42,.06); }
.program-day-btn:hover:not(.active) { color: var(--text-m); border-left-color: var(--sage-lt); }
.day-schedule { display: none; }
.day-schedule.active { display: block; }
.schedule-item { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.sch-time { font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 700; color: var(--amber); min-width: 60px; padding-top: 2px; letter-spacing: .05em; }
.sch-body h4 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--forest); margin-bottom: 4px; }
.sch-body p  { font-size: 14px; color: var(--text-lt); }
.sch-tag { display: inline-block; font-family: 'Nunito Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-top: 6px; }
.tag-med  { background: rgba(107,143,107,.15); color: var(--moss); }
.tag-psy  { background: rgba(200,149,42,.12); color: var(--earth); }
.tag-art  { background: rgba(139,107,74,.12); color: var(--bark); }
.tag-all  { background: rgba(27,47,30,.08); color: var(--forest); }

/* ═══════════════════════════════════════════════
   RULES
════════════════════════════════════════════════ */
.rules { background: var(--cream-dk); padding: 80px 20px; }
.rules h2 { color: var(--forest); }
.rules .section-tag { color: var(--amber); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.rule-card { background: var(--cream); border: 1px solid rgba(107,143,107,.2); border-radius: 8px; padding: 28px; }
.rule-icon { font-size: 28px; margin-bottom: 14px; }
.rule-card h3 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--forest); margin-bottom: 10px; }
.rule-card p  { font-size: 14px; color: var(--text-lt); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PRICING
════════════════════════════════════════════════ */
.pricing { background: var(--cream-dk); }
.pricing-note { font-family: 'Nunito Sans', sans-serif; font-size: 16px; color: var(--text-m); margin-bottom: 28px; max-width: 720px; line-height: 1.6; }
.pricing-note strong { color: var(--forest); font-weight: 700; }

/* Pricing formula — visual breakdown */
.pricing-formula {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 12px; margin: 0 auto 64px; max-width: 920px;
}
.pf-item {
  flex: 1 1 140px; min-width: 130px;
  background: var(--cream); border: 1.5px solid rgba(200,149,42,.3);
  border-radius: 14px; padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pf-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--amber); }
.pf-item--total {
  background: var(--amber); border-color: var(--amber);
}
.pf-item--total .pf-label { color: var(--forest); }
.pf-item--total .pf-label small { color: var(--earth); }
.pf-icon { font-size: 36px; line-height: 1; }
.pf-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--forest);
  line-height: 1.35; letter-spacing: .01em;
}
.pf-label small {
  display: block; margin-top: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--text-lt); text-transform: uppercase; letter-spacing: .08em;
}
.pf-label strong { font-size: 17px; }
.pf-op {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  color: var(--amber); flex: 0 0 auto; padding: 0 2px;
}
.pf-op--eq { color: var(--forest); font-size: 36px; }
.pf-op--inner { font-size: 26px; }

/* Group — orgvznos + meal wrapped in a frame */
.pf-group {
  position: relative;
  display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 10px;
  padding: 22px 16px 16px;
  border: 2px dashed rgba(200,149,42,.55);
  border-radius: 18px;
  background: rgba(247,242,232,.45);
  flex: 0 1 auto;
}
.pf-group-label {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--cream-dk); color: var(--amber);
  font-family: 'Nunito Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 2px 12px; border-radius: 12px;
  white-space: nowrap;
}
.pf-group .pf-item { flex: 0 0 140px; min-width: 120px; }

/* Tooltip on hover */
.pf-item--has-tip { cursor: help; position: relative; }
.pf-item--has-tip::after {
  content: 'ⓘ';
  position: absolute; top: 8px; right: 10px;
  font-size: 13px; color: var(--amber); opacity: .7;
  font-family: 'Nunito Sans', sans-serif; font-weight: 700;
  transition: opacity .2s;
}
.pf-item--has-tip:hover::after,
.pf-item--has-tip:focus::after { opacity: 1; }
.pf-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 260px; max-width: 80vw;
  background: var(--forest); color: var(--cream);
  font-family: 'Lora', serif; font-size: 13.5px; font-weight: 400;
  line-height: 1.55; letter-spacing: 0;
  padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; z-index: 10;
  transition: opacity .22s, transform .22s;
  text-align: left;
}
.pf-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  margin-left: -7px; width: 0; height: 0;
  border: 7px solid transparent; border-top-color: var(--forest);
}
.pf-item--has-tip:hover .pf-tip,
.pf-item--has-tip:focus .pf-tip,
.pf-item--has-tip:focus-within .pf-tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .pricing-formula { gap: 8px; flex-direction: column; align-items: stretch; }
  .pf-item { flex: 1 1 auto; padding: 14px 10px; }
  .pf-icon { font-size: 28px; }
  .pf-label { font-size: 13px; }
  .pf-label small { font-size: 10px; }
  .pf-op { font-size: 24px; flex-basis: 100%; padding: 4px 0; text-align: center; }
  .pf-op--eq { font-size: 28px; }
  .pf-group { flex-direction: row; gap: 8px; padding: 22px 12px 14px; }
  .pf-group .pf-item { flex: 1 1 0; min-width: 0; }
  .pf-op--inner { flex-basis: auto; font-size: 22px; padding: 0; align-self: center; }
}
.price-group { margin-bottom: 56px; }
.price-group-hd {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.price-group-hd::before,
.price-group-hd::after { content: ''; flex: 1; height: 1px; background: rgba(74,50,38,.18); }
.price-group-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); white-space: nowrap; flex-shrink: 0;
}
.price-group-note {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px; color: var(--text-lt); white-space: nowrap; flex-shrink: 0;
}
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.price-card { background: var(--cream); border-radius: 12px; padding: 28px 24px; border: 1px solid rgba(0,0,0,.07); position: relative; overflow: hidden; }
.price-card.featured { background: var(--earth); border-color: var(--earth); }
.price-card.featured::before { content: 'Выгоднее всего'; position: absolute; top: 14px; right: -28px; font-family: 'Nunito Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--amber); color: var(--forest); padding: 4px 40px; transform: rotate(35deg); }
.price-card--onsite.featured::before { content: none; }
.price-card h3 { font-family: 'Nunito Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-lt); margin-bottom: 16px; }
.price-card.featured h3 { color: var(--sage-lt); }
.price-card.expired { opacity: .68; }
.price-card.expired h3,
.price-card.expired .price-per { color: var(--text-m); }
.price-amount { font-family: 'Ruble', 'Playfair Display', serif; font-size: 42px; font-weight: 700; line-height: 1; color: var(--forest); }
.price-card.featured .price-amount { color: var(--amber-lt); }
.price-card.expired .price-amount,
.price-card.expired .price-row-val {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(74, 50, 38, .45);
}
.price-per { font-family: 'Nunito Sans', sans-serif; font-size: 13px; color: var(--text-lt); margin-top: 6px; }
.price-card.featured .price-per { color: rgba(247,242,232,.5); }
.price-rows { margin-top: 20px; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.06); font-family: 'Nunito Sans', sans-serif; font-size: 14px; }
.price-card.featured .price-row { border-top-color: rgba(255,255,255,.08); }
.price-row-label { color: var(--text-lt); }
.price-card.featured .price-row-label { color: rgba(247,242,232,.6); }
.price-row-val { font-weight: 700; color: var(--forest); }
.price-card.featured .price-row-val { color: var(--cream); }
.volunteer-box { margin-top: 32px; padding: 24px 28px; background: rgba(200,149,42,.1); border: 1px solid rgba(200,149,42,.25); border-radius: 10px; display: flex; gap: 20px; align-items: flex-start; }
.volunteer-box .vol-icon { font-size: 32px; flex-shrink: 0; }
.volunteer-box h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--earth); margin-bottom: 6px; }
.volunteer-box p  { font-size: 14px; color: var(--text-m); }

/* ═══════════════════════════════════════════════
   HOW TO
════════════════════════════════════════════════ */
.howto { background: var(--cream); }
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.transport-card { background: var(--cream-dk); border-radius: 12px; padding: 32px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,.06); }
.transport-icon { font-size: 36px; margin-bottom: 16px; }
.transport-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--forest); margin-bottom: 12px; }
.transport-card p  { font-size: 15px; color: var(--text-m); line-height: 1.75; }
.map-placeholder { background: linear-gradient(135deg, var(--moss), var(--forest)); border-radius: 12px; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(247,242,232,.6); font-family: 'Nunito Sans', sans-serif; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; gap: 12px; position: relative; overflow: hidden; }
.map-placeholder .coords { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--amber-lt); font-style: italic; }
.map-placeholder .map-icon { font-size: 48px; }
.map-link { display: inline-block; margin-top: 16px; font-family: 'Nunito Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--amber); text-decoration: none; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid rgba(200,149,42,.4); padding-bottom: 2px; transition: color .2s; }
.map-link:hover { color: var(--amber-lt); }

/* ═══════════════════════════════════════════════
   CHECKLIST
════════════════════════════════════════════════ */
.checklist-section { background: var(--cream-dk); }
.checklist-section h2 { color: var(--forest); }
.checklist-section .section-tag { color: var(--amber); }
.checklist-section .lead { color: var(--text-m); }
.checklist-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: var(--cream); border: 1px solid rgba(107,143,107,.2); border-radius: 8px; font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--text); line-height: 1.5; }
.check-item .ci { font-size: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   ORGANIZERS / CONTACTS
════════════════════════════════════════════════ */
.organizers { background: var(--cream-dk); }
.org-notice { font-family: 'Nunito Sans', sans-serif; font-size: 15px; color: var(--text-m); max-width: 560px; margin-top: 12px; line-height: 1.7; }
.org-grid { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.org-card { background: var(--cream); border-radius: 16px; padding: 36px 32px; border: 1px solid rgba(0,0,0,.07); flex: 1; min-width: 260px; max-width: 360px; text-align: center; }
.org-avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--moss), var(--forest)); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--amber-lt); border: 3px solid var(--amber); overflow: hidden; }
.org-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; max-width: none; border-radius: 0; }
.org-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--forest); margin-bottom: 4px; }
.org-card .org-role { font-family: 'Nunito Sans', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-lt); margin-bottom: 20px; }
.org-contacts { display: flex; flex-direction: column; gap: 10px; }
.org-contact-btn { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Nunito Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--forest); text-decoration: none; padding: 12px 20px; border-radius: 40px; border: 1.5px solid rgba(27,47,30,.15); transition: all .2s; }
.org-contact-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.org-contact-text { font-family: 'Nunito Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--forest); text-decoration: none; }
.contact-channels { background: var(--cream-dk); border-radius: 16px; padding: 40px 48px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.contact-channels h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--forest); }
.contact-channels p  { font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--text-m); margin-top: 6px; }
.channel-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.channel-btn { font-family: 'Nunito Sans', sans-serif; font-weight: 700; font-size: 14px; padding: 12px 28px; border-radius: 40px; text-decoration: none; display: inline-block; transition: transform .2s; }
.channel-btn:hover { transform: translateY(-2px); }
.ch-wa  { background: #25D366; color: #fff; }
.ch-tg  { background: #229ED9; color: #fff; }
.ch-reg { background: var(--amber); color: var(--forest); }

/* ═══════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer { background: var(--cream-dk); padding: 48px 20px 32px; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.footer-logo span { color: var(--amber); }
.footer-sub { font-family: 'Nunito Sans', sans-serif; font-size: 13px; color: var(--text-lt); letter-spacing: .08em; margin-bottom: 28px; }
.footer-nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.footer-nav a { font-family: 'Nunito Sans', sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-lt); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--amber); }
.footer-copy { font-family: 'Nunito Sans', sans-serif; font-size: 12px; color: var(--text-lt); }
.footer-divider { width: 60px; height: 1px; background: rgba(200,149,42,.3); margin: 0 auto 28px; }

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   INNER PAGE (page.php / single.php)
════════════════════════════════════════════════ */
.inner-page { padding: 140px 20px 80px; min-height: 60vh; }
.inner-page .container { max-width: 800px; }
.inner-page h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px,5vw,56px); color: var(--forest); margin-bottom: 24px; line-height: 1.15; }
.entry-content p    { color: var(--text-m); margin-bottom: 20px; line-height: 1.8; }
.entry-content h2,
.entry-content h3   { font-family: 'Playfair Display', serif; color: var(--forest); margin: 32px 0 16px; }
.entry-content ul,
.entry-content ol   { padding-left: 24px; color: var(--text-m); margin-bottom: 20px; }
.entry-content li   { margin-bottom: 8px; line-height: 1.7; }
.entry-content a    { color: var(--amber); border-bottom: 1px solid rgba(200,149,42,.3); text-decoration: none; }
.entry-content a:hover { color: var(--earth); }
.entry-content img  { border-radius: 8px; margin: 28px 0; }
.entry-content blockquote { border-left: 3px solid var(--amber); padding-left: 20px; margin: 28px 0; font-style: italic; color: var(--text); font-size: 19px; line-height: 1.65; }

/* 404 */
.page-404 { text-align: center; padding: 160px 20px 80px; }
.page-404 h1 { font-family: 'Playfair Display', serif; font-size: 96px; color: var(--amber); line-height: 1; margin-bottom: 16px; }
.page-404 p  { color: var(--text-m); font-size: 20px; margin-bottom: 32px; }

/* ═══════════════════════════════════════════════
   TIMELINE MOBILE
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .timeline::before { left: 24px; }
  .tl-year, .tl-year:nth-child(even) { flex-direction: row !important; }
  .tl-card, .tl-year:nth-child(even) .tl-card { max-width: 100%; }
  .tl-empty { display: none; }
  .tl-dot-wrap { width: 48px; }
  .tl-year:nth-child(odd) .tl-card::after,
  .tl-year:nth-child(even) .tl-card::after { left: -10px; right: auto; border-right: 10px solid var(--cream-dk); border-left: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav#nav { padding: 16px 20px; background: linear-gradient(to bottom, rgba(247,242,232,.55), transparent); }
  nav#nav.scrolled { padding: 12px 20px; }
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }

  .about-inner, .howto-grid, .program-inner { grid-template-columns: 1fr; }
  .program-days { position: static; }
  .about-badge { right: 10px; bottom: 10px; width: 100px; height: 100px; }
  .about-badge .big { font-size: 28px; }

  /* Атмосфера: вертикальный стек, подписи всегда видны */
  .atm-strip { flex-direction: column; }
  .atm-card  { min-height: 220px; flex: none; }
  .atm-label { opacity: 1; transform: translateY(0); }
  .atm-card:hover .atm-label { opacity: 1; transform: translateY(0); }

  .contact-channels { flex-direction: column; text-align: center; padding: 28px 20px; }
  .cd-num  { font-size: 44px; }
  section  { padding: 64px 20px; }

  /* Счётчик — уменьшить gap на узких экранах */
  .countdown-grid { gap: 16px; }
  .cd-sep { font-size: 36px; }

  /* Org карточки — по центру */
  .org-grid { justify-content: center; }
  .org-card { max-width: 100%; }

  /* Pending placeholder — полная ширина карточки */
  .master-pending-tooltip { padding: 16px 12px; }
}
