/* ---------- Базові токени ---------- */
:root {
  --bg: #151310;
  --bg-2: #1d1a15;
  --bg-3: #26221b;
  --line: rgba(243, 217, 164, 0.14);
  --text: #f3ecdd;
  --muted: #b2a893;
  --gold: #e6b56d;
  --gold-2: #f5dca6;
  --gold-deep: #c58a3c;
  --rust: #c9602f;
  --ok: #8fc98a;
  --err: #e08484;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* плівкове зерно */
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.eyebrow {
  font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-title { font-size: clamp(30px, 4.4vw, 54px); max-width: 16ch; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 58ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1a1409; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Навігація ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(21, 19, 16, .72); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand .star { width: 30px; height: 30px; flex: none; color: var(--gold); filter: drop-shadow(0 0 10px rgba(230,181,109,.45)); }
.brand-text { display: flex; flex-direction: column; gap: 3px; font-family: var(--display); text-transform: uppercase; line-height: 1.1; min-width: 0; }
.brand-t1 { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.brand-t2 { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--text); white-space: nowrap; }
.brand-t2 em { font-style: normal; color: var(--gold); }
.nav .btn { padding: 12px 20px; font-size: 11px; flex: none; }
.nav .btn .short { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: min(calc(100svh - 72px), 920px); display: grid; align-items: end; padding: 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.85) contrast(1.05); opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,16,.55) 0%, rgba(21,19,16,.25) 35%, rgba(21,19,16,.92) 78%, var(--bg) 100%),
    radial-gradient(60% 50% at 80% 30%, rgba(230,181,109,.18), transparent 70%);
}
.hero-star {
  position: absolute; z-index: 1; right: -8vw; top: -24vh; width: min(60vw, 720px); aspect-ratio: 1;
  color: var(--gold); opacity: .14; filter: blur(.4px); pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1) rotate(0deg);} 50% { transform: scale(1.04) rotate(2deg);} }
@media (prefers-reduced-motion: reduce) { .hero-star { animation: none; } }
.hero .wrap { position: relative; z-index: 2; padding: clamp(90px, 14vh, 160px) 0 clamp(48px, 7vh, 80px); }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--gold-2); background: rgba(21,19,16,.45); }
.pill svg { width: 14px; height: 14px; color: var(--gold); }
.hero h1 { font-size: clamp(38px, 7vw, 96px); max-width: 12ch; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-verse { margin-top: 28px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); border-left: 2px solid var(--gold); padding-left: 18px; }
.hero-verse b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(3, auto); gap: 32px 48px; justify-content: start; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-meta div span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero-meta div strong { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); }

/* ---------- Зворотній відлік ---------- */
.countdown { display: flex; gap: 14px; flex-wrap: wrap; }
.countdown div { min-width: 76px; text-align: center; padding: 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(29,26,21,.7); }
.countdown b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--gold); line-height: 1; }
.countdown span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Про семінар ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-grid .section-title { margin-top: 18px; }
.about-text { padding-top: 10px; border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.about-text .lead { max-width: none; }
.about-text .lead:last-child { margin-bottom: 0; }

/* ---------- Для кого / формат ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.list-lined { list-style: none; margin: 28px 0 0; padding: 0; }
.list-lined li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.list-lined li:last-child { border-bottom: 1px solid var(--line); }
.list-lined .ix { font-family: var(--display); color: var(--gold); font-size: 13px; padding-top: 4px; }
.list-lined b { display: block; font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.list-lined p { margin: 0; color: var(--muted); font-size: 15px; }
.photo-tall { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; min-height: 340px; }
.photo-tall img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(21,19,16,.9)); font-size: 13px; color: var(--muted); }

/* ---------- Фото (стос карток) ---------- */
.photos { padding-top: 0; }
.photo-carousel { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.photo-stack { position: relative; width: min(760px, 100%); aspect-ratio: 3 / 2; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.stack-card {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  transition: transform .55s cubic-bezier(.34,1.1,.64,1), opacity .45s ease;
  will-change: transform, opacity;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; filter: saturate(.92); }
.stack-card[data-pos="front"]  { transform: rotate(0deg)    translateY(0)    scale(1);   z-index: 3; opacity: 1; }
.stack-card[data-pos="mid"]    { transform: rotate(2.4deg)  translateY(14px) scale(.965); z-index: 2; opacity: .7; }
.stack-card[data-pos="back"]   { transform: rotate(-1.8deg) translateY(26px) scale(.93);  z-index: 1; opacity: .45; }
.stack-card[data-pos="hidden"] { transform: rotate(0deg)    translateY(8px)  scale(.9);   z-index: 0; opacity: 0; pointer-events: none; }
.carousel-nav { display: flex; align-items: center; gap: 18px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--gold); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover { background: var(--gold); color: #1a1409; border-color: var(--gold); transform: scale(1.05); }
.carousel-btn:active { transform: scale(.96); }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(230,181,109,.3); cursor: pointer; transition: background .2s, transform .2s; }
.dot.active { background: var(--gold); transform: scale(1.4); }

/* ---------- Місце ---------- */
.place-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: 32px; }
.place-head .section-title { margin-top: 18px; }
.place-info { display: grid; gap: 6px; justify-items: start; }
.place-info .btn { margin-top: 12px; }
.address { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: clamp(320px, 45vw, 480px); background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Контакти ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.contact { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 6px; }
.contact .who { font-family: var(--display); font-size: 20px; font-weight: 500; }
.contact .role { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.contact a { text-decoration: none; font-size: 18px; color: var(--gold-2); display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.contact a:hover { color: var(--gold); }
.contact a svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Форма ---------- */
.register { background: linear-gradient(180deg, var(--bg) 0%, #1a1611 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.form-card {
  margin-top: 40px; padding: clamp(24px, 4vw, 48px); border-radius: 24px;
  border: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden;
}
.form-card::before { content: ""; position: absolute; inset: -1px; pointer-events: none; background: radial-gradient(50% 40% at 100% 0%, rgba(230,181,109,.12), transparent 70%); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; position: relative; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6f6757; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,181,109,.15); }
.field input[type="date"] {
  color-scheme: dark; -webkit-appearance: none; appearance: none;
  min-width: 0; max-width: 100%; display: block; min-height: 52px; line-height: 1.3; text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; filter: invert(.8) sepia(1) saturate(2) hue-rotate(5deg); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23e6b56d' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { flex: 1; min-width: 100px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--muted); transition: all .2s; background: var(--bg); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--gold); color: var(--gold-2); background: rgba(230,181,109,.08); }
.choice label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(230,181,109,.2); }
.field.hidden { display: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 10px; }
.form-foot small { color: var(--muted); max-width: 52ch; font-size: 13px; }
.form-msg { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; font-size: 15px; display: none; }
.form-msg.ok { display: block; background: rgba(143,201,138,.12); border: 1px solid rgba(143,201,138,.35); color: #cfeccc; }
.form-msg.err { display: block; background: rgba(224,132,132,.1); border: 1px solid rgba(224,132,132,.35); color: #f3c6c6; }
.success { display: none; text-align: center; padding: 30px 10px; position: relative; }
.success.show { display: block; }
.success .big { width: 72px; height: 72px; margin: 0 auto 18px; color: var(--gold); }
.success h3 { font-size: 28px; margin-bottom: 10px; }
.success p { color: var(--muted); max-width: 48ch; margin-inline: auto; }

/* ---------- Футер ---------- */
footer { position: relative; padding: clamp(48px, 7vw, 80px) 0 28px; background: var(--bg-2); font-size: 14px; color: var(--muted); }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); opacity: .6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.foot-brand { display: flex; gap: 18px; align-items: flex-start; }
.foot-brand .star { width: 40px; height: 40px; flex: none; color: var(--gold); filter: drop-shadow(0 0 12px rgba(230,181,109,.4)); margin-top: 2px; }
.foot-title { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; color: var(--text); }
.foot-title em { font-style: normal; color: var(--gold); }
.foot-verse { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot-verse span { color: var(--gold-2); }
.foot-h { font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-col { display: grid; gap: 10px; justify-items: start; }
.foot-person { display: grid; gap: 3px; }
.foot-person b { color: var(--text); font-weight: 600; }
.foot-person a { text-decoration: none; color: var(--gold-2); transition: color .2s; }
.foot-person a:hover { color: var(--gold); }
.foot-line { color: var(--text); }
.foot-line.muted { color: var(--muted); }
.foot-link { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); transition: color .2s; }
.foot-link:hover { color: var(--gold-2); }
.foot-link svg { width: 14px; height: 14px; }
.foot-bottom { margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 13px; }
.foot-bottom .assoc { letter-spacing: .06em; color: var(--text); }

/* ---------- Анімація появи ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .about-grid, .split, .place-head, .contacts, .foot-grid { grid-template-columns: 1fr; }
  .about-text { border-left: 0; padding-left: 0; padding-top: 0; }
  .hero-meta { grid-template-columns: 1fr; gap: 20px; }
  .photo-tall { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 760px) {
  .nav .wrap { height: 64px; }
  .brand { gap: 10px; }
  .brand .star { width: 24px; height: 24px; }
  .brand-t1 { font-size: 8.5px; letter-spacing: .12em; }
  .brand-t2 { font-size: 10px; letter-spacing: .04em; }
  .nav .btn { padding: 10px 12px; font-size: 10px; }
  .nav .btn .full { display: none; }
  .nav .btn .short { display: inline; }
  .photo-stack { aspect-ratio: 4 / 3; }
  .stack-card { border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-star { right: -30vw; top: -6vh; width: 90vw; }
  .countdown div { min-width: 64px; }
}
