/* =========================================================
   DuckVerse — single-page site
   Design tokens and components derived from Main.dc.html
   ========================================================= */

:root {
  --bg: #120826;
  --bg-top: #1a0b2e;
  --bg-deep: #0d0620;
  --surface: #1f1634;
  --surface-2: #241943;
  --border: #4e3a76;
  --border-strong: #6b4fa8;
  --hairline: #3a2a5c;

  --text: #f4f0fc;
  --muted: #beb4d6;
  --soft: #e4ddf4;

  --gold: #f5c542;
  --gold-bright: #ffd866;
  --gold-ink: #2b1a00;
  --violet: #8b5cf6;
  --violet-soft: #c3a6f0;
  --violet-deep: #6d28d9;
  --pink: #ec4899;
  --pink-deep: #be185d;
  --pink-soft: #f472b6;

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 75rem;
  --gutter: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, #1a0b2e 0%, #120826 35%, #0d0620 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

ul {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

::selection {
  background: var(--violet);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--flush {
  padding-top: 0;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink-soft), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.btn svg {
  flex: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
}

.btn--gold:hover {
  background: var(--gold-bright);
}

.btn--ghost {
  border: 1.5px solid var(--violet);
  padding: calc(1rem - 1.5px) calc(1.75rem - 1.5px);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gradient {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn--gradient:hover {
  background: linear-gradient(90deg, #f25fa6, #9d6ffb);
}

.btn--sm {
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}

.btn--sm.btn--ghost {
  padding: calc(0.7rem - 1.5px) calc(1.25rem - 1.5px);
}

/* ---------- Announcement bar ---------- */

.announcement {
  background: linear-gradient(90deg, var(--pink-deep), var(--violet-deep));
  padding: 0.7rem var(--gutter);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.announcement__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.375rem 1.125rem;
}

.announcement strong {
  font-weight: 600;
}

.announcement a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement a:hover {
  color: var(--gold-bright);
}

.announcement a.is-secondary {
  font-weight: 500;
}

.announcement__divider {
  opacity: 0.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 8, 38, 0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  display: block;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.75rem;
}

.nav-link {
  padding: 0.6rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2rem 3rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero__subtitle {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero__tagline {
  margin: 1.75rem 0 0;
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero__body {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.hero__note {
  margin: 1.125rem 0 0;
  max-width: 34rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(
    closest-side,
    rgba(139, 92, 246, 0.55),
    rgba(236, 72, 153, 0.18) 60%,
    transparent 100%
  );
  filter: blur(30px);
  pointer-events: none;
}

.hero__media img {
  position: relative;
  width: 100%;
  max-width: 33.75rem;
  display: block;
}

/* ---------- Cards / features ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--violet);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.card p {
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.card a {
  color: var(--violet-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card a:hover {
  color: var(--gold);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

/* ---------- Courses ---------- */

.courses-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 2.5rem 3.5rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.12));
}

.pill {
  display: inline-block;
  padding: 0.45rem 0.875rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.courses-panel h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
}

.courses-panel p {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--soft);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.course-card {
  padding: 1.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover,
.course-card:focus-within {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.course-card__level {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--violet-soft);
}

.course-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.course-card__price {
  margin: 0.6rem 0 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.course-card p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.courses-panel .btn {
  margin-top: 1.75rem;
}

/* ---------- Production ---------- */

.production {
  position: relative;
}

.production__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem 3rem;
  align-items: end;
}

.production__intro .section-lead {
  margin-top: 0;
  max-width: 46rem;
}

.production-tabs {
  display: inline-flex;
  gap: 0.375rem;
  margin-top: 2.75rem;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.production-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.production-tab:hover {
  color: var(--gold);
}

.production-tab[aria-selected="true"] {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

.production-tab[aria-selected="true"]:hover {
  color: var(--gold-ink);
}

.production-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 2rem 2.75rem;
  margin-top: 1.75rem;
}

.production-panel[hidden] {
  display: none;
}

.production-media {
  margin: 0;
}

.production-media__title {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tier-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.tier-rows {
  display: grid;
}

.tier-row {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 0;
  border-top: 1px solid rgba(78, 58, 118, 0.5);
}

.tier-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.tier-row:last-child {
  padding-bottom: 0;
}

.grade-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tier-row__body {
  min-width: 0;
}

.tier-row h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.tier-row p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.tier-row--ads {
  align-items: center;
}

.tier-row--ads p {
  margin-top: 0;
  color: var(--soft);
}

.production__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

/* ---------- Partner program ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.partner-card__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.partner-card h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.partner-number {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.partner-copy {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.partner-list {
  margin: 1.125rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--soft);
}

.partner-list li {
  position: relative;
  padding-left: 1.1rem;
}

.partner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.partner-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.125rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(245, 197, 66, 0.5);
  border-radius: 0.75rem;
  background: rgba(245, 197, 66, 0.08);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.partner-chip svg {
  flex: none;
  margin-top: 0.1rem;
}

.partner-chip--violet {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-soft);
}

.partner-card__actions {
  margin-top: auto;
  padding-top: 1.75rem;
}

.partner-note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ---------- Download ---------- */

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  align-items: center;
  gap: 2.25rem 4rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
}

.download-panel p {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.75rem;
  padding: 0.65rem 1.4rem 0.65rem 1rem;
  border: 1px solid #6e6e82;
  border-radius: 0.75rem;
  background: #000;
  color: #fff;
  transition: border-color 0.2s ease;
}

.play-badge:hover {
  border-color: var(--gold);
}

.play-badge__icon {
  flex: none;
  display: block;
  width: 1.875rem;
  height: auto;
}

.play-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-badge small {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.play-badge strong {
  font-size: 1.375rem;
  font-weight: 700;
}

.download-panel__contact {
  margin: 1.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.download-panel__contact a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qr-card {
  display: inline-block;
  padding: 1rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.qr-card img {
  display: block;
  width: 13.75rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.qr-block {
  text-align: center;
}

.qr-caption {
  margin: 0.875rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2rem 4rem;
}

.about-grid p {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

.about-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.about-mark::before {
  content: "";
  position: absolute;
  width: min(26rem, 84%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(139, 92, 246, 0.5),
    rgba(236, 72, 153, 0.16) 65%,
    transparent 100%
  );
  filter: blur(26px);
}

.about-mark img {
  position: relative;
  display: block;
  width: clamp(11rem, 24vw, 20rem);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  background: #0b0518;
}

.footer-newsletter {
  padding: 3.5rem 0 0;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: linear-gradient(90deg, var(--violet-deep), var(--pink-deep));
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.newsletter p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1 1 13rem;
  min-width: 0;
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #1a0b2e;
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: #9d90c0;
}

.newsletter-form .btn {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

.newsletter-form__note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: #fff;
}

.footer-main {
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 2.75rem 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-blurb {
  margin: 1.125rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.375rem;
  font-size: 0.9375rem;
  color: var(--soft);
}

.contact-list__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-list__row svg {
  flex: none;
  margin-top: 0.2rem;
}

.contact-list address {
  font-style: normal;
  line-height: 1.6;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-list a:hover {
  color: var(--gold);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.375rem;
}

.chip {
  display: inline-flex;
  padding: 0.45rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-heading {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-card p {
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  margin-top: 1.25rem;
}

.contact-card__email {
  margin: 0;
  font-size: 0.9375rem;
}

.contact-card__email a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Map ---------- */

.footer-map {
  padding: 3.5rem 0 0;
}

.map-panel {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #1b1230;
}

.map-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  max-width: 20rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(18, 8, 38, 0.94);
}

.map-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.map-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
}

.map-card p {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.map-card .btn {
  margin-top: 0.875rem;
}

.map-note {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(18, 8, 38, 0.85);
  font-size: 0.75rem;
  color: var(--muted);
}

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

.footer-bottom {
  padding: 2.5rem 0 2.25rem;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.375rem;
}

.footer-bottom__links a:hover {
  color: var(--gold);
}

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 0;
  text-align: center;
}

.error-page img {
  width: 6rem;
  height: 6rem;
  margin-inline: auto;
  border-radius: 50%;
}

.error-page h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.error-page p {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}

.error-page .btn {
  margin-top: 2rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 62.0625rem) and (max-width: 70rem) {
  .header-inner {
    gap: 0.75rem 1rem;
  }

  .site-nav {
    gap: 0.375rem 0.75rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .nav-cta {
    padding-inline: 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 75rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 68rem) {
  .courses-panel {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 62.0625rem) {
  /* Keep the boxed contact card's heading level with the adjacent columns. */
  .footer-grid > div:not(.contact-card) {
    padding-top: 1.5rem;
  }
}

@media (min-width: 40.0625rem) and (max-width: 62rem) {
  .contact-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 2.5rem;
  }

  .contact-card h3 {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-card p:not(.contact-card__email) {
    grid-column: 1;
    grid-row: 2;
    margin: 0.625rem 0 0;
  }

  .contact-card__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

@media (max-width: 62rem) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__media img {
    max-width: 30rem;
  }

  .hero__body,
  .hero__note {
    max-width: none;
  }

  .courses-panel,
  .production__intro,
  .production-panel,
  .download-panel,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .production__intro .section-lead {
    margin-top: 1rem;
  }

  .download-panel .qr-block {
    justify-self: start;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 62rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #150b2a;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(78, 58, 118, 0.35);
  }

  .nav-cta {
    margin-top: 0.75rem;
  }
}

@media (max-width: 48rem) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  :root {
    --gutter: 1.125rem;
  }

  .announcement {
    font-size: 0.8125rem;
  }

  .announcement__divider {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .production-tabs {
    display: flex;
    width: 100%;
  }

  .production-tab {
    flex: 1;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .partner-card__actions .btn {
    width: 100%;
  }

  .map-panel {
    min-height: 0;
  }

  .map-panel iframe {
    position: static;
    display: block;
    height: 16rem;
  }

  .map-card {
    position: static;
    max-width: none;
    padding: 1.25rem 1.25rem 1.5rem;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
  }

  .map-note {
    display: none;
  }

  .download-panel .qr-block {
    justify-self: center;
    text-align: center;
  }

  .footer-bottom__inner {
    justify-content: flex-start;
  }
}

@media (max-width: 34rem) {
  .feature-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .course-card:hover,
  .course-card:focus-within {
    transform: none;
  }
}
