/* ===== Tokens ===== */
:root {
  --bg: #faf8f3;
  --fg: #2a2620;
  --muted-bg: #f1ede4;
  --card: #fdfbf6;
  --border: #e3ddd0;
  --muted-fg: #6e6557;
  --forest: #2f5d3f;
  --ember: #b75a36;
  --sun: #d99a3a;
  --earth: #2a2620;
  --shadow: 0 30px 60px -30px rgba(60, 50, 30, 0.25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: rgba(217, 154, 58, 0.45); }

/* ===== Typography ===== */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.italic { font-style: italic; }
.tabular { font-family: var(--sans); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: 0.01em; }
.h2 { font-size: clamp(1.85rem, 4.2vw, 3.5rem); line-height: 1.15; font-weight: 300; text-wrap: balance; margin: 0; }
.h3 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.2; font-weight: 300; margin: 0; }
.h4 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin: 0; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 243, 0.78);
  border-bottom: 1px solid rgba(227, 221, 208, 0.6);
  transition: background 0.3s;
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 36px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.brand-text > span:first-child { font-size: 1.15rem; }
.brand-sub { font-family: var(--sans); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-fg); margin-top: 4px; }
.nav-desktop { display: none; margin-left: auto; gap: 28px; align-items: center; font-size: 13px; }
.nav-desktop a { color: var(--muted-fg); transition: color 0.3s; }
.nav-desktop a:hover { color: var(--forest); }
.nav-cta { color: var(--forest) !important; font-weight: 500; }
.lang-switch { display: flex; gap: 6px; align-items: center; font-size: 12px; letter-spacing: 0.15em; color: var(--muted-fg); margin-left: auto; }
.nav-desktop ~ .lang-switch { margin-left: 0; }
.lang-switch button { padding: 4px 6px; transition: color 0.3s; }
.lang-switch button.active { color: var(--forest); font-weight: 500; }
.burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: 0.3s; }
.nav-mobile { display: none; flex-direction: column; padding: 16px 24px 24px; gap: 18px; border-top: 1px solid var(--border); background: rgba(250, 248, 243, 0.95); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--serif); font-size: 1.4rem; color: var(--fg); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .lang-switch { margin-left: 0; }
  .burger { display: none; }
}

/* ===== Sections ===== */
.section { padding: clamp(64px, 10vw, 160px) 24px; position: relative; overflow: hidden; }
.section-muted { background: var(--muted-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-warm { background: linear-gradient(135deg, #f6efe2 0%, #ecdfc4 50%, #e3cea3 100%); }
.section-image { color: var(--earth); }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bg-overlay.light { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,248,243,0.92), rgba(236,223,196,0.88)); z-index: 1; }
.section-image .container { position: relative; z-index: 2; }

.container { max-width: var(--container); margin: 0 auto; }
.container.narrow { max-width: 880px; }
.container.center { text-align: center; }
.center { text-align: center; }
.mt-xl { margin-top: clamp(40px, 6vw, 80px); }

/* ===== Eyebrow ===== */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 32px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.eyebrow-light { color: rgba(255,255,255,0.85); font-size: 10px; }
.eyebrow .line { display: block; width: 40px; height: 1px; background: currentColor; }
.sub-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ember); margin: 56px 0 32px;
}
.sub-eyebrow .line { display: block; width: 40px; height: 1px; background: currentColor; }
.sub-eyebrow.light { color: rgba(255,255,255,0.9); }
.sub-eyebrow.light .line { background: rgba(255,255,255,0.7); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,36,30,0.05) 0%, rgba(40,36,30,0.3) 55%, rgba(20,18,14,0.78) 100%); }
.hero-content { position: relative; max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 24px clamp(64px, 10vw, 112px); color: #fff; }
.hero-title { font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1; max-width: 1100px; margin: 0; font-weight: 300; }
.hero-subtitle { font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.5rem); margin: 24px 0 0; color: rgba(255,255,255,0.92); max-width: 700px; line-height: 1.25; }
.hero-tagline { margin: 40px 0 0; font-size: 0.95rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.72); max-width: 420px; }
.hero-arrow { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.4em; }

/* ===== Lead text ===== */
.lead { font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--muted-fg); font-weight: 300; margin: 40px 0 0; max-width: 720px; }
.lead p + p { margin-top: 24px; }
.lead.max-3 { max-width: 760px; }
.lead.max-2 { max-width: 620px; }

/* ===== Cards / grids ===== */
.card-grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid rgba(227,221,208,0.7);
  padding: 36px;
  transition: transform 0.5s, box-shadow 0.5s, border-color 0.5s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(47,93,63,0.4); box-shadow: var(--shadow); }
.card.glass { background: rgba(253,251,246,0.85); backdrop-filter: blur(6px); }
.card-figure { display: block; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--forest); font-weight: 300; }
.card-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(47,93,63,0.1); display: flex; align-items: center; justify-content: center; color: var(--forest); }
.card-icon svg { width: 24px; height: 24px; }
.card-label { margin-top: 20px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ember); font-weight: 500; }
.card-divider { height: 1px; width: 40px; background: var(--ember); margin: 24px 0; transition: width 0.5s; }
.card:hover .card-divider { width: 64px; }
.card p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--muted-fg); font-weight: 300; }

/* ===== Quote ===== */
.big-quote { position: relative; margin: 0; padding: 0; }
.big-quote-mark { position: absolute; top: -60px; left: -8px; font-size: clamp(8rem, 18vw, 14rem); line-height: 1; color: rgba(183,90,54,0.3); pointer-events: none; user-select: none; }
.big-quote blockquote { position: relative; margin: 0; font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1.2; font-weight: 300; max-width: 1000px; text-wrap: balance; }

.center-quote { margin: clamp(60px, 10vw, 120px) auto 0; max-width: 760px; text-align: center; }
.center-quote p { font-size: clamp(1.5rem, 3.5vw, 2.6rem); line-height: 1.25; color: var(--earth); font-weight: 300; }

/* ===== Activities & Conditions ===== */
.activity-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .activity-grid { grid-template-columns: repeat(3, 1fr); } }
.activity {
  background: var(--card); border: 1px solid rgba(227,221,208,0.7);
  padding: 26px; display: flex; align-items: center; gap: 18px;
  transition: transform 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.activity:hover { transform: translateY(-2px); border-color: rgba(47,93,63,0.4); box-shadow: var(--shadow); }
.activity .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(47,93,63,0.12); border: 1.5px solid var(--forest); flex-shrink: 0; }
.activity .serif { font-size: 1.15rem; font-weight: 300; line-height: 1.3; }

.conditions-block { position: relative; margin-top: 64px; overflow: hidden; border: 1px solid var(--border); }
.conditions-block img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.conditions-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(40,36,30,0.82) 0%, rgba(40,36,30,0.55) 60%, rgba(40,36,30,0.3) 100%); }
.conditions-content { position: relative; padding: clamp(36px, 6vw, 64px); color: #fff; }
.conditions-content .sub-eyebrow { margin-top: 0; }
.conditions-list { display: grid; grid-template-columns: 1fr; gap: 20px 40px; max-width: 900px; }
@media (min-width: 640px) { .conditions-list { grid-template-columns: 1fr 1fr; } }
.conditions-list li { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.conditions-list .bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); margin-top: 12px; flex-shrink: 0; }
.conditions-list .serif { font-size: 1.15rem; font-weight: 300; color: rgba(255,255,255,0.95); line-height: 1.4; }

/* ===== Two-column ===== */
.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
.who-body { margin-top: 40px; padding-left: 28px; border-left: 2px solid var(--ember); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; color: var(--muted-fg); font-weight: 300; }
.who-body p { margin: 0; }
.who-body p + p { margin-top: 24px; }
.who-image { aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--border); position: relative; }
.who-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Budget ===== */
.budget-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin: 0 auto; }
.budget-card { padding: 40px; text-align: center; }
.budget-total { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1; color: var(--forest); font-weight: 300; margin-top: 16px; }
.budget-participants { font-size: 1.4rem; color: rgba(42,38,32,0.8); margin-top: 24px; font-weight: 300; }
.note { margin: 48px auto 0; padding-left: 24px; border-left: 2px solid var(--ember); font-size: 1rem; line-height: 1.7; color: var(--muted-fg); font-weight: 300; max-width: 800px; text-align: left; }

/* ===== Roadmap ===== */
.roadmap-list { margin-top: 56px; display: flex; flex-direction: column; gap: 28px; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; color: rgba(42,38,32,0.85); font-weight: 300; }
.roadmap-list p { margin: 0; }
.section-warm .h2 { color: var(--earth); }

/* ===== Sponsors ===== */
.sponsors-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1100px; margin-top: 56px; }
@media (min-width: 640px) { .sponsors-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .sponsors-grid { grid-template-columns: repeat(4, 1fr); } }
.sponsor-card { background: var(--card); border: 1px solid var(--border); padding: 32px; display: flex; align-items: center; justify-content: center; min-height: 160px; transition: box-shadow 0.5s; }
.sponsor-card:hover { box-shadow: var(--shadow); }
.sponsor-card img { height: 80px; max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }

/* ===== Contacts ===== */
.contacts-grid { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 4fr 4fr 4fr; } }
.contact-person { display: flex; align-items: center; gap: 20px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-name { font-size: 1.35rem; line-height: 1.25; margin-top: 8px; }
.contact-role { font-size: 0.9rem; color: var(--muted-fg); margin-top: 6px; line-height: 1.4; font-weight: 300; }
.contact-card { display: flex; align-items: flex-start; gap: 20px; padding: 28px; }
.contact-ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--forest); flex-shrink: 0; }
.contact-ico svg { width: 18px; height: 18px; }
.contact-card .card-label { margin-top: 0; color: var(--muted-fg); }

/* ===== CTA ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--forest); color: #fff;
  padding: 20px 40px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--earth); }

/* ===== Requisites ===== */
.requisites-list { margin: 48px 0 0; background: var(--card); border: 1px solid var(--border); }
.requisite-row { display: flex; flex-direction: column; gap: 8px; padding: 20px 28px; border-bottom: 1px solid var(--border); }
.requisite-row:last-child { border-bottom: 0; }
@media (min-width: 700px) { .requisite-row { flex-direction: row; align-items: center; gap: 24px; } }
.requisite-row dt { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ember); flex-shrink: 0; min-width: 220px; font-weight: 500; }
.requisite-row dd { margin: 0; font-size: 1.05rem; color: rgba(42,38,32,0.92); user-select: all; word-break: break-word; }

/* ===== Payment buttons ===== */
.pay-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0 0;
}
@media (min-width: 640px) {
  .pay-buttons { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 900px) {
  .pay-buttons { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.pay-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px 26px;
  min-height: 72px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  color: var(--fg);
}
.pay-btn:hover { background: var(--muted-bg); border-color: var(--forest); }
.pay-btn-label { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; color: var(--forest); }
.pay-btn-sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-fg); word-break: break-all; }

/* ===== Anchor scroll offset (fixed header) ===== */
section[id] { scroll-margin-top: 96px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 64px 24px; background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.footer-logos img { height: 56px; width: auto; object-fit: contain; }
.footer-logos img[src*="ukrcy"] { height: 44px; }
.footer-credits { font-size: 12px; letter-spacing: 0.05em; color: var(--muted-fg); font-style: italic; text-align: center; }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 1.4s ease-out both; }
.fade-up { animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) both; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.35s; }
.d3 { animation-delay: 0.55s; }

/* Accent text colors used in titles */
.text-forest { color: var(--forest); font-style: italic; }
.text-ember { color: var(--ember); font-style: italic; }
.text-muted { color: var(--muted-fg); }
