/* =====================================================================
   OlvidadosRP · ems.olvidadosrp.com · Pillbox Hill Medical Center
   Hospital: blanco clínico, rojo sanitario, esquinas redondeadas, Plus Jakarta Sans.
   ===================================================================== */
:root {
    --red: #e0283f; --red-2: #c21a30; --red-3: #9e1124; --rose: #fff1f3; --rose-2: #ffe1e6;
    --ink: #1a1d24; --ink-2: #4a505c; --ink-3: #7b8190;
    --bg: #ffffff; --tint: #f6f7f9; --line: #e6e8ec;
    --teal: #0f8a7e; --ok: #12935a;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --r: 18px; --r-sm: 12px;
    --wrap: 1200px;
    --shadow: 0 1px 2px rgb(26 29 36 / .04), 0 12px 32px rgb(26 29 36 / .07);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
picture { overflow: hidden; background: var(--rose-2) center / cover no-repeat; }
picture img { width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--red-2); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.em-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.em-skip { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 10px 14px; background: var(--red); color: #fff; font-weight: 700; border-radius: 10px; }
.em-skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }

/* latido */
.em-pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.em-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* barra de urgencias */
.em-top { background: var(--red); color: #fff; font-size: .8rem; font-weight: 600; }
.em-top__in { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 36px; }
.em-top__in span { display: inline-flex; align-items: center; gap: 10px; }
.em-top b { padding: 1px 9px; background: #fff; color: var(--red); border-radius: 20px; font-weight: 800; }

/* cabecera */
.eh { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.eh.is-scrolled { box-shadow: 0 8px 30px rgb(26 29 36 / .08); }
.eh__in { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.eh__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; }
.eh__brand span { display: flex; flex-direction: column; line-height: 1.1; }
.eh__brand b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.eh__brand small { font-size: .76rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.eh__nav { display: flex; gap: 4px; }
.eh__nav a { padding: 9px 13px; border-radius: 30px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.eh__nav a:hover { background: var(--rose); color: var(--red-2); }
.eh__burger { display: none; width: 44px; height: 44px; position: relative; background: var(--tint); border: 0; border-radius: 12px; cursor: pointer; }
.eh__burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.eh__burger span:first-child { top: 17px; } .eh__burger span:last-child { top: 25px; }
.eh.is-open .eh__burger span:first-child { top: 21px; transform: rotate(45deg); }
.eh.is-open .eh__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* botones (incluye .btn del motor de postulaciones) */
.ebtn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 2px solid transparent; border-radius: 40px; cursor: pointer;
    font: 700 .95rem/1 var(--font); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.ebtn:hover, .btn:hover { transform: translateY(-1px); }
.ebtn--lg { padding: 16px 26px; font-size: 1rem; }
.ebtn--red, .btn { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgb(224 40 63 / .25); }
.ebtn--red:hover, .btn:hover { background: var(--red-2); }
.ebtn--soft { background: var(--rose); color: var(--red-2); }
.ebtn--soft:hover, .ebtn--soft[aria-current] { background: var(--red); color: #fff; }
.ebtn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.ebtn--line:hover { border-color: var(--ink); }
.ebtn--white { background: #fff; color: var(--red-2); }
.ebtn--white:hover { background: var(--rose); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--tint); }
.btn--sm { padding: 8px 14px; font-size: .86rem; }
.btn kbd { display: none; }
.btn .ico, .ebtn .ico { width: 1.1em; height: 1.1em; }

/* etiquetas */
.etag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 30px; background: var(--rose); color: var(--red-2); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.etag--soft { padding: 0; background: none; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.state { margin-left: 4px; padding: 2px 10px; border-radius: 20px; background: #fff; color: var(--red-2); font-size: .74rem; }
.state.is-on { background: var(--ok); color: #fff; }

/* ---------------------------------------------------------------- portada */
.ehero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background:
    radial-gradient(900px 500px at 100% 0%, var(--rose) 0%, transparent 60%),
    linear-gradient(180deg, #fff, #fff); overflow: hidden; }
.ehero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 28px 28px; opacity: .45; -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 75%); mask-image: linear-gradient(120deg, transparent 30%, #000 75%); pointer-events: none; }
.ehero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ehero h1 { margin-top: 20px; font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.ehero h1 em { display: block; font-style: normal; color: var(--red); }
.ehero__lead { margin-top: 20px; max-width: 540px; color: var(--ink-2); font-size: 1.1rem; }
.ehero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ehero__visual { position: relative; padding: 0 0 54px 34px; }
.ehero__photo { aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgb(26 29 36 / .18); }
.ehero__photo picture { height: 100%; }
.ehero__photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.monitor { position: absolute; left: 0; bottom: 0; width: min(330px, 80%); padding: 14px 16px 12px; background: #0f1419; border-radius: 20px; color: #fff; box-shadow: 0 20px 40px rgb(15 20 25 / .35); }
.monitor__top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: #8f98a8; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.monitor__top b { display: inline-flex; align-items: center; gap: 8px; color: #3be39a; }
.monitor__ecg { width: 100%; height: 64px; margin-top: 8px; }
.monitor__ecg path { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ecg-bg { stroke: rgb(59 227 154 / .14); }
.ecg-line { stroke: #3be39a; stroke-dasharray: 160 1200; animation: ecg 2.6s linear infinite; filter: drop-shadow(0 0 4px rgb(59 227 154 / .7)); }
@keyframes ecg { from { stroke-dashoffset: 160; } to { stroke-dashoffset: -1200; } }
.monitor__vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid #222a33; }
.monitor__vitals dt { font-size: .66rem; color: #8f98a8; font-weight: 700; letter-spacing: .08em; }
.monitor__vitals dd { font-size: 1.35rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.monitor__vitals div:nth-child(2) dd { color: #5ec8ff; }
.monitor__vitals div:nth-child(3) dd { color: #ffcf5c; }
.ehero__chips { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ehero__chips li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; background: rgb(255 255 255 / .94); border-radius: 30px; font-size: .84rem; font-weight: 700; box-shadow: 0 6px 16px rgb(26 29 36 / .12); }
.ehero__chips b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 20px; background: var(--red); color: #fff; font-size: .82rem; }
.ehero--short { padding-bottom: clamp(36px, 5vw, 60px); }
.ehero--short h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------------------------------------------------------------- secciones */
.esec { padding-block: clamp(56px, 8vw, 104px); }
.esec--tint { background: var(--tint); }
.esec__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.esec__head h2, .alone h2, .blood h2 { margin-top: 10px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.esec__head > p:not(.etag) { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.esec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.esec__head--row > p { max-width: 380px; margin: 0 !important; }

/* tres pasos */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: t; }
.triad li { position: relative; padding: 30px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.triad li:first-child { background: var(--red); border-color: var(--red); color: #fff; }
.triad li:first-child p { color: rgb(255 255 255 / .88); }
.triad li:first-child .triad__n { background: #fff; color: var(--red); }
.triad__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--rose); color: var(--red); font-size: 1.3rem; font-weight: 800; }
.triad h3 { margin-top: 18px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.triad p { margin-top: 8px; color: var(--ink-2); }

/* primeros auxilios */
.aid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.aid__card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.aid__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.aid__n { font-size: .8rem; font-weight: 800; color: var(--red); letter-spacing: .1em; }
.aid__card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.aid__card p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.aid__need { align-self: flex-start; margin-top: 6px; padding: 5px 12px; border-radius: 20px; background: var(--rose); color: var(--red-2); font-size: .78rem; font-weight: 700; }
.aid__need.is-free { background: #e6f6ef; color: var(--ok); }

/* sin sanitarios */
.alone { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; max-width: 960px; }
.alone__icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: var(--rose); }
.alone__icon svg { width: 52px; height: 52px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.alone p:not(.etag) { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.alone b { color: var(--ink); }
.alone__list { display: grid; gap: 10px; margin-top: 20px; }
.alone__list li { position: relative; padding: 14px 18px 14px 46px; background: var(--tint); border-radius: var(--r-sm); color: var(--ink-2); }
.alone__list li::before { content: ''; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    background: linear-gradient(var(--red), var(--red)) center / 4px 14px no-repeat, linear-gradient(var(--red), var(--red)) center / 14px 4px no-repeat; }

/* hospital */
.wards { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.wards__photo { position: relative; min-height: 340px; border-radius: var(--r); overflow: hidden; }
.wards__photo picture { position: absolute; inset: 0; }
.wards__photo--art { display: flex; align-items: flex-end; justify-content: center; padding: 30px 30px 0; background: radial-gradient(420px 260px at 80% 10%, #ff6b7d, transparent 70%), linear-gradient(160deg, var(--red) 0%, var(--red-3) 100%); }
.wards__photo--art svg { width: 100%; max-width: 380px; height: auto; }
.wards__photo.wards__photo--art figcaption { bottom: auto; top: 14px; }
.wards__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; background: rgb(255 255 255 / .94); border-radius: 20px; font-size: .8rem; font-weight: 700; }
.wards__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wards__grid li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 20px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.wards__grid svg { grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--rose); fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wards__grid b { font-size: 1.05rem; font-weight: 800; }
.wards__grid span { color: var(--ink-3); font-size: .88rem; line-height: 1.4; }

/* tarifas */
.bill { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: stretch; }
.bill__list { padding: 28px; background: var(--tint); border-radius: var(--r); }
.bill h3, .plan h3 { font-size: 1.15rem; font-weight: 800; }
.bill dl { margin-top: 14px; }
.bill dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed #d3d7de; }
.bill dl div:last-child { border-bottom: 0; }
.bill dt { color: var(--ink-2); }
.bill dd { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill small { font-weight: 600; color: var(--ink-3); font-size: .78rem; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.plan--top { background: var(--red); border-color: var(--red); color: #fff; }
.plan__cover { margin-top: 10px; color: var(--ink-2); }
.plan__cover b { display: block; font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--red); }
.plan--top .plan__cover, .plan--top .plan__desc { color: rgb(255 255 255 / .88); }
.plan--top .plan__cover b { color: #fff; }
.plan__price { margin-top: 10px; font-size: 1.4rem; font-weight: 800; }
.plan__price small { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.plan--top .plan__price small { color: rgb(255 255 255 / .8); }
.plan__desc { color: var(--ink-2); font-size: .94rem; flex: 1; }
.plan__where { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.plan--top .plan__where { border-color: rgb(255 255 255 / .25); color: rgb(255 255 255 / .8); }

/* sangre */
.esec--blood { background: linear-gradient(180deg, #fff 0%, var(--rose) 100%); }
.blood { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.blood__copy > p:not(.etag) { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.blood__pay { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.blood__pay div { flex: 1; min-width: 150px; padding: 20px 22px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.blood__pay b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.blood__pay span { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.blood__pay .is-rare { background: var(--red); color: #fff; }
.blood__pay .is-rare span { color: rgb(255 255 255 / .85); }
.blood__chart { padding: 28px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.blood__chart h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; }
.blood__chart ul { display: grid; gap: 9px; }
.blood__chart li { display: grid; grid-template-columns: 44px 1fr 46px; gap: 12px; align-items: center; }
.blood__chart li b { display: grid; place-items: center; height: 30px; border-radius: 10px; background: var(--tint); font-size: .86rem; font-weight: 800; }
.blood__chart li.is-rare b { background: var(--red); color: #fff; }
.bar { height: 12px; border-radius: 10px; background: var(--tint); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a9a, var(--red)); }
.blood__chart li em { font-style: normal; font-weight: 700; font-size: .86rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.blood__note { margin-top: 16px; color: var(--ink-3); font-size: .84rem; }

/* farmacia */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shelf li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px 16px 16px; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.shelf__ico { width: 44px; height: 44px; border-radius: 12px; background:
    linear-gradient(var(--red), var(--red)) center / 5px 20px no-repeat, linear-gradient(var(--red), var(--red)) center / 20px 5px no-repeat, var(--rose); }
.shelf b { font-weight: 700; }
.shelf em { font-style: normal; font-weight: 800; color: var(--red-2); font-variant-numeric: tabular-nums; }

/* carrera */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.ladder li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 46px 18px 18px; background: var(--tint); border-radius: var(--r-sm); min-height: calc(130px + var(--i, 0) * 22px); }
.ladder li:nth-child(2) { --i: 1; } .ladder li:nth-child(3) { --i: 2; } .ladder li:nth-child(4) { --i: 3; }
.ladder li:nth-child(5) { --i: 4; } .ladder li:nth-child(6) { --i: 5; } .ladder li:nth-child(n+7) { --i: 6; }
.ladder span { position: absolute; top: 16px; left: 18px; font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.ladder b { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.ladder em { align-self: flex-start; padding: 3px 10px; border-radius: 20px; background: #fff; color: var(--red-2); font-style: normal; font-size: .74rem; font-weight: 700; }
.ladder li:first-child { background: var(--rose); }
.ladder .is-boss { background: var(--ink); color: #fff; }
.ladder .is-boss span { color: #8f98a8; }

/* únete */
.ejoin { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.ejoin__ecg { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 70px; opacity: .18; }
.ejoin__ecg path { fill: none; stroke: #fff; stroke-width: 2; }
.ejoin__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 6vw, 72px); }
.ejoin h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 660px; }
.ejoin p { margin-top: 10px; color: rgb(255 255 255 / .88); max-width: 600px; }

/* pie */
.ef { background: #0f1419; color: #a3abb9; font-size: .92rem; }
.ef__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-block: 56px 36px; }
.ef__brand { display: flex; gap: 14px; align-items: flex-start; }
.ef__brand b { display: block; color: #fff; font-size: 1.05rem; }
.ef__brand span { display: block; margin-top: 4px; font-size: .86rem; }
.ef h2 { margin-bottom: 12px; color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.ef nav a { display: block; padding: 4px 0; color: #a3abb9; text-decoration: none; }
.ef nav a:hover { color: #fff; }
.ef__legal { padding-block: 20px 28px; border-top: 1px solid #222a33; font-size: .8rem; color: #6f7888; }

/* ---------------------------------------------------------------- postulación (motor común) */
.apply { display: grid; gap: 18px; padding-block: 44px 90px; }
.roles { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; }
.role { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.role--side { background: var(--tint); border-color: transparent; }
.role h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.role ul { display: grid; gap: 9px; margin-top: 14px; }
.role li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .94rem; }
.role ul li::before { content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 6px;
    background: linear-gradient(#fff, #fff) center / 3px 9px no-repeat, linear-gradient(#fff, #fff) center / 9px 3px no-repeat, var(--red); }
.flow { display: grid; gap: 12px; margin-top: 14px; counter-reset: f; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 0; }
.flow li::before { content: counter(f); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; font-size: .9rem; }
.flow b { font-weight: 700; }
.flow span { color: var(--ink-3); font-size: .86rem; }
.lookup { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #d3d7de; }
.lookup label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .88rem; }
.lookup div { display: flex; gap: 8px; }
.lookup input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #d3d7de; border-radius: 30px; font: 700 .95rem var(--font); text-transform: uppercase; letter-spacing: .08em; }
.form { padding: clamp(22px, 3.5vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.form__head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form__head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 30px; background: var(--tint); color: var(--ink-3); font-size: .8rem; font-weight: 700; }
.stepper span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e1e4e9; font-size: .76rem; }
.stepper .is-done { color: var(--red-2); }
.stepper .is-done span { background: var(--rose-2); color: var(--red-2); }
.stepper .is-now { background: var(--red); color: #fff; }
.stepper .is-now span { background: #fff; color: var(--red); }
html:not(.js) .stepper { display: none; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.step + .step { margin-top: 30px; }
.js .form[data-steps] .step { margin-top: 0; }
.js .form[data-steps] .step:not(.is-now) { display: none; }
.step legend { padding: 0; margin-bottom: 8px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.step__lead { color: var(--ink-2); margin-top: -4px; }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pick__opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.pick__opt input { position: absolute; opacity: 0; }
.pick__opt b { font-size: 1.05rem; font-weight: 800; }
.pick__opt span { color: var(--ink-2); font-size: .9rem; }
.pick__opt:has(input:checked) { border-color: var(--red); background: var(--rose); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field > span { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field > span em, .field__label em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field small { color: var(--ink-3); font-size: .84rem; margin-top: -2px; }
.field input:not([type=range]):not([type=radio]):not([type=checkbox]), .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d3d7de; border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 500 .98rem/1.5 var(--font); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgb(224 40 63 / .12); }
.field__count { position: absolute; right: 12px; bottom: 9px; font-size: .72rem; font-style: normal; color: var(--ink-3); pointer-events: none; }
.field__count.is-ok { color: var(--ok); }
.field__label { margin: 16px 0 8px; font-weight: 700; font-size: .9rem; }
.field--range input { accent-color: var(--red); width: 100%; }
.field--range output { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.field--case > span { display: flex; flex-direction: column; gap: 6px; font-weight: 500; line-height: 1.55; padding: 16px 18px; background: var(--tint); border-radius: var(--r-sm); }
.field--case b { color: var(--red-2); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--check .chip { position: relative; border: 1px solid #d3d7de; border-radius: 30px; cursor: pointer; }
.chips--check input { position: absolute; opacity: 0; }
.chips--check span { display: block; padding: 8px 16px; font-weight: 600; font-size: .9rem; }
.chips--check .chip:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.form__foot { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.form__pos { margin-inline: auto; color: var(--ink-3); font-size: .84rem; }
.alert { margin-bottom: 16px; padding: 14px 18px; background: var(--rose); border-radius: var(--r-sm); color: var(--red-3); font-size: .92rem; }
.alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.hp { position: absolute; left: -9999px; }
.done { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.done .eyebrow, .done .eyebrow__bar { color: var(--red-2); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.done h2 { margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.done > p { margin-top: 10px; color: var(--ink-2); max-width: 620px; }
.done__code { margin: 18px 0 4px !important; font-size: clamp(2.2rem, 6vw, 3.4rem) !important; font-weight: 800 !important; letter-spacing: .1em; color: var(--red) !important; }
.done__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 14px; }
.track li { position: relative; padding-top: 22px; color: var(--ink-3); font-size: .84rem; font-weight: 700; }
.track li::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 3px; background: var(--line); }
.track i { position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.track .is-done::before, .track .is-now::before { background: var(--red); }
.track .is-done i, .track .is-now i { background: var(--red); border-color: var(--red); }
.track .is-now { color: var(--ink); }
.track .is-bad.is-now i { background: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .eh__burger { display: block; }
    .eh__nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; padding: 12px clamp(16px, 4vw, 40px) 18px; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px rgb(26 29 36 / .08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
    .eh.is-open .eh__nav { opacity: 1; visibility: visible; transform: none; }
    .eh__nav a { padding: 12px 14px; }
}
@media (max-width: 980px) {
    .ehero__in, .blood, .wards { grid-template-columns: 1fr; }
    .ehero__visual { max-width: 620px; }
    .bill { grid-template-columns: 1fr 1fr; }
    .bill__list { grid-column: 1 / -1; }
    .shelf { grid-template-columns: 1fr 1fr; }
    .roles { grid-template-columns: 1fr; }
    .ef__grid { grid-template-columns: 1fr 1fr; }
    .ef__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .em-top__in span:last-child { display: none; }
    .eh .ebtn--soft { display: none; }
    .triad, .bill, .shelf, .wards__grid, .grid2 { grid-template-columns: 1fr; }
    .ehero__visual { padding: 0 0 70px 0; }
    .monitor { width: 88%; left: 6%; }
    .ehero__chips { right: 10px; top: 10px; }
    .alone { grid-template-columns: 1fr; }
    .alone__icon { width: 72px; height: 72px; border-radius: 22px; }
    .ladder { grid-template-columns: 1fr 1fr; }
    .ladder li { min-height: 0; }
    .ejoin__in { flex-direction: column; align-items: flex-start; }
    .track { grid-template-columns: 1fr 1fr; row-gap: 16px; }
    .form__foot { flex-wrap: wrap; } .form__pos { order: -1; width: 100%; text-align: center; }
    .ef__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
