/* =====================================================================
   DZEIA — landing page
   Light / dark theme driven by [data-theme] on <html>
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --accent: #e8722a;
  --accent-strong: #d4611c;
  --accent-soft: rgba(232, 114, 42, 0.12);

  --container: 1200px;
  --radius: 8px;
  --radius-sm: 5px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Light (default) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f4f3f1;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --text: #1d1c1a;
  --text-soft: #4f4d49;
  --text-muted: #84817b;
  --border: #e6e3de;
  --border-strong: #d8d4cd;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 14px 38px -22px rgba(40, 30, 20, 0.4);
  --hero-tint: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.05) 100%);
  --hero-fallback: #d8cfc6;
  --contact-img-opacity: 0.14;
  --on-accent: #ffffff;
}

/* Dark */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181715;
  --bg-alt: #121110;
  --surface: #211f1d;
  --surface-2: #1d1b19;
  --text: #f4f1ec;
  --text-soft: #c5c1ba;
  --text-muted: #8f8a82;
  --border: #322f2b;
  --border-strong: #403c37;
  --header-bg: rgba(24, 23, 21, 0.82);
  --shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.8);
  --hero-tint: linear-gradient(90deg, rgba(0, 0, 0, 0) 18%, rgba(15, 12, 10, 0.55) 100%);
  --hero-fallback: #1c1815;
  --contact-img-opacity: 0.16;
  --on-accent: #ffffff;
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease),
    color 0.28s var(--ease), fill 0.28s var(--ease), stroke 0.28s var(--ease);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ----------------------------- Logo ----------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.5px;
}
.logo-img { display: inline-block; height: 40px; width: auto; }
.logo-text { display: none; align-items: center; }
.logo--sm .logo-img { height: 34px; }
/* fallback to the text mark if the image is missing */
.logo--noimg .logo-img { display: none; }
.logo--noimg .logo-text { display: inline-flex; }
.logo__d { color: var(--accent); }
.logo__z { color: var(--text); }
.logo__bar {
  width: 3px;
  height: 0.92em;
  margin: 0 3px;
  background: var(--text);
  transform: skewX(-9deg);
}
.logo--sm { font-size: 26px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-2px);
}

.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--upper { text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 22px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .icon { width: 20px; height: 20px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ----------------------------- Sections base --------------------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.title-dash {
  display: inline-block;
  width: 54px;
  height: 2px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: min(78vh, 660px);
}
.hero-content { max-width: 590px; padding: 70px 0; }

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 53%;
  z-index: 1;
  background-color: var(--hero-fallback);
  background-image: var(--hero-tint),
    url("assets/hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(260px, 36vw, 500px);
  user-select: none;
  pointer-events: none;
}
.hero-watermark img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 38px;
}
.hero-title .accent { color: var(--accent); display: inline; }
.hero-subtitle {
  margin: 26px 0 34px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--text-soft);
}

/* ----------------------------- About ----------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-intro .section-title { margin-bottom: 22px; }
.about-text { color: var(--text-soft); font-size: 16px; max-width: 30ch; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 36px;
}
.feature__icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.feature__title { font-size: 17px; font-weight: 600; margin-bottom: 7px; }
.feature__text { color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }

/* ----------------------------- Events ----------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #221c17;
  background-image: linear-gradient(180deg, rgba(18, 14, 11, 0.15) 0%, rgba(18, 14, 11, 0.55) 48%, rgba(15, 11, 8, 0.92) 100%),
    var(--img);
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card__label {
  display: inline-block;
  align-self: flex-start;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.event-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}
.meta-row .icon { width: 18px; height: 18px; color: var(--accent); }
.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.event-card__link .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.event-card__link:hover .icon { transform: translateX(4px); }

/* ----------------------------- Speakers ----------------------------- */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.speakers-grid--3 { grid-template-columns: repeat(3, 1fr); }
.speaker {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.speaker:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.speaker__photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(150deg, #3a342f, #1f1b18);
  display: grid;
  place-items: center;
}
.speaker__ph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.speaker__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.02);
}
.speaker__info { padding: 18px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.speaker__name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.speaker__role { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.speaker__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.speaker__more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.speaker:hover .speaker__more .icon { transform: translateX(4px); }

/* ----------------------------- Contact ----------------------------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  opacity: var(--contact-img-opacity);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.contact-title { line-height: 1.14; margin-bottom: 34px; }
.contact-title .title-dash { display: none; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; }
.contact-list__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-list__icon .icon { width: 21px; height: 21px; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field--full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-note { font-size: 13px; color: var(--text-muted); max-width: 34ch; line-height: 1.45; }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-copy { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 15px; font-weight: 500; color: var(--text-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social .icon { width: 20px; height: 20px; }

/* Footer payment + documents column */
.footer-col { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.footer-col__title { font-weight: 700; font-size: 15px; color: var(--text); }
.footer-pay-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.footer-docs { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.footer-docs a { font-size: 14px; color: var(--text-soft); }
.footer-docs a:hover { color: var(--accent); }

/* ----------------------------- Reveal animation ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- About benefits -------------------- */
.about-intro .about-text + .about-text { margin-top: 14px; }
.benefits-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.benefit:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.benefit__icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.benefit__icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.benefit__text { font-size: 17px; font-weight: 600; line-height: 1.35; }

/* ----------------------------- Blog ------------------------------ */
.blog-subtitle { margin-top: 12px; color: var(--text-muted); font-size: 16px; }
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 70px 20px;
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
}
.blog-empty .icon { width: 46px; height: 46px; color: var(--accent); stroke-width: 1.4; }
.blog-empty p { font-size: 16px; line-height: 1.6; }

/* ----------------------------- Partners -------------------------- */
.partners-lead { color: var(--text-soft); font-size: 17px; margin: -22px 0 34px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 28px;
  background: #ffffff; /* white logo-chip — works for dark logos on both themes */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.partner:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.partner img { max-height: 60px; max-width: 82%; object-fit: contain; }
/* white-on-transparent logos (e.g. Fonmix) → invert to dark so they show on the white chip */
.partner--invert img { filter: invert(1); }
.partner__name { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #1d1c1a; }

/* ----------------------------- Consent / legal ------------------- */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  margin: 2px 0 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.consent__box .icon { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease); }
.consent input:checked + .consent__box { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .consent__box .icon { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 3px var(--accent-soft); }
.consent__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal-links a { font-size: 13.5px; color: var(--text-muted); }
.legal-links a:hover { color: var(--accent); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--accent); border-color: var(--accent); transform: none; }

/* ----------------------------- Footer address -------------------- */
.footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-address { font-style: normal; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-text { max-width: none; }
  .features { gap: 30px 30px; }
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-media { width: 62%; opacity: 0.9; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 14px clamp(20px, 4vw, 40px) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { width: 100%; padding: 11px 0; font-size: 16px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }

  .events-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .hero-media {
    width: 100%;
    opacity: 0.28;
    -webkit-mask-image: none;
    mask-image: none;
  }
  [data-theme="dark"] .hero-media { opacity: 0.42; }
  .hero-content { padding: 56px 0; }
  .hero-watermark { left: auto; right: -6%; opacity: 0.7; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .speakers-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
}

/* Body scroll lock when mobile nav is open */
body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   SUB-PAGES — event details, expert bios, legal documents
   ===================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.back-link .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.back-link:hover { color: var(--accent); }
.back-link:hover .icon { transform: translateX(-4px); }

.page-hero {
  position: relative;
  padding: clamp(34px, 4.5vw, 58px) 0 clamp(26px, 3vw, 38px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero--media { color: #fff; border-bottom: none; }
.page-hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #201a16;
  background-image: linear-gradient(180deg, rgba(15, 11, 8, 0.55), rgba(15, 11, 8, 0.85)), var(--img, none);
  background-size: cover;
  background-position: center;
}
.page-hero--media > .container { position: relative; z-index: 1; }
.page-hero__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  /* Ширины не ограничиваем: длинное название идёт в одну строку,
     а не дробится на три. Переносы — только по краю блока. */
  text-wrap: balance;
}
.page-hero--media .page-title { color: #fff; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 26px;
}
.page-meta .meta-row { font-size: 15.5px; color: inherit; opacity: 0.95; }
.page-meta .meta-row .icon { color: var(--accent); }

.page-section { padding: clamp(44px, 6vw, 76px) 0; }
/* Сразу под шапкой контент подтянут вверх — без лишней пустоты */
.page-hero + .page-section { padding-top: clamp(24px, 3vw, 38px); }
.page-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--text); max-width: 60ch; }
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 28px;
}

.prose { max-width: 64ch; }
.prose p { color: var(--text-soft); font-size: 17px; line-height: 1.72; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Event topics */
/* Блоки тем занимают всю ширину колонки — длинные формулировки
   укладываются в одну-две строки, а не дробятся на три. */
.topics { display: grid; gap: 18px; }
.topic {
  display: flex;
  gap: 20px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.topic__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  flex: none;
}
/* Блок без номера — та же оранжевая полоса слева, просто без «01» */
.topic--plain { gap: 0; }
.topic__title { font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; text-wrap: pretty; }
.topic__author { font-size: 14.5px; color: var(--text-muted); }

/* Expert bio */
.bio-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.bio-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #3a342f, #1f1b18);
  display: grid;
  place-items: center;
  position: sticky;
  top: 100px;
}
.bio-photo .speaker__ph { font-size: 64px; }
.bio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bio-role { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.bio-person { margin-top: 40px; }
.bio-person:first-child { margin-top: 0; }
.bio-person__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 16px;
}

/* Legal pages */
.legal-body { max-width: 760px; }
.legal-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 36px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.legal-body ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.legal-body li { margin-bottom: 8px; }
.legal-note {
  margin-top: 14px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { position: relative; top: 0; max-width: 320px; }
  .topic { flex-direction: column; gap: 8px; }
}

/* ---------------- Blog cards (статьи из админки) ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card__cover {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-alt);
  background-image: linear-gradient(150deg, #3a342f, #1f1b18);
  background-size: cover;
  background-position: center;
}
.blog-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__date { font-size: 13px; color: var(--text-muted); }
.blog-card__title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.blog-card__excerpt { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.blog-card__more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card__more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.blog-card:hover .blog-card__more .icon { transform: translateX(4px); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* Текст статьи блога и страницы мероприятия */
.prose--article { max-width: 72ch; }
.prose--article .article-list { list-style: disc; padding-left: 24px; margin: 0 0 18px; }
.prose--article .article-list li { color: var(--text-soft); font-size: 17px; line-height: 1.7; margin-bottom: 8px; }

/* Блоки расширенной разметки (dz_rich) */
.rich-callout {
  margin: 22px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
}
/* Внутри блока работают абзацы и списки */
.rich-callout p { color: inherit; font-size: inherit; margin: 0 0 8px; }
.rich-callout p:last-child { margin-bottom: 0; }
.callout-list { list-style: disc; padding-left: 20px; margin: 6px 0 8px; }
.callout-list:last-child { margin-bottom: 0; }
.callout-list li { margin-bottom: 5px; }
.callout-list li:last-child { margin-bottom: 0; }

/* Заголовок внутри текста (раньше отступы задавались инлайном) */
.rich-h2 { margin: 34px 0 16px; }
.rich-h2:first-child { margin-top: 0; }
/* Оформление внутри текста */
.prose strong { color: var(--text); font-weight: 700; }
.hl-accent { color: var(--accent); }
.hl-muted { color: var(--text-muted); }
.rich-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
  color: var(--text);
  margin: 28px 0 10px;
}
.rich-h3:first-child { margin-top: 0; }

.rich-hr { border: none; border-top: 1px solid var(--border-strong); margin: 30px 0; }
/* Картинка в тексте: ширина и выравнивание задаются в админке
   (![подпись](адрес){w=60,a=left}); ширина считается от ширины блока. */
.rich-figure { margin: 26px 0; max-width: 100%; }
.rich-figure img { width: 100%; border-radius: var(--radius); display: block; }
.rich-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); }
.rich-figure--left { margin-right: auto; margin-left: 0; }
.rich-figure--center { margin-left: auto; margin-right: auto; }
.rich-figure--right { margin-left: auto; margin-right: 0; }
.rich-figure--center figcaption { text-align: center; }
.rich-figure--right figcaption { text-align: right; }
/* На телефоне любая картинка — во всю ширину */
@media (max-width: 700px) { .rich-figure { width: 100% !important; } }
.rich-cta { margin: 26px 0; }

/* На широком экране текст остаётся читаемой ширины, а картинки могут
   занимать до всей ширины блока — конкретный процент задаётся в админке. */
@media (min-width: 900px) {
  .prose--article { max-width: none; }
  .prose--article > *:not(.rich-figure) { max-width: 72ch; }
  .prose--article > .rich-figure { margin: 34px 0; }
}

/* ---------------- Поп-ап анонса мероприятия ---------------- */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 12, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.promo-overlay.is-open { opacity: 1; visibility: visible; }
.promo-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(86vh, 640px);
  overflow-y: auto;
  padding: 34px 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(14px);
  transition: transform 0.3s var(--ease);
}
.promo-overlay.is-open .promo-card { transform: translateY(0); }
/* Постер-режим: картинка = весь поп-ап, поверх только кнопка и крестик */
.promo-card--poster {
  --ar: 1.5; /* заменяется на реальные пропорции картинки из JS */
  padding: 0;
  aspect-ratio: var(--ar);
  width: min(940px, 94vw, calc(84vh * var(--ar)));
  max-width: none;
  max-height: none;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.promo-poster-btn {
  position: absolute;
  left: 72.3%;
  top: 90%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.promo-poster-btn:hover { transform: translate(-50%, calc(-50% - 2px)); }
.promo-card--poster .promo-close {
  top: 7%;
  right: auto;
  left: 96.2%;
  transform: translate(-50%, -50%);
}
@media (max-width: 640px) {
  .promo-poster-btn { padding: 9px 14px; font-size: 13px; }
}
.promo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}
.promo-close:hover { border-color: var(--accent); color: var(--accent); }
.promo-close .icon { width: 18px; height: 18px; }
.promo-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.promo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.2;
  margin-bottom: 12px;
  padding-right: 34px;
}
.promo-meta { font-size: 14.5px; font-weight: 600; color: var(--text-soft); margin-bottom: 14px; }
.promo-text { font-size: 15.5px; line-height: 1.65; color: var(--text-soft); margin-bottom: 22px; }
.promo-actions { display: flex; gap: 12px; flex-wrap: wrap; }
body.promo-open { overflow: hidden; }
@media (max-width: 520px) {
  .promo-card { padding: 28px 22px 26px; }
  .promo-media { width: calc(100% + 44px); margin: -28px -22px 18px; height: 170px; }
}
