/* SEDS landing — bright theme: white and soft-blue surfaces with the logo's navy and gold as accents. */
:root {
  --navy-900: #0e1a44;
  --navy-800: #16275c;
  --navy-700: #22367a;
  --navy-600: #2f4796;
  --gold-200: #fbeec2;
  --gold-300: #f3d77e;
  --gold-400: #e2b94a;
  --gold-500: #c9a227;
  --gold-600: #a4831b;
  --gold-700: #85680f;
  --blue-50: #f4f7fd;
  --blue-100: #e9f0fc;
  --blue-200: #d4e1f8;
  --white: #ffffff;
  --text: #1a2550;
  --muted: #5a6585;
  --line: #e2e8f3;
  --green: #1a9a6c;
  --orange: #d97a1e;
  --grey: #8b90a3;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 39, 92, 0.06), 0 2px 8px rgba(22, 39, 92, 0.05);
  --shadow: 0 14px 34px -14px rgba(22, 39, 92, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(22, 39, 92, 0.3);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0; color: var(--navy-900); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--gold-400); color: var(--navy-900);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--gold {
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 10px 24px -10px rgba(201, 162, 39, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(201, 162, 39, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn--ghost { color: var(--navy-800); border-color: rgba(22, 39, 92, 0.2); background: var(--white); }
.btn--ghost:hover { color: var(--navy-900); border-color: var(--navy-700); }
.btn--navy { color: var(--white); background: var(--navy-800); }
.btn--navy:hover { transform: translateY(-2px); background: var(--navy-600); }
.btn--outline { color: var(--navy-800); border-color: var(--line); background: var(--white); }
.btn--outline:hover { border-color: var(--navy-700); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(22, 39, 92, 0.45);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); text-decoration: none; }
.brand img {
  width: 44px; height: 44px; padding: 3px; border-radius: 12px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(22, 39, 92, 0.45);
}
.brand-name { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: 0.04em; }
.brand-sub { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-600); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--navy-900); background: var(--blue-100); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--blue-50); }
.lang-switch button {
  padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  transition: color 0.2s, background-color 0.2s;
}
.lang-switch button:hover { color: var(--navy-900); }
.lang-switch button[aria-pressed="true"] { color: var(--navy-900); background: var(--gold-400); }
.header-cta { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--navy-900); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close, .site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(22, 39, 92, 0.45);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 15px 2px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--navy-800); font-size: 17px; }
  .nav a:hover { background: transparent; color: var(--gold-700); }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .brand-sub { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
  color: var(--text); background: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(226, 185, 74, 0.22), transparent 60%),
    radial-gradient(760px 540px at 0% 100%, rgba(120, 160, 235, 0.22), transparent 62%),
    linear-gradient(180deg, var(--blue-100), var(--white) 85%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(22, 39, 92, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(40px, 6.2vw, 76px); }
.hero h1 em {
  padding-right: 0.08em; font-style: italic; font-weight: 500;
  color: transparent;
  background: linear-gradient(120deg, var(--gold-500), var(--gold-600) 55%, var(--gold-700));
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: clamp(17px, 1.7vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.hero-note svg { flex: none; width: 18px; height: 18px; color: var(--gold-600); }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 520px; aspect-ratio: 1; }
.hero-art .globe { width: 100%; height: 100%; overflow: visible; }
.globe-spin { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.orbit { transform-box: view-box; transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.medal-bob { animation: float 6s ease-in-out infinite; animation-delay: -1.2s; }
.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -18px rgba(22, 39, 92, 0.35);
  color: var(--navy-900); font-size: 14px; font-weight: 700; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip-float .glyph {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-900); font-family: var(--font-display); font-size: 17px; font-weight: 700;
}
.chip-float--1 { top: 12%; left: -2%; }
.chip-float--2 { top: 46%; right: -4%; animation-delay: -2.4s; }
.chip-float--3 { bottom: 9%; left: 8%; animation-delay: -4.6s; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.fact { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.fact strong { display: block; color: var(--navy-800); font-family: var(--font-display); font-size: clamp(21px, 2.3vw, 27px); font-weight: 700; line-height: 1.2; }
.fact span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .chip-float { font-size: 13px; padding: 7px 12px 7px 7px; }
  .chip-float .glyph { width: 28px; height: 28px; font-size: 15px; }
  .facts { gap: 12px; }
  .fact { padding: 18px 16px; }
}

/* ---------- olympiads ---------- */
.olympiads { background: var(--blue-50); }
.olymp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-100); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card.is-closed .card-cover { filter: grayscale(0.8); }

.cover-art {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 5%, var(--art-glow), transparent 55%),
    linear-gradient(135deg, var(--art-a), var(--art-b));
}
.cover-art::before, .cover-art::after { content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(22, 39, 92, 0.12); }
.cover-art::before { width: 72%; top: -34%; right: -16%; }
.cover-art::after { width: 48%; bottom: -30%; left: -10%; border-color: rgba(22, 39, 92, 0.08); }
.cover-code {
  position: relative; color: transparent;
  font-family: var(--font-display); font-size: clamp(54px, 7vw, 72px); font-weight: 700; line-height: 1; letter-spacing: 0.06em;
  -webkit-text-stroke: 1.5px var(--art-ink);
}
.cover-star { position: absolute; width: 22px; height: 22px; bottom: 16%; right: 18%; color: var(--gold-500); }
.art-0 { --art-a: #eef3fd; --art-b: #cddcf6; --art-glow: rgba(226, 185, 74, 0.35); --art-ink: #22367a; }
.art-1 { --art-a: #fdf8ea; --art-b: #f1dfab; --art-glow: rgba(255, 255, 255, 0.75); --art-ink: #85680f; }
.art-2 { --art-a: #eef8f5; --art-b: #c7e6dd; --art-glow: rgba(226, 185, 74, 0.28); --art-ink: #1d5c4f; }
.art-3 { --art-a: #f3effb; --art-b: #d9cef2; --art-glow: rgba(226, 185, 74, 0.3); --art-ink: #4a3a86; }

.card-badges { position: absolute; z-index: 1; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(22, 39, 92, 0.06), 0 6px 16px -8px rgba(22, 39, 92, 0.35);
  color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.status--open { color: #0e6a48; }
.status--open::before { background: var(--green); animation: pulse 2s ease-out infinite; }
.status--soon { color: #9a4f0b; }
.status--soon::before { background: var(--orange); animation: pulse-orange 2s ease-out infinite; }
.status--upcoming { color: var(--navy-700); }
.status--upcoming::before { background: var(--gold-500); }
.status--closed { color: var(--muted); }
/* Only shown over admin-uploaded photos, so it keeps a dark glass look for legibility. */
.code-badge {
  padding: 6px 10px; border: 1px solid rgba(246, 220, 139, 0.35); border-radius: 10px;
  background: rgba(14, 26, 68, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--gold-200); font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
}

.card-body { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 22px 22px 24px; }
.card-title { font-size: 23px; line-height: 1.22; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-direction: column; padding: 2px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-50); }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.meta + .meta { border-top: 1px dashed var(--line); }
.meta-label { display: flex; flex: none; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.meta-label svg { flex: none; width: 16px; height: 16px; color: var(--gold-600); }
.meta-value { color: var(--text); font-size: 14.5px; font-weight: 700; line-height: 1.35; text-align: right; }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.subject { padding: 6px 12px; border-radius: 999px; background: var(--blue-100); color: var(--navy-800); font-size: 13px; font-weight: 600; }
.subject--more { border: 1px dashed #c3cde3; background: transparent; color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price-label { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.price-value { color: var(--navy-900); font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.price-value small { margin-left: 4px; color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 700; }

.card.skeleton { pointer-events: none; }
.skeleton .card-cover, .sk-line {
  background: linear-gradient(90deg, #e8eef8 0%, #f5f8fd 50%, #e8eef8 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.sk-line { height: 14px; border-radius: 8px; }
.sk-line--title { height: 26px; width: 78%; }
.sk-line--short { width: 45%; }
html:not(.js) .skeleton { display: none; }

.notice {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(32px, 5vw, 56px) 24px; border: 1px dashed #cdd6e6; border-radius: var(--radius);
  background: var(--white); text-align: center;
}
.notice p { max-width: 540px; color: var(--muted); font-size: 17px; }
.notice-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- how it works ---------- */
.how { background: var(--white); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; opacity: 0.7;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-inline: auto;
  border-radius: 50%; background: var(--navy-800); color: var(--gold-300);
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  box-shadow: 0 0 0 8px var(--white), 0 12px 24px -10px rgba(22, 39, 92, 0.45);
}
.step h3 { margin-top: 22px; font-size: 21px; }
.step p { max-width: 280px; margin: 10px auto 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 4px; }
  .step p { max-width: none; margin: 6px 0 0; }
}

/* ---------- why SEDS ---------- */
.about { background: var(--blue-50); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-100); color: var(--navy-700); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-top: 18px; font-size: 20px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about .section-head { position: static; }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- call to action ---------- */
.cta { padding-block: clamp(64px, 9vw, 112px); background: var(--white); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  padding: clamp(32px, 6vw, 72px); border: 1px solid #d3dff5; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #eef4fd 0%, #d9e5fa 100%);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 320px at 92% 0%, rgba(226, 185, 74, 0.32), transparent 60%),
    radial-gradient(520px 320px at 0% 100%, rgba(255, 255, 255, 0.7), transparent 60%);
}
.cta-card::after {
  content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; right: -120px; bottom: -220px;
  border: 1px solid rgba(22, 39, 92, 0.1); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(22, 39, 92, 0.025), 0 0 0 120px rgba(22, 39, 92, 0.02);
}
.cta-card h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-card p { max-width: 560px; margin-top: 12px; color: var(--muted); font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cta-actions .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq { background: var(--blue-50); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: rgba(201, 162, 39, 0.5); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  color: var(--navy-900); font-size: 17px; font-weight: 700; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); transition: transform 0.3s ease; }
.faq-icon svg { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; color: var(--muted); }
.faq-item p a { color: var(--navy-700); font-weight: 700; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  padding-top: clamp(56px, 8vw, 88px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--white); color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand p { max-width: 300px; margin-top: 16px; }
.site-footer h3 { margin-bottom: 16px; color: var(--gold-600); font-family: var(--font-body); font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-list a { color: var(--navy-800); text-decoration: none; transition: color 0.2s; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--gold-700); }
.footer-req { font-size: 14px; line-height: 1.75; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy-800); transition: border-color 0.2s, color 0.2s; }
.social:hover { border-color: var(--gold-500); color: var(--gold-700); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateY(120%); transition: transform 0.35s ease; pointer-events: none;
  }
  .mobile-cta.is-visible { transform: none; pointer-events: auto; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 16px 36px -12px rgba(22, 39, 92, 0.45); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 154, 108, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(26, 154, 108, 0); } }
@keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(217, 122, 30, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(217, 122, 30, 0); } }

@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; }
  .js .reveal { opacity: 1; transform: none; }
}
