/* =====================================================
   VIKTORIIA KETRAR — Personal Brand v10
   Design: Luxury Editorial × Modern Tech
   Fonts: Cormorant Garamond (display) + Nunito Sans (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

/* ---- Tokens ---- */
:root {
  --bg:      #f7f5f1;
  --bg2:     #f0ede8;
  --ink:     #0f1820;
  --ink2:    #3a4552;
  --muted:   #7a8590;
  --card:    #ffffff;
  --line:    #e2ddd7;
  --line2:   #ccc8c0;

  --green:   #19c37d;
  --green2:  #12a869;
  --green-bg:#edfaf3;
  --gold:    #c9952a;
  --gold-bg: #fdf6ea;
  --gold-line:#e8d5a0;

  --shadow-sm: 0 2px 8px rgba(15,24,32,.06);
  --shadow-md: 0 8px 28px rgba(15,24,32,.10);
  --shadow-lg: 0 20px 60px rgba(15,24,32,.14);
  --focus: 0 0 0 3px rgba(25,195,125,.30);

  --r: 16px;
  --r-sm: 10px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 105% -5%, rgba(25,195,125,.08), transparent 60%),
    radial-gradient(ellipse 700px 400px at -5% 110%, rgba(201,149,42,.07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
a:focus-visible, button:focus-visible { outline: var(--focus); border-radius: 6px; }
summary { cursor: pointer; }

/* ---- Layout ---- */
.container { width: min(1180px, 92%); margin: 0 auto; }
.row { display: flex; gap: 12px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .92em; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-bottom: .4em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: .3em; }
p  { margin-bottom: .9em; }
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink2);
  font-weight: 400;
  line-height: 1.6;
}
.label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green2);
}
.price-tag {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}
.price-tag .amount { font-size: 2.4rem; }
.price-tag .cur { font-size: 1.2rem; color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  border: none;
  transition: transform .18s, box-shadow .18s, background .18s, opacity .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn.block { display: flex; width: 100%; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(25,195,125,.28);
}
.btn-primary:hover { background: var(--green2); box-shadow: 0 6px 24px rgba(25,195,125,.38); }

.btn-gold {
  background: linear-gradient(135deg, #d4a843, #c9952a);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201,149,42,.30);
}
.btn-gold:hover { box-shadow: 0 6px 24px rgba(201,149,42,.45); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line2);
}
.btn-outline:hover { background: var(--card); border-color: var(--green); color: var(--green2); }

.btn-ghost {
  background: var(--green-bg);
  color: var(--green2);
  border: 1px solid rgba(25,195,125,.2);
}
.btn-ghost:hover { background: var(--green); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card.accent {
  border-color: var(--gold-line);
  background: linear-gradient(145deg, #fff, var(--gold-bg));
}
.card.green-accent {
  border-color: rgba(25,195,125,.25);
  background: linear-gradient(145deg, #fff, var(--green-bg));
}
.card.featured {
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f0c040, var(--gold));
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-green { background: var(--green-bg); color: var(--green2); border: 1px solid rgba(25,195,125,.25); }
.badge-gold  { background: var(--gold-bg);  color: var(--gold);   border: 1px solid var(--gold-line); }
.badge-new   { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,245,241,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 20%, #45e8a0 60%, var(--gold) 85%, transparent 100%);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand em { color: var(--green); font-style: normal; }
.header-inner { padding: 14px 0; }

.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink2);
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.nav a:hover { background: var(--green-bg); color: var(--green2); border-color: rgba(25,195,125,.15); }
.nav a.active { color: var(--green2); }
.nav .btn-nav {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  padding: 8px 18px;
}
.nav .btn-nav:hover { background: var(--green2); }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--line2);
  padding: 9px 11px; border-radius: var(--r-sm); transition: border-color .2s;
}
.menu-toggle:hover { border-color: var(--green); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

.scrim {
  position: fixed; inset: 0;
  background: rgba(247,245,241,.97);
  z-index: 990;
  backdrop-filter: none;
}
.nav.open {
  position: fixed; inset: 65px 0 0 0;
  display: flex; flex-direction: column;
  gap: 8px; padding: 18px;
  background: var(--bg); border-top: 1px solid var(--line);
  z-index: 995; overflow-y: auto;
}
.nav.open a { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav { display: flex; }
  .nav.open { position: static; flex-direction: row; background: transparent; padding: 0; border: none; overflow: visible; }
  .nav.open a { border-color: transparent; background: transparent; }
}

/* ---- HERO ---- */
.hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin-bottom: .4em; }
.hero .lead { max-width: 520px; margin-bottom: 24px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 28px; list-style: none;
}
.trust-row li {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--ink2);
  padding: 5px 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px;
}
.trust-row li::before { content: '✓'; color: var(--green); font-weight: 800; }
.hero-media {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: .82rem; font-weight: 700;
}
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero { padding: 72px 0 80px; }
}

/* ---- EVENT POSTER SECTION ---- */
.event-poster {
  background: var(--ink);
  color: #f5f4f0;
  border-radius: 28px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.event-poster::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 100% 0%, rgba(25,195,125,.2), transparent 60%),
    radial-gradient(ellipse 400px 300px at 0% 100%, rgba(201,149,42,.15), transparent 60%);
  pointer-events: none;
}
.event-poster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  position: relative;
  z-index: 1;
}
.event-poster .label { color: var(--green); }
.event-poster h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: .2em;
}
.event-poster .lead { color: rgba(245,244,240,.8); }
.event-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 20px 0;
}
.event-meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.event-meta-item .key {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
}
.event-meta-item .val {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: #fff;
}
.ticket-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ticket-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  padding: 20px;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.ticket-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.ticket-card.gold-card {
  border-color: rgba(201,149,42,.5);
  background: rgba(201,149,42,.08);
}
.ticket-card .t-name { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,244,240,.7); margin-bottom: 4px; }
.ticket-card .t-price {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.ticket-card .t-desc { font-size: .85rem; color: rgba(245,244,240,.7); margin-bottom: 16px; line-height: 1.5; }
@media (min-width: 820px) {
  .event-poster-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
  .ticket-cards { grid-template-columns: 1fr 1fr; }
}

/* ---- SECTIONS ---- */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg2); }
.section.dark { background: var(--ink); color: #f5f4f0; }
.section-header { margin-bottom: 36px; }
.section-header .label { margin-bottom: 8px; }

/* ---- GRID ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- FEATURES ---- */
.feature-icon {
  width: 48px; height: 48px;
  background: var(--green-bg); border: 1px solid rgba(25,195,125,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: .88rem; color: var(--ink2); }

/* ---- SPEAKERS ---- */
.speaker-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: box-shadow .2s;
}
.speaker-card:hover { box-shadow: var(--shadow-md); }
.speaker-avatar {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--line);
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--muted);
}
.speaker-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.speaker-title { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.speaker-topic { font-size: .85rem; color: var(--ink2); font-style: italic; }

/* ---- PROGRAM ---- */
.program-list { list-style: none; }
.program-item {
  display: flex; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.program-item:last-child { border-bottom: none; }
.p-time { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 80px; padding-top: 2px; }
.p-desc { font-size: .9rem; color: var(--ink2); }
.p-desc strong { color: var(--ink); }

/* ---- MASONRY GALLERY ---- */
.masonry {
  columns: 2; column-gap: 12px;
}
.m-item {
  display: block; break-inside: avoid; margin-bottom: 12px;
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.m-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.m-item img { width: 100%; height: auto; object-fit: cover; display: block; }
@media (min-width: 640px) { .masonry { columns: 3; } }
@media (min-width: 900px) { .masonry { columns: 4; } }

/* ---- VIDEO GRID ---- */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.video { position: relative; padding-bottom: 56.25%; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
@media (min-width: 640px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,15,22,.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox.hidden { display: none; }
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); object-fit: contain; box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }

/* ---- PLANS / PRICING ---- */
.plan-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.plan-card.highlight {
  border-color: var(--gold);
  background: linear-gradient(160deg, #fff 60%, var(--gold-bg));
  position: relative;
}
.plan-card.highlight::before {
  content: '★ Рекомендуется';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--ink); }
.plan-period { font-size: .85rem; color: var(--muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--ink2); }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.plan-cta { margin-top: auto; }

/* ---- COUNTDOWN ---- */
.countdown-wrap {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.cd-block {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  text-align: center;
  min-width: 70px;
}
.cd-block .num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700; color: #fff;
  display: block; line-height: 1;
}
.cd-block .lbl { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,244,240,.6); margin-top: 4px; }

/* ---- DETAILS / FAQ ---- */
details {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  margin-bottom: 8px;
  transition: box-shadow .2s;
}
details[open] { box-shadow: var(--shadow-sm); }
summary {
  padding: 16px 20px;
  font-weight: 700; font-size: .92rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > p { padding: 0 20px 16px; color: var(--ink2); font-size: .92rem; }

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem; font-weight: 700;
  color: var(--green); opacity: .2;
  position: absolute; top: 8px; left: 16px;
  line-height: 1;
  pointer-events: none;
}
.testimonial-text { font-size: .95rem; color: var(--ink2); margin-bottom: 16px; padding-top: 28px; }
.testimonial-author { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: var(--muted); }

/* ---- CONTACT FORM ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,195,125,.15);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  color: rgba(245,244,240,.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 36px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand em { color: var(--green); font-style: normal; }
.footer-desc { font-size: .88rem; line-height: 1.65; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(245,244,240,.85);
  transition: background .2s, border-color .2s;
}
.social-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.footer-bottom {
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .8rem;
}
.footer-legal { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-legal a { color: rgba(245,244,240,.5); transition: color .2s; }
.footer-legal a:hover { color: var(--green); }
.wb-footer {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: rgba(245,244,240,.4);
}
.wb-footer:hover { color: rgba(245,244,240,.7); }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- UTILITY ---- */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }
.divider { height: 1px; background: var(--line); margin: 36px 0; }

/* ---- STRIPE BADGES ---- */
.stripe-note {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted); margin-top: 10px;
}
.stripe-note svg { width: 16px; height: 16px; opacity: .6; }

/* =====================================================
   PATCH v10.1 — Gallery smart crop + Video fix + Mobile
   ===================================================== */

/* --- Gallery: face at top --- */
.masonry { columns: 2; column-gap: 10px; }
.m-item {
  display: block; break-inside: avoid;
  margin-bottom: 10px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  cursor: zoom-in;
}
.m-item:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }
.m-item img {
  width: 100%; display: block;
  object-fit: cover;
  object-position: center 20%; /* лица обычно в верхней трети */
  aspect-ratio: 4/5;           /* портретный формат — лица лучше */
  transition: transform .4s;
}
.m-item:hover img { transform: scale(1.05); }
/* Широкие фото — ландшафтные */
.m-item.landscape img { aspect-ratio: 16/10; object-position: center 15%; }
@media (min-width: 640px)  { .masonry { columns: 3; column-gap: 12px; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 14px; } }

/* --- Video grid fix --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video {
  position: relative;
  padding-bottom: 177.77%;  /* 9/16 для Shorts */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.video.regular { padding-bottom: 56.25%; } /* обычное 16:9 */
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* --- Events page mobile fix --- */
.event-poster {
  border-radius: 20px;
  padding: 28px 20px;
}
.event-poster h2 { font-size: clamp(1.8rem, 6vw, 4rem); }
.event-poster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 860px) {
  .event-poster { padding: 48px 40px; }
  .event-poster-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
}

.ticket-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 540px) { .ticket-cards { grid-template-columns: 1fr 1fr; } }

.ticket-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 18px;
}
.ticket-card.gold-card { border-color: rgba(201,149,42,.55); background: rgba(201,149,42,.1); }
.ticket-card .t-name { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,244,240,.6); margin-bottom: 4px; }
.ticket-card .t-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1; }
.ticket-card .t-desc { font-size: .82rem; color: rgba(245,244,240,.72); margin-bottom: 14px; line-height: 1.55; }

/* Event meta row */
.event-meta-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 16px 0; }
.event-meta-item .key { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); display: block; }
.event-meta-item .val { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; }

/* Countdown */
.countdown-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-block { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 14px; text-align: center; min-width: 60px; }
.cd-block .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; display: block; line-height: 1; }
.cd-block .lbl { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,244,240,.55); margin-top: 3px; }

/* Speaker cards on mobile */
.speaker-card { flex-direction: column; }
@media (min-width: 480px) { .speaker-card { flex-direction: row; } }
.speaker-avatar {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; background: var(--bg2);
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--muted); overflow: hidden;
}
.speaker-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }

/* Program list mobile */
.program-item { gap: 10px; }
.p-time { min-width: 68px; font-size: .78rem; }
.p-desc { font-size: .87rem; }

/* Hero media responsive */
.hero-media { aspect-ratio: 4/3; }
@media (max-width: 480px) { .hero-media { aspect-ratio: 1/1; } }

/* Mobile section padding */
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .hero { padding: 28px 0 36px; }
  h1 { font-size: clamp(1.9rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .plan-card { padding: 22px 18px; }
  .card { padding: 18px; }
}

/* Lightbox mobile */
@media (max-width: 640px) {
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-img { max-width: 98vw; border-radius: 8px; }
}

/* === Events page fix — ticket cards не обрезаются === */
.event-poster-grid {
  grid-template-columns: 1fr !important;
}
@media (min-width: 960px) {
  .event-poster-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
.ticket-cards {
  grid-template-columns: 1fr !important;
}
@media (min-width: 480px) {
  .ticket-cards {
    grid-template-columns: 1fr 1fr !important;
  }
}
/* Билеты не выходят за край */
.event-poster .ticket-card {
  min-width: 0;
  word-break: break-word;
}
/* Постер не обрезает содержимое */
.event-poster {
  overflow: visible !important;
}
.section > .container {
  overflow: visible;
}
