/* =========================================================
   Future Lab — Εργαστήρι Δεξιοτήτων
   Design system & styles

   Type    Commissioner (display, full Greek) + Inter (body)
   Color   One brand blue, ink neutrals, amber reserved for
           subsidy/money, green reserved for "free"
   Depth   Borders first; shadow only on hover/floating UI
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand:      #1e4fc2;
  --brand-deep: #16399a;
  --brand-100:  #d9e3f8;
  --brand-50:   #eef2fb;

  /* Accent — subsidy / money only */
  --amber:      #ffbe2e;
  --amber-ink:  #3d2b00;
  --amber-50:   #fdf3dc;
  --amber-text: #9a6700;

  /* Semantic */
  --green:      #178a4c;
  --green-50:   #e9f6ef;
  --red:        #d5393f;
  --red-50:     #fdecec;

  /* Ink & surfaces */
  --navy:      #0f1c30;   /* footer, dark bands */
  --ink:       #16212f;   /* headings */
  --ink-2:     #3d4a5c;   /* body */
  --ink-3:     #617082;   /* secondary */
  --ink-4:     #8b97a7;   /* faint */
  --line:      #e3e8ee;
  --line-2:    #edf0f4;
  --surface:   #f5f7fa;
  --surface-2: #fafbfd;
  --white:     #fff;

  /* Legacy aliases still referenced by shared markup */
  --blue-600: var(--brand);
  --blue-50:  var(--brand-50);

  /* Type */
  --font-display: 'Commissioner', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 28, 48, .05), 0 2px 8px rgba(15, 28, 48, .04);
  --shadow-md: 0 2px 6px rgba(15, 28, 48, .05), 0 12px 28px rgba(15, 28, 48, .08);
  --shadow-lg: 0 4px 10px rgba(15, 28, 48, .06), 0 24px 48px rgba(15, 28, 48, .12);

  /* Alternating thematic bands: the page is white and every second
     top-level section gets the grey band — white / grey / white…
     Both tones are full-viewport width; no lines, no grids. */
  --page-bg: #fff;
  /* Dark enough to read as grey even on bright / washed-out panels —
     lighter tints (#f4f6fa and up) render as plain white on some
     wide monitors. */
  --band-bg: #eef2f7;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(28px, 4.5vw, 56px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Same canvas tone as body so no viewport edge ever falls back to white,
     regardless of screen width or overscroll. */
  background-color: var(--page-bg);
}

body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background-color: var(--page-bg);
  background-image: none;
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Sticky footer: body is the page wrapper (header mount / main / footer
     mount are its only children on every page). main grows, so on short
     pages the footer still reaches the bottom of the viewport. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
#site-header, #site-footer { flex-shrink: 0; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

p { text-wrap: pretty; }

::selection { background: var(--brand); color: #fff; }

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

/* Anchored sections land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Skip link — first tab stop, visible only on focus */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 10px 16px; border-radius: var(--r-sm);
  transform: translateY(-64px); opacity: 0;
  transition: transform .2s var(--ease), opacity .2s ease;
}
.skip-link:focus-visible { transform: none; opacity: 1; outline-offset: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

/* Wide screens: scale the shared container up so every section uses
   the viewport instead of leaving huge side gaps. Laptop and below
   keep the original 1180px layout. */
@media (min-width: 1600px) {
  :root { --container: 1480px; --gutter: 56px; }
  /* Inner blocks that carry their own width caps scale up with the page */
  .section-head { max-width: 860px; }
  .faq { max-width: 1040px; }
  .container--narrow { max-width: 900px; }
  .page-hero h1 { max-width: 1040px; }
  .page-hero__lead { max-width: 780px; }
  .cta-inner p { max-width: 680px; }
}
@media (min-width: 1920px) {
  :root { --container: 1680px; --gutter: 80px; }
  .section-head { max-width: 960px; }
  .faq { max-width: 1160px; }
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(20px, 3vw, 40px); }
/* Base: all section wrappers transparent (white page shows through).
   --alt / --band kept for markup compatibility only. */
main, .hero, .section, .section--alt, .section--band, .page-hero { background-color: transparent; }
/* Alternating bands per thematic section: every second top-level
   section of a page gets the grey tone, full viewport width —
   white / grey / white… on every page automatically. */
main > section:nth-of-type(even) {
  background-color: var(--band-bg);
  border-block: 1px solid var(--line-2);
}
/* First section after a page hero — pull it closer */
.section--pulled { padding-top: clamp(24px, 3vw, 44px); }
.hero + .section { padding-top: clamp(26px, 3vw, 44px); }

.section-head { max-width: 680px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.prog-head .section-head { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
/* Variant classes kept for markup compatibility — one accent, on purpose */
.eyebrow.teal, .eyebrow.orange { color: var(--brand); background: none; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-wrap: balance; }
.section-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-3);
}
.section-sub a { color: var(--brand); font-weight: 600; }
.section-sub a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 13px 21px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-sm); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn--light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn--light:hover { background: rgba(255,255,255,.16); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 10px 17px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--brand); font-size: .96rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
/* Sticky must live on the MOUNT div (a direct child of body): the
   <header> inside it has no room to stick within a wrapper that is
   exactly its own height. */
#site-header { position: sticky; top: 0; z-index: 100; }
.site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s ease;
  /* Above the scrim (z 80): the backdrop-filter makes this element the
     stacking context that contains the mobile drawer, so the drawer can
     only beat the scrim if the header layer itself sits higher. */
  position: relative; z-index: 90;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(15,28,48,.06); }

.nav {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Jura', var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 1.28rem; letter-spacing: .08em;
  flex-shrink: 0;
}
.brand > span:not(.brand__mark) {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.15; white-space: nowrap;
}
.brand__mark {
  width: 52px; height: 52px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(13, 27, 42, .08);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand__mark img { width: 40px; height: auto; display: block; }
.brand__text b {
  font-weight: 700;
  background: linear-gradient(90deg, #2563EB, #00B4D8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #00B4D8;
}
.brand small {
  display: block; font-size: .58rem; font-weight: 600;
  letter-spacing: .42em; color: #00B4D8; text-transform: uppercase;
  margin-top: 2px; white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: 1.08rem;
  color: var(--ink-2); padding: 10px 14px; border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.active { color: var(--brand); font-weight: 600; }

.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .28s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer { display: none; }

/* Scrim behind the mobile drawer */
.nav__scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 28, 48, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.nav__scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* transparent: the shared body background (tone + grid) flows through */
  overflow: hidden;
}
.hero .container { position: relative; }
.hero__grid {
  display: grid;
  /* 12-col rhythm: text ≈ 6 cols, visual ≈ 5 cols, gap ≈ 1 col (8.333%) */
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(32px, 8.333%, 120px);
  row-gap: 34px;
  /* Top-aligned: the badge lines up with the top of the carousel card */
  align-items: start;
  padding-block: clamp(24px, 3vw, 44px) clamp(32px, 4.5vw, 60px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  font-weight: 500; font-size: .88rem; color: var(--ink-2);
  margin-bottom: 24px;
}
.hero__badge b { color: var(--ink); font-weight: 600; }
.hero__badge-mark {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: #fff; border: 1px solid rgba(13, 27, 42, .08);
  display: grid; place-items: center;
}
.hero__badge-mark img { width: 17px; height: auto; display: block; }
.hero h1 {
  font-size: clamp(1.9rem, 1.1rem + 2.3vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 21ch;
  text-wrap: balance;
}
/* Exactly ONE accent word per headline — never scattered colored words */
.hero h1 .hl { color: var(--brand); }
.hero__lead {
  margin-top: 18px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7; color: var(--ink-3); max-width: 500px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* min-width: 0 stops the carousel's intrinsic width (flex-shrink: 0 slides)
   from blowing out the grid column on narrow viewports */
.hero__visual { position: relative; min-width: 0; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; }
.hero-carousel__viewport { overflow: hidden; padding: 8px 0 16px; margin: -8px 0 -16px; }
.hero-carousel__track {
  display: flex;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.hero-carousel__slide { flex: 0 0 100%; min-width: 0; }

.promo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.promo-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.promo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.promo-card__voucher {
  position: absolute; top: 12px; left: 12px;
  background: var(--amber); color: var(--amber-ink);
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  padding: 6px 11px; border-radius: var(--r-sm);
}
.promo-card__voucher--cert { background: var(--navy); color: #fff; }
.promo-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; }
.promo-card__cat {
  font-family: var(--font-display); font-weight: 600; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.promo-card h3 { font-size: 1.22rem; line-height: 1.28; margin-bottom: 8px; }
.promo-card p { font-size: .95rem; line-height: 1.6; color: var(--ink-3); margin-bottom: 18px; }
.promo-card .btn { align-self: flex-start; }

.hero-carousel__arrow {
  position: absolute; top: 36%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--ink);
  z-index: 3;
  transition: border-color .18s ease, color .18s ease;
}
.hero-carousel__arrow svg { width: 20px; height: 20px; }
.hero-carousel__arrow:hover { color: var(--brand); border-color: var(--ink-4); }
/* Arrows sit inside the card so they can never leave the viewport */
.hero-carousel__arrow--prev { left: 12px; }
.hero-carousel__arrow--next { right: 12px; }

.hero-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hero-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); padding: 0;
  transition: background .2s ease, width .25s var(--ease);
}
.hero-carousel__dot:hover { background: var(--ink-4); }
.hero-carousel__dot.is-active { background: var(--brand); width: 22px; border-radius: var(--r-pill); }

/* ---------- Category cards ---------- */
/* 3 columns by default; 5 only when there is genuinely enough width
   for Greek labels not to over-wrap. Steps down: 3 → 2 → 1. */
/* Centered wrapping row — works for any number of tiles */
/* .cats shares the single card grid defined with .prog-grid below. */
.cat {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 20px 22px;
  transition: border-color .2s ease, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.cat:hover { border-color: var(--ink-4); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat__ic {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-50); color: var(--brand);
  transition: background .2s ease, color .2s ease;
}
.cat:hover .cat__ic { background: var(--brand); color: #fff; }
.cat__ic svg { width: 22px; height: 22px; }
.cat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cat p { font-size: .89rem; color: var(--ink-3); }
.cat__more {
  /* auto top margin pins the link to the card bottom so equal-height
     tiles stay aligned even when descriptions wrap differently */
  margin-top: auto; padding-top: 14px; font-size: .84rem; font-weight: 600;
  font-family: var(--font-display); color: var(--brand);
  display: inline-flex; gap: 5px; align-items: center;
}

/* Icon tint variants kept for compatibility — unified single accent */
.ic-blue, .ic-teal, .ic-orange, .ic-green, .ic-navy {
  background: var(--brand-50); color: var(--brand);
}

/* ---------- Programs ---------- */
.prog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--font-display); font-weight: 500; font-size: .92rem;
  padding: 9px 16px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.filter:hover { border-color: var(--ink-4); color: var(--ink); }
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* ---------- THE card grid ----------
   One grid system for every card listing (programs + categories):
   equal columns, cards never size to their content, breakpoints only
   change the column count: 3 → 2 → 1. */
.prog-grid, .cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.prog-grid { margin-top: 32px; }
.card, .cat { width: 100%; min-width: 0; }

/* Fewer tiles than columns: keep the exact 3-column tile width but
   center the row instead of leaving empty columns on the right. */
@media (min-width: 961px) {
  .cats:has(> .cat:first-child:last-child) {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc((100% - 44px) / 3);
    margin-inline: auto;
  }
  .cats:has(> .cat:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc((100% - 44px) / 3 * 2 + 22px);
    margin-inline: auto;
  }
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s ease, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--ink-4); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card h3 a { color: inherit; transition: color .15s ease; }
.card h3 a:hover { color: var(--brand); }

.card__tag {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.card__tag.subsidy { background: var(--amber); color: var(--amber-ink); font-weight: 700; }
.card__mode {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; font-family: var(--font-display);
  padding: 5px 10px; border-radius: var(--r-sm);
  background: rgba(15,28,48,.78); color: #fff; backdrop-filter: blur(4px);
}
.card__mode svg { width: 13px; height: 13px; }

.card--featured { border-color: var(--brand-100); }
.card__feature {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.95); color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.card__feature svg { width: 12px; height: 12px; }

.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__cat {
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.card h3 { font-size: 1.13rem; line-height: 1.3; margin-bottom: 12px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-bottom: 16px; }
.card__meta li { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-3); }
.card__meta svg { width: 15px; height: 15px; color: var(--ink-4); flex-shrink: 0; }
.card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-family: var(--font-display); }
.card__price b { display: block; font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.card__price span { font-size: .78rem; color: var(--ink-4); }
.card__price .free { color: var(--green); }

/* ---------- Process steps ---------- */
/* One grid rule renders all four steps identically: equal minmax(0,1fr)
   columns, one gap, and the divider is each item's own border-top —
   always 100% of its column, same Y, same thickness. No per-item
   widths, margins or absolute positioning. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: 10px;
}
.step { min-width: 0; border-top: 2px solid var(--line); padding-top: 20px; }
.step__line { display: none; }
.step__num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.7rem; line-height: 1;
  color: var(--ink-4);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.step__num::before { content: '0'; }
.step h3 { font-size: 1.1rem; margin-bottom: 7px; }
.step p { font-size: .92rem; color: var(--ink-3); }

/* ---------- News / announcements ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; margin-top: 10px; }
.news {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news:hover { border-color: var(--ink-4); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news--feature .news__media { aspect-ratio: 16/9; }
.news__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news:hover .news__media img { transform: scale(1.03); }
.news__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news__date { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; color: var(--ink-4); }
.news__pill {
  display: inline-flex; width: max-content; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 9px; border-radius: 6px;
}
.news__pill.open { background: var(--green-50); color: var(--green); }
.news__pill.soon { background: var(--amber-50); color: var(--amber-text); }
.news__pill.info { background: var(--brand-50); color: var(--brand); }
.news h3 { font-size: 1.08rem; line-height: 1.32; }
.news--feature h3 { font-size: 1.4rem; }
.news h3 a { color: inherit; transition: color .15s ease; }
.news h3 a:hover { color: var(--brand); }
.news p { font-size: .92rem; color: var(--ink-3); }
.news__foot { margin-top: auto; padding-top: 6px; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 14px; margin-top: 18px; }

.contact-page { padding-top: clamp(24px, 3.5vw, 44px); padding-bottom: clamp(48px, 6vw, 84px); }
.contact-page .breadcrumb { margin-bottom: 20px; }
.contact-page .section-head { margin-bottom: clamp(24px, 3vw, 34px); }
.contact-details { margin-top: clamp(36px, 5vw, 56px); }
.contact-details__title { text-align: center; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 8px; }
.contact-list--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; transition: border-color .18s ease;
}
.contact-item:hover { border-color: var(--ink-4); }
.contact-item__ic {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-50); color: var(--brand);
}
.contact-item__ic svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: .8rem; color: var(--ink-4); }
.contact-item b { font-family: var(--font-display); color: var(--ink); font-size: 1rem; font-weight: 600; }
.contact-map { margin-top: 20px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); height: 220px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.03); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 38px);
}
.contact-form-main { box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card > p { color: var(--ink-3); font-size: .95rem; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .89rem; color: var(--ink); margin-bottom: 6px;
}
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px var(--brand-50);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.field__err { display: none; color: var(--red); font-size: .82rem; margin-top: 6px; font-weight: 500; }
.field.invalid .field__err { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-3); margin: 6px 0 20px; }
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.consent a { color: var(--brand); font-weight: 600; }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--ink-4); text-align: center; }
.form-success {
  display: none; align-items: center; gap: 12px;
  background: var(--green-50); border: 1px solid #c4e5d3; color: #11693a;
  padding: 15px 17px; border-radius: var(--r-md); font-weight: 500; margin-top: 18px;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(40px, 5.5vw, 76px); }
.cta-band--flush { padding-top: 0; }
.cta-inner {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 60px);
  text-align: center; position: relative; overflow: hidden;
}
/* Soft radial sheen instead of a grid — keeps the band from feeling flat */
.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.cta-inner p { color: rgba(255,255,255,.72); max-width: 540px; margin: 14px auto 0; font-size: 1.05rem; }
.cta-inner .hero__cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
/* Compact 3-column block: brand/about (slightly wider) + two link columns.
   One cohesive unit — columns kept close with a modest gap, never spread
   to the container edges. */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding-top: 56px; }
.footer a { transition: color .15s ease; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr;
  column-gap: clamp(32px, 4vw, 56px); row-gap: 24px;
  align-items: start;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand > span:not(.brand__mark) { color: #fff; }
.footer .brand small { color: #2EC4B6; }
.footer .brand__mark { background: #fff; border-color: transparent; }
.footer__about { font-size: .93rem; line-height: 1.6; max-width: 360px; }
.footer__contact { display: grid; gap: 10px; margin-top: 16px; }
.footer__contact li { display: flex; }
.footer__contact a, .footer__contact span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .92rem; color: rgba(255,255,255,.7);
}
.footer__contact svg { width: 17px; height: 17px; color: rgba(255,255,255,.4); flex-shrink: 0; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.8);
  transition: background .18s ease, color .18s ease;
}
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .93rem; line-height: 1.4; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; align-items: center; text-align: center;
  padding-block: 20px; font-size: .86rem;
}
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 18px; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  padding: 14px 30px 14px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.35rem; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details > p { padding: 0 0 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-carousel__track { transition: none; }
  html { scroll-behavior: auto; }
  .card:hover, .news:hover, .cat:hover, .btn:active { transform: none; }
  .card:hover .card__media img, .news:hover .news__media img { transform: none; }
}

/* =========================================================
   Subpages
   ========================================================= */

/* Page hero */
.page-hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px);
}
.page-hero.center { text-align: center; }
.page-hero h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); max-width: 880px; letter-spacing: -.025em; }
.page-hero.center h1 { margin-inline: auto; }
.page-hero__lead { max-width: 640px; margin-top: 14px; color: var(--ink-3); font-size: 1.08rem; }
.page-hero.center .page-hero__lead { margin-inline: auto; }
.page-hero .news__pill { margin-bottom: 14px; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--ink-4); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-3); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .55; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.page-hero.center .breadcrumb { justify-content: center; }

/* Catalog bar */
.catalog-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-4); }
.search-box input {
  width: 100%; padding: 12px 15px 12px 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.result-count { font-size: .92rem; color: var(--ink-3); }
.result-count b { color: var(--ink); font-family: var(--font-display); }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); display: none; }
.empty.show { display: block; }
.empty h3 { margin-bottom: 8px; }

/* Detail layout */
.detail-grid { display: grid; grid-template-columns: 1fr 350px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.prose > * + * { margin-top: 17px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.02rem; }
.prose ul.ticks { display: grid; gap: 11px; margin-top: 10px; }
.prose ul.ticks li { position: relative; padding-left: 32px; }
.prose ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 6px;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23178a4c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.prose .lead { font-size: 1.12rem; color: var(--ink-3); }
.prose .back-link { margin-top: 32px; }

/* Badge row (detail hero) */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  padding: 8px 13px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.badge svg { width: 15px; height: 15px; color: var(--ink-4); }
.badge.subsidy { background: var(--amber); color: var(--amber-ink); border-color: transparent; font-weight: 700; }
.badge.subsidy svg { color: var(--amber-ink); }
.badge.mode { background: var(--navy); color: #fff; border-color: transparent; }
.badge.mode svg { color: rgba(255,255,255,.7); }

/* Detail sidebar */
.detail-aside {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.detail-aside .price-big { font-family: var(--font-display); margin-bottom: 16px; }
.detail-aside .price-big b { display: block; font-weight: 800; font-size: 1.9rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.detail-aside .price-big b.free { color: var(--green); }
.detail-aside .price-big span { font-size: .88rem; color: var(--ink-4); }
.spec-list { display: grid; margin: 4px 0 20px; }
.spec-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .93rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-3); }
.spec-list .k svg { width: 16px; height: 16px; color: var(--ink-4); }
.spec-list .v { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-align: right; }
.aside-note { margin-top: 13px; font-size: .81rem; color: var(--ink-4); text-align: center; }

/* Announcement article */
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; color: var(--ink-3); font-size: .9rem; }
.article-meta .news__date { color: var(--ink-3); }
.article-figure { margin: 8px 0 4px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.article-figure img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.callout {
  background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 3px solid var(--brand);
  border-radius: var(--r-sm); padding: 18px 20px;
}
.callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.callout p { font-size: .95rem; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--ink-3); margin-bottom: 20px; }
.back-link:hover { color: var(--brand); }
.back-link svg { width: 16px; height: 16px; }

/* Category hero (dark) */
.cat-hero { color: #fff; position: relative; overflow: hidden; background: var(--navy); }
.cat-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% -30%, rgba(255,255,255,.08), transparent 55%);
  pointer-events: none;
}
.cat-hero .container { position: relative; padding-block: clamp(40px, 5.5vw, 68px); }
.cat-hero h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.8rem); letter-spacing: -.025em; }
.cat-hero .page-hero__lead { color: rgba(255,255,255,.72); }
.cat-hero .breadcrumb, .cat-hero .breadcrumb a { color: rgba(255,255,255,.55); }
.cat-hero .breadcrumb a:hover { color: #fff; }
.cat-hero .breadcrumb [aria-current] { color: #fff; }
.cat-hero__ic {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.cat-hero__ic svg { width: 27px; height: 27px; color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news--feature { grid-column: span 2; }
}


/* Header: tighten links */
@media (max-width: 1240px) {
  .nav__links a { padding: 8px 10px; font-size: 1rem; }
  .nav__cta { gap: 10px; }
}

/* Header: collapse to hamburger BEFORE the nav can overflow.
   The CTA button stays visible next to the toggle down to 640px. */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__drawer {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px var(--gutter) 24px;
    display: grid; gap: 2px;
    transform: translateY(-120%); transition: transform .32s var(--ease);
    z-index: 90; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__drawer.open { transform: translateY(0); }
  .nav__drawer a { padding: 12px; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 500; color: var(--ink); }
  .nav__drawer a:hover { background: var(--surface); }
  .nav__drawer .btn { margin-top: 12px; color: #fff; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .prog-grid, .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .nav__cta .btn { display: none; }

  .brand__mark { width: 38px; height: 38px; }
  .brand__mark img { width: 29px; }
  .brand { font-size: .98rem; }
  .nav__toggle { width: 40px; height: 40px; }

  .hero__grid { padding-block: clamp(32px, 8vw, 44px) 40px; gap: 34px; }
  .hero__badge { margin-bottom: 18px; }
  .hero__lead { margin-top: 14px; }
  .hero__cta { margin-top: 24px; gap: 10px; }

  /* Touch: swipe + dots instead of arrows; larger dot targets */
  .hero-carousel__arrow { display: none; }
  .hero-carousel__dots { gap: 10px; margin-top: 16px; }
  .hero-carousel__dot { width: 10px; height: 10px; }
  .hero-carousel__dot.is-active { width: 26px; }

  /* Filters become a swipeable rail, bleeding to the screen edge */
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 4px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }

  .section-head { margin-bottom: 24px; }
  .prog-grid { margin-top: 24px; }
  .prog-grid, .cats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news--feature { grid-column: span 1; }

  /* Mobile card economy: shorter media, tighter padding — less
     scrolling per card, same one-grid system */
  .card__media, .news__media { aspect-ratio: 16 / 8; }
  .card__body { padding: 16px 16px 18px; }
  .news__body { padding: 16px; }
  .cat { padding: 18px 16px 16px; }
  .cat__ic { width: 40px; height: 40px; margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta-inner .btn { width: 100%; }
  .btn { padding: 15px 21px; }        /* comfier tap targets */
  .btn--sm { padding: 11px 17px; }
  .cta-inner { border-radius: var(--r-lg); padding: 30px 22px 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .detail-aside { padding: 22px; }
  .form-card { padding: 22px 18px; }
}

