/* ==========================================================================
   Enzalunix — site styles
   Ink navy + awareness-ribbon blue, with the carton's orange tab as accent.
   Display: Bricolage Grotesque. Body: Atkinson Hyperlegible (built for low-vision readers).
   ========================================================================== */

:root {
  --ink: #14304f;
  --ink-deep: #0d2139;
  --ribbon: #7bb8e3;
  --ribbon-deep: #2a6fa6;
  --orange: #ec8a2c;
  --orange-soft: #fdeedd;
  --brown: #5b3a22;
  --mist: #eef4f9;
  --paper: #ffffff;
  --line: #d6e0ea;
  --text: #1c2a39;
  --muted: #526478;
  --danger: #b4321f;
  --success: #1f7a4d;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;   /* 18px body */
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.369rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ribbon-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 680px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2.25rem; height: 2.25rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--orange-soft); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-order { background: var(--orange); color: var(--ink-deep); }
.btn-order:hover, .btn-order[aria-current] { background: #f4a352; color: var(--ink-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--ribbon-deep); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.rx-bar {
  margin: 0; padding: 7px var(--gutter);
  background: var(--ink-deep); color: #d6e5f3;
  font-size: var(--step--1); text-align: center;
  display: flex; justify-content: center; align-items: center; gap: .5em;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); border-bottom-color: var(--ribbon); }
.site-nav ul a[aria-current] { color: var(--ink); border-bottom-color: var(--orange); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(13,33,57,.35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current] { border-bottom-color: var(--line); color: var(--ribbon-deep); }
  .brand img { height: 38px; }
  .header-row { min-height: 66px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 72px); background: linear-gradient(180deg, var(--mist), #fff 70%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { color: var(--brown); font-weight: 700; margin-bottom: 1.1em; }
.hero h1 { max-width: 15ch; margin-bottom: .45em; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.333rem); line-height: 1.55; color: var(--muted); max-width: 36em; margin-bottom: 1.6em; }

.hero-pack { position: relative; justify-self: center; width: min(100%, 440px); }
.pack-frame {
  position: relative; z-index: 1;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 60px -40px rgba(13,33,57,.55);
  aspect-ratio: 4 / 5;
}
.pack-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* The orange tab from the Enzalunix carton */
.pack-frame::after {
  content: ""; position: absolute; top: 0; right: 28px;
  width: 54px; height: 64px; background: var(--orange);
  border-radius: 0 0 6px 6px;
}
.ribbon-line {
  position: absolute; z-index: 0;
  left: -42%; top: -16%;
  width: 184%; height: 132%;
  fill: none; stroke: var(--ribbon); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round;
  opacity: .6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s cubic-bezier(.6,.1,.2,1) .2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.pack-label {
  margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  position: relative; overflow: hidden;
}
.pack-label { z-index: 2; }
.pack-label::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.pack-label > div { padding: 22px 24px 20px 30px; border-left: 1px solid var(--line); }
.pack-label > div:first-child { border-left: 0; }
.pack-label dt { color: var(--muted); font-size: var(--step--1); margin-bottom: 4px; }
.pack-label dd { margin: 0; font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1.12rem; line-height: 1.3; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pack { width: min(78%, 360px); order: -1; }
  .pack-label { grid-template-columns: 1fr 1fr; }
  .pack-label > div:nth-child(3) { border-left: 0; }
  .pack-label > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pack-label { grid-template-columns: 1fr; }
  .pack-label > div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 20px 14px 26px; }
  .pack-label > div:first-child { border-top: 0; }
}

/* ---------- Bands ---------- */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-tight { padding-top: clamp(32px, 4vw, 48px); }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: #dbe7f3; }
.band-ink h2 { color: #fff; }
.section-lede { color: var(--muted); max-width: 34em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo { border-radius: var(--r-lg); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .photo-tall { aspect-ratio: 3 / 2; } }

/* ---------- Mechanism of action ---------- */
.moa { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 64px; align-items: start; }
.moa-intro p { font-size: var(--step-1); line-height: 1.5; max-width: 26em; }
.pathway { grid-column: 2; color: var(--ribbon); }
.pathway svg { width: 100%; height: auto; overflow: visible; }
.pw-cell { fill: rgba(255,255,255,.04); stroke: rgba(123,184,227,.45); stroke-width: 1.5; stroke-dasharray: 6 6; }
.pw-nucleus { fill: rgba(123,184,227,.12); stroke: rgba(123,184,227,.7); stroke-width: 1.5; }
.pw-androgen { fill: var(--orange); }
.pw-receptor { fill: #fff; }
.pw-dna { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.pw-arrow { stroke: currentColor; stroke-width: 2.5; }
.pw-label { fill: #b9cee3; font: 400 15px var(--font-body); }
.pw-block circle { fill: var(--ink); stroke: var(--orange); stroke-width: 3; }
.pw-block text { fill: #fff; font: 700 16px var(--font-display); }
.moa-steps {
  grid-column: 2; margin: 0; padding: 0; list-style: none; counter-reset: s;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.moa-steps li { counter-increment: s; position: relative; padding-top: 48px; font-size: 1.02rem; line-height: 1.55; }
.moa-steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--orange); color: #fff;
  display: grid; place-items: center;
  font: 700 15px/1 var(--font-display);
}
.moa-steps strong { color: #fff; display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 960px) {
  .moa { grid-template-columns: 1fr; }
  .pathway, .moa-steps { grid-column: 1; }
}
@media (max-width: 640px) { .moa-steps { grid-template-columns: 1fr; gap: 22px; } .pw-label { font-size: 20px; } }

/* ---------- Indications ---------- */
.indications { list-style: none; margin: 28px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.indications li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.indications abbr { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ribbon-deep); letter-spacing: -0.02em; }
.indications span { font-size: 1.08rem; }
.indications-compact li { padding: 12px 0; grid-template-columns: 6rem 1fr; }
.indications-compact abbr { font-size: 1.25rem; }

/* ---------- GPSP ---------- */
.gpsp { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.gpsp-main, .gpsp-reg { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); }
.gpsp-main { background: #fff; }
.gpsp-main .icon-lg { color: var(--ribbon-deep); margin-bottom: 18px; }
.gpsp-main p { max-width: 34em; color: var(--muted); margin-bottom: 1.6em; }
.gpsp-reg { background: var(--ink); color: #d4e2f0; }
.gpsp-reg h3 { color: #fff; }
.gpsp-reg .icon-lg { color: var(--orange); margin-bottom: 18px; }
.reg-numbers { margin: 24px 0 0; display: grid; gap: 12px; }
.reg-numbers div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
.reg-numbers dt { font-size: var(--step--1); color: #a9c0d8; }
.reg-numbers dd { margin: 2px 0 0; font: 650 1.45rem/1.2 var(--font-display); color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .gpsp { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.portfolio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.portfolio-head h2 { margin: 0; }
.portfolio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.portfolio li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portfolio a { display: grid; place-items: center; height: 130px; padding: 24px; }
.portfolio img { max-height: 64px; width: auto; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.portfolio a:hover img, .portfolio a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 720px) { .portfolio { grid-template-columns: repeat(2, 1fr); } .portfolio a { height: 104px; } }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #d4e2f0; padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -140px; bottom: -220px; width: 360px; height: 360px; border-radius: 50%; border: 26px solid rgba(123,184,227,.12); }
.cta-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 34em; }

/* ---------- Page heads ---------- */
.page-head { background: var(--mist); padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3rem); margin-bottom: .3em; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 38em; margin: 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Prescribing information ---------- */
.pi { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.pi-toc { position: sticky; top: 104px; align-self: start; }
.pi-toc-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pi-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.pi-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.pi-toc a:hover { color: var(--ink); }
.pi-toc a.is-current { color: var(--ink); border-left-color: var(--orange); font-weight: 700; }
.prose { max-width: 46em; }
.pi-body section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.pi-body section:last-of-type { border-bottom: 0; }
.pi-body h2 { font-size: var(--step-2); }
@media (max-width: 900px) {
  .pi { grid-template-columns: 1fr; }
  .pi-toc { position: static; background: var(--mist); border-radius: var(--r-md); padding: 18px 20px; }
  .pi-toc ol { columns: 2; column-gap: 24px; border: 0; }
  .pi-toc a { padding-left: 0; border: 0; margin: 0; }
}
@media (max-width: 480px) { .pi-toc ol { columns: 1; } }

.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { color: var(--muted); font-weight: 400; font-size: var(--step--1); border-bottom-width: 2px; }
.data-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }

.pi-list { margin: 24px 0 0; }
.pi-list > div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 13rem 1fr; gap: 20px; }
.pi-list dt { font-weight: 700; color: var(--ink); line-height: 1.4; }
.pi-list dd { margin: 0; }
.pi-list dd p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .pi-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* Dose ladder */
.dose-ladder { margin: 28px 0 8px; padding: 24px; background: var(--mist); border-radius: var(--r-md); }
.dose-ladder figcaption { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.dose-ladder ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dose-ladder li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); grid-template-areas: "mg bar" ". text"; column-gap: 14px; row-gap: 4px; align-items: center; }
.dl-mg { grid-area: mg; font: 800 1.15rem/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.dl-bar { grid-area: bar; width: var(--w); display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.dl-bar .tab { flex: 1; height: 16px; border-radius: 999px; background: var(--ribbon); }
.is-standard .dl-bar { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.is-standard .dl-bar .tab { background: var(--ink); }
.dl-text { grid-area: text; font-size: .95rem; color: var(--muted); }
.dl-text strong { color: var(--ink); }

/* Stats + comparisons */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 8px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; gap: 16px; align-items: baseline; }
.stat-n { font: 800 2rem/1 var(--font-display); color: var(--ribbon-deep); letter-spacing: -0.02em; }
.stat-t { font-size: .95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }

.compare { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.compare-row { display: grid; grid-template-columns: 10rem 1fr; gap: 14px; align-items: center; padding: 8px 0; }
.compare-label { font-size: .95rem; }
.compare-bars { display: grid; gap: 5px; }
.cb { position: relative; display: block; height: 18px; width: max(var(--v), 4px); border-radius: 0 4px 4px 0; }
.cb b { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.cb-enz { background: var(--ink); }
.cb-pla { background: #b8cde0; }
.compare figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.key-enz { background: var(--ink); }
.key-pla { background: #b8cde0; margin-left: 12px; }
@media (max-width: 520px) { .compare-row { grid-template-columns: 1fr; gap: 6px; } .compare-bars { padding-right: 48px; } }

/* Side effects */
.se-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.se { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.se h3 { display: flex; align-items: center; gap: .45em; font-size: 1.15rem; }
.se ul { margin: 0; padding-left: 1.1em; }
.se li { margin-bottom: 6px; }
.se-serious { border-color: #efc6bd; background: #fdf4f1; }
.se-serious h3 { color: var(--danger); }
.se-cols { columns: 2; column-gap: 28px; }
@media (max-width: 760px) { .se-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .se-cols { columns: 1; } }

.pi-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--orange-soft); border-radius: var(--r-md); }
.pi-note .icon { color: var(--brown); margin-top: 3px; }
.pi-note p { margin: 0; }

/* ---------- About ---------- */
.intro { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts div { border-top: 3px solid var(--ink); padding-top: 16px; }
.facts dt { font: 800 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.contact { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.order { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
@media (max-width: 960px) { .contact, .order { grid-template-columns: 1fr; } }

.contact-card { background: var(--ink); color: #d4e2f0; border-radius: var(--r-lg); padding: 32px 28px; }
.contact-card h2 { color: #fff; font-size: var(--step-1); margin-bottom: 4px; }
.contact-org { color: #fff; font-weight: 700; margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list .icon { color: var(--orange); margin-top: 3px; }
.contact-list span { display: block; font-size: var(--step--1); color: #a9c0d8; }
.contact-list a { color: #fff; word-break: break-word; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.form-card > h2 { font-size: var(--step-2); }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend { font: 650 var(--step-1)/1.2 var(--font-display); color: var(--ink); padding: 0; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: var(--step--1); color: var(--muted); margin: -2px 0 8px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.05rem/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 1.5px solid #b9c8d8; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314304f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ribbon-deep); box-shadow: 0 0 0 4px rgba(42,111,166,.18); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .95rem; font-weight: 700; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--mist); border-radius: 10px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field-check label { margin: 0; font-weight: 400; color: var(--text); }
.field-check .field-error { grid-column: 2; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot .hint { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; margin-bottom: 24px; }
.notice .icon { width: 26px; height: 26px; margin-top: 1px; }
.notice p { margin: 0 0 4px; }
.notice ul { margin: 6px 0 0; padding-left: 1.1em; }
.notice-title { font-weight: 700; }
.notice-small { font-size: .95rem; margin-top: 8px !important; }
.notice-success { background: #e8f5ee; color: #134d31; border: 1px solid #b9dfc9; }
.notice-success .icon { color: var(--success); }
.notice-error { background: #fdf0ed; color: #6e1d11; border: 1px solid #efc6bd; }
.notice-error .icon { color: var(--danger); }
.notice-error a { color: #6e1d11; }

.order-side { position: sticky; top: 104px; }
.order-pack { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 24px; }
.order-pack img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.order-side h2 { font-size: var(--step-1); }
.steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); color: var(--brown); display: grid; place-items: center; font: 700 14px/1 var(--font-display); }
@media (max-width: 960px) { .order-side { position: static; } .order-pack { display: none; } }

/* ---------- Error page ---------- */
.error-page { text-align: left; }
.error-code { font: 800 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-display); color: var(--ribbon); margin-bottom: 8px; letter-spacing: -0.04em; }
.error-page .page-lede { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #b6c8da; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.footer-brand img { background: #fff; padding: 10px 14px; border-radius: 10px; width: 176px; height: auto; margin-bottom: 18px; box-sizing: content-box; }
.footer-brand p { max-width: 26em; }
.footer-dar { font-size: var(--step--1); color: #8ea6bf; }
.footer-h { font: 650 1.05rem/1.2 var(--font-display); color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.site-footer a { color: #dbe7f3; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; justify-content: center; }
.social a:hover { border-color: var(--orange); text-decoration: none; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 28px; font-size: var(--step--1); color: #8ea6bf; }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-line { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}

@media print {
  .rx-bar, .site-header, .site-footer, .cta, .pi-toc, .ribbon-line { display: none !important; }
  .pi { display: block; }
  body { font-size: 11pt; }
}
