:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #152235;
    --muted: #5f6f82;
    --line: #dbe4ef;
    --primary: #123c6c;
    --primary-2: #1d5da1;
    --accent: #2f80ed;
    --success: #1f9d55;
    --shadow: 0 16px 40px rgba(15, 35, 60, 0.08);
    --radius: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

.main-content {
    flex: 1;
    padding: 42px 0 80px;
}

.message-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.message {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(31, 157, 85, 0.18);
    background: rgba(31, 157, 85, 0.08);
    color: #116038;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd9e6;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.form-control:focus {
    outline: none;
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(47, 128, 237, 0.06), transparent 24%),
        linear-gradient(180deg, #f7faff 0%, #f4f7fb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(18, 60, 108, 0.08);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 92px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    max-width: 390px;
}

.brand img {
    height: 72px !important;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a,
.nav button {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
}

.nav a:hover,
.nav button:hover {
    background: rgba(47, 128, 237, 0.08);
    color: var(--primary);
}

.nav a::after {
    display: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(18, 60, 108, 0.2);
}

.brand-text strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    color: var(--primary);
}

.brand-text span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--muted);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nav a {
    position: relative;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition: width .25s ease;
}

.nav a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    /* overflow: hidden; */
    padding: 76px 0 62px;
    background:
        linear-gradient(135deg, rgba(14, 37, 66, 0.96), rgba(25, 72, 122, 0.95)),
        radial-gradient(circle at top right, rgba(103, 176, 255, 0.24), transparent 30%);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .22;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    justify-items: center;
    align-items: center;
    text-align: center;
}

.hero-grid > div {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
}

.hero h1 {
    margin: 0 auto 20px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.12;
    max-width: 1120px;
}

.hero p,
.hero-text {
    margin: 0 auto;
    max-width: 780px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2f80ed, #4e9cff);
    box-shadow: 0 12px 24px rgba(47, 128, 237, 0.25);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.hero-panel {
    position: relative;
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .14);
    align-self: stretch;
}

.hero-panel-title {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .72);
}

.hero-panel h3 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
}

.hero-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .9);
}

.hero-list-mark {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(74, 222, 128, 0.2);
    color: #8ef0b2;
    font-size: 15px;
    font-weight: 700;
}


.section {
    margin-bottom: 28px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid rgba(18, 60, 108, 0.06);
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: 30px;
    color: var(--primary);
}

.section-text {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 760px;
}

.richtext-content {
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.richtext-content p,
.richtext-content div,
.richtext-content blockquote,
.richtext-content ul,
.richtext-content ol {
    margin: 0 0 12px;
}

.richtext-content ul,
.richtext-content ol {
    padding-left: 22px;
}

.richtext-content a {
    color: #1367a5;
    text-decoration: underline;
}

.richtext-content table {
    display: block;
    width: max-content;
    min-width: min(100%, 420px);
    max-width: 100%;
    margin: 14px 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.richtext-content th,
.richtext-content td {
    min-width: 96px;
    padding: 8px 10px;
    border: 1px solid #bac8d7;
    vertical-align: top;
    white-space: normal;
}

.richtext-content th {
    font-weight: 700;
    background: #eef3f7;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.card {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(47, 128, 237, 0.1);
    color: var(--primary-2);
    font-size: 20px;
    font-weight: 700;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--primary);
}

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

.anti-visual-hero {
    background:
        linear-gradient(135deg, rgba(10, 39, 70, 0.96), rgba(20, 83, 107, 0.94)),
        radial-gradient(circle at 85% 20%, rgba(92, 225, 178, 0.22), transparent 30%);
}

.anti-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 28px;
}

.anti-shield {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.anti-shield-mark {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border-radius: 32px;
    background: rgba(92, 225, 178, 0.18);
    border: 2px solid rgba(139, 255, 218, 0.55);
    font-size: 58px;
    font-weight: 800;
}

.anti-shield-lines {
    display: grid;
    gap: 10px;
    width: 140px;
    margin-top: 24px;
}

.anti-shield-lines span {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.anti-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.anti-stat,
.anti-upload-tile {
    min-height: 130px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(18, 60, 108, 0.08);
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 35, 60, 0.06);
}

.anti-stat strong,
.anti-upload-tile strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 34px;
    line-height: 1;
}

.anti-stat span,
.anti-upload-tile span {
    color: var(--muted);
    font-weight: 700;
}

.anti-upload-tile {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.anti-upload-tile strong,
.anti-upload-tile span {
    color: #fff;
}

.document-list {
    display: grid;
    gap: 14px;
}

.document-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(18, 60, 108, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 12px 28px rgba(15, 35, 60, 0.05);
}

.document-file-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(47, 128, 237, 0.1);
    color: var(--primary);
    font-weight: 900;
    letter-spacing: .04em;
}

.document-row-main h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 19px;
}

.document-row-main p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.5;
}

.document-row-meta,
.document-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.document-row-meta {
    color: var(--muted);
    font-size: 13px;
}

.document-row-actions {
    justify-content: flex-end;
}

.document-preview-button {
    min-height: 44px;
    color: var(--primary);
    border-color: rgba(47, 128, 237, 0.24);
    background: #eef5ff;
    cursor: pointer;
}

.document-preview-button:hover {
    background: #e1efff;
}

.document-preview-frame {
    grid-column: 1 / -1;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 108, 0.12);
    border-radius: 14px;
    background: #fff;
}

.document-preview-frame[hidden] {
    display: none;
}

.document-preview-frame iframe {
    display: block;
    width: 100%;
    min-height: 620px;
    border: 0;
}

.document-preview-frame p {
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid rgba(18, 60, 108, 0.08);
    color: var(--muted);
    font-size: 14px;
}

.document-download.btn-secondary {
    min-height: 42px;
    color: var(--primary);
    border-color: rgba(18, 60, 108, 0.14);
    background: #fff;
}

.vacancies-hero {
    background:
        linear-gradient(135deg, rgba(14, 37, 66, 0.95), rgba(21, 76, 120, 0.94)),
        radial-gradient(circle at 85% 18%, rgba(47, 128, 237, 0.26), transparent 30%);
}

.vacancies-section {
    display: grid;
    gap: 20px;
}

.vacancies-section .section-head {
    margin-bottom: 0;
}

.vacancy-upload-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(47, 128, 237, 0.16);
    background: #f7fbff;
}

.vacancy-upload-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.vacancy-upload-head h3 {
    margin: 0;
    color: var(--primary);
    font-size: 22px;
}

.vacancy-document-form {
    gap: 14px;
}

.vacancy-form-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.vacancy-order-field {
    max-width: 160px;
}

.vacancy-active-check {
    align-self: end;
    min-height: 44px;
}

.vacancy-document-list {
    display: grid;
    gap: 12px;
}

.vacancy-document-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(18, 60, 108, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 8px 20px rgba(15, 35, 60, 0.04);
}

.vacancy-document-row-highlight {
    border-color: rgba(47, 128, 237, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.vacancy-document-main h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 18px;
}

.vacancy-document-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.vacancy-open-link {
    white-space: nowrap;
}

.danger-link {
    color: #b42318;
}

.empty-state {
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px dashed rgba(18, 60, 108, 0.24);
    background: var(--surface-soft);
}

.empty-state h3 {
    margin: 0 0 10px;
    color: var(--primary);
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label,
.form-check {
    color: var(--text);
    font-weight: 700;
}

.form-check {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 48px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.neutral-btn.btn-secondary {
    color: var(--primary);
    border-color: rgba(18, 60, 108, 0.14);
    background: #fff;
}

.danger-btn.btn-primary {
    background: linear-gradient(135deg, #b42318, #d92d20);
    box-shadow: 0 12px 24px rgba(217, 45, 32, 0.18);
}

.anti-edit-section {
    border-style: dashed;
}

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

.news-item {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 35, 60, 0.08);
}

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

.news-date-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(18, 60, 108, 0.08);
    text-align: center;
}

.news-day {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.news-month {
    display: block;
    margin-top: 6px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--muted);
}

.news-item-content h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.news-item-content p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

/* Pagination styles */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 18px 0 8px;
    margin: 0;
    list-style: none;
}
.pagination {
    /* Stronger reset to avoid library conflicts */
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.pagination .page-item {
    display: inline-block;
}
.pagination li {
    list-style: none !important;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--primary);
    border: 1px solid rgba(18,60,108,0.06);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15,35,60,0.04);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-decoration: none;
}
.pagination .ellipsis {
    display: inline-block;
}
.pagination .page-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15,35,60,0.08);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent), var(--primary-2));
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(47,128,237,0.18);
}
.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}
.pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--muted);
}

    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .news-item-row {
        grid-template-columns: 1fr;
    }

    .news-date-block {
        flex-direction: row;
        justify-content: flex-start;
        min-height: auto;
    }

    .news-day {
        font-size: 28px;
    }

    .news-item {
        padding: 16px;
    }
}

.news-item h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--text);
}

.news-item p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.news-image-wrap {
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 16px;
}

.news-image {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 240px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 60, 108, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
}

.news-page {
    margin-top: -26px;
}

.news-admin-actions {
    margin-bottom: 18px;
}

.news-dashboard {
    display: grid;
    grid-template-columns: minmax(480px, 1.35fr) minmax(280px, 0.64fr);
    gap: 36px;
    align-items: start;
    margin-bottom: 28px;
}

.news-featured {
    display: grid;
    gap: 26px;
}

.news-hero-card,
.news-card,
.news-all-panel,
.news-important-panel {
    background: #fff;
    border: 1px solid rgba(15, 35, 60, 0.06);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(15, 35, 60, 0.08);
    overflow: hidden;
}

.news-hero-card {
    min-height: 460px;
}

.news-hero-card a,
.news-card a {
    position: relative;
    display: block;
    height: 100%;
    color: inherit;
}

.news-hero-card img,
.news-card-image img,
.news-image-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.08) 20%, rgba(8, 16, 28, 0.82) 100%);
}

.news-hero-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 28px;
    color: #fff;
}

.news-hero-content h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
}

.news-hero-content time {
    font-size: 16px;
    font-weight: 800;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    min-height: 0;
}

.news-card-image {
    height: 220px;
    min-height: 190px;
    background: #dfe7ef;
    overflow: hidden;
}

.news-card a {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 390px;
}

.news-card-body {
    display: grid;
    align-content: start;
    min-height: 170px;
    padding: 22px 24px;
}

.news-card-body h2 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 21px;
    line-height: 1.12;
    font-weight: 800;
    color: #06101f;
}

.news-card-body time {
    margin-top: 14px;
    font-size: 18px;
    color: #58606b;
}

.news-card-body p {
    display: -webkit-box;
    margin: 16px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 16px;
    line-height: 1.45;
    color: #596271;
}

.news-image-fallback {
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(18, 60, 108, 0.84), rgba(47, 128, 237, 0.68)),
        url("../img/logo.png") center / 150px auto no-repeat;
}

.news-all-panel,
.news-important-panel {
    min-height: 0;
    padding: 34px 36px;
}

.news-all-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.news-all-item {
    display: grid;
    gap: 8px;
    color: #030813;
}

.news-all-item time {
    font-size: 19px;
    line-height: 1.22;
    color: #596271;
}

.news-all-item span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.news-all-item:hover span,
.news-important-panel a:hover {
    text-decoration: underline;
}

.news-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: min(214px, 100%);
    min-height: 41px;
    margin: 48px auto 40px;
    border-radius: 7px;
    background: #56e875;
    color: #020b14;
    font-size: 17px;
    line-height: 1;
}

.news-infinite-status {
    width: min(240px, 100%);
    min-height: 41px;
    margin: 24px auto 0;
    padding: 12px 16px;
    border-radius: 7px;
    background: #56e875;
    color: #020b14;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
}

.news-infinite-status.is-done {
    background: rgba(18, 60, 108, 0.08);
    color: #596271;
}

.news-important-panel h2 {
    margin: 0 0 28px;
    font-size: 30px;
    line-height: 1.1;
    color: #1d1d1d;
}

.news-important-panel ul {
    display: grid;
    gap: 24px;
    margin: 0;
    padding-left: 18px;
}

.news-important-panel li {
    padding-left: 5px;
    font-size: 18px;
    line-height: 1.28;
    color: #000;
}

.news-important-panel a {
    color: #020713;
}

@media (max-width: 1180px) {
    .news-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
        gap: 24px;
    }

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

    .news-important-panel {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .news-page {
        margin-top: 0;
    }

    .news-dashboard,
    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-hero-card {
        min-height: 360px;
    }

    .news-card,
    .news-all-panel,
    .news-important-panel {
        min-height: auto;
    }

    .news-card-image {
        height: 240px;
    }

}

@media (max-width: 560px) {
    .news-dashboard {
        gap: 18px;
    }

    .news-hero-content {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .news-hero-content h1 {
        font-size: 24px;
    }

    .news-card-body h2 {
        font-size: 20px;
    }

    .news-all-panel,
    .news-important-panel {
        padding: 26px 24px;
    }
}

.team-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.team-card-link:hover img {
    transform: scale(1.02);
}

.team-card-link img {
    transition: transform 0.2s ease;
}

.branch-accordion {
    display: grid;
    gap: 16px;
}

.branch-card {
    overflow: hidden;
}

.branch-toggle {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(15, 37, 67, 0.16);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.branch-details {
    display: none;
    margin-top: 16px;
    padding: 0 4px 16px;
    color: var(--muted);
}

.branch-details.active {
    display: block;
}

.branch-toggle[aria-expanded="true"] {
    background: rgba(18, 60, 108, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav {
    background: linear-gradient(90deg, #0f3d66, #174f83);
    box-shadow: 0 6px 18px rgba(15, 37, 67, 0.18);
}

.header-nav .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 58px;
}

.header-nav .nav a {
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.header-nav .nav a:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}


/* Траурный режим */
body.mourning {
    filter: grayscale(100%);
}

/* кнопка */
.mourning-btn {
    margin-left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.mourning-btn.active {
    background: white;
    color: #123c6c;
}

.header-nav .nav a.active {
    background: #fff;
    color: #123c6c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.info-panel {
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #11365f, #1b5089);
    color: #fff;
}

.info-panel h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.info-panel p,
.info-panel li {
    color: rgba(255, 255, 255, .86);
    line-height: 1.7;
}

.info-panel ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.contact-collapsible {
    display: block;
    overflow: hidden;
}

.contact-collapsible summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 110px;
    cursor: pointer;
    list-style: none;
}

.contact-collapsible summary::-webkit-details-marker {
    display: none;
}

.contact-collapsible summary span {
    font-size: 24px;
    font-weight: 800;
}

.contact-collapsible summary small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
}

.contact-hide-label,
.contact-collapsible[open] .contact-show-label {
    display: none;
}

.contact-collapsible[open] .contact-hide-label {
    display: inline;
}

.contact-collapsible[open] summary {
    min-height: auto;
    margin-bottom: 18px;
}

.contact-collapsible-body {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.site-footer {
    padding: 26px 0;
    background: #0f2543;
    color: rgba(255, 255, 255, .82);
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.site-footer small {
    color: rgba(255, 255, 255, .65);
}

.footer-main {
    display: grid;
    gap: 20px;
    min-width: min(100%, 520px);
}

.footer-links h2 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
}

.footer-links ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.footer-links a {
    color: rgba(126, 203, 255, .9);
    line-height: 1.45;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-service-link {
    margin-top: 8px;
    list-style: none;
}

.footer-service-link a {
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
}

.footer-service-link a:hover {
    color: rgba(255, 255, 255, .72);
}

.footer-service-login {
    width: max-content;
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
}

.footer-service-login:hover {
    color: rgba(255, 255, 255, .72);
}

.home-top-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 0 28px;
    background: transparent;
    line-height: 0;
}

.home-top-image img {
    display: block;
    width: 100%;
    height: auto;
}

.home-top-image-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.home-top-image-edit:hover {
    background: rgba(255, 255, 255, .20);
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card-link:hover h3 {
    color: #1367a5;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 24px;
    align-items: start;
}

.faq-main,
.faq-answer-list,
.faq-moderation-list {
    display: grid;
    gap: 14px;
}

.home-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.faq-answer-card,
.faq-question-form-panel,
.faq-moderation-row {
    padding: 20px;
    border: 1px solid rgba(18, 60, 108, .10);
    border-radius: 16px;
    background: #fff;
}

.faq-answer-card h3,
.faq-answer-card h4,
.faq-moderation-row h3 {
    margin: 0 0 10px;
    color: var(--primary);
    line-height: 1.35;
}

.faq-question-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.faq-answer-text {
    color: var(--text);
    line-height: 1.65;
}

.faq-question-form-panel {
    position: sticky;
    top: 100px;
    background: #f7fbff;
}

.faq-question-form-heading {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-inline-start: 3px solid currentColor;
    border-radius: 8px;
}

body:not(.accessibility) .faq-question-form-heading {
    background: #e5f3f5;
    color: #075a6b;
}

.faq-question-form-heading h3 {
    margin: 0 0 6px;
}

.faq-question-form-heading p {
    margin: 0;
}

.faq-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef6ff, #f8fbff);
    border: 1px solid rgba(47, 128, 237, .18);
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.faq-all-link:hover {
    background: #e7f1ff;
    transform: translateY(-1px);
}

.faq-all-link strong {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #1367a5;
    color: #fff;
}

.faq-public-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.faq-public-card {
    min-height: 220px;
}

.faq-moderation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

@media (max-width: 760px) {
    .home-top-image {
        margin-bottom: 20px;
    }

    .faq-layout,
    .faq-public-list,
    .home-faq-grid,
    .faq-moderation-row {
        grid-template-columns: 1fr;
    }

    .faq-question-form-panel {
        position: static;
    }
}

@media (max-width: 980px) {

    .hero-grid,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .anti-feature-grid,
    .document-grid,
    .anti-metrics,
    .anti-hero-grid,
    .anti-dashboard,
    .form-grid,
    .vacancy-form-grid {
        grid-template-columns: 1fr;
    }

    .document-row {
        grid-template-columns: 1fr;
    }

    .vacancy-document-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .document-row-actions {
        justify-content: flex-start;
    }

    .document-preview-frame iframe {
        min-height: 420px;
    }

    .vacancy-order-field {
        max-width: none;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .nav {
        gap: 14px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Leadership compact styles */
.lead-main {
    max-width: 640px;
    margin-left: 0;
    margin-right: 0;
}

.lead-main h3 {
    margin-bottom: 6px;
}

.lead-secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

.lead-secondary-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.lead-secondary-card img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 160px;
}

.lead-secondary-card h3 {
    margin: 0 0 6px 0;
}

.lead-secondary-card p {
    margin: 0;
}

@media (max-width: 760px) {
    .lead-main, .lead-secondary { max-width: 100%; }
    .lead-secondary-card { flex-direction: column; }
    .lead-secondary-card img { width: 100%; height: 160px; flex: none; }
}


body.mourning {
    filter: grayscale(100%);
}

.mourning-btn {
    background: #f5f5f5;
    color: #000 !important;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.mourning-btn:hover {
    background: #e0e0e0;
}

body.accessibility {
    background: #fff !important;
    color: #000 !important;
}

body.accessibility .hero,
body.accessibility .section,
body.accessibility .card,
body.accessibility .header-nav,
body.accessibility .header-top {
    background: #fff !important;
    color: #000 !important;
}

body.accessibility .site-header,
body.accessibility .header-top,
body.accessibility .header-nav,
body.accessibility .site-footer,
body.accessibility .section,
body.accessibility .card,
body.accessibility .news-item,
body.accessibility .hero-panel,
body.accessibility .info-panel {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 2px solid #000 !important;
}

body.accessibility .hero {
    background: #fff !important;
    color: #000 !important;
}

body.accessibility a,
body.accessibility button,
body.accessibility .btn,
body.accessibility .btn-primary,
body.accessibility .btn-secondary,
body.accessibility .mourning-btn {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    text-decoration: underline !important;
}

body.accessibility p,
body.accessibility h1,
body.accessibility h2,
body.accessibility h3,
body.accessibility span,
body.accessibility div,
body.accessibility li,
body.accessibility small,
body.accessibility strong {
    color: #000 !important;
}

body.accessibility img {
    filter: grayscale(100%) contrast(120%);
}

.mourning-btn {
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.mourning-btn.active {
    background: white;
    color: #123c6c;
}


.inner-hero {
    padding: 34px 0 28px;
    background:
        linear-gradient(135deg, rgba(14, 37, 66, 0.96), rgba(25, 72, 122, 0.95)),
        radial-gradient(circle at top right, rgba(103, 176, 255, 0.18), transparent 28%);
    color: #fff;
}

.inner-hero .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.header-user,
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.controls-dropdown {
    position: relative;
}

.controls-summary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 18px;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid rgba(47, 128, 237, .22);
    background: #fff;
    color: #0f3d66;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
    box-shadow: 0 10px 28px rgba(30, 75, 135, .08);
}

.controls-summary:hover {
    background: #eef6ff;
    border-color: rgba(47, 128, 237, .35);
}

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

.controls-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: rgba(47, 128, 237, .12);
    color: #0f3d66;
    font-size: 12px;
    transition: transform .2s ease, background .2s ease;
}

.controls-dropdown[open] .controls-arrow {
    transform: rotate(180deg);
    background: rgba(47, 128, 237, .18);
}

.controls-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 260px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(18, 60, 108, .1);
    box-shadow: 0 28px 60px rgba(20, 58, 105, .14);
    z-index: 20;
}

.controls-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(18, 60, 108, .1);
    border-top: 1px solid rgba(18, 60, 108, .1);
}

.control-link,
.control-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f6faff;
    border: 1px solid rgba(47, 128, 237, .18);
    color: #0f3d66;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.control-link:hover,
.control-button:hover {
    background: #e8f2ff;
    transform: translateY(-1px);
}

.control-button {
    border: 1px solid rgba(47, 128, 237, .18);
    background: #ffffff;
}

.control-form {
    margin: 0;
}

.header-nav {
    background: #0f3d66;
}

.header-nav .nav {
    display: flex;
    gap: 28px;
    align-items: center;
    min-height: 56px;
}

.header-nav .nav a {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.header-nav .nav a:hover {
    color: #7ecbff;
}

.inner-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.inner-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.inner-text {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.7;
}


/* футер */
.footer-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.footer-logo-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-logo-edit {
    width: max-content;
    max-width: 220px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
    color: #123c6c;
    box-shadow: 0 4px 12px rgba(15, 35, 60, .16);
    font-size: 12px;
}

.footer-photos a {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.footer-photos a:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.footer-photos a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 4px;
    border-radius: 10px;
}

.footer-photos img {
    height: 82px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    padding: 4px 6px;
}

.header-nav .container {
    width: min(1500px, calc(100% - 32px));
}

.header-nav .nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(4px, .7vw, 12px);
    min-height: 58px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.header-nav .nav a {
    flex: 0 0 auto;
    padding: 12px clamp(8px, .85vw, 16px);
    font-size: clamp(13px, .82vw, 15px);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer-photos {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .footer-photos img {
        height: 34px;
    }
}

/* Polished visual layer */
body {
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(47, 128, 237, .10), transparent 26%),
        radial-gradient(circle at 90% 12%, rgba(29, 93, 161, .08), transparent 26%),
        linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

.site-header {
    box-shadow: 0 12px 34px rgba(12, 36, 68, .08);
}

.header-top {
    border-bottom: 1px solid rgba(18, 60, 108, .08);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
}

.header-top-inner {
    min-height: 86px;
}

.brand {
    max-width: 520px;
}

.brand img {
    height: 64px !important;
    filter: drop-shadow(0 10px 18px rgba(47, 128, 237, .12));
}

.brand div div:first-child {
    color: #0c335f;
    letter-spacing: -.01em;
}

.header-nav {
    background:
        linear-gradient(90deg, #0b335d 0%, #104b7f 48%, #0b335d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
}

.header-nav .container {
    width: min(1220px, calc(100% - 32px));
}

.header-nav .nav {
    min-height: 54px;
    gap: 6px;
    justify-content: center;
    scrollbar-width: none;
}

.header-nav .nav::-webkit-scrollbar {
    display: none;
}

.header-nav .nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.header-nav .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.header-nav .nav a.active {
    color: #0c335f;
    background: #fff;
    box-shadow: 0 10px 24px rgba(4, 18, 36, .18);
}

.controls-summary {
    min-height: 44px;
    border-radius: 999px;
    background: #f8fbff;
    box-shadow: 0 12px 28px rgba(30, 75, 135, .10);
}

.hero {
    overflow: hidden;
    padding: clamp(92px, 8vw, 132px) 0 clamp(86px, 7vw, 118px);
    background:
        radial-gradient(circle at 50% 18%, rgba(105, 174, 255, .28), transparent 22%),
        radial-gradient(circle at 12% 26%, rgba(87, 154, 225, .18), transparent 24%),
        linear-gradient(135deg, #0b2d52 0%, #143f6d 46%, #1f5b93 100%);
}

.hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 92%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -34% -8%;
    height: 46%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .22), transparent 62%);
    pointer-events: none;
}

.hero-grid {
    z-index: 1;
}

.hero-grid > div {
    width: min(100%, 980px);
}

.hero-edit-button {
    min-height: 42px;
    margin-bottom: 18px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: none;
}

.hero-kicker {
    margin-bottom: 24px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 12px 34px rgba(3, 19, 38, .14);
    letter-spacing: .07em;
}

.hero h1 {
    max-width: 940px;
    margin-bottom: 24px;
    font-size: clamp(38px, 4.7vw, 72px);
    line-height: 1.05;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.hero p,
.hero-text {
    max-width: 690px;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.75;
    color: rgba(255, 255, 255, .86);
}

.hero-actions {
    margin-top: 42px;
    gap: 16px;
}

.btn {
    border-radius: 999px;
}

.hero .btn-primary {
    min-height: 54px;
    padding: 0 26px;
    background: linear-gradient(135deg, #3388ff, #68b7ff);
    box-shadow: 0 18px 36px rgba(47, 128, 237, .34);
}

.hero .btn-secondary {
    min-height: 54px;
    padding: 0 26px;
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.main-content {
    padding-top: 56px;
}

.section {
    border-radius: 26px;
    border-color: rgba(18, 60, 108, .08);
    box-shadow: 0 24px 70px rgba(27, 68, 118, .08);
}

.card,
.service-card,
.home-news-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.service-card:hover,
.home-news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 128, 237, .18);
    box-shadow: 0 26px 70px rgba(27, 68, 118, .12);
}

@media (max-width: 980px) {
    .header-top-inner {
        min-height: auto;
        padding: 16px 0;
    }

    .brand {
        max-width: 100%;
    }

    .hero {
        padding: 74px 0 82px;
    }
}

@media (max-width: 640px) {
    .brand img {
        height: 52px !important;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .hero-actions .btn {
        width: 100%;
    }
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.header-control-link,
.header-icon-button,
.language-switcher button {
    min-height: 38px;
    border: 1px solid rgba(18, 60, 108, .12);
    border-radius: 999px;
    background: #fff;
    color: #123c6c;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.header-control-link {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
}

.header-control-form {
    margin: 0;
}

.header-icon-button {
    width: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.glasses-icon {
    position: relative;
    width: 25px;
    height: 10px;
    display: block;
}

.glasses-icon::before,
.glasses-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.glasses-icon::before {
    left: 0;
}

.glasses-icon::after {
    right: 0;
}

.glasses-button .glasses-icon {
    color: #123c6c;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #eef5ff;
}

.language-switcher button {
    min-height: 30px;
    padding: 0 9px;
    border-color: transparent;
    background: transparent;
}

.language-switcher button.active,
.language-switcher button:hover,
.header-control-link:hover,
.header-icon-button:hover,
.header-icon-button.active {
    background: #123c6c;
    color: #fff;
}

.header-nav .nav {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.header-nav .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
}

.qportal-link {
    width: 48px;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    color: #123c6c !important;
    font-weight: 800;
    transition: width .25s ease, background .2s ease, color .2s ease;
}

.qportal-link span {
    max-width: 18px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .25s ease;
}

.qportal-link:hover,
.qportal-link:focus {
    width: 132px;
    background: #fff !important;
}

.qportal-link:hover span,
.qportal-link:focus span {
    max-width: 112px;
}

.hero {
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: clamp(58px, 6vw, 86px) 0 clamp(72px, 7vw, 104px);
}

.hero h1 {
    letter-spacing: 0;
    overflow-wrap: anywhere;
    max-width: 980px;
    margin: 0 auto 22px;
    font-size: clamp(34px, 3.7vw, 56px);
    line-height: 1.12;
    text-wrap: balance;
}

.hero-text {
    overflow-wrap: anywhere;
    max-width: 820px;
}

.hero-kicker {
    margin-bottom: 20px;
}

.hero-actions {
    margin-top: 30px;
}

@media (max-width: 980px) {
    .header-top-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-controls {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Unified header */
.site-header {
    background: #073f56;
}

.header-nav {
    background: linear-gradient(90deg, #0a3f67 0%, #104f80 48%, #0a3f67 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 8px 22px rgba(8, 35, 61, .18);
}

.header-nav .nav-shell {
    width: min(1540px, calc(100% - 28px));
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav .brand {
    max-width: none;
    width: clamp(245px, 21vw, 330px);
    min-height: 70px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px 7px 0;
    color: #fff !important;
    text-decoration: none;
}

.header-nav .brand-logo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.header-nav .brand img {
    width: 52px;
    height: 52px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-nav .brand-text {
    min-width: 0;
    max-width: 260px;
}

.header-nav .brand-text strong,
.header-nav .brand-text span {
    display: block;
    color: #fff !important;
}

.header-nav .brand-text strong {
    font-size: 12px !important;
    line-height: 1.18;
    letter-spacing: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}

.header-nav .brand-text span {
    margin-top: 3px;
    font-size: 10px !important;
    line-height: 1.18;
    color: rgba(255, 255, 255, .78) !important;
}

.header-nav .nav {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    justify-content: flex-start;
    gap: 8px 3px;
    padding: 8px 0;
    flex-wrap: wrap;
    overflow: visible;
}

.header-nav .nav a {
    min-height: 36px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px !important;
    line-height: 1.1;
    color: rgba(255, 255, 255, .92) !important;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-nav .nav a.active {
    background: #fff;
    color: #074d70 !important;
    box-shadow: 0 8px 18px rgba(4, 18, 36, .16);
}

.header-nav .header-controls {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    justify-content: flex-end;
    gap: 5px;
    padding-top: 0;
    flex-wrap: nowrap;
}

.header-nav .header-control-link,
.header-nav .header-icon-button,
.header-nav .language-switcher button {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.header-nav .header-control-link {
    min-height: 34px !important;
    padding: 0 11px;
    font-size: 12px !important;
    white-space: nowrap;
}

.header-nav .header-control-form {
    flex: 0 0 auto;
}

.header-nav .header-icon-button {
    width: 34px;
    min-height: 32px !important;
}

.header-nav .glasses-button .glasses-icon {
    color: #fff;
}

.header-nav .language-switcher {
    background: rgba(255, 255, 255, .13);
    padding: 2px;
}

.header-nav .language-switcher button {
    min-height: 27px !important;
    padding: 0 7px;
    font-size: 11px !important;
}

.header-nav .language-switcher button.active,
.header-nav .language-switcher button:hover,
.header-nav .header-control-link:hover,
.header-nav .header-icon-button:hover,
.header-nav .header-icon-button.active {
    background: #fff;
    color: #074d70;
}

.header-nav .qportal-link {
    width: auto;
    min-width: 72px;
    justify-content: center;
    padding: 0 10px;
    background: #fff;
    color: #074d70 !important;
    font-weight: 800;
}

.header-nav .qportal-link span {
    display: inline-block;
    max-width: none !important;
    overflow: visible;
    color: #074d70 !important;
}

.header-nav .qportal-link:hover,
.header-nav .qportal-link:focus {
    width: auto;
    background: #fff !important;
    color: #074d70 !important;
}

@media (max-width: 1180px) {
    .header-nav .nav-shell {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 8px 0;
    }

    .header-nav .brand {
        width: calc(100% - 260px);
        min-height: 56px;
    }

    .header-nav .nav {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .header-nav .header-controls {
        margin-left: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .header-nav {
        background: linear-gradient(180deg, #063d58 0, #0b557b 100%);
    }

    .header-nav .nav-shell {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        min-height: 0;
    }

    .header-nav .brand {
        width: 100%;
        min-height: 0;
        padding: 8px 0;
    }

    .header-nav .brand-logo {
        width: 50px;
        height: 50px;
    }

    .header-nav .brand img {
        width: 42px;
        height: 42px !important;
    }

    .header-nav .nav,
    .header-nav .header-controls {
        width: 100%;
        padding-top: 0;
    }

    .header-nav .header-controls {
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

/* Accessibility header fixes */
body.accessibility .site-header,
body.accessibility .header-nav {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

body.accessibility .header-nav .nav-shell {
    min-height: 72px;
    gap: 10px;
}

body.accessibility .header-nav .brand {
    width: clamp(270px, 24vw, 360px);
    min-height: 68px;
    padding: 7px 10px;
    border: 2px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
}

body.accessibility .header-nav .brand-logo {
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

body.accessibility .header-nav .brand img {
    width: 52px;
    height: 52px !important;
    filter: grayscale(100%) contrast(130%);
}

body.accessibility .header-nav .brand-text {
    max-width: none;
}

body.accessibility .header-nav .brand-text strong,
body.accessibility .header-nav .brand-text span {
    color: #000 !important;
    text-shadow: none;
}

body.accessibility .header-nav .nav {
    justify-content: flex-start;
    gap: 6px;
}

body.accessibility .header-nav .nav a,
body.accessibility .header-nav .header-control-link,
body.accessibility .header-nav .header-icon-button,
body.accessibility .header-nav .language-switcher button {
    min-width: auto;
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    text-decoration: underline !important;
}

body.accessibility .header-nav .nav a {
    min-height: 36px;
    padding: 0 9px;
}

body.accessibility .header-nav .nav a.active,
body.accessibility .header-nav .qportal-link,
body.accessibility .header-nav .language-switcher button.active,
body.accessibility .header-nav .header-icon-button.active {
    background: #000 !important;
    color: #fff !important;
}

body.accessibility .header-nav .qportal-link span {
    color: inherit !important;
}

body.accessibility .header-nav .language-switcher {
    background: #fff !important;
    border: 0 !important;
}

body.accessibility .header-nav .glasses-button .glasses-icon {
    color: #000;
}

body.accessibility .header-nav .header-icon-button.active .glasses-icon {
    color: #fff;
}

@media (max-width: 1180px) {
    body.accessibility .header-nav .brand {
        width: 100%;
        min-height: 64px;
    }
}

/* Contacts page */
.contacts-page {
    display: grid;
    gap: 26px;
}

.contacts-title {
    max-width: 920px;
}

.contacts-title h1 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}

.contacts-title p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.contacts-sidebar {
    position: sticky;
    top: 98px;
    padding: 20px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(18, 60, 108, .10);
    box-shadow: 0 18px 44px rgba(27, 68, 118, .07);
}

.contacts-sidebar h2 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 18px;
}

.contacts-sidebar nav {
    display: grid;
    gap: 8px;
}

.contacts-sidebar a,
.contacts-sidebar span {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
}

.contacts-sidebar span {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contacts-sidebar a:hover {
    background: rgba(47, 128, 237, .08);
    color: #1367a5;
}

.contacts-content {
    display: grid;
    gap: 22px;
}

.contacts-panel {
    padding: clamp(24px, 3vw, 38px);
    border-radius: 20px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(18, 60, 108, .08);
    box-shadow: 0 22px 60px rgba(27, 68, 118, .08);
}

.contacts-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.contacts-panel h2 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: 0;
}

.contacts-list,
.contacts-richtext {
    display: grid;
    gap: 0;
}

.contacts-richtext p,
.contacts-richtext div {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(18, 60, 108, .12);
    border-radius: 14px;
}

.contacts-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-bottom: 1px solid rgba(18, 60, 108, .12);
    border-radius: 14px;
    transition: background .18s ease, border-color .18s ease;
}

.contacts-row:first-child,
.contacts-richtext p:first-child,
.contacts-richtext div:first-child {
    border-top: 0;
}

.contacts-row:hover,
.contacts-richtext p:hover,
.contacts-richtext div:hover {
    background: rgba(47, 128, 237, .045);
    border-color: rgba(47, 128, 237, .16);
}

.contacts-row strong {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: .01em;
}

.contacts-row span,
.contacts-richtext {
    color: var(--text);
    line-height: 1.65;
}

.contacts-row a {
    color: #1367a5;
    font-weight: 700;
}

@media (max-width: 980px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }

    .contacts-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .contacts-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .contacts-panel-head {
        flex-direction: column;
    }
}
.page-edit-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0;
    padding: 12px 16px;
    border: 1px dashed rgba(47, 128, 237, .45);
    border-radius: 10px;
    background: #f2f8ff;
}

.nav-editable-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
}

.header-nav .nav .nav-editable-item > a:first-child {
    min-width: 0;
    flex-shrink: 1;
    white-space: normal;
    overflow-wrap: anywhere;
}

.nav-item-image {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    object-fit: contain;
}

.header-nav .nav .inline-nav-edit,
.header-nav .nav .inline-nav-add,
.inline-header-edit {
    display: inline-grid;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: #fff;
    color: #1761a3;
    box-shadow: 0 3px 10px rgba(4, 25, 50, .22);
    line-height: 1;
    text-decoration: none;
}

.header-nav .nav .inline-nav-edit {
    margin-inline-end: 4px;
    opacity: .75;
}

.nav-editable-item:hover .inline-nav-edit,
.nav-editable-item:focus-within .inline-nav-edit {
    opacity: 1;
}

.header-nav .nav .inline-nav-add {
    margin-left: 3px;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: none;
}

.header-nav .nav .inline-nav-edit:hover,
.header-nav .nav .inline-nav-add:hover,
.inline-header-edit:hover {
    background: #eaf4ff;
    color: #0f4f89;
    transform: scale(1.08);
}

.inline-header-edit {
    margin-left: -8px;
    margin-right: 6px;
    opacity: .72;
}

.inline-nav-edit svg,
.inline-nav-add svg,
.inline-header-edit svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.page-edit-toolbar > span {
    margin-right: auto;
    color: #123c6c;
    font-weight: 700;
}

@media (max-width: 700px) {
    .page-edit-toolbar { align-items: stretch; flex-direction: column; }
    .page-edit-toolbar > span { margin-right: 0; }
}

.home-faq-grid .faq-answer-card,
.faq-public-card {
    overflow-wrap: anywhere;
}

.faq-public-card {
    scroll-margin-top: 110px;
}
