/* ==========================================================================
   AI-FIKR — aifikr.attt25.uz
   Rasmiy va zamonaviy uslub: to‘q ko‘k + tilla rang urg‘u
   ========================================================================== */

:root {
  --navy-950: #061330;
  --navy-900: #0a1c42;
  --navy-800: #0d2250;
  --blue-600: #1f5fd6;
  --blue-500: #2f7bff;
  --gold: #c9a24b;
  --gold-soft: #e8d5a3;
  --ink: #0f1b33;
  --muted: #55627c;
  --line: #dfe5ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 66, .06), 0 2px 8px rgba(10, 28, 66, .05);
  --shadow-md: 0 8px 28px rgba(10, 28, 66, .10);
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-950); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--gold-soft); color: var(--navy-950); }
.btn[data-pending="true"] { opacity: .92; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; color: var(--navy-900); }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 3px 5px rgba(6, 19, 48, .14)); transition: transform .2s ease, filter .2s ease; }
.brand:hover .brand-mark { transform: translateY(-1px); filter: drop-shadow(0 5px 8px rgba(6, 19, 48, .2)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.24rem; font-weight: 800; letter-spacing: .06em; color: var(--gold); }
.brand-text strong em { color: var(--navy-900); font-size: .72em; font-style: normal; letter-spacing: .02em; }
.brand-text strong span { color: var(--muted); padding-inline: .04em; }
.brand-text small { font-weight: 600; font-size: .6rem; letter-spacing: .055em; color: var(--muted); text-transform: uppercase; margin-top: .3rem; white-space: nowrap; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .8rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s;
}
.site-nav a:not(.btn):hover { background: var(--bg-alt); color: var(--blue-600); }
.site-nav a.is-active:not(.btn) { color: var(--blue-600); background: var(--bg-alt); }
.site-nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 123, 255, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(201, 162, 75, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 20ch; letter-spacing: -.02em; }
.hero-lead { margin-top: 1.4rem; max-width: 62ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden;
}
.hero-stats > div { padding: 1.1rem 1.3rem; background: rgba(6, 19, 48, .55); }
.hero-stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .65); }
.hero-stats dd { margin: .25rem 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats small { font-size: .5em; font-weight: 600; color: var(--gold-soft); margin-left: .15em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.eyebrow-light { color: var(--gold-soft); }
.section-head h2, .contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--navy-900); }
.lead { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.2rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- Stat cards ---------- */
.stat-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue-600);
}
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--navy-900); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-text { margin-top: .9rem; color: var(--ink); flex: 1; }
.stat-src { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
.stat-src:hover { color: var(--blue-600); }

.notice {
  margin-top: 2rem; padding: 1.5rem 1.7rem; background: var(--bg-alt);
  border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
.notice h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: .5rem; }
.notice .muted { margin-top: .6rem; font-size: .95rem; }

/* ---------- Pillars ---------- */
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(145deg, var(--navy-800), var(--blue-600)); margin-bottom: 1.1rem;
}
.pillar-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.25rem; color: var(--navy-900); margin-bottom: .5rem; }
.pillar p { color: var(--muted); }

/* ---------- Steps (accordion) ---------- */
.steps { list-style: none; display: grid; gap: .9rem; counter-reset: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.step.is-open { border-color: var(--blue-500); box-shadow: var(--shadow-md); }
.step-head {
  width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--navy-900);
}
.step-head:hover { background: var(--bg-alt); }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 700;
}
.step.is-open .step-num { background: var(--gold); color: var(--navy-950); }
.step-title { flex: 1; font-weight: 700; font-size: 1.05rem; }
.pill { flex: none; padding: .25rem .75rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--navy-800); }
.chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy-800); border-bottom: 2px solid var(--navy-800); transform: rotate(45deg); transition: transform .25s; margin: 0 .3rem 4px; }
.step.is-open .chev { transform: rotate(-135deg); margin-bottom: -2px; }

.step-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.step-inner { overflow: hidden; padding: 0 1.3rem 1.4rem; }
html.js .step:not(.is-open) .step-panel { grid-template-rows: 0fr; }
html.js .step:not(.is-open) .step-inner { visibility: hidden; padding-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.cols h4 { margin: 1rem 0 .5rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.cols ul { list-style: none; display: grid; gap: .5rem; }
.cols li { position: relative; padding-left: 1.2rem; color: var(--ink); }
.cols li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.owner { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); }
.owner strong { color: var(--navy-900); }

/* ---------- Horizons ---------- */
.horizon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.horizon-label { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; background: var(--navy-800); color: #fff; padding: .25rem .8rem; border-radius: 999px; }
.horizon h3 { margin: 1rem 0 .8rem; font-size: 1.3rem; color: var(--navy-900); }
.checks { list-style: none; display: grid; gap: .65rem; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
.footnote { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); }

/* ---------- Budget ---------- */
.budget { list-style: none; display: grid; gap: .9rem; }
.budget li { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr 112px; gap: 1rem; align-items: center; }
.b-name { font-weight: 500; }
.b-val { text-align: right; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 12px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
html.js .budget:not(.is-visible) .bar > span { width: 0; }
.budget-total {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.5rem; padding: 1.1rem 1.4rem;
  background: var(--navy-800); color: #fff; border-radius: var(--radius);
}
.budget-total strong { font-size: 1.4rem; color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(3.5rem, 8vw, 5.5rem); color: #fff; background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.section-head-light h2 { color: #fff; }
.section-head-light .lead { color: rgba(255, 255, 255, .78); }
.cta-card { padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.cta-card h3 { font-size: 1.35rem; }
.cta-card p { color: rgba(255, 255, 255, .8); flex: 1; }

/* ---------- Participation forms ---------- */
.participation-section { border-top: 1px solid var(--line); }
.participation-modal {
  width: min(940px, calc(100% - 2rem)); max-width: 940px; max-height: calc(100vh - 2rem);
  padding: clamp(1.2rem, 3vw, 2rem); border: 0; border-radius: var(--radius);
  color: var(--ink); background: var(--bg); box-shadow: 0 24px 80px rgba(6, 19, 48, .3);
}
.participation-modal::backdrop { background: rgba(6, 19, 48, .72); backdrop-filter: blur(3px); }
.participation-modal .container { width: 100%; }
.participation-modal .section-head { margin: 0 0 1.5rem; }
.modal-close {
  position: sticky; top: 0; z-index: 2; float: right; width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy-900);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--bg-alt); color: var(--blue-600); }
.participation-form {
  display: grid; gap: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.form-notice { padding: 1rem 1.2rem; background: var(--bg-alt); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.form-notice strong { color: var(--navy-900); }
.form-notice p { margin-top: .25rem; color: var(--muted); font-size: .94rem; }
.survey-progress { display: grid; gap: .45rem; }
.survey-progress-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.survey-progress-head strong { color: var(--blue-600); }
.survey-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.survey-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--gold)); transition: width .25s ease; }
.usage-details.is-hidden { display: none; }
fieldset { display: grid; gap: 1rem; min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; }
legend { padding: 0 .45rem; color: var(--navy-900); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-span-2 { grid-column: 1 / -1; }
.participation-form label { display: grid; gap: .4rem; color: var(--ink); font-size: .92rem; font-weight: 600; }
.participation-form input:not([type="checkbox"]):not([type="radio"]), .participation-form select, .participation-form textarea {
  width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.participation-form textarea { resize: vertical; }
.participation-form input:focus, .participation-form select:focus, .participation-form textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(31, 95, 214, .12); outline: none; }
.required { color: #b42318; }
.form-question { margin-top: .4rem; }
.form-question > p, .fieldset-note { color: var(--muted); font-size: .92rem; }
.rating-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; padding: .8rem; border-radius: 8px; background: var(--bg-alt); color: var(--muted); font-size: .78rem; line-height: 1.35; }
.rating-scale b { display: block; color: var(--navy-900); font-size: .9rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .55rem; }
.check-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: .5rem !important; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 500 !important; }
.check-option:has(input:checked) { border-color: var(--blue-600); background: #f0f5ff; }
.check-option input, .consent-option input { accent-color: var(--blue-600); }
.rating-list { display: grid; gap: .1rem; }
.rating-row { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 500 !important; }
.rating-row:last-child { border-bottom: 0; }
.rating-options { display: flex; gap: .65rem; }
.rating-options input { accent-color: var(--blue-600); width: 1rem; height: 1rem; }
.consent-option { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: .6rem !important; font-weight: 500 !important; }
.consent-option input { margin-top: .3rem; flex: none; }
.form-status { min-height: 1.4em; color: var(--blue-600); font-weight: 600; }
.form-status.is-error { color: #b42318; }

/* ---------- Sources ---------- */
.sources { padding-left: 1.4rem; display: grid; gap: .8rem; }
.sources li::marker { color: var(--gold); font-weight: 700; }
.sources a { font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 1rem; }
.contact-label:first-child { margin-top: 0; }
.contact-mail, .contact-site { font-weight: 700; font-size: 1.1rem; color: var(--navy-900); overflow-wrap: anywhere; }
.contact-mail { display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); padding-block: 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem 2rem; align-items: start; }
.footer-brand { font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: .03em; }
.footer-note { margin-top: .4rem; max-width: 44ch; font-size: .95rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: flex-end; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-copy { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.footer-admin { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .65); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: .75rem 1rem 1.2rem; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav a:not(.btn) { padding: .8rem .9rem; }
  .site-nav .btn { margin: .6rem 0 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .brand-text small { display: none; }
  .participation-modal {
    width: calc(100% - 1rem);
    padding: .8rem;
  }
  .participation-form {
    padding: 1rem;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-span-2 {
    grid-column: auto;
  }
  .step-head { flex-wrap: wrap; gap: .6rem .8rem; }
  .step-title { flex-basis: calc(100% - 64px); order: 1; }
  .step-num { order: 0; }
  .pill { order: 2; margin-left: 52px; }
  .chev { order: 3; margin-left: auto; }
  .budget li { grid-template-columns: 1fr auto; row-gap: .35rem; }
  .budget .bar { grid-column: 1 / -1; order: 3; }
  .rating-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rating-row {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .rating-options {
    justify-content: space-between;
  }
}

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

@media print {
  .site-header, .hero-actions, .cta, .nav-toggle { display: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html.js .step:not(.is-open) .step-panel { grid-template-rows: 1fr; }
  html.js .step:not(.is-open) .step-inner { visibility: visible; padding-bottom: 1.4rem; }
  html.js .budget:not(.is-visible) .bar > span { width: var(--w); }
  .hero { color: #000; background: none; }
  .hero h1, .hero-lead { color: #000; }
}
