:root {
    /* Singureni — albastru instituțional (distinct de cyanul Găujani) */
    --ink: #1a2433;
    --ink-soft: #2a3648;
    --paper: #eef2f7;
    --white: #f8fafc;
    --blue: #1e5a9c;
    --blue-dark: #143f73;
    --accent: #c4a035;
    --accent-hover: #a8872c;
    --muted: #5c6b7a;
    --line: rgba(26, 36, 51, 0.12);
    --shadow: 0 12px 28px rgba(20, 63, 115, 0.14);
    --radius: 6px;
    --font: "Figtree", sans-serif;
    --serif: "Fraunces", "Times New Roman", serif;
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(900px 420px at 0% -5%, rgba(30, 90, 156, 0.1), transparent 55%),
        radial-gradient(700px 360px at 100% 5%, rgba(196, 160, 53, 0.07), transparent 50%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 11px,
            rgba(26, 36, 51, 0.018) 11px,
            rgba(26, 36, 51, 0.018) 12px
        );
    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, var(--blue-dark), var(--blue) 55%, #2a6eb0);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(20, 63, 115, 0.22);
}

.announce-bar__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    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;
    }

    .hero__media-img,
    .hero__title,
    .hero__subtitle {
        animation: none !important;
        transform: none !important;
    }
}

@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 — Singureni: bandă verde, brand tipografic */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(21, 40, 32, 0.06);
}

.header-top {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.has-announce-bar .header-cta {
    margin-left: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: var(--blue-dark);
    color: #fff;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-text strong {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.header-cta {
    margin-left: auto;
    margin-right: 3rem;
    display: none;
    align-items: center;
    max-width: min(280px, 38vw);
    background: var(--ink);
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.header-cta:hover {
    background: var(--blue-dark);
}

.nav-desktop {
    display: none;
    border-top: 0;
    background: var(--blue-dark);
    min-height: 52px;
}

.menu-desktop {
    list-style: none;
    margin: 0 auto;
    padding: 0 0.75rem;
    max-width: 1200px;
    min-height: 52px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.1rem;
    overflow: visible;
}

.menu-desktop > li {
    position: relative;
    flex: 0 0 auto;
}

.menu-desktop > li > a,
.menu-desktop .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.95rem 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 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(30, 90, 156, 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;
    margin-left: auto;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    opacity: 0.7;
    flex-shrink: 0;
}

.menu-desktop .has-subdropdown.is-open > .subdropdown-trigger::after {
    transform: none;
}

/* Submeniu flyout lateral */
.menu-desktop .submenu {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0.45rem;
    position: absolute;
    top: -0.45rem;
    left: calc(100% + 4px);
    min-width: 220px;
    width: max-content;
    max-width: 300px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    transform: translateX(6px);
    z-index: 95;
}

.menu-desktop .has-subdropdown:hover > .submenu,
.menu-desktop .has-subdropdown:focus-within > .submenu,
.menu-desktop .has-subdropdown.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.menu-desktop .submenu a {
    display: block;
    padding: 0.5rem 0.7rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 500;
}

.menu-desktop .submenu a:hover {
    color: var(--blue-dark);
    background: rgba(30, 90, 156, 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);
}

/* La capătul din dreapta, flyout spre stânga */
.menu-desktop > li:nth-last-child(-n+3) .submenu {
    left: auto;
    right: calc(100% + 4px);
    transform: translateX(-6px);
}

.menu-desktop > li:nth-last-child(-n+3) .has-subdropdown:hover > .submenu,
.menu-desktop > li:nth-last-child(-n+3) .has-subdropdown:focus-within > .submenu,
.menu-desktop > li:nth-last-child(-n+3) .has-subdropdown.is-open > .submenu {
    transform: translateX(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;
}

.has-portrait-hero .hero__media-img {
    object-position: center 18%;
}

.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(165deg, rgba(20, 63, 115, 0.28) 0%, rgba(26, 36, 51, 0.55) 48%, rgba(26, 36, 51, 0.9) 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.15rem 1rem;
    background: rgba(246, 249, 246, 0.85);
    border-bottom: 1px solid var(--line);
    border-top: 3px solid var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--ink);
}

.btn-dark:hover {
    background: #0d1a14;
}

/* 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;
}

/* Primar — poză mică + text */
.mayor-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.75rem 2rem;
    align-items: center;
}

.mayor-portrait {
    width: 140px;
}

.mayor-portrait__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.mayor-portrait__img {
    width: 140px;
    height: 170px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.mayor-portrait__link:hover .mayor-portrait__img {
    transform: scale(1.04);
}

.mayor-portrait__hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.35rem 0.4rem;
    background: rgba(20, 63, 115, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mayor-portrait__link:hover .mayor-portrait__hint,
.mayor-portrait__link:focus-visible .mayor-portrait__hint {
    opacity: 1;
}

.mayor-block__text .eyebrow {
    margin: 0 0 0.35rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mayor-block__text .section-title {
    margin-bottom: 0.65rem;
}

.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.25rem 0 1.15rem;
    background: transparent;
    border: 0;
    border-top: 2px solid var(--blue);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-links__card strong {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
}

.home-links__card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.home-links__card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: none;
}

/* Inner pages — page hero (gallery photo like Școala Specială) */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue) 55%, #2a6eb0 100%);
    color: #fff;
    padding: 3.25rem 1rem 2.4rem;
}

.has-page-hero-photo .page-hero {
    background:
        linear-gradient(135deg, rgba(20, 63, 115, 0.88) 8%, rgba(30, 90, 156, 0.7) 48%, rgba(26, 36, 51, 0.78) 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(30, 90, 156, 0.4);
    background: #eef4fb;
}

.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: clip;
    }

    .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;
    }

    .header-top {
        padding: 0.55rem 0.85rem;
        min-height: 56px;
    }

    .header-cta {
        display: none !important;
    }

    .menu > li > a,
    .menu-accordion {
        min-height: 48px;
        font-size: 1rem;
    }

    .nav-close {
        width: 44px;
        height: 44px;
        display: inline-grid;
        place-items: center;
    }

    .hero {
        min-height: clamp(260px, 48vh, 400px);
    }

    .hero__overlay {
        padding: 2rem 0 1.5rem;
    }

    .hero__title {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        max-width: 16ch;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        max-width: 34ch;
    }

    .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: 2rem 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,
    .mayor-block,
    .home-links__grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .mayor-block {
        justify-items: start;
        gap: 1.15rem;
    }

    .mayor-portrait {
        width: 112px;
    }

    .mayor-portrait__img {
        width: 112px;
        height: 136px;
    }

    .home-links__card {
        padding: 1rem 0;
        min-height: 64px;
    }

    .faq-item summary {
        min-height: 48px;
    }

    .media-frame img {
        min-height: 200px;
    }

    .page-hero {
        padding: 2.2rem 1rem 1.7rem;
        min-height: 150px;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .has-page-hero-photo .page-hero {
        min-height: 170px;
    }

    .page-hero h1 {
        font-size: clamp(1.4rem, 6.5vw, 1.9rem);
        line-height: 1.15;
    }

    .page-hero p {
        font-size: 0.95rem;
        max-width: 36ch;
    }

    .content-section {
        padding: 1.5rem 0 2.5rem;
    }

    .prose {
        padding: 1.1rem;
        border-radius: 8px;
    }

    .document-list__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        min-height: 52px;
        padding: 0.95rem 1rem;
    }

    .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 (min-width: 640px) and (max-width: 979px) {
    .home-links__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1.25rem;
    }

    .mayor-block {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .mayor-portrait {
        width: 130px;
    }

    .mayor-portrait__img {
        width: 130px;
        height: 158px;
    }

    .hero {
        min-height: clamp(300px, 46vh, 440px);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero {
        min-height: 180px;
        padding: 2.4rem 1.25rem 1.9rem;
    }
}

@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: 0.85rem 0;
        min-height: 56px;
    }

    .contact-card {
        padding: 1.1rem;
        border-radius: 10px;
    }

    .intro-seo .lead,
    .contact-lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .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;
    }

    .hero__title {
        font-size: clamp(1.4rem, 8vw, 1.85rem);
    }

    .cta-strip {
        padding: 0.75rem 0.85rem;
    }
}

.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 — Singureni */
.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(--accent);
}

.footer-band {
    background: var(--blue-dark);
    padding: 1.1rem 1.25rem;
    text-align: center;
    border-top: 3px solid var(--accent);
}

.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(--accent);
}
