:root {
    --bg-page: #e7edf6;
    --bg-soft: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --text: #111111;
    --muted: #687385;
    --line: rgba(29, 38, 58, 0.14);
    --line-strong: rgba(29, 38, 58, 0.22);
    --green: #068d28;
    --green-dark: #066b1f;
    --green-soft: #8db453;
    --blue: #1f6fd0;
    --blue-soft: #dce7f8;
    --danger: #d24747;
    --shadow: 0 12px 24px rgba(16, 26, 45, 0.12);
    --container: 1800px;
    --public-width: 1560px;
    --content-width: 1180px;
    --sidebar-width: 316px;
    --radius: 18px;
    --font-base: "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell,
.admin-shell {
    min-height: 100vh;
}

.public-body {
    background: var(--bg-page);
}

.brand-banner__inner,
.main-nav,
.page-shell,
.site-footer__inner {
    max-width: var(--public-width);
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

.site-header {
    background: transparent;
    padding-top: 0;
}

.locale-switcher {
    display: flex;
    gap: 8px;
}

.locale-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 5px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b6573;
    border: 1px solid transparent;
}

.locale-switcher a.active {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(17, 17, 17, 0.08);
    color: var(--green-dark);
}

.brand-banner {
    position: relative;
    margin: 0 auto;
    border-top: none;
}

.brand-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(217, 227, 244, 0.96) 0%, rgba(217, 227, 244, 0.95) 58%, rgba(217, 227, 244, 0.74) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    pointer-events: none;
}

.brand-banner::after {
    content: "";
    position: absolute;
    inset: 0 0 0 58%;
    background:
        linear-gradient(90deg, rgba(223, 232, 246, 0), rgba(223, 232, 246, 0.9)),
        repeating-linear-gradient(
            90deg,
            rgba(161, 173, 189, 0.18) 0,
            rgba(161, 173, 189, 0.18) 14px,
            transparent 14px,
            transparent 46px
        );
    opacity: 0.55;
    transform: skewX(-12deg);
    transform-origin: center;
}

.brand-banner__inner {
    position: relative;
    min-height: 148px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    position: relative;
    z-index: 1;
    padding: 16px 0;
}

.brand-logo img {
    width: min(100%, 430px);
    height: auto;
}

.brand-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--green);
    color: #fff;
    padding: 12px 18px;
    font-weight: 700;
}

.main-nav-wrap {
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.18) inset;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 58px;
}

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

.menu-level--0 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-width: 0;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.menu-level--0 > .menu-item:first-child > a {
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.28);
}

.menu-item.has-children > a::after {
    content: "▾";
    margin-left: 10px;
    font-size: 0.78rem;
}

.menu-level--0 > .menu-item:hover > a,
.menu-level--0 > .menu-item:focus-within > a {
    background: rgba(255, 255, 255, 0.08);
}

.menu-item .menu-level {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 340px;
    background: #ffffff;
    border: 1px solid rgba(16, 26, 45, 0.08);
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
    z-index: 40;
}

.menu-item .menu-item .menu-level {
    top: -1px;
    left: calc(100% - 1px);
}

.menu-item:hover > .menu-level,
.menu-item:focus-within > .menu-level {
    display: block;
}

.menu-item .menu-level .menu-item > a {
    min-height: 0;
    padding: 22px 26px;
    color: #2c2c2c;
    font-size: 1.02rem;
    font-weight: 500;
    text-transform: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.menu-item .menu-level .menu-item:hover > a {
    color: #7ca950;
    background: #fbfbfb;
}

.main-nav__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
}

.site-main {
    padding-bottom: 36px;
}

.page-shell {
    max-width: var(--public-width);
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 24px;
}

.page-shell--home {
    padding-top: 0;
}

.hero-slider {
    position: relative;
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 20px rgba(16, 26, 45, 0.08);
    overflow: hidden;
}

.hero-slider--home {
    min-height: 360px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.hero-slide.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide__media,
.article-cover,
.news-list-item__thumb img,
.promo-card img,
.sidebar-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide__media.is-fallback {
    background-size: cover;
}

.hero-slide__content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
}

.hero-slide__content--caption {
    max-width: 560px;
    left: 0;
    right: auto;
    background: linear-gradient(90deg, rgba(8, 114, 37, 0.88), rgba(8, 114, 37, 0.72));
    color: #ffffff;
    padding: 14px 18px 16px;
}

.hero-slide__content--caption h1 {
    margin: 0;
    font-size: clamp(1.15rem, 1.6vw, 1.65rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-slide__content--caption p {
    margin: 8px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-dot {
    width: 13px;
    height: 13px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow--prev {
    left: 20px;
}

.hero-arrow--next {
    right: 20px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 22px 18px 18px;
}

.promo-card {
    display: block;
    background: transparent;
}

.promo-card img {
    width: 100%;
    aspect-ratio: 4 / 2.55;
    background: #ffffff;
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 14px rgba(18, 33, 55, 0.1);
}

.promo-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-top: 10px;
    background: var(--green);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 16px;
}

.home-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 28px;
    padding: 18px 18px 0;
}

.home-news-main {
    min-width: 0;
}

.home-section-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.home-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(30, 92, 189, 0.8);
}

.home-section-title span {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #1b58a8;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.news-list {
    display: grid;
    gap: 24px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.news-list-item__thumb {
    display: block;
}

.news-list-item__thumb img {
    aspect-ratio: 1 / .92;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.news-list-item__content h2 {
    margin: 0 0 10px;
    font-size: clamp(1.28rem, 1.8vw, 1.95rem);
    line-height: 1.22;
    text-transform: uppercase;
    font-weight: 500;
}

.news-list-item__content p {
    margin: 0;
    color: #4f5a67;
    font-size: 1rem;
    line-height: 1.65;
}

.news-list-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.news-list-item__meta small {
    color: #8d96a3;
    font-size: 0.95rem;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #202020;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: lowercase;
}

.institutional-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}

.sidebar-banner {
    display: block;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(18, 33, 55, 0.08);
}

.sidebar-banner img {
    aspect-ratio: 7 / 3.1;
}

.sidebar-banner--top img {
    aspect-ratio: 21 / 5.5;
}

.government-panel {
    background: transparent;
    margin-top: 4px;
}

.government-panel__title {
    display: grid;
    grid-template-columns: auto 86px;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.government-panel__title strong {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.government-panel__title span {
    position: relative;
    display: block;
    height: 52px;
}

.government-panel__title span::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 28px;
    height: 10px;
    background: #78b348;
}

.government-panel__title span::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 14px;
    width: 11px;
    height: 34px;
    background: #78b348;
    clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
}

.official-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.official-card {
    background: #7ea94a;
    padding: 6px;
    color: #ffffff;
}

.official-card__photo {
    aspect-ratio: 1 / 1.04;
    background: #d6e5c0;
    overflow: hidden;
}

.official-card__body {
    padding: 8px 6px 4px;
    text-align: center;
    display: grid;
    gap: 4px;
}

.official-card__body strong {
    font-size: 0.66rem;
    text-transform: uppercase;
    line-height: 1.35;
}

.official-card__body span {
    font-size: 0.66rem;
}

.sidebar-panel {
    display: grid;
    gap: 16px;
    background: transparent;
}

.sidebar-panel--links a {
    color: #4b93f2;
    font-size: 0.86rem;
    line-height: 1.45;
}

.home-secondary-banner {
    padding: 24px 18px 0;
}

.home-secondary-banner__header {
    position: relative;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 4px solid #121212;
    text-align: center;
}

.home-secondary-banner__header span {
    display: inline-block;
    font-size: 1.05rem;
}

.home-secondary-banner img {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.content-page {
    padding: 18px 18px 0;
}

.page-header {
    margin-bottom: 28px;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    margin: 0 0 10px;
    color: #97a0b2;
    font-size: 1rem;
}

.page-header h1 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 2.4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 500;
}

.lead {
    margin: 0;
    max-width: 980px;
    color: #4f5a67;
    font-size: 1.02rem;
    line-height: 1.75;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 40px;
    align-items: start;
}

.article-content,
.content-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 22px 24px;
}

.article-content--listing {
    display: grid;
    gap: 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2,
.content-panel h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
}

.section-heading a,
.return-link a {
    color: var(--green-dark);
    font-weight: 700;
}

.rich-copy {
    color: #354150;
    font-size: 0.98rem;
    line-height: 1.78;
}

.rich-copy > *:first-child {
    margin-top: 0;
}

.rich-copy img,
.rich-copy iframe,
.rich-copy table {
    max-width: 100%;
}

.article-cover {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.document-list,
.document-files,
.compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.document-list li,
.document-files li,
.compact-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.document-list li > div,
.compact-list li {
    display: grid;
    gap: 6px;
}

.document-list a,
.document-files a,
.compact-list a {
    font-weight: 700;
}

.document-list small,
.compact-list small {
    color: var(--muted);
    line-height: 1.6;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    padding: 8px 12px;
    background: #eef6ea;
    color: #4a6e26;
    border: 1px solid #d1e2c0;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.notice-card {
    padding: 16px 18px;
    background: #f6f8fd;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.notice-card--error {
    background: #fff1f1;
    color: #942f2f;
    border-color: rgba(210, 71, 71, 0.2);
}

.search-form {
    display: flex;
    gap: 14px;
}

.search-form input,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
    padding: 14px 16px;
}

.data-table-dump {
    white-space: pre-wrap;
    background: #10211a;
    color: #dbe9df;
    padding: 18px;
    overflow: auto;
}

.button,
.cms-inline-button,
.search-form button,
.admin-form button,
.admin-logout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: var(--green);
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
}

.button--secondary {
    background: #ffffff;
    color: var(--green-dark);
    border: 1px solid rgba(6, 107, 31, 0.18);
}

.site-footer {
    background: #0f1013;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 24px;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.content-fallback {
    padding: 14px 16px;
    background: #f7f9fc;
    border-left: 4px solid var(--green);
    color: #465364;
}

.site-footer__inner p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.58);
}

.footer-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(13, 154, 50, 0.16), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #e9eef7 100%);
    color: #101828;
}

.admin-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-shell--auth {
    grid-template-columns: minmax(0, 1fr);
}

.admin-auth-stage {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.admin-auth-hero {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent 34%),
        linear-gradient(160deg, #0b6122 0%, #0b8f2d 44%, #1642a0 100%);
    color: #ffffff;
    padding: 70px 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-auth-hero__badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.12);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-auth-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.7rem, 4vw, 4.9rem);
    line-height: 1.02;
}

.admin-auth-hero p {
    margin: 0;
    max-width: 680px;
    font-size: 1.18rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.86);
}

.admin-auth-hero__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.admin-auth-hero__grid article {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 18px;
}

.admin-auth-hero__grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.admin-auth-panel {
    display: grid;
    place-items: center;
    padding: 56px;
}

.auth-card {
    width: min(100%, 560px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 28px 56px rgba(17, 24, 39, 0.12);
    padding: 34px 34px 30px;
}

.auth-card__header h1 {
    margin: 0 0 10px;
    font-size: 2.3rem;
}

.auth-card__header p:last-child {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.7;
}

.auth-card__footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 24px 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
        linear-gradient(180deg, #0c111d 0%, #10192c 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-brand__logo {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f8b2d, #1d67cb);
    border-radius: 14px;
    font-weight: 800;
}

.admin-sidebar__brand strong {
    display: block;
    font-size: 1.08rem;
}

.admin-sidebar__brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.6);
}

.admin-sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar__avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-weight: 800;
}

.admin-sidebar__nav {
    display: grid;
    gap: 18px;
    overflow: auto;
}

.admin-nav-group {
    display: grid;
    gap: 10px;
}

.admin-nav-group__title {
    margin: 0;
    color: rgba(255,255,255,0.44);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav-group__links {
    display: grid;
    gap: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.84);
    transition: background 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.admin-sidebar__footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.admin-sidebar__site-link {
    display: inline-flex;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.82);
}

.admin-logout button {
    width: 100%;
    background: rgba(255,255,255,0.08);
}

.admin-main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 28px 34px 0;
}

.admin-topbar__eyebrow {
    margin: 0 0 8px;
    color: #5e6b81;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-topbar h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar__link,
.admin-user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(17,17,17,0.06);
}

.admin-content {
    width: min(100%, 1600px);
    padding: 26px 34px 40px;
}

.admin-page-header {
    margin-bottom: 24px;
}

.admin-page-header--split {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.admin-page-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.admin-page-header p:last-child {
    margin: 0;
    color: var(--muted);
}

.admin-page-header__actions {
    display: flex;
    gap: 12px;
}

.admin-hero-card,
.admin-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(17,17,17,0.08);
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

.admin-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    gap: 28px;
    padding: 28px 30px;
    margin-bottom: 22px;
}

.admin-hero-card h2,
.admin-card h2 {
    margin: 0 0 10px;
    font-size: 1.9rem;
}

.admin-hero-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.admin-hero-card__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-mini-stat,
.admin-overview-card {
    background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
    border: 1px solid rgba(17,17,17,0.06);
    padding: 18px;
}

.admin-mini-stat strong,
.admin-overview-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.admin-mini-stat span,
.admin-overview-card span {
    color: var(--muted);
}

.admin-overview-grid,
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-stat-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(17,17,17,0.08);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.06);
}

.admin-stat-card__label {
    color: var(--muted);
    font-weight: 600;
}

.admin-stat-card strong {
    font-size: 2.2rem;
    color: #0a8a2c;
}

.admin-stat-card__meta {
    color: #4d83d5;
    font-size: 0.92rem;
}

.admin-stat-card__bar {
    display: block;
    width: 100%;
    height: 8px;
    background: #e6ebf5;
    overflow: hidden;
}

.admin-stat-card__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0a8b2d, #2f72d2);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 20px;
}

.admin-card {
    padding: 24px 26px;
}

.admin-card--wide {
    grid-column: span 1;
}

.admin-card__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-card__header--with-meta {
    align-items: center;
}

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

.admin-bar-chart {
    display: grid;
    gap: 16px;
}

.admin-bar-chart__row {
    display: grid;
    gap: 8px;
}

.admin-bar-chart__label {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-bar-chart__track {
    height: 12px;
    background: #e6ebf5;
    overflow: hidden;
}

.admin-bar-chart__track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0a8b2d, #2f72d2);
}

.admin-action-list {
    display: grid;
    gap: 12px;
}

.admin-action-list a,
.admin-module-tile {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: #f6f8fc;
    border: 1px solid rgba(17,17,17,0.06);
}

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

.admin-module-tile strong {
    font-size: 1rem;
}

.admin-module-tile span {
    color: var(--muted);
    font-size: 0.86rem;
}

.table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.admin-table thead th {
    background: #f4f7fc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(17,17,17,0.06);
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: rgba(27, 88, 168, 0.03);
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    background: #edf3fd;
    color: #275eb2;
    border: none;
    font-weight: 700;
}

.admin-action-link--danger {
    background: #fff1f1;
    color: #b23a3a;
}

.admin-empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 12px;
    min-height: 260px;
}

.admin-empty-state h3,
.admin-empty-state p {
    margin: 0;
}

.admin-empty-state p {
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field__label {
    font-weight: 700;
}

.field--full {
    grid-column: 1 / -1;
}

.admin-form textarea {
    resize: vertical;
    min-height: 180px;
}

.admin-field--toggle {
    align-content: start;
}

.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(17,17,17,0.08);
    background: #ffffff;
}

.admin-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 1320px) {
    .home-news-layout,
    .page-layout,
    .admin-dashboard-grid,
    .admin-hero-card {
        grid-template-columns: 1fr;
    }

    .admin-auth-stage {
        grid-template-columns: 1fr;
    }

    .admin-auth-hero__grid,
    .admin-hero-card__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .official-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        min-height: 0;
        padding-bottom: 14px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .menu-level--0,
    .menu-item .menu-level {
        display: block;
        position: static;
        min-width: 0;
        box-shadow: none;
        border: none;
    }

    .menu-item > a,
    .menu-item .menu-level .menu-item > a {
        min-height: 0;
        padding: 14px 10px;
        white-space: normal;
    }

    .main-nav__search {
        display: none;
    }

    .brand-banner__inner,
    .site-footer__inner,
    .admin-topbar,
    .admin-page-header--split,
    .admin-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-grid,
    .official-card-list,
    .admin-form--grid,
    .admin-auth-hero__grid,
    .admin-hero-card__meta {
        grid-template-columns: 1fr;
    }

    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-item__thumb img {
        aspect-ratio: 16 / 9;
    }

    .search-form {
        flex-direction: column;
    }

    .admin-auth-panel,
    .admin-auth-hero,
    .admin-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .brand-logo img {
        width: min(100%, 360px);
    }

    .hero-slider--home {
        min-height: 300px;
    }

    .hero-slide__content--caption {
        max-width: calc(100% - 20px);
    }
}
