/* ==========================================================================
   Wupper Festival — современная светло-голубая тема
   ========================================================================== */

:root {
  --blue-900: #12314a;
  --blue-800: #163a56;
  --blue-700: #1c4f74;
  --blue-600: #206a96;
  --blue-500: #2b8ec2;
  --blue-400: #4fa8d6;
  --blue-300: #8fcaea;
  --blue-200: #c3e4f5;
  --blue-100: #e3f2fb;
  --blue-50:  #f3faff;

  --ink: #12314a;
  --ink-muted: #4c6b81;
  --border: #cfe6f5;
  --card-bg: #ffffff;
  --page-bg: linear-gradient(180deg, #eaf6ff 0%, #f7fcff 320px, #ffffff 700px);

  --shadow-sm: 0 2px 8px rgba(18, 79, 116, 0.08);
  --shadow-md: 0 8px 28px rgba(18, 79, 116, 0.12);
  --shadow-lg: 0 16px 48px rgba(18, 79, 116, 0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1080px;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-800); text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: var(--blue-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-700);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { margin-bottom: 5px; }
.nav-toggle::after { margin-top: 5px; }

nav.main-nav {
  display: flex;
}

nav.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav.main-nav > ul > li {
  position: relative;
}

nav.main-nav a,
nav.main-nav .nav-label {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--blue-800);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  cursor: pointer;
}

nav.main-nav a:hover,
nav.main-nav .nav-label:hover {
  background: var(--blue-100);
  text-decoration: none;
}

nav.main-nav a.active {
  background: var(--blue-600);
  color: #fff;
}

nav.main-nav .has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 50;
}

@media (min-width: 901px) {
  nav.main-nav .has-dropdown:hover > .dropdown,
  nav.main-nav .has-dropdown:focus-within > .dropdown {
    display: block;
  }
}

nav.main-nav .dropdown li { list-style: none; }
nav.main-nav .dropdown a {
  padding: 8px 12px;
  font-weight: 500;
  white-space: normal;
}

.archive-dropdown .dropdown {
  columns: 1;
  min-width: 260px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  nav.main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: #ffffff;
    padding: 12px 20px 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  nav.main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav.main-nav > ul {
    flex-direction: column;
    width: 100%;
  }

  nav.main-nav .has-dropdown > .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    margin-left: 12px;
    padding: 4px 0;
  }

  nav.main-nav .has-dropdown.open > .dropdown {
    display: block;
  }

  .archive-dropdown .dropdown {
    columns: 1;
    min-width: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-banner {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  color: var(--blue-900);
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--blue-700);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: #fff;
  color: var(--blue-700);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--blue-100);
  text-decoration: none;
  border-color: var(--blue-300);
}

/* ---------- Page layout ---------- */

main {
  padding-bottom: 64px;
}

.page-head {
  padding: 44px 0 8px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--blue-900);
  margin: 0 0 8px;
}

.page-head p.subtitle {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin: 24px 0;
}

.prose h2 {
  color: var(--blue-800);
  font-size: 24px;
  margin: 28px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  color: var(--blue-700);
  font-size: 19px;
  margin: 22px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--blue-900); }
.prose a { text-decoration: underline; }

.callout {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--blue-800);
  font-weight: 600;
  margin: 20px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.info-card h3 {
  margin-top: 0;
  color: var(--blue-700);
}

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------- Schedule ---------- */

.schedule-day {
  margin: 28px 0;
}
.schedule-day h2 {
  color: var(--blue-800);
  border-bottom: 2px solid var(--blue-200);
  padding-bottom: 8px;
}
.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-time {
  font-weight: 700;
  color: var(--blue-600);
  white-space: nowrap;
}
.schedule-note {
  color: var(--ink-muted);
  font-style: italic;
  font-size: 15px;
}

/* ---------- Guests ---------- */

.guest-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 28px;
}
.guest-card h2 {
  color: var(--blue-800);
  margin-top: 0;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 16px;
  background: var(--blue-900);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Archive ---------- */

.archive-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 8px;
}
.archive-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-100);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-700);
}
.archive-nav a.active {
  background: var(--blue-600);
  color: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.media-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.media-item .play-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.media-item .label {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.media-item.disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.media-item.disabled .play-icon {
  background: var(--blue-200);
  color: var(--blue-700);
}

.scan-image {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-900);
  color: #dcedf9;
  padding: 40px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 15px;
}
.footer-col p, .footer-col li { color: #b8d6ea; font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-bottom {
  text-align: center;
  color: #7fa4c0;
  font-size: 13px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--blue-600);
  margin-top: 20px;
}
