/* Școala Gimnazială „Septimiu Albini” Cut — stil site
   Fără fonturi externe: folosim fonturile sistemului (rapid, privat). */

:root {
  --teal-900: #0f2f3b;
  --teal-800: #143c4b;
  --teal-700: #1d4f63;
  --teal-600: #24607a;
  --teal-100: #e3eef2;
  --teal-50: #f1f7f9;
  --gold: #d4a72c;
  --gold-600: #b88e1c;
  --gold-100: #fbf3dc;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --text: #1c2528;
  --muted: #5b676c;
  --line: #e4e1d8;
  --link: #1d5f7a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 47, 59, .06), 0 6px 20px rgba(15, 47, 59, .06);
  --shadow-lg: 0 2px 4px rgba(15, 47, 59, .06), 0 18px 40px rgba(15, 47, 59, .12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1719;
    --surface: #152124;
    --surface-2: #1a282c;
    --text: #e6ecee;
    --muted: #9fb0b5;
    --line: #26363a;
    --link: #7cc3dc;
    --teal-100: #1b3540;
    --teal-50: #142a31;
    --gold-100: #3a3016;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .35);
  }
}

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

body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------ bara de sus */
.topbar { background: var(--teal-900); color: #cfe0e6; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a, .topbar span { color: inherit; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.topbar a:hover { color: #fff; }
.topbar-addr { margin-left: auto; }
@media (max-width: 640px) { .topbar-addr { display: none !important; } .topbar .wrap { gap: 14px; justify-content: center; } }

/* ------------------------------------------------ antet + meniu */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal-600), var(--teal-900)); color: var(--gold);
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.25rem; letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-small { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.brand-big { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 9px;
  font: 500 .97rem/1 var(--font); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .has-sub:hover > .nav-link, .nav-toggle[aria-expanded="true"] { background: var(--teal-50); color: var(--teal-700); }
.nav-link[aria-current="page"], .has-sub.is-active > .nav-link { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 9px 9px 2px 2px; }
@media (prefers-color-scheme: dark) { .nav-link:hover, .has-sub:hover > .nav-link, .nav-toggle[aria-expanded="true"], .nav-link[aria-current="page"], .has-sub.is-active > .nav-link { color: #bfe3ef; } }
.nav-toggle svg { transition: transform .2s; width: 1em; height: 1em; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .16s ease;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .nav-toggle[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.sub a:hover { background: var(--teal-50); }
.sub a[aria-current="page"] { background: var(--teal-100); font-weight: 600; }
.has-sub:last-of-type .sub, .nav-list > li:nth-last-child(2) .sub { left: auto; right: 0; }

.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .95rem var(--font); padding: 9px 14px; border-radius: 10px; cursor: pointer; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 80px); overflow: auto; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .nav-link[aria-current="page"], .has-sub.is-active > .nav-link { box-shadow: inset 3px 0 0 var(--gold); border-radius: 4px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; background: transparent; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .nav-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub a { padding: 11px 12px; }
}
@media (max-width: 420px) { .brand-big { font-size: 1.02rem; } .brand-small { font-size: .7rem; } .menu-btn span { display: none; } }

/* ------------------------------------------------ erou (prima pagină) */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,34,43,.92) 0%, rgba(10,34,43,.72) 45%, rgba(10,34,43,.15) 100%), linear-gradient(0deg, rgba(10,34,43,.55), transparent 50%); }
.hero-in { width: 100%; padding-top: 90px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .35em; max-width: 18ch; }
.hero h1 span { color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 34ch; color: #e3edf0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gold-600); margin: 0 0 .7em; }
.hero .eyebrow { color: var(--gold); }
@media (max-width: 700px) { .hero::after { background: linear-gradient(0deg, rgba(10,34,43,.95) 10%, rgba(10,34,43,.55) 70%, rgba(10,34,43,.35)); } .hero-in { padding-top: 140px; padding-bottom: 48px; } }

/* ------------------------------------------------ butoane */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1d1704; box-shadow: 0 6px 18px rgba(212,167,44,.35); }
.btn-gold:hover { background: #e2b740; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover { gap: 10px; }
.link-arrow svg { transition: .15s; }

/* ------------------------------------------------ secțiuni */
.section { padding: 64px 0; }
.section-tight { padding: 28px 0 8px; }
.section-tight + .section-tight { padding-top: 12px; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 65ch; margin-bottom: 28px; }

.page-head { background: linear-gradient(135deg, var(--teal-800), var(--teal-600)); color: #fff; padding: 46px 0 42px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 46px solid rgba(212,167,44,.13); }
.page-head h1 { margin: 0; max-width: 30ch; position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 12px; color: #b9d2da; position: relative; z-index: 1; }
.crumbs a { color: #e6f1f4; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-date { display: block; color: var(--gold); font-weight: 600; margin-bottom: 6px; position: relative; z-index: 1; }

/* ------------------------------------------------ acces rapid */
.section-quick { padding-top: 0; margin-top: -46px; position: relative; z-index: 2; }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: 1fr; } }
.quick { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: .16s; height: 100%; }
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.quick strong { display: block; font-size: 1.02rem; }
.quick small { color: var(--muted); font-size: .88rem; }
.quick-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); flex: none; }
@media (prefers-color-scheme: dark) { .quick-ic { color: #9fd3e4; } }
.quick-ic svg { width: 22px; height: 22px; }

/* ------------------------------------------------ despre + cifre */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li { display: flex; }
.stats a { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; }
.stats a:hover, .stats a:focus-visible { border-color: var(--link); box-shadow: var(--shadow-lg); }
.stats a:hover span, .stats a:focus-visible span { color: var(--link); text-decoration: underline; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--teal-700); line-height: 1; margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .stats strong { color: var(--gold); } }
.stats span { color: var(--muted); font-size: .93rem; }
.prose { max-width: 70ch; }
.prose-wide { max-width: 860px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.photo figcaption { font-size: .88rem; color: var(--muted); padding: 10px 14px; }
.photo-wide { margin-top: 36px; }
.photo-wide img { width: 100%; max-height: 460px; object-fit: cover; }

/* ------------------------------------------------ anunțuri */
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.news-card a { display: flex; flex-direction: column; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .16s; position: relative; overflow: hidden; }
.news-card a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); opacity: 0; transition: .16s; }
.news-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-card a:hover::before { opacity: 1; }
.news-card time { font-size: .83rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { font-family: var(--font); font-weight: 650; font-size: 1.04rem; line-height: 1.4; margin: 8px 0 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.news-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; }

.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; box-shadow: var(--shadow); color: var(--muted); }
.search:focus-within { border-color: var(--teal-600); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 13px 0; width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .9rem var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--teal-600); }
.chip.is-on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; max-width: 860px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); font-weight: 600; line-height: 1.4; }
.post-nav a:hover { border-color: var(--teal-600); }
.post-nav small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ------------------------------------------------ documente */
.docs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.doc-ic { width: 48px; height: 56px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fdecea; color: #b42318; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.doc-ic svg { width: 22px; height: 22px; }
.doc-ic-docx { background: #e8f0fd; color: #1d4ed8; }
.doc-ic-odt { background: #e7f6ee; color: #15803d; }
@media (prefers-color-scheme: dark) { .doc-ic { background: #3b1a17; color: #fca5a5; } .doc-ic-docx { background: #172544; color: #93c5fd; } .doc-ic-odt { background: #12301f; color: #86efac; } }
.doc-title { font-weight: 650; color: var(--text); text-decoration: none; line-height: 1.4; display: block; }
.doc-title:hover { color: var(--link); text-decoration: underline; }
.doc-meta { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.doc-actions { display: flex; gap: 6px; }
.btn-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-icon:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.doc-prev { margin-top: 10px; }
.doc-prev summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--link); list-style: none; }
.doc-prev summary::-webkit-details-marker { display: none; }
.doc-prev[open] summary { margin-bottom: 10px; }
.doc-frame iframe { width: 100%; height: min(78vh, 760px); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
@media (max-width: 560px) { .doc { grid-template-columns: auto 1fr; } .doc-actions { grid-column: 1 / -1; justify-content: flex-end; } .doc-ic { width: 40px; height: 48px; } }

/* ------------------------------------------------ persoane */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, var(--teal-600), var(--teal-800)); color: var(--gold); font-weight: 700; font-family: var(--font-head); font-size: 1.1rem; }
.person-role { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.person-name { font-weight: 650; font-size: 1.06rem; line-height: 1.35; }
.person-subj { color: var(--muted); font-size: .93rem; margin: 4px 0 10px; line-height: 1.45; }
.person-note { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.badge, .badge-gold { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge-gold { background: var(--gold-100); color: #7a5b07; }
@media (prefers-color-scheme: dark) { .badge-gold { color: var(--gold); } }

/* ------------------------------------------------ cronologie */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); max-width: 900px; }
.timeline > li { position: relative; padding: 0 0 34px 8px; }
.timeline > li::before { content: ""; position: absolute; left: -35px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.timeline time { display: block; font-weight: 700; color: var(--gold-600); font-size: .9rem; margin-bottom: 6px; }
.timeline h3 { font-family: var(--font); font-weight: 650; }
.timeline .docs { margin-top: 12px; }

.entry { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); max-width: 960px; }
.entry:last-child { border-bottom: 0; margin-bottom: 0; }
.entry time { display: block; font-weight: 700; color: var(--gold-600); font-size: .9rem; margin-bottom: 6px; }
.entry p { max-width: 70ch; }

/* ------------------------------------------------ galerie + lightbox */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 19, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0; }
.lightbox img { max-height: 84vh; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox figcaption { color: #cfdde2; font-size: .95rem; text-align: center; }
.lightbox button { background: rgba(255,255,255,.08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45) !important; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lightbox img { max-height: 76vh; } }

/* ------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: .16s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-card .quick-ic { margin-bottom: 8px; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-card strong { font-size: 1.08rem; line-height: 1.4; word-break: break-word; }
.contact-card small { color: var(--link); font-weight: 600; }

.contact-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 40px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(212,167,44,.25), transparent 40%), linear-gradient(135deg, var(--teal-800), var(--teal-600)); }
.contact-band h2 { margin-bottom: .3em; }
.contact-band p { margin: 0; color: #d6e6eb; max-width: 48ch; }
.contact-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .contact-band { padding: 28px 22px; } }

.notfound { text-align: center; padding: 30px 0; }
.notfound .big { font-family: var(--font-head); font-size: 6rem; color: var(--gold); margin: 0; line-height: 1; }

/* ------------------------------------------------ subsol */
.site-footer { background: var(--teal-900); color: #b7cbd2; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h2 { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; font-size: 1.02rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 1.05rem; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list svg { margin-top: 4px; color: var(--gold); }
.site-footer a { color: #e3eef2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: #8ea6ae; }

@media print {
  .topbar, .site-header, .site-footer, .doc-actions, .doc-prev, .filters, .post-nav, .lightbox { display: none !important; }
  .page-head { background: none; color: #000; padding: 0 0 12px; }
  .page-head::after { display: none; }
  .crumbs { display: none; }
  body { background: #fff; color: #000; }
}
