/* ===========================================================
   Zjazd Absolwentów · 25 lat WT UMK
   Paleta z logo 25-lecia (granat) + UMK (żółć / zieleń)
   =========================================================== */
:root {
  --navy-900: #0c2b6e;
  --navy-800: #11357f;
  --navy-700: #1a4391;
  --navy-600: #2a55a8;
  --navy-500: #3d6cbf;
  --navy-400: oklch(0.62 0.13 258);
  --navy-100: #dbe4f5;
  --navy-50:  #ecf0fa;

  --silver-900: #2a3140;
  --silver-700: #5b6577;
  --silver-500: #8c93a3;
  --silver-300: #c3c7d1;
  --silver-200: #d8dbe2;
  --silver-100: #e8eaef;

  --cream:    #f7f4ec;
  --cream-2:  #ede7d8;
  --paper:    #fbfaf6;
  --ink:      #131521;

  --umk-yellow: #f5c518;
  --umk-green:  #4a9a3d;

  --accent: var(--navy-700);
  --accent-soft: var(--navy-100);

  --font-display: "Spectral", "Source Serif Pro", Georgia, serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(12, 43, 110, 0.06);
  --shadow: 0 8px 24px -12px rgba(12, 43, 110, 0.18), 0 1px 2px rgba(12, 43, 110, 0.06);
  --shadow-lg: 0 24px 48px -20px rgba(12, 43, 110, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.sans h1, .sans h2, .sans h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--silver-700);
  font-weight: 500;
}

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(12, 43, 110, 0.08);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad-x);
  max-width: var(--maxw); margin: 0 auto;
}
.nav-logos { display: flex; align-items: center; gap: 18px; }
.nav-logos img.umk { height: 42px; }
.nav-logos img.logo-25 { height: 44px; display: block; }
.nav-logos .divider { width: 1px; height: 36px; background: var(--silver-300); }
.nav-logos .nav-title { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--navy-900); line-height: 1.1; }
.nav-logos .nav-title small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-700); margin-top: 2px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--silver-700); transition: color .15s; }
.nav-links a:hover { color: var(--navy-800); }
.nav-cta {
  background: var(--navy-800); color: white;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  border: 0;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--navy-900); transform: translateY(-1px); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-logos .nav-title { display: none; }
}

/* ============ HERO (compact, title-first) ============ */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(26, 67, 145, 0.06), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(245, 197, 24, 0.04), transparent 50%);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  display: flex; flex-direction: column; gap: 36px;
  align-items: center;
  text-align: center;
  padding: 24px 0 8px;
}

body h1.hero-title {
  font-family: "Jost", var(--font-body);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0;
  text-wrap: balance;
  text-transform: none;
}
.hero-title em {
  font-style: normal;
  font-weight: 400;
}
.hero-title-date {
  display: block;
  margin-top: 26px;
  font-family: "Jost", var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.hero-bar {
  display: flex; align-items: stretch; gap: 0;
  background: white;
  border: 1px solid var(--silver-200);
  border-radius: 14px;
  padding: 14px 4px;
  box-shadow: var(--shadow-sm);
  width: 100%; max-width: 820px;
}
.hero-bar-item {
  flex: 1; padding: 6px 22px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
  align-items: center;
  text-align: center;
}
.hero-bar-k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver-500);
}
.hero-bar-v {
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--navy-900);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.hero-bar-sep { width: 1px; background: var(--silver-200); margin: 4px 0; }

.hero-actions { justify-content: center; }

@media (max-width: 760px) {
  .hero-bar { flex-direction: column; padding: 6px; }
  .hero-bar-item { padding: 12px 14px; }
  .hero-bar-sep { width: auto; height: 1px; margin: 0 14px; }
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 28px; }
.hero-meta { display: flex; align-items: center; gap: 14px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--umk-yellow); box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18); }
.hero h1 {
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}
.hero h1 .it { font-style: italic; font-weight: 300; color: var(--navy-700); }
.hero h1 .acc {
  display: inline-block;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  font-size: 19px; line-height: 1.5; color: var(--silver-900);
  max-width: 52ch;
}
.hero-key {
  display: grid; grid-template-columns: auto auto; gap: 24px 36px;
  padding: 22px 0;
  border-top: 1px solid var(--silver-200);
  border-bottom: 1px solid var(--silver-200);
}
.hero-key dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-700); margin-bottom: 4px; }
.hero-key dd { margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--navy-900); font-weight: 500; }
.hero-key dd small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--silver-700); font-weight: 400; margin-top: 2px; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary {
  background: var(--navy-800); color: #fff;
  padding: 16px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  border: 0;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--navy-800);
  padding: 16px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--silver-300);
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-900); }

/* Hero right — countdown + medallion */
.hero-right {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 18px;
}
.medallion {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 30% 25%, #2c5aa8 0%, #11357f 55%, #07235f 100%);
  border-radius: 28px;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px -30px rgba(12, 43, 110, 0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
}
.medallion::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.medallion::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 22px;
  pointer-events: none;
}
.medallion img { position: relative; width: 78%; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35)); }
.medallion-corner {
  position: absolute; top: 22px; left: 22px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.medallion-corner.br { top: auto; left: auto; bottom: 22px; right: 22px; text-align: right; }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: white; border-radius: 14px;
  padding: 18px 8px;
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-sm);
}
.cd-cell { text-align: center; position: relative; }
.cd-cell + .cd-cell::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--silver-200);
}
.cd-cell .num { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--navy-900); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-cell .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-700); margin-top: 6px; }

@media (max-width: 920px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .medallion { max-width: 420px; margin: 0 auto; }
}

/* ============ Section header ============ */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-head {
  display: grid; grid-template-columns: minmax(180px, 0.7fr) 2fr;
  gap: 48px; margin-bottom: 56px;
  align-items: end;
}
.section-head .num { font-family: var(--font-mono); font-size: 12px; color: var(--silver-500); letter-spacing: 0.18em; }
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.section-head .h-sub {
  font-size: 17px; color: var(--silver-900); max-width: 56ch; margin-top: 18px;
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* ============ About / stats ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.about-body p { font-size: 17px; color: var(--silver-900); margin: 0 0 18px; max-width: 60ch; }
.about-body .lead { font-family: var(--font-display); font-size: 24px; color: var(--navy-900); line-height: 1.35; font-weight: 400; margin-bottom: 28px; }
.about-body .lead em { font-style: italic; color: var(--navy-700); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--silver-200); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--silver-200); }
.stat { background: white; padding: 28px 24px; }
.stat .v { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--navy-900); font-weight: 400; }
.stat .v sup { font-size: 22px; vertical-align: super; color: var(--navy-600); font-weight: 400; margin-left: 2px; }
.stat .k { font-size: 13.5px; color: var(--silver-700); margin-top: 10px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============ Program / timeline ============ */
.section.dark {
  background: var(--navy-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.section.dark::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(61, 108, 191, 0.35), transparent 50%),
    radial-gradient(ellipse at 0% 90%, rgba(245, 197, 24, 0.05), transparent 40%);
  pointer-events: none;
}
.section.dark .section-head .num { color: rgba(255,255,255,0.45); }
.section.dark .section-head h2 { color: white; }
.section.dark .section-head .h-sub { color: rgba(255,255,255,0.7); }

.timeline { position: relative; }
.tl-rail {
  position: absolute; left: 140px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25) 8%, rgba(255,255,255,0.25) 92%, transparent);
}
.tl-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 48px; padding: 28px 0;
  position: relative;
}
.tl-row + .tl-row { border-top: 1px dashed rgba(255,255,255,0.12); }
.tl-time { font-family: var(--font-display); font-size: 28px; color: white; font-weight: 400; padding-top: 2px; }
.tl-time small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 4px; }
.tl-dot {
  position: absolute; left: 134px; top: 38px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--umk-yellow);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.12);
}
.tl-row.major .tl-dot { background: var(--umk-yellow); }
.tl-body h3 { font-family: var(--font-display); font-size: 26px; color: white; font-weight: 500; }
.tl-body .where { font-size: 13.5px; color: rgba(255,255,255,0.55); margin-top: 6px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.tl-body p { color: rgba(255,255,255,0.78); margin: 12px 0 0; max-width: 62ch; font-size: 15.5px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl-tag { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 720px) {
  .tl-rail { left: 8px; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .tl-dot { left: 2px; top: 34px; }
  .tl-time { font-size: 18px; }
}

/* ============ Location ============ */
.loc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; }
.loc-card {
  background: white; border: 1px solid var(--silver-200); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; gap: 22px;
}
.loc-card h3 { font-family: var(--font-display); font-size: 32px; color: var(--navy-900); }
.loc-addr { font-size: 17px; color: var(--silver-900); line-height: 1.5; }
.loc-addr strong { color: var(--navy-900); font-weight: 500; }
.loc-list { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.loc-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 14.5px; color: var(--silver-900); align-items: start; padding: 12px 0; border-top: 1px solid var(--silver-200); }
.loc-item:first-child { border-top: 0; }
.loc-item .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-50); display: grid; place-items: center; color: var(--navy-800); }
.loc-item strong { display: block; color: var(--navy-900); font-weight: 500; margin-bottom: 2px; }

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  background: linear-gradient(135deg, #e3e7ed, #f0eee4);
  min-height: 460px;
}
.map-svg { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-pin-marker {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  background: var(--navy-800); transform: rotate(-45deg);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -6px rgba(12, 43, 110, 0.5);
}
.map-pin-marker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--umk-yellow); transform: rotate(45deg); }
.map-pin-label {
  background: white; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--silver-200);
}
.map-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-800); border: 1px solid var(--silver-200);
}
.map-link {
  position: absolute; bottom: 16px; right: 16px;
  background: white; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--navy-800);
  border: 1px solid var(--silver-200); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s;
}
.map-link:hover { transform: translateY(-1px); }

@media (max-width: 920px) { .loc-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============ Form ============ */
.section.form-section { background: var(--paper); border-top: 1px solid var(--silver-200); }
.form-wrap { max-width: 880px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 36px; }
.step {
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  border-radius: 12px;
  border: 1px solid var(--silver-200);
  background: white;
  transition: all .2s;
  position: relative;
}
.step.active { border-color: var(--navy-700); background: var(--navy-50); }
.step.done { border-color: var(--navy-700); background: white; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  background: var(--silver-100); color: var(--silver-700);
  flex-shrink: 0;
}
.step.active .step-num { background: var(--navy-800); color: white; }
.step.done .step-num { background: var(--navy-800); color: white; }
.step-label { font-size: 13.5px; font-weight: 500; color: var(--silver-900); }
.step.active .step-label { color: var(--navy-900); }
.step .step-sub { font-size: 11px; color: var(--silver-500); margin-top: 2px; }

.form-card {
  background: white; border: 1px solid var(--silver-200); border-radius: var(--radius-lg);
  padding: 44px 48px; box-shadow: var(--shadow-sm);
}
.form-card h3 { font-family: var(--font-display); font-size: 30px; color: var(--navy-900); margin-bottom: 6px; }
.form-card .step-hint { font-size: 14.5px; color: var(--silver-700); margin-bottom: 32px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; } }
.label { font-size: 13px; font-weight: 500; color: var(--navy-900); }
.label .req { color: #c5392f; margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-sm);
  background: white;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26, 67, 145, 0.12);
}
.textarea { min-height: 96px; resize: vertical; }
.help { font-size: 12px; color: var(--silver-500); }
.error { font-size: 12.5px; color: #c5392f; margin-top: 2px; }
.input.has-error, .select.has-error { border-color: #c5392f; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.checkbox:hover { background: var(--cream); }
.checkbox.checked { border-color: var(--navy-700); background: var(--navy-50); }
.checkbox input { margin: 3px 0 0; accent-color: var(--navy-800); }
.checkbox .c-title { font-size: 14.5px; font-weight: 500; color: var(--navy-900); }
.checkbox .c-sub { font-size: 13px; color: var(--silver-700); margin-top: 2px; }
.checkbox .c-meta { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--silver-500); text-transform: uppercase; letter-spacing: 0.08em; }

.radio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.radio {
  padding: 14px 16px; border: 1px solid var(--silver-200); border-radius: var(--radius);
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  transition: all .15s;
  background: white;
}
.radio.checked { border-color: var(--navy-700); background: var(--navy-50); }
.radio .r-t { font-size: 14px; font-weight: 500; color: var(--navy-900); }
.radio .r-s { font-size: 12.5px; color: var(--silver-700); }

.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.form-nav.single { justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--silver-200); }
.form-nav .left { display: flex; gap: 10px; }
.form-divider {
  height: 1px;
  background: var(--silver-200);
  margin: 36px -48px;
}
@media (max-width: 640px) { .form-divider { margin: 28px -22px; } }
.btn-secondary {
  background: white; color: var(--navy-800);
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--silver-300);
  transition: all .15s;
}
.btn-secondary:hover:not(:disabled) { border-color: var(--navy-700); color: var(--navy-900); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.summary-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--silver-200);
}
.summary-row:first-of-type { border-top: 0; }
.summary-row .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-700); padding-top: 3px; }
.summary-row .v { font-size: 14.5px; color: var(--navy-900); }
.summary-row .v ul { margin: 0; padding-left: 18px; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; margin-top: 8px;
  border-top: 2px solid var(--navy-900);
}
.summary-total .k { font-size: 13px; color: var(--silver-700); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.summary-total .v { font-family: var(--font-display); font-size: 32px; color: var(--navy-900); font-weight: 500; }

.success {
  text-align: center; padding: 60px 24px;
}
.success-mark {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--navy-50);
  border: 2px solid var(--navy-800);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  color: var(--navy-800);
}
.success h3 { font-family: var(--font-display); font-size: 42px; color: var(--navy-900); margin-bottom: 12px; }
.success p { font-size: 16px; color: var(--silver-900); max-width: 48ch; margin: 0 auto 12px; }
.success .code {
  display: inline-block; margin-top: 22px;
  font-family: var(--font-mono); font-size: 14px;
  background: var(--cream); border: 1px dashed var(--silver-300); padding: 10px 18px;
  border-radius: 999px; letter-spacing: 0.1em; color: var(--navy-900);
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--silver-200); }
.faq-item { border-bottom: 1px solid var(--silver-200); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: 21px; color: var(--navy-900); font-weight: 500;
}
.faq-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--silver-300); display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .25s, background .15s;
}
.faq-item.open .faq-toggle { background: var(--navy-800); color: white; border-color: var(--navy-800); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  font-size: 15.5px; color: var(--silver-900); line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 0 24px; }
.faq-a p { margin: 0 0 12px; max-width: 70ch; }

/* ============ Footer ============ */
.footer {
  background: #07235f; color: rgba(255,255,255,0.78);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer ul a:hover { color: white; }
.footer .brand-block img { height: 80px; opacity: 0.95; filter: none; }
.footer .brand-block p { max-width: 32ch; font-size: 14px; margin-top: 16px; color: rgba(255,255,255,0.6); }
.footer-bot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ Misc ============ */
.scroll-target { scroll-margin-top: 88px; }
.kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; background: var(--cream-2); border-radius: 4px; border: 1px solid var(--silver-200); }

/* density: compact */
body.density-compact .section { padding: 64px 0; }
body.density-compact .hero { padding: 48px 0 64px; }
body.density-compact .form-card { padding: 32px 32px; }

/* accent variants */
body.accent-emerald { --accent: #1f7a5a; --accent-soft: #d6efe5; }
body.accent-gold { --accent: #b8861a; --accent-soft: #f7ecc7; }

/* ============ INVITE (encouragement strip) ============ */
.invite {
  background: var(--navy-900);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.invite::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(61, 108, 191, 0.35), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(245, 197, 24, 0.06), transparent 50%);
  pointer-events: none;
}
.invite-grid {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: center;
}
.invite-h {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 62px);
  font-weight: 400; letter-spacing: -0.02em; color: white; line-height: 1.05;
  margin: 14px 0 22px;
}
.invite-p {
  font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.78);
  max-width: 56ch; margin: 0 0 28px;
}
.invite-btn { background: var(--umk-yellow); color: var(--navy-900); }
.invite-btn:hover { background: #ffd445; }

.invite-deco { display: flex; justify-content: center; }
.invite-card {
  background: white; color: var(--navy-900);
  border-radius: 18px; padding: 28px 36px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45);
  transform: rotate(-2.5deg);
  min-width: 220px;
}
.invite-card-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver-700); }
.invite-card-date {
  font-family: var(--font-display); font-size: 110px; font-weight: 500;
  line-height: 0.92; color: var(--navy-900); letter-spacing: -0.03em;
  margin: 8px 0 4px;
}
.invite-card-m { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--navy-700); }
.invite-card-y { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--silver-700); margin-top: 8px; }

@media (max-width: 760px) {
  .invite-grid { grid-template-columns: 1fr; gap: 32px; }
  .invite { padding: 56px 0; }
}

/* ============ Info note inside form ============ */
.info-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--cream-2);
  border: 1px dashed var(--silver-300);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--silver-900);
  line-height: 1.5;
}
.info-note strong { color: var(--navy-900); font-weight: 600; }

/* sans headings */
body.sans-headings h1, body.sans-headings h2, body.sans-headings h3, body.sans-headings .hero h1, body.sans-headings .section-head h2, body.sans-headings .tl-time, body.sans-headings .tl-body h3, body.sans-headings .stat .v, body.sans-headings .summary-total .v, body.sans-headings .success h3, body.sans-headings .loc-card h3, body.sans-headings .form-card h3, body.sans-headings .faq-q {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.025em;
}
body.sans-headings .hero h1 .it { font-style: normal; font-weight: 300; }
