/* UK Knowledge — stiluri comune */
:root {
  --ink: #1B2440;
  --ink-soft: #3A4360;
  --muted: #5A6275;
  --paper: #F6F7F4;
  --white: #FFFFFF;
  --line: #D5D9DE;
  --route: #0F7C7A;
  --route-dark: #0A5C5A;
  --route-tint: #E2F0EF;
  --wait: #C98A0E;
  --wait-tint: #FBF1DC;
  --error: #B3261E;
  --radius-s: 6px;
  --radius-m: 12px;
  --max: 1120px;
  --text: 68ch;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--route-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--wait); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 650; max-width: 26ch; }
h3 { font-size: 1.25rem; font-weight: 650; }
p, li { max-width: var(--text); }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 56ch; }
.small { font-size: 0.9375rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* Antet */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.975rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--route-dark); text-decoration: underline; }
.lang { font-size: 0.9rem; color: var(--muted); }
.lang a { color: var(--muted); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; color: var(--ink); }
@media (max-width: 1140px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* Butoane */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; border-radius: var(--radius-s); padding: 14px 22px; border: 2px solid var(--route); background: var(--route); color: var(--white); cursor: pointer; }
.btn:hover { background: var(--route-dark); border-color: var(--route-dark); color: var(--white); }
.btn.secondary { background: transparent; color: var(--route-dark); }
.btn.secondary:hover { background: var(--route-tint); color: var(--ink); }
.btn.wait { background: var(--wait); border-color: var(--wait); color: var(--ink); }
.btn.wait:hover { background: #B07A0B; border-color: #B07A0B; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero cu harta rutelor */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.routemap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.routemap svg { width: 100%; height: auto; }
.routemap .place { font-family: var(--font-head); font-weight: 700; font-size: 20px; fill: var(--ink); }
.routemap .route { fill: none; stroke-width: 5; stroke-linecap: round; }
.routemap .route.on { stroke: var(--route); }
.routemap .route.soon { stroke: var(--wait); stroke-dasharray: 2 12; }
.routemap a .route { transition: stroke-width .15s ease; }
.routemap a:hover .route, .routemap a:focus .route { stroke-width: 8; }
.routemap .tag { font-size: 14px; fill: var(--ink); font-family: var(--font-body); font-weight: 600; }
.routemap .tag-sub { font-size: 12.5px; fill: var(--muted); font-family: var(--font-body); }
.routemap a:focus { outline: none; }
.routemap a:focus .tag { text-decoration: underline; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 22px; height: 0; border-top: 4px solid var(--route); vertical-align: middle; margin-right: 8px; }
.legend span.soon::before { border-top: 4px dotted var(--wait); }

/* Cele 4 directii */
.directions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
@media (max-width: 760px) { .directions { grid-template-columns: 1fr; } }
.direction { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.direction:nth-child(2n) { border-right: 0; }
.direction:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) { .direction { border-right: 0; } .direction:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.direction .route-line { font-size: 0.9rem; color: var(--muted); }
.direction h3 { margin: 0; }
.direction p { margin: 0 0 12px; color: var(--ink-soft); }
.direction .go { margin-top: auto; font-weight: 600; }
.status { display: inline-block; font-size: 0.85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; width: fit-content; }
.status.on { background: var(--route-tint); color: var(--route-dark); }
.status.soon { background: var(--wait-tint); color: #7A5308; }

/* Pasi */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 36px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--route); color: var(--route-dark); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }

/* Tabele si fapte */
.facts { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--white); border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-family: var(--font-head); font-weight: 650; background: #EEF1EE; }
.facts tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.note { border-left: 4px solid var(--wait); background: var(--wait-tint); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 24px 0; max-width: var(--text); }
.note.info { border-left-color: var(--route); background: var(--route-tint); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .twocol { grid-template-columns: 1fr; } }
.checklist { padding-left: 0; list-style: none; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--route); border-bottom: 3px solid var(--route); transform: rotate(-45deg); }

/* Formulare */
form.panel, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; max-width: 760px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.9rem; color: var(--muted); margin-top: -2px; margin-bottom: 6px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #B9C0C8; border-radius: var(--radius-s); padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--route); outline: 3px solid var(--route-tint); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; background: var(--white); }
.choice:hover { border-color: var(--route); }
.choice input { margin-top: 5px; accent-color: var(--route); }
.choice:has(input:checked) { border-color: var(--route); background: var(--route-tint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; margin-bottom: 12px; }
.consent input { margin-top: 5px; accent-color: var(--route); }
.hidden { display: none !important; }
.error-msg { color: var(--error); font-weight: 600; margin: 8px 0 0; }

/* Testul */
.quiz-progress { height: 6px; background: var(--line); border-radius: 99px; margin-bottom: 24px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--route); transition: width .25s ease; }
.quiz-step h2 { font-size: 1.5rem; max-width: none; }
.quiz-nav { display: flex; gap: 12px; margin-top: 24px; }
.result { border: 2px solid var(--route); border-radius: var(--radius-m); background: var(--white); padding: 28px; margin-bottom: 28px; }
.result.soon { border-color: var(--wait); }
.result h2 { font-size: 1.7rem; }

/* Subsol */
.site-footer { background: var(--ink); color: #DDE2EA; padding: 56px 0 40px; margin-top: 0; }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 { font-size: 1rem; color: #FFFFFF; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid #39425E; margin-top: 40px; padding-top: 20px; font-size: 0.9rem; color: #AEB6C5; }

/* Pagini interioare */
.page-head { padding: 56px 0 36px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.1rem; }
.faq details p { margin: 10px 0 0; }
.sources { font-size: 0.9rem; color: var(--muted); }
