:root {
    --ink: #2d2d2d;
    --ink-soft: #3a3a3a;
    --paper: #f5f7fa;
    --white: #ffffff;
    --blue: #00adef;
    --blue-dark: #0090c7;
    --accent: #ff9900;
    --accent-hover: #e68900;
    --muted: #6b7280;
    --line: rgba(45, 45, 45, 0.12);
    --shadow: 0 14px 36px rgba(0, 145, 199, 0.14);
    --radius: 12px;
    --font: "Outfit", sans-serif;
    --serif: "Source Serif 4", Georgia, serif;
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1100px 480px at 8% -8%, rgba(0, 173, 239, 0.08), transparent 58%),
        radial-gradient(900px 420px at 100% 0%, rgba(255, 153, 0, 0.06), transparent 55%),
        var(--paper);
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--blue);
}

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Announcement bar above menu */
.announce-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 0.35rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(90deg, #c2410c, var(--accent) 45%, #ea580c);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(255, 153, 0, 0.28);
}

.announce-bar__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.announce-bar__link {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announce-bar__link:hover {
    color: #fff7ed;
}

.announce-bar__blink {
    animation: announceBlink 1.15s ease-in-out infinite;
}

@keyframes announceBlink {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 0 transparent;
    }
    50% {
        opacity: 0.45;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .announce-bar__blink {
        animation: none;
    }
}

@media (max-width: 979px) {
    .announce-bar {
        margin-right: 2.75rem;
        padding: 0.35rem 0.55rem;
    }

    .announce-bar__badge {
        display: none;
    }

    .announce-bar__link {
        font-size: 0.78rem;
    }
}

.announce-modal[hidden] {
    display: none !important;
}

.announce-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.announce-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.62);
    backdrop-filter: blur(3px);
}

.announce-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: 1rem 1rem 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    animation: announcePop 0.28s ease;
}

@keyframes announcePop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announce-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.25rem 0.75rem;
    flex-shrink: 0;
}

.announce-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
}

.announce-modal__eyebrow {
    margin: 0;
    color: var(--accent-hover, #e68900);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.announce-modal__title {
    margin: 0.35rem 0 0;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    line-height: 1.25;
}

.announce-modal__viewer {
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.announce-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

body.announce-open {
    overflow: hidden;
}

/* Header — UltraViewer-inspired: white top + cyan nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.header-top {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.has-announce-bar .header-cta {
    margin-left: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(0, 173, 239, 0.35);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-text strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
}

.header-cta {
    margin-left: auto;
    margin-right: 3rem;
    display: none;
    align-items: center;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(255, 153, 0, 0.35);
}

.header-cta:hover {
    background: var(--accent-hover);
}

.nav-desktop {
    display: none;
    border-top: 0;
    background: var(--blue);
}

.menu-desktop {
    list-style: none;
    margin: 0 auto;
    padding: 0 0.5rem;
    max-width: 1200px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-desktop > li {
    position: relative;
}

.menu-desktop > li > a,
.menu-desktop .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.72rem 0.68rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    transition: color 0.18s ease, background 0.18s ease;
}

.menu-desktop > li > a:hover,
.menu-desktop .dropdown-trigger:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.12);
}

.menu-desktop > li > a.is-active,
.menu-desktop .dropdown-trigger.is-active {
    color: #fff;
    background: rgba(0, 0, 0, 0.16);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.menu-desktop .dropdown-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.75;
}

.menu-desktop .dropdown {
    list-style: none;
    margin: 0;
    padding: 0.45rem;
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translate(-50%, 10px);
    min-width: 240px;
    width: max-content;
    max-width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 90;
}

.menu-desktop .dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.menu-desktop .dropdown a,
.menu-desktop .subdropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding: 0.5rem 0.7rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 7px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 500;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.menu-desktop .dropdown a:hover,
.menu-desktop .dropdown a.is-active,
.menu-desktop .subdropdown-trigger:hover {
    background: rgba(0, 173, 239, 0.1);
    color: var(--blue-dark);
    box-shadow: inset 3px 0 0 var(--blue);
}

.menu-desktop .has-subdropdown {
    position: relative;
}

.menu-desktop .subdropdown-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.65;
    transition: transform 0.15s ease;
}

.menu-desktop .has-subdropdown.is-open > .subdropdown-trigger::after {
    transform: rotate(180deg);
}

.menu-desktop .submenu {
    list-style: none;
    display: none;
    margin: 0.1rem 0 0.15rem;
    padding: 0.1rem 0 0.1rem 0.45rem;
    border-left: 2px solid rgba(0, 173, 239, 0.35);
}

.menu-desktop .has-subdropdown.is-open > .submenu {
    display: block;
}

.menu-desktop .submenu a {
    display: block;
    padding: 0.38rem 0.6rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 7px;
    font-size: 0.84rem;
}

.menu-desktop .submenu a:hover {
    color: var(--blue-dark);
    background: rgba(0, 173, 239, 0.1);
}

.menu-desktop .has-dropdown:hover > .dropdown,
.menu-desktop .has-dropdown:focus-within > .dropdown,
.menu-desktop .has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.menu-desktop > li:nth-last-child(-n+3) .dropdown {
    left: auto;
    right: 0;
    transform: translate(0, 4px);
}

.menu-desktop > li:nth-last-child(-n+3).has-dropdown:hover > .dropdown,
.menu-desktop > li:nth-last-child(-n+3).has-dropdown:focus-within > .dropdown,
.menu-desktop > li:nth-last-child(-n+3).has-dropdown.is-open > .dropdown {
    transform: translate(0, 0);
}

.nav-toggle {
    position: absolute;
    right: max(0.35rem, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 980px) {
    .nav-desktop {
        display: block;
    }

    .nav-toggle {
        display: none;
    }

    .header-cta {
        display: inline-flex;
        margin-right: 0;
    }

    .header-top {
        padding: 0.65rem 1rem;
    }
}

/* Offcanvas mobile */
.offcanvas[hidden],
.offcanvas-backdrop[hidden] {
    display: none;
}

.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

.offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    height: 100dvh;
    background: var(--ink);
    color: #fff;
    padding: 1.25rem;
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    pointer-events: auto;
}

body.nav-open .offcanvas-panel {
    transform: translateX(0);
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.55);
    z-index: 55;
}

.offcanvas-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.nav-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu a,
.menu-accordion {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.15rem;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.menu a.is-active,
.menu-accordion.is-active {
    color: var(--accent);
}

.menu-accordion::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.7;
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.menu > li.is-open > .menu-accordion::after {
    transform: rotate(180deg);
}

.menu-children {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0 0 0 0.75rem;
    display: none;
    border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.menu > li.is-open > .menu-children {
    display: block;
}

.menu-children a,
.menu-children__label {
    padding: 0.55rem 0.35rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.menu-children--nested {
    display: block;
    margin: 0.2rem 0 0.5rem;
    padding-left: 0.65rem;
}

body.nav-open {
    overflow: hidden;
}

/* Hero */
.hero {
    position: relative;
    min-height: clamp(380px, 58vh, 560px);
    overflow: hidden;
    color: #fff;
}

.hero__media,
.hero__media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: heroZoom 14s ease forwards;
}

.hero__media {
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    align-items: flex-end;
    padding: 3.5rem 0 3rem;
    background:
        linear-gradient(180deg, rgba(0, 144, 199, 0.2) 0%, rgba(45, 45, 45, 0.62) 62%, rgba(45, 45, 45, 0.88) 100%);
}

.hero__title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    max-width: 14ch;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    animation: fadeUp 0.7s ease both;
}

.hero__subtitle {
    margin: 0.85rem 0 0;
    max-width: 36ch;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    animation: fadeUp 0.7s 0.1s ease both;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-strip {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.1rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(0, 173, 239, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(255, 153, 0, 0.32);
}

.btn-dark:hover {
    background: var(--accent-hover);
}

/* Sections */
.section {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 3.25rem 0;
}

.section-title {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    line-height: 1.25;
    font-weight: 600;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.25rem;
    align-items: center;
}

.split.reverse {
    direction: rtl;
}

.split.reverse > * {
    direction: ltr;
}

.media-frame {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--white);
}

.media-frame img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.home-links {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto 3.5rem;
}

.home-links__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-links__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.2rem 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(26, 28, 39, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-links__card strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
}

.home-links__card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.home-links__card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 173, 239, 0.35);
    box-shadow: var(--shadow);
}

/* Inner pages — page hero (gallery photo like Școala Specială) */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    padding: 3.25rem 1rem 2.4rem;
}

.has-page-hero-photo .page-hero {
    background:
        linear-gradient(120deg, rgba(0, 120, 170, 0.82) 8%, rgba(0, 173, 239, 0.62) 48%, rgba(45, 45, 45, 0.72) 100%),
        var(--page-hero-image) center / cover no-repeat;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.has-page-hero-photo .page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(45, 45, 45, 0.28));
    pointer-events: none;
    z-index: 0;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--max), 100% - 2rem);
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.page-hero p {
    margin: 0.7rem 0 0;
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.page-hero .lead--archive {
    color: #fde68a;
}

/* Back-compat alias */
.page-header {
    padding: 2.5rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.35);
}

.page-header h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.lead--archive {
    color: #9a3412;
}

.content-section {
    padding: 2rem 0 3.5rem;
}

.prose {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    box-shadow: 0 10px 28px rgba(26, 28, 39, 0.05);
}

.document-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.document-list__item + .document-list__item {
    margin-top: 0.55rem;
}

.document-list__link {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 48px;
}

.document-list__link:hover {
    border-color: rgba(0, 173, 239, 0.4);
    background: #eef8fc;
}

.document-list__title {
    font-weight: 500;
    word-break: break-word;
}

.document-list__meta {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-images {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.page-images__item {
    margin: 0;
}

.page-images__item img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.legacy-content .alesi-list {
    margin: 1rem 0 1.25rem;
    padding-left: 1.35rem;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.7;
}

.legacy-content .alesi-list li {
    margin: 0.25rem 0;
}

.legacy-content .muted-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.legacy-content h1 {
    display: none;
}

.legacy-content h2,
.legacy-content h3,
.legacy-content h4 {
    color: var(--ink);
    font-family: var(--serif);
    margin-top: 1.5rem;
}

.legacy-content a {
    color: var(--blue-dark);
}

.legacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.1rem 0;
    font-size: 0.95rem;
    background: #fff;
}

.legacy-content table td,
.legacy-content table th {
    border: 1px solid var(--line);
    padding: 0.6rem 0.7rem;
    word-break: break-word;
}

.legacy-content #faqs,
.legacy-content [style*="background"] {
    background: #fff !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
}

.legacy-content #poze {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.7rem;
}

.legacy-content #poze img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-preview {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.gallery-preview .gallery {
    grid-template-columns: repeat(4, 1fr);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.section-head .section-title {
    margin: 0;
}

.section-link {
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: none;
}

.section-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

.gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery a {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #dfe7ee;
    text-decoration: none;
}

.gallery a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12, 35, 64, 0.35));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery a:hover::after,
.gallery a:focus-visible::after {
    opacity: 1;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .gallery-preview .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 979px) {
    html,
    body {
        overflow-x: hidden;
    }

    .brand {
        max-width: calc(100% - 3.5rem);
    }

    .brand-text strong {
        font-size: 0.92rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text small {
        font-size: 0.74rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .hero {
        min-height: clamp(280px, 52vh, 420px);
    }

    .hero__overlay {
        padding: 2.25rem 0 1.75rem;
    }

    .hero__title {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        max-width: 16ch;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        max-width: 32ch;
    }

    .cta-strip {
        flex-direction: column;
        align-items: stretch;
        padding: 0.9rem 1rem;
        gap: 0.55rem;
    }

    .cta-strip .btn {
        width: 100%;
        min-height: 48px;
    }

    .section {
        padding: 2.25rem 0;
    }

    .section-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    .split,
    .split.reverse,
    .home-links__grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .media-frame img {
        min-height: 200px;
    }

    .page-hero {
        padding: 2.4rem 1rem 1.85rem;
        min-height: 160px;
    }

    .has-page-hero-photo .page-hero {
        min-height: 180px;
    }

    .page-hero h1 {
        font-size: clamp(1.45rem, 6.5vw, 1.95rem);
    }

    .content-section {
        padding: 1.5rem 0 2.5rem;
    }

    .prose {
        padding: 1.15rem;
        border-radius: 12px;
    }

    .document-list__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .document-list__meta {
        white-space: normal;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .footer-band {
        padding: 0.9rem 1rem;
    }

    .footer-slogan {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .footer-grid {
        padding: 1.75rem 0;
        gap: 1.5rem;
    }

    .footer-copy {
        padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    }

    .lightbox-figure {
        max-width: calc(100vw - 1.5rem);
    }

    .lightbox-nav {
        top: auto;
        bottom: 3.4rem;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 3.4rem);
    }

    .lightbox-next {
        right: calc(50% - 3.4rem);
    }

    .lightbox-close {
        top: max(0.75rem, env(safe-area-inset-top));
        right: max(0.75rem, env(safe-area-inset-right));
    }

    .lightbox-status {
        bottom: max(0.85rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 1.25rem, var(--max));
    }

    .gallery-preview .gallery,
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    .home-links__card {
        padding: 1rem;
    }

    .btn {
        padding: 0.8rem 1.1rem;
        font-size: 0.92rem;
    }

    .legacy-content table {
        font-size: 0.88rem;
    }

    .legacy-content table td,
    .legacy-content table th {
        padding: 0.45rem 0.5rem;
    }

    .legacy-content #poze {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .gallery-preview .gallery,
    .gallery {
        grid-template-columns: 1fr;
    }

    .brand-text small {
        display: none;
    }
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 42, 0.78);
    backdrop-filter: blur(2px);
}

.lightbox-figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(960px, calc(100vw - 5.5rem));
    max-height: calc(100vh - 5rem);
    display: grid;
    gap: 0.65rem;
    justify-items: center;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.lightbox-figure figcaption {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-prev {
    left: 0.75rem;
}

.lightbox-next {
    right: 0.75rem;
}

.lightbox-status {
    position: absolute;
    z-index: 2;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

body.lightbox-open {
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li + li {
    margin-top: 0.7rem;
}

.contact-lead {
    margin: 0 0 1.25rem;
    max-width: 52rem;
}

.muted-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.intro-seo {
    padding-top: 1.75rem;
    padding-bottom: 0.5rem;
}

.intro-seo .lead {
    margin: 0;
    max-width: 58rem;
}

.faq-section {
    padding-top: 1rem;
}

.faq-section--compact {
    margin-top: 2rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--blue);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

/* Footer — UltraViewer-inspired charcoal */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.88);
    margin-top: 2rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--blue);
}

.footer-band {
    background: var(--blue);
    padding: 1rem 1.25rem;
    text-align: center;
}

.footer-slogan {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: #fff;
}

.footer-grid {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-grid h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    color: #fff;
}

.footer-grid p,
.footer-grid li {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.footer-copy p {
    margin: 0;
}

.footer-credit {
    margin-top: 0.35rem !important;
    font-size: 0.85rem;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.footer-credit a:hover {
    color: var(--blue);
}
