/* hermes HR: Student Visa page. Brand tokens match index.html. */
:root {
  --red: #D50100; --red-dark: #AA0000; --red-ink: #8E0000;
  --ink: #1C1C1C; --body: #4A4A4A; --muted: #6E6E6E; --border: #E0E0E0;
  --paper: #F6F5F3; --white: #FFF;
  --ok: #17693C; --warn: #8A5A00; --no: #6E6E6E;
  --nav-h: 68px;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --display: 'DM Sans', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--text); color: var(--body); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; touch-action: manipulation; -webkit-tap-highlight-color: rgba(213,1,0,.15); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .cta :focus-visible { outline-color: var(--white); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: .6rem 1rem; background: var(--ink); color: var(--white); border-radius: 4px; }
.skip:focus { top: .75rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 4px; font-family: var(--display); font-weight: 700; font-size: .975rem; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.btn--white { background: var(--white); color: var(--red-ink); }
.btn--white:hover { background: var(--ink); color: var(--white); }
.btn--line { border: 1.5px solid rgba(255,255,255,.75); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--red-ink); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--red[disabled] { opacity: .65; cursor: progress; }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--full { width: 100%; }
.link-btn { color: var(--red-ink); font-weight: 600; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; text-align: left; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(18px) saturate(180%); border-bottom: 1px solid var(--border); }
.nav__row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.brand__thin { font-weight: 300; } .brand__bold { font-weight: 800; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a { font-family: var(--display); font-size: .875rem; font-weight: 600; color: var(--body); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current] { color: var(--red); border-color: var(--red); }
.nav__right { display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; border: 1.5px solid var(--border); border-radius: 2px; overflow: hidden; height: 32px; }
.lang__btn { font-family: var(--display); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; padding: 0 .7rem; color: var(--muted); }
.lang__btn + .lang__btn { border-left: 1px solid var(--border); }
.lang__btn[aria-pressed="true"] { background: var(--red); color: var(--white); }
.lang__btn[aria-pressed="false"]:hover { background: var(--paper); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s var(--ease), top .2s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--border); background: var(--white); padding: .5rem clamp(1.25rem,5vw,3rem) 1rem; }
.mobile-menu a { display: block; padding: .8rem 0; font-family: var(--display); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: 0; }
.mobile-menu a[aria-current] { color: var(--red); }
@media (min-width: 821px) { .mobile-menu { display: none !important; } }
@media (max-width: 820px) { .nav__links { display: none; } .burger { display: block; } }

/* Hero: a full red field and the visa sticker, the page's one bold move */
.hero { background: var(--red); color: var(--white); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem); }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 6.3vw, 5.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero__sub { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.5; color: var(--white); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.count-inline { font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.hero__note { margin-top: 1.25rem; font-size: .875rem; color: rgba(255,255,255,.88); }

.sticker { position: relative; background: #FCFAF6; color: var(--ink); border-radius: 6px; padding: clamp(1.1rem, 2.4vw, 1.6rem); transform: rotate(3deg); box-shadow: 0 2px 0 rgba(0,0,0,.14), 0 28px 50px -18px rgba(70,0,0,.65); background-image: repeating-radial-gradient(circle at 88% 12%, rgba(213,1,0,.07) 0 1px, transparent 1px 7px); animation: stamp .6s .15s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(9deg) scale(1.14); } to { opacity: 1; transform: rotate(3deg) scale(1); } }
.sticker__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1.5px solid var(--ink); padding-bottom: .55rem; }
.sticker__country { font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--red); }
.sticker__kind { font-family: var(--display); font-size: .85rem; color: var(--ink); }
.sticker__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; padding-block: 1rem; }
.sticker__fields .wide { grid-column: 1 / -1; }
.sticker__fields dt { font-size: .72rem; color: var(--muted); }
.sticker__fields dd { font-family: var(--display); font-weight: 700; font-size: clamp(.98rem, 1.6vw, 1.15rem); line-height: 1.25; }
.sticker__mrz { font-family: 'OCR A Std','OCR-B','Courier New',ui-monospace,monospace; font-size: clamp(.62rem, 1.15vw, .8rem); letter-spacing: .08em; line-height: 1.5; border-top: 1px dashed #B9B5AD; padding-top: .7rem; color: #2B2B2B; overflow: hidden; white-space: nowrap; }
.sticker__foot { margin-top: .5rem; font-size: .7rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: 2.75rem 3.25rem; }
  .hero h1 { font-size: clamp(2.45rem, 11.5vw, 4rem); }
  .sticker { max-width: 26rem; transform: rotate(1.5deg); animation-name: stampSm; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@keyframes stampSm { from { opacity: 0; transform: rotate(6deg) scale(1.08); } to { opacity: 1; transform: rotate(1.5deg) scale(1); } }

/* What + video */
.what { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.what__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.what__text > p:first-of-type { margin-top: 1.1rem; font-size: 1.0625rem; color: var(--ink); }
.what__text h3 { margin-top: 1.75rem; }
.ticks { list-style: none; margin-top: .75rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .9875rem; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.fine { margin-top: 1.25rem; font-size: .8125rem; color: var(--muted); }
.player { position: sticky; top: calc(var(--nav-h) + 1.25rem); }
.player__frame { display: block; width: 100%; aspect-ratio: 16/9; background: var(--ink); border-radius: 6px; overflow: hidden; position: relative; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__cap { margin-top: .7rem; font-size: .875rem; color: var(--muted); }
.steps__h { margin-top: clamp(3rem, 6vw, 4.5rem); font-size: 1.5rem; font-weight: 800; }
.steps { list-style: none; counter-reset: s; margin-top: 1.25rem; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 1rem 1rem 0 0; font-size: .875rem; line-height: 1.5; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--red); line-height: 1.2; font-variant-numeric: tabular-nums; }
.steps b { display: block; margin: .15rem 0 .3rem; font-family: var(--display); font-size: 1rem; color: var(--ink); }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 1.25rem; } }
@media (max-width: 860px) {
  .what__grid { grid-template-columns: 1fr; }
  .player { position: static; order: -1; }
  .steps { grid-template-columns: 1fr; border-top: 0; row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 2.25rem 1fr; padding: .85rem 0; border-top: 1px solid var(--border); }
  .steps li::before { grid-row: span 2; }
  .steps b { margin-top: .15rem; }
  .steps span { grid-column: 2; }
}

/* Comparison */
.compare { background: var(--paper); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; }
.section-head p { margin-top: .9rem; font-size: 1.0625rem; }
.cmp-tabs { display: none; }
.cmp-scroll { margin-top: 2rem; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--white); font-size: .9375rem; line-height: 1.45; }
.cmp thead td { width: 18%; border-bottom: 2px solid var(--ink); }
.cmp thead th { text-align: left; vertical-align: bottom; padding: 1.1rem 1.1rem .9rem; font-family: var(--display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; color: var(--ink); border-bottom: 2px solid var(--ink); }
.cmp thead small { display: block; margin-top: .25rem; font-family: var(--text); font-size: .75rem; font-weight: 400; color: var(--muted); }
.cmp thead .c1 { background: var(--red); color: var(--white); border-color: var(--red); }
.cmp tbody th { text-align: left; font-family: var(--display); font-weight: 700; color: var(--ink); padding: .95rem 1.1rem; vertical-align: top; }
.cmp tbody td { padding: .95rem 1.1rem; vertical-align: top; }
.cmp tbody tr + tr > * { border-top: 1px solid var(--border); }
.cmp tbody .c1 { background: #FDF0EF; color: var(--ink); font-weight: 500; }
.honest { margin-top: 1.5rem; max-width: 52rem; font-size: 1rem; color: var(--ink); }
@media (max-width: 760px) {
  .cmp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.75rem; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
  .cmp-tabs button { min-height: 48px; padding: .4rem; font-family: var(--display); font-weight: 700; font-size: .8125rem; line-height: 1.15; color: var(--ink); background: var(--white); }
  .cmp-tabs button + button { border-left: 1.5px solid var(--ink); }
  .cmp-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
  .cmp-scroll { margin-top: 1rem; }
  .cmp, .cmp tbody, .cmp tbody tr { display: block; }
  .cmp thead { display: none; }
  .cmp tbody th { display: block; padding: .85rem 1rem 0; font-size: .8125rem; color: var(--muted); font-weight: 600; }
  .cmp tbody td { display: none; padding: .1rem 1rem .9rem; background: var(--white) !important; font-size: 1rem; color: var(--ink); }
  .cmp[data-active="1"] td.c1, .cmp[data-active="2"] td.c2, .cmp[data-active="3"] td.c3 { display: block; }
  .cmp tbody tr + tr > td { border-top: 0; }
}

/* Work */
.work { background: var(--white); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.work__grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.work__big { font-family: var(--display); font-weight: 800; font-size: clamp(5.5rem, 14vw, 10.5rem); line-height: .9; letter-spacing: -.06em; color: var(--red); }
.work__intro h2 { margin-top: 1rem; }
.work__intro > p:last-child { margin-top: 1rem; font-size: 1.0625rem; color: var(--ink); }
.rule { padding: 1.1rem 0 1.1rem 1.1rem; border-left: 4px solid var(--border); }
.rule + .rule { margin-top: .5rem; }
.rule p { margin-top: .3rem; font-size: .9375rem; }
.rule--yes { border-color: var(--ok); } .rule--maybe { border-color: #D39A1F; } .rule--no { border-color: #A9A9A9; }
.work__foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .work__grid { grid-template-columns: 1fr; } }

/* Catalog */
.catalog { background: var(--paper); padding-block: clamp(3.5rem, 8vw, 6rem); }
.searchbar { margin-top: 1.75rem; display: flex; align-items: center; gap: .7rem; padding: 0 1.1rem; min-height: 60px; background: var(--white); border: 2px solid var(--ink); border-radius: 6px; }
.searchbar svg { flex: none; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; font-size: 1.0625rem; outline: 0; }
.searchbar:focus-within { box-shadow: 0 0 0 3px rgba(213,1,0,.25); border-color: var(--red); }
.cat-layout { margin-top: 1.5rem; display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 2rem; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 1rem); }
.filters__head { display: none; }
.filters__foot { display: none; }
.filters__body { display: grid; gap: 1.1rem; }
.field label, .field legend { display: block; font-family: var(--display); font-weight: 700; font-size: .875rem; color: var(--ink); margin-bottom: .35rem; }
.field select, .field input, .field textarea { width: 100%; min-height: 46px; padding: .55rem .8rem; background: var(--white); color: var(--ink); border: 1.5px solid #BDBDBD; border-radius: 4px; font-size: 1rem; }
.field select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231C1C1C' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; text-overflow: ellipsis; }
.field select:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
fieldset.field { border: 0; }
.seg { display: grid; grid-template-columns: 1fr; gap: 2px; }
.seg label { display: flex; align-items: center; gap: .55rem; min-height: 38px; margin: 0; font-family: var(--text); font-weight: 400; font-size: .9375rem; color: var(--ink); cursor: pointer; }
.seg input, .check input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.seg .n, .opt-n { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; margin-left: auto; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink); cursor: pointer; }
.check input { margin-top: .2rem; }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; }
.results__count { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.filters-open { display: none; }
.badge { min-width: 22px; height: 22px; padding: 0 .35rem; display: inline-grid; place-items: center; background: var(--red); color: var(--white); border-radius: 11px; font-size: .75rem; }
.grid { margin-top: .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.course { display: flex; flex-direction: column; background: var(--white); border-top: 3px solid var(--ink); border-radius: 0 0 4px 4px; padding: 1.1rem 1.15rem 1.15rem; min-width: 0; }
.course[data-kind="uni"] { border-top-color: var(--red); }
.course[data-kind="fp"] { border-top-color: var(--ink); }
.course[data-kind="cert"] { border-top-color: #8A8A8A; }
.course__type { font-size: .8125rem; font-weight: 600; color: var(--red-ink); }
.course h3 { margin-top: .3rem; font-size: 1.125rem; line-height: 1.22; overflow-wrap: anywhere; }
.course__meta { margin-top: .6rem; display: grid; gap: .15rem; font-size: .875rem; color: var(--body); }
.course__meta b { color: var(--ink); font-weight: 600; }
.course__visa { margin-top: .75rem; display: flex; gap: .5rem; align-items: flex-start; font-size: .8125rem; line-height: 1.4; color: var(--ink); }
.course__visa::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: .25em; border-radius: 50%; background: #A9A9A9; }
.course__visa[data-v="study_higher"]::before, .course__visa[data-v="study_secondary"]::before { background: var(--ok); }
.course__visa[data-v="training"]::before, .course__visa[data-v="review"]::before { background: #D39A1F; }
.course details { margin-top: .7rem; font-size: .875rem; }
.course summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: .35rem; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.course summary::-webkit-details-marker { display: none; }
.course__more { padding-top: .35rem; display: grid; gap: .5rem; }
.course__more dt { font-weight: 600; color: var(--ink); font-size: .8125rem; }
.course__more dd { margin-bottom: .2rem; }
.course__cta { margin-top: auto; padding-top: .9rem; }
.course__cta .btn { min-height: 44px; font-size: .9rem; }
.more { margin-top: 1.5rem; text-align: center; }
.empty { margin-top: 1rem; padding: 2.5rem 1.5rem; background: var(--white); text-align: center; }
.empty p { margin: .5rem auto 1.1rem; max-width: 30rem; }
.skeleton { height: 250px; background: linear-gradient(100deg, #ECEAE6 30%, #F6F5F3 50%, #ECEAE6 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: 4px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.scrim { position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.45); }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: minmax(0,1fr); }
  .filters-open { display: inline-flex; min-height: 44px; }
  .filters { position: fixed; z-index: 150; inset: auto 0 0 0; max-height: 86dvh; display: flex; flex-direction: column; background: var(--white); border-radius: 12px 12px 0 0; transform: translateY(102%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s; overscroll-behavior: contain; }
  .filters.open { transform: none; visibility: visible; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .6rem .6rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--display); font-size: 1.125rem; color: var(--ink); }
  .filters__close { width: 44px; height: 44px; display: grid; place-items: center; }
  .filters__body { padding: 1rem 1.25rem; overflow-y: auto; }
  .seg { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .seg label { justify-content: center; padding: .3rem; border: 1.5px solid #BDBDBD; border-radius: 4px; font-size: .875rem; min-height: 44px; }
  .seg label:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .seg input { position: absolute; opacity: 0; pointer-events: none; }
  .seg label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 1px; }
  .seg .n { display: none; }
  .filters__foot { display: block; padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
  .grid { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ */
.faq { padding-block: clamp(3.5rem, 8vw, 6rem); }
.faq__grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 56px; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 2rem 1.1rem 0; font-size: .9875rem; max-width: 42rem; }
@media (max-width: 760px) { .faq__grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--red); color: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta__grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -.035em; }
.cta__grid > div > p { margin-top: 1rem; font-size: 1.125rem; max-width: 36rem; line-height: 1.5; }
.cta__actions { display: grid; gap: .6rem; }
.cta__link { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .3rem .1rem; color: var(--white); font-family: var(--display); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cta__legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.4); font-size: .875rem; max-width: 62rem; color: var(--white); }
@media (max-width: 760px) { .cta__grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: #111; color: rgba(255,255,255,.7); padding-block: 1.5rem; font-size: .8125rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.foot__brand { font-family: var(--display); font-size: .9375rem; }
.foot__brand strong { font-weight: 800; color: var(--white); }
.foot__links { display: flex; gap: 1.25rem; }
.foot__links a:hover { color: var(--white); }

/* Lead dialog */
.lead { margin: auto; width: min(560px, 100%); max-height: min(92dvh, 860px); padding: 0; border: 0; border-radius: 8px; background: var(--white); color: var(--body); overscroll-behavior: contain; }
.lead::backdrop { background: rgba(0,0,0,.6); }
.lead[open] { animation: rise .22s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lead form, .lead__done { padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 1.75rem; display: grid; gap: .9rem; }
.lead h2 { font-size: 1.625rem; padding-right: 2.5rem; }
.lead__close { position: absolute; top: .55rem; right: .55rem; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.lead__course { padding: .7rem .9rem; background: #FDF0EF; border-left: 3px solid var(--red); font-size: .8125rem; }
.lead__course strong { display: block; color: var(--ink); font-family: var(--display); font-size: .975rem; line-height: 1.3; }
.opt { font-weight: 400; color: var(--muted); }
.field label { margin-bottom: .3rem; }
.err { margin-top: .3rem; font-size: .8125rem; font-weight: 500; color: var(--red-ink); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.check--consent { font-size: .8125rem; line-height: 1.45; color: var(--body); }
.check--consent a { color: var(--ink); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__fail { padding: .8rem .9rem; background: #FFF4E5; font-size: .875rem; color: var(--ink); }
.lead__fail a { display: inline-block; margin: .4rem 1rem 0 0; font-weight: 600; text-decoration: underline; }
.lead__done { justify-items: center; text-align: center; padding-block: 3rem 2.5rem; }
.lead__done svg { color: var(--ok); }
.lead__done h2 { padding: 0; }
@media (max-width: 560px) {
  .lead { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .lead form, .lead__done { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
