/* ==========================================================================
   CSN Sala Polivalentă București — foaie de stil principală
   Fără framework-uri. Culorile și spațierile sunt definite ca variabile mai jos.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-900: #071634;
  --navy-800: #0b1f44;
  --navy-700: #13306a;
  --blue-600: #2348d0;
  --blue-500: #3a5fe6;
  --blue-100: #e6ecfd;
  --blue-50: #f2f5fe;
  --ro-blue: #002b7f;
  --ro-yellow: #fcd116;
  --ro-red: #ce1126;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5b6478;
  --border: #e2e7f0;
  --border-strong: #cbd3e1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 48px -24px rgba(7, 22, 52, .45);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; color: var(--navy-800); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--white { background: var(--surface); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); }
.muted { color: var(--muted); }

/* ---------- butoane ---------- */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: #fff; --btn-bd: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--border-strong); }
.btn--ghost:hover { --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--ro-yellow); --btn-fg: var(--navy-900); --btn-bd: var(--ro-yellow); color: var(--navy-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; color: var(--navy-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- antet ---------- */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--ro-blue) 0 33.33%, var(--ro-yellow) 33.33% 66.66%, var(--ro-red) 66.66% 100%); }
.topbar { background: var(--navy-900); color: #c9d4ee; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e6ecfb; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.topbar__list li { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--navy-800); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--navy-800); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .topbar .topbar__hide-sm { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { min-height: 50px; padding: 0 16px; border-radius: 12px; font-size: 1.02rem; }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .brand img { height: 46px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-800); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7,22,52,.94) 0%, rgba(11,31,68,.82) 45%, rgba(19,48,106,.35) 100%); }
.hero .container { padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(64px, 10vw, 128px); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 20px; }
.hero h1 span { display: block; color: #9fb6ff; }
.hero p { max-width: 58ch; color: #d5def3; font-size: clamp(1.02rem, 1.6vw, 1.15rem); margin-bottom: 30px; }
.hero .eyebrow { color: var(--ro-yellow); }

.facts { position: relative; margin-top: -44px; z-index: 2; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.fact { padding: 24px 26px; border-right: 1px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy-800); line-height: 1.1; }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-800); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,22,52,.95), rgba(11,31,68,.78)); }
.page-hero .container { padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(40px, 7vw, 72px); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); margin: 0; max-width: 28ch; }
.page-hero p { color: #cfd9f1; margin: 12px 0 0; max-width: 70ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .85rem; color: #b6c4e6; }
.breadcrumb a { color: #e3e9f8; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---------- carduri & grile ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { color: var(--text-2); margin: 0; }
.card__body .btn { align-self: flex-start; margin-top: auto; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
.card__icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 42%; height: 42%; border-radius: var(--radius-lg); background: var(--blue-100); z-index: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 0; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.notice img { width: 100%; height: auto; }
.notice:hover { box-shadow: var(--shadow-lg); color: inherit; }

/* ---------- evenimente următoare (pagina de start) ---------- */
.upcoming { display: grid; gap: 12px; }
.upcoming__item { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.upcoming__date { text-align: center; background: var(--navy-800); color: #fff; border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.upcoming__date b { display: block; font-size: 1.55rem; font-weight: 800; }
.upcoming__date small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #c3d0f2; }
.upcoming__title { font-weight: 650; color: var(--navy-800); margin: 0; white-space: pre-line; }
.upcoming__meta { color: var(--muted); font-size: .9rem; margin: 2px 0 0; white-space: pre-line; }
.upcoming__empty { padding: 22px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }

/* ---------- conținut text (pagini legale etc.) ---------- */
.prose { max-width: 820px; color: var(--text-2); }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { margin-top: 1.8em; }
.prose h2 { font-size: 1.45rem; }
.prose h3, .prose h4, .prose h5 { font-size: 1.12rem; }
.prose > :first-child { margin-top: 0; }
.prose .update-note { background: var(--blue-50); border-left: 4px solid var(--blue-600); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.6em; color: var(--text); }
.prose .update-note p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-sm); }

/* ---------- acordeon (details/summary) ---------- */
.accordion { display: grid; gap: 12px; }
.acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; overflow: clip; }
.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 14px 20px; font-weight: 700; color: var(--navy-800); font-size: 1.05rem;
  transition: background .2s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--surface-2); }
.acc > summary .acc__title { flex: 1; }
.acc > summary .acc__count { font-size: .78rem; font-weight: 650; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.acc > summary .acc__chev { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); transition: transform .25s, background .2s; }
.acc > summary .acc__chev svg { width: 16px; height: 16px; }
.acc[open] > summary { border-bottom: 1px solid var(--border); }
.acc[open] > summary .acc__chev { transform: rotate(180deg); background: var(--blue-600); color: #fff; }
.acc__body { padding: 8px 20px 20px; }
.acc--sub { box-shadow: none; background: var(--surface-2); }
.acc--sub > summary { min-height: 52px; font-size: .98rem; }
.acc__body .accordion { margin-top: 12px; gap: 10px; }

/* ---------- liste de documente ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: 0; }
.doc {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 6px; text-decoration: none; color: var(--text); border-radius: 10px;
  transition: background .15s;
}
.doc:hover { background: var(--blue-50); color: var(--navy-800); }
.doc__type { width: 42px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: #c2263a; position: relative; }
.doc__type::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, var(--bg) 50%, rgba(0,0,0,.18) 50%); border-top-right-radius: 8px; }
.doc__type--doc, .doc__type--docx { background: #2b5bd7; }
.doc__type--xls, .doc__type--xlsx { background: #1d7a45; }
.doc__type--pag { background: var(--navy-700); }
.doc__type--img { background: #7a4bd1; }
.doc__title { font-weight: 550; font-size: .97rem; line-height: 1.4; word-break: break-word; }
.doc__badge { display: inline-block; margin-left: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a4b00; background: #ffefc2; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.doc__go { color: var(--muted); }
.doc__go svg { width: 18px; height: 18px; }
.doc-list--num { counter-reset: n; }
.doc-list--num li { counter-increment: n; }
.doc-list--num .doc { grid-template-columns: 24px auto 1fr auto; }
.doc-list--num .doc::before { content: counter(n); color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; text-align: right; }

.doc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--border); }
.doc-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.doc-table td:first-child { width: 48px; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-table a { font-weight: 550; }
@media (max-width: 640px) {
  .doc-table thead { display: none; }
  .doc-table tr { display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .doc-table td { border: 0; padding: 2px 0; }
  .doc-table td:first-child { grid-row: span 3; width: auto; }
  .doc-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
}

.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.link-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.link-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--navy-800); }
.link-card .doc__title { font-weight: 650; }
.link-card > svg { width: 18px; height: 18px; color: var(--muted); }

.list-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.list-section h2 { font-size: 1.05rem; margin: 0 0 6px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 320px; max-width: 520px; }
.search input {
  width: 100%; min-height: 50px; padding: 0 16px 0 46px; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.result-info { color: var(--muted); font-size: .92rem; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 2px; }
.subhead { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 34px 0 12px; }

/* ---------- program ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface);
  font: 650 .95rem/1 var(--font); color: var(--navy-800); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-600); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked { background: var(--blue-600); }
.switch input:checked::after { transform: translateX(18px); }

.sched { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.sched th { position: sticky; top: var(--header-h); z-index: 1; background: var(--surface); text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--border); }
.sched td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: pre-line; }
.sched td.sched__day { width: 132px; white-space: nowrap; }
.sched__dow { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sched__num { font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.sched td.sched__time { width: 140px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-700); }
.sched td.sched__who { width: 26%; color: var(--text-2); }
.sched td.sched__what { font-weight: 550; color: var(--text); }
.sched tr.is-weekend td.sched__day .sched__dow { color: var(--ro-red); }
.sched tr.is-empty td { color: var(--border-strong); }
.sched tr.is-empty td.sched__day .sched__num { color: var(--muted); font-weight: 500; }
.sched tr.is-today td { background: #fff8db; }
.sched tr.is-today td.sched__day { box-shadow: inset 4px 0 0 var(--ro-yellow); }
.sched tr.day-start td { border-top: 1px solid var(--border); }
.sched tr.day-cont td { border-top: 0; }
.hide-empty .sched tr.is-empty { display: none; }
.today-tag { display: inline-block; margin-left: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--ro-yellow); color: var(--navy-900); padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.month-note { margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--blue-50); color: var(--text-2); font-size: .93rem; white-space: pre-line; }
.legacy { font-size: .95rem; color: var(--text-2); }
.legacy p { margin: 0 0 1em; }

@media (max-width: 720px) {
  .sched thead { display: none; }
  .sched, .sched tbody, .sched tr, .sched td { display: block; width: auto !important; }
  .sched tr { display: grid; grid-template-columns: 92px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .sched tr.day-start td, .sched tr.day-cont td, .sched td { border: 0; padding: 1px 0; white-space: pre-line; }
  .sched td.sched__day { grid-row: 1 / span 4; white-space: normal; order: 0; }
  .sched td.sched__what { order: 1; }
  .sched td.sched__time { order: 2; }
  .sched td.sched__who { order: 3; }
  .sched__num { font-size: .92rem; }
  .sched td:empty { display: none; }
  .sched td.sched__time { font-size: .9rem; }
  .sched td.sched__who { font-size: .88rem; }
  .sched tr.day-cont td.sched__day { visibility: hidden; }
  .sched tr.day-cont { border-top: 0; padding-top: 0; }
  .sched tr.is-empty { padding: 6px 0; }
}

/* ---------- galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr !important; gap: 8px; } }
.gallery a { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); pointer-events: none; }

.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(4, 12, 30, .94); color: #fff; }
.lightbox::backdrop { background: rgba(4, 12, 30, .9); }
.lightbox__stage { position: absolute; inset: 56px 64px; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 24px; left: 24px; font-size: .9rem; color: #c7d2ee; }
@media (max-width: 640px) { .lightbox__stage { inset: 64px 8px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.contact-card p { margin: 0; color: var(--text-2); }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.map { position: relative; margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, var(--blue-50), #fff); min-height: 380px; display: grid; place-items: center; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { padding: 32px; max-width: 520px; }
.map__placeholder p { color: var(--muted); font-size: .92rem; }

/* ---------- subsol ---------- */
.site-footer { background: var(--navy-900); color: #b9c5e2; margin-top: 0; }
.site-footer a { color: #e3e9f8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 64px; padding-bottom: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 16px; }
.footer-brand p { font-size: .93rem; max-width: 36ch; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: .88rem; }
.footer-bottom img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-bottom__mts { display: flex; align-items: center; gap: 14px; }
.footer-bottom__text { display: grid; gap: 4px; }
.footer-credit { font-size: .8rem; color: #8f9bbb; }
.site-footer .footer-credit a { color: #b9c5e2; }

/* ---------- utilitare ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; }
.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--blue-100); border-top-color: var(--blue-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media print {
  .topbar, .site-header, .site-footer, .toolbar, .tricolor { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
  .acc { break-inside: avoid; }
}
