:root {
    color-scheme: light;
    --page-bg: #f5f7fa;
    --page-gradient: radial-gradient(
    circle at 8% 10%,
    rgba(45, 212, 191, 0.34) 0%,
    rgba(45, 212, 191, 0.16) 22%,
    transparent 42%
    ),
    radial-gradient(
    circle at 92% 18%,
    rgba(59, 130, 246, 0.32) 0%,
    rgba(59, 130, 246, 0.14) 24%,
    transparent 44%
    ),
    linear-gradient(
    135deg,
    #effdfb 0%,
    #e9f9fb 28%,
    #e9f4ff 64%,
    #eef2ff 100%
    );
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-hover: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-soft: #e5e7eb;
    --accent: #0f766e;
    --accent-hover: #0b5f59;
    --input-bg: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #0b1118;
    --page-gradient: radial-gradient(
    circle at 6% 8%,
    rgba(20, 184, 166, 0.28) 0%,
    rgba(20, 184, 166, 0.12) 24%,
    transparent 44%
    ),
    radial-gradient(
    circle at 94% 18%,
    rgba(37, 99, 235, 0.30) 0%,
    rgba(37, 99, 235, 0.12) 26%,
    transparent 46%
    ),
    radial-gradient(
    circle at 55% 100%,
    rgba(34, 211, 238, 0.12) 0%,
    transparent 40%
    ),
    linear-gradient(
    135deg,
    #071019 0%,
    #071722 38%,
    #081726 66%,
    #0a1220 100%
    );
    --surface: #111923;
    --surface-soft: #161f2b;
    --surface-hover: #1c2734;
    --text: #f3f7fb;
    --text-secondary: #c0cad5;
    --text-muted: #8998a8;
    --border: #273444;
    --border-soft: #202c39;
    --accent: #2bc4b3;
    --accent-hover: #44d7c5;
    --input-bg: #101821;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #1f2933;
    background: #f5f7fa;
}

img,
svg,
video {
    max-width: 100%;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

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

.logo {
    text-decoration: none;
    color: #0f766e;
    font-size: 24px;
    font-weight: 800;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    text-decoration: none;
    color: #1f2933;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a:hover {
    color: #0f766e;
}

.burger-btn {
    display: none;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    text-decoration: none;
    color: #1f2933;
}

main {
    flex: 1 0 auto;
}

.page-section {
    padding: 60px 0;
}

.page-section h1 {
    margin: 0;
    font-size: 36px;
}

.hero {
    padding: 90px 0;
    background: radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 34%),
    linear-gradient(135deg, #ecfeff, #f8fafc);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content,
.hero-card {
    width: 100%;
}

.hero-label {
    margin: 0 0 16px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 56px;
    line-height: 1.05;
}

.hero-text {
    max-width: 640px;
    margin: 0 0 32px;
    color: #475569;
    font-size: 20px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.btn-primary {
    background: #0f766e;
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: #0f766e;
    border: 1px solid #ccfbf1;
}

.hero-card {
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.hero-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #0f172a;
}

.hero-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.quick-links {
    padding: 72px 0;
    background: #f8fafc;
}

.section-head {
    max-width: 720px;
    margin-bottom: 32px;
}

.section-head h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 34px;
}

.section-head p {
    margin: 0;
    color: #64748b;
    font-size: 18px;
}

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

.quick-link-card {
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.quick-link-card span {
    display: inline-block;
    margin-bottom: 22px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
}

.quick-link-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

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

.catalog-card {
    min-height: 170px;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: 0.2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.catalog-card span {
    display: inline-block;
    margin-bottom: 28px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
}

.catalog-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.staff-search {
    margin-bottom: 24px;
}

.staff-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.staff-search input:focus {
    outline: 2px solid #99f6e4;
    border-color: #0f766e;
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.staff-card {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 8;
    border: 0;
    border-radius: 24px;
    background: transparent;
    overflow: visible;
    -webkit-clip-path: inset(0 round 24px);
    clip-path: inset(0 round 24px);
    isolation: isolate;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.3s ease;
}

.staff-card:hover {
    -webkit-transform: translate3d(0, -4px, 0);
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.staff-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: radial-gradient(
    circle at 50% 24%,
    rgba(255, 255, 255, 0.92),
    transparent 34%
    ),
    linear-gradient(
    160deg,
    #edf4fa 0%,
    #dfeaf5 100%
    );
}

.staff-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px 24px 33%;
    color: #526b86;
    text-align: center;
}

.staff-card-placeholder-icon {
    margin-bottom: 10px;
    font-size: 48px;
    line-height: 1;
}

.staff-card-placeholder-text {
    font-size: 13px;
    font-weight: 800;
}

.staff-card::after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
    180deg,
    rgba(6, 26, 40, 0) 0%,
    rgba(6, 29, 43, 0.16) 18%,
    rgba(6, 33, 48, 0.58) 46%,
    rgba(5, 31, 45, 0.90) 75%,
    rgba(5, 31, 45, 0.98) 100%
    );
}

.staff-card-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: center;
    pointer-events: none;
}

.staff-card-name,
.staff-card-name--ua,
.staff-card-name--en {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 80px;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    height: 60px;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.staff-card-name-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.staff-card-role {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 44px;
    display: -webkit-box;
    height: 34px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #dffcf6;
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
}

.staff-card-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    height: 38px;
    overflow: hidden;
}

.staff-card-meta:empty {
    display: none;
}

.staff-card-meta-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 12px;
}

.staff-card-meta-label {
    display: inline;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.staff-card-meta-value,
.staff-card-phone {
    display: inline;
    color: #ffffff;
    font-size: 12px;
    line-height: 12px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
}

.staff-card-phone {
    pointer-events: auto;
}

.staff-card-phone:hover {
    color: #99f6e4;
}

@media (max-width: 1000px) {
    .staff-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .staff-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .staff-card {
        border-radius: 18px;
    }

    .staff-card::after {
        inset: 40% 0 0;
    }

    .staff-card-name,
    .staff-card-name--ua,
    .staff-card-name--en {
        left: 7px;
        right: 7px;
        bottom: 68px;
        height: 48px;
        font-size: 14px;
        line-height: 1.05;
    }

    .staff-card-role {
        left: 7px;
        right: 7px;
        bottom: 36px;
        height: 30px;
        font-size: 11.5px;
        line-height: 12px;
        -webkit-line-clamp: 3;
    }

    .staff-card-meta {
        left: 6px;
        right: 6px;
        bottom: 3px;
        height: 31px;
        gap: 0;
    }

    .staff-card-meta-item {
        min-height: 10px;
        gap: 3px;
    }

    .staff-card-meta-label {
        font-size: 7.5px;
        line-height: 10px;
    }

    .staff-card-meta-value,
    .staff-card-phone {
        font-size: 10.5px;
        line-height: 10px;
    }

    .staff-card-placeholder {
        padding: 18px 18px 30%;
    }

    .staff-card-placeholder-icon {
        margin-bottom: 6px;
        font-size: 32px;
    }

    .staff-card-placeholder-text {
        font-size: 9px;
    }
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: 0.2s ease;
}

.news-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.news-thumb {
    width: 220px;
    height: 140px;
    border-radius: 18px;
    overflow: hidden;
    background: #e2e8f0;
    align-self: center;
}

.news-thumb img,
.news-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    background: #ffffff;
}

.news-thumb .cover-fit-cover {
    object-fit: cover;
}

.news-thumb .cover-fit-contain {
    object-fit: contain;
}

.news-thumb .cover-position-top {
    object-position: center top;
}

.news-thumb .cover-position-center {
    object-position: center center;
}

.news-thumb .cover-position-bottom {
    object-position: center bottom;
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-weight: 800;
    background: #ccfbf1;
}

.news-list-content h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
}

.news-list-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.empty-text {
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.article-page {
    max-width: 820px;
    padding: 36px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.article-page h1 {
    margin: 0 0 24px;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 42px;
    line-height: 1.15;
}

.article-content {
    color: #334155;
    font-size: 18px;
    line-height: 1.75;
}

.news-media-wrap {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-media-full {
    display: block;
    border-radius: 22px;
    background: #e2e8f0;
}

.news-media-wrap img.news-media-full {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
}

.news-media-wrap video.news-media-full {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
}

.article-content img,
.article-content video,
.article-content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 18px;
}

.article-content img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 650px !important;
    margin: 24px auto !important;
    object-fit: contain;
}

.article-content video {
    width: min(720px, 100%);
    background: #000000;
}

.article-content figure,
.article-content .se-component,
.article-content .se-video-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px auto !important;
    padding: 0 !important;
    text-align: center !important;
}

.article-content figure video,
.article-content .se-component video,
.article-content .se-video-container video {
    display: block !important;
    width: min(720px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 18px;
    background: #000000;
}

.article-content iframe {
    width: 100%;
    min-height: 420px;
}

.site-footer {
    padding: 30px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

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

.footer-copy {
    margin: 0;
    color: #64748b;
}

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

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: #0f766e;
}

.legal-page {
    max-width: 1000px;
}

.legal-page .article-content h2 {
    margin: 36px 0 14px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.3;
}

.legal-page .article-content p {
    margin: 0 0 16px;
}

.legal-page .article-content ul {
    margin: 0 0 20px;
    padding-left: 24px;
}

.legal-page .article-content li {
    margin-bottom: 8px;
}

.legal-page .article-content a {
    color: #0f766e;
    text-decoration: none;
}

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

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .legal-page {
        padding: 24px 20px;
    }

    .legal-page .article-content h2 {
        font-size: 21px;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .language-picker {
        margin-left: auto;
    }
}

.burger-btn {
    display: block;
}

.header-inner {
    width: 100%;
}

.hero {
    padding: 56px 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.hero-content,
    .hero-card {
    width: 100%;
    max-width: 100%;
}

.hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.12;
    overflow-wrap: break-word;
}

.hero-text {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary,
    .btn-secondary {
    width: 100%;
}

.hero-card {
    padding: 24px;
    border-radius: 22px;
}

.quick-links {
    padding: 56px 0;
    overflow: hidden;
}

.quick-links-grid,
    .catalog-grid {
    grid-template-columns: 1fr;
}

.quick-link-card {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
}

.catalog-card {
    min-height: 130px;
}

.section-head h2 {
    font-size: 28px;
}

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

.news-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}

.news-list-content h2 {
    font-size: 22px;
}

.article-page {
    padding: 24px;
}

.article-page h1 {
    font-size: 30px;
    margin-bottom: 40px;
}

.news-media-full {
    border-radius: 18px;
}

.article-content iframe {
    min-height: 240px;
}

.news-search {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.news-search input {
    flex: 1;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font: inherit;
}

.news-search button {
    min-height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 14px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.news-date,
.article-date {
    margin-bottom: 32px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 900px) {
    .news-search {
        flex-direction: column;
    }

    .news-search button {
        width: 100%;
    }
}

.reset-search {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
}

.contacts-card {
    max-width: 860px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.contact-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row span {
    color: #64748b;
    font-weight: 700;
}

.contact-row strong {
    color: #0f172a;
    font-weight: 800;
}

.contact-row a {
    color: #0f766e;
    text-decoration: none;
}

@media (max-width: 900px) {
    .contacts-card {
        padding: 22px;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.paid-services-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.paid-services-category {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.paid-services-category h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 26px;
}

.paid-services-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paid-service-row {
    display: grid;
    grid-template-columns: 100px 1fr 140px;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.paid-service-code {
    color: #0f766e;
    font-weight: 800;
}

.paid-service-name {
    color: #0f172a;
    font-weight: 700;
}

.paid-service-price {
    color: #0f172a;
    font-weight: 900;
    text-align: right;
}

@media (max-width: 900px) {
    .paid-service-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .paid-service-price {
        text-align: left;
    }
}

.section-head h1 {
    margin-bottom: 14px;
}

.section-head p {
    margin-top: 0;
}

.catalog-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.catalog-card h3 {
    margin: 0;
}

.procurement-list-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.procurement-list-content h2 {
    max-width: 900px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: normal;
}

.news-list-item:has(.procurement-list-content) {
    display: flex;
    justify-content: center;
}

.empty-state-card {
    max-width: 760px;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.empty-state-card h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 28px;
}

.empty-state-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vacancy-card {
    max-width: 860px;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.vacancy-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 28px;
    text-align: center;
}

.vacancy-meta {
    width: fit-content;
    margin: 0 auto 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
}

.vacancy-meta-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-align: left;
}

.vacancy-meta-row strong {
    color: #0f172a;
    text-align: left;
}

.vacancy-meta-row span {
    text-align: left;
}

.vacancy-meta strong {
    color: #0f172a;
}

.vacancy-card ul {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    padding-left: 24px;
    list-style-position: outside;
    color: #334155;
    line-height: 1.8;
    text-align: left;
}

.vacancy-card li {
    padding-left: 4px;
}

.vacancy-contacts {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.vacancy-contacts .contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    text-align: center;
}

.vacancy-contacts .contact-row span {
    color: #64748b;
    font-weight: 700;
}

.vacancy-contacts .contact-row strong {
    color: #0f172a;
    font-weight: 800;
}

.vacancy-contacts .contact-row a {
    color: #0f766e;
    text-decoration: none;
}

@media (max-width: 700px) {
    .vacancy-card {
        padding: 24px 20px;
    }

    .vacancy-contacts {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

.article-topbar {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.back-link::before {
    content: "←";
    font-size: 16px;
}

.back-link:hover {
    opacity: .8;
}

.back-link {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.map-card {
    max-width: 860px;
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.map-card h2 {
    margin: 0 0 18px;
    color: #0f172a;
}

.hospital-map {
    width: 100%;
    height: 420px;
    border-radius: 22px;
    overflow: hidden;
    background: #e2e8f0;
}

.leaflet-container {
    font: inherit;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.home-block {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.home-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.home-block-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
}

.home-block-head a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 800;
}

.home-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-item {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.home-item span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.home-item h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.3;
}

.home-patient-section {
    padding-top: 0;
}

.home-patient-card {
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.home-patient-card h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 30px;
}

.home-patient-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-patient-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-patient-links {
        grid-template-columns: 1fr;
    }
}

.map-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.map-action-btn,
.feedback-submit {
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.map-action-btn {
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .map-actions {
        flex-direction: column;
    }

    .map-action-btn {
        width: 100%;
    }
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-arrow {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    width: 270px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
    z-index: 1200;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #1f2933;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nav-dropdown-menu a:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.feedback-card {
    max-width: 860px;
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.feedback-card .section-head {
    margin-bottom: 24px;
}

.feedback-card .section-head h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 28px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-field label {
    color: #0f172a;
    font-weight: 700;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    font: inherit;
    color: #0f172a;
}

.feedback-field textarea {
    resize: vertical;
    min-height: 160px;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: 2px solid #99f6e4;
    border-color: #0f766e;
}

.feedback-submit {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.feedback-success,
.feedback-error {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.feedback-success {
    background: #dcfce7;
    color: #166534;
}

.feedback-error {
    background: #fee2e2;
    color: #991b1b;
}

.feedback-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .feedback-card {
        padding: 22px;
    }

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

    .feedback-submit {
        width: 100%;
    }
}

.nszu-contract {
    max-width: 1000px;
}

.nszu-contract .article-date {
    margin-bottom: 16px;
}

.nszu-contract .article-content ol {
    margin: 0;
    padding-left: 24px;
}

.nszu-contract .article-content li {
    margin-bottom: 12px;
    padding-left: 4px;
    line-height: 1.65;
}

.nszu-contract .article-content li:last-child {
    margin-bottom: 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    width: 100%;
    box-sizing: border-box;

    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination-current {
    min-width: 46px;
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border: 1px solid rgba(14, 165, 183, 0.30) !important;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.56),
            rgba(67, 205, 221, 0.16)
        ) !important;

    color: #087a78 !important;

    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 10px 28px rgba(24, 101, 126, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;

    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);

    transition:
        transform 0.20s ease,
        border-color 0.20s ease,
        background 0.20s ease,
        box-shadow 0.20s ease,
        color 0.20s ease;
}

.pagination a:hover,
.pagination a:focus-visible {
    transform: translateY(-2px);

    border-color: rgba(14, 165, 183, 0.52) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.72),
            rgba(45, 212, 215, 0.23)
        ) !important;

    color: #056b69 !important;

    box-shadow:
        0 16px 36px rgba(24, 101, 126, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}


/* текущая страница */

.pagination-current {
    border-color: rgba(14, 165, 183, 0.52) !important;

    background:
        linear-gradient(
            145deg,
            rgba(14, 165, 183, 0.20),
            rgba(45, 212, 215, 0.26)
        ) !important;

    color: #056b69 !important;
}


/* Назад / Наступна */

.pagination-nav {
    width: auto !important;
    min-width: 130px;

    flex: 0 0 auto !important;

    white-space: nowrap;
}

.pagination-nav-placeholder {
    display: none !important;
}

.pagination-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
}


/* DARK */

html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination-current {
    border-color: rgba(45, 212, 215, 0.26) !important;

    background:
        linear-gradient(
            145deg,
            rgba(17, 69, 86, 0.60),
            rgba(8, 38, 59, 0.50)
        ) !important;

    color: #e1fffb !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(144, 241, 246, 0.10) !important;
}

html[data-theme="dark"] .pagination a:hover,
html[data-theme="dark"] .pagination a:focus-visible {
    transform: translateY(-2px);

    border-color: rgba(45, 212, 215, 0.50) !important;

    background:
        linear-gradient(
            145deg,
            rgba(24, 97, 111, 0.70),
            rgba(9, 52, 73, 0.60)
        ) !important;

    color: #ffffff !important;
}

html[data-theme="dark"] .pagination-current {
    border-color: rgba(45, 212, 215, 0.45) !important;

    background:
        linear-gradient(
            145deg,
            rgba(24, 97, 111, 0.74),
            rgba(9, 52, 73, 0.58)
        ) !important;

    color: #ffffff !important;
}


/* MOBILE */

@media (max-width: 600px) {

    .pagination {
        gap: 6px;
    }

    .pagination a,
    .pagination-current {
        min-width: 40px;
        min-height: 40px;

        padding: 0 11px;

        font-size: 13px;
    }

    .pagination-nav {
        min-width: auto !important;

        padding-left: 13px !important;
        padding-right: 13px !important;
    }
}

.error-page {
    max-width: 760px;
    margin: 40px auto;
    padding: 64px 40px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
}

.error-code {
    margin-bottom: 12px;
    color: #0f766e;
    font-size: 84px;
    line-height: 1;
    font-weight: 900;
}

.error-page h1 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 36px;
}

.error-page p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
}

.error-page .btn-primary {
    display: inline-flex;
    width: auto;
}

.home-slider-section {
    padding: 36px 0 32px;
}

.home-news-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
    background: #0f172a;
    overflow: visible;
    -webkit-clip-path: inset(0 round 28px);
    clip-path: inset(0 round 28px);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.home-slider-track,
.home-slide,
.home-slide-link {
    position: absolute;
    inset: 0;
}

.home-slide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
    transition: opacity 0.55s ease,
    visibility 0.55s ease;
}

.home-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-slide-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.home-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #e2e8f0;
}

.home-slide-media.cover-fit-cover {
    object-fit: cover !important;
}

.home-slide-media.cover-fit-contain {
    object-fit: contain !important;
}

.home-slide-media.cover-position-top {
    object-position: center top !important;
}

.home-slide-media.cover-position-center {
    object-position: center center !important;
}

.home-slide-media.cover-position-bottom {
    object-position: center bottom !important;
}

.home-slide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
    135deg,
    #0f766e,
    #0f172a
    );
    color: rgba(255, 255, 255, 0.25);
    font-size: 72px;
    font-weight: 900;
}

.home-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.05) 10%,
    rgba(15, 23, 42, 0.20) 45%,
    rgba(15, 23, 42, 0.88) 100%
    );
}

.home-slide-content {
    position: absolute;
    left: 48px;
    right: 180px;
    bottom: 62px;
    z-index: 3;
    color: #ffffff;
}

.home-slide-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-slide-meta span + span::before {
    content: "•";
    margin-right: 14px;
}

.home-slide-content h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

.home-slider-controls {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.home-slider-arrow {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s ease;
}

.home-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
}

.home-slider-dots {
    position: absolute;
    left: 48px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 9px;
}

.home-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.2s ease;
}

.home-slider-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #ffffff;
}

.home-news-empty {
    padding: 64px 32px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-align: center;
}

.home-section-head {
    margin-bottom: 24px;
}

.home-section-head h2,
.home-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.2;
}

.home-quick-section {
    padding: 34px 0 44px;
}

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

.home-quick-card {
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.home-quick-card:hover {
    transform: translateY(-4px);
    border-color: #99f6e4;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.home-quick-card span {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.home-quick-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
}

.home-content-section {
    padding: 12px 0 72px;
}

.home-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.home-panel {
    min-width: 0;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.home-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.home-panel-head a {
    flex-shrink: 0;
    color: #0f766e;
    text-decoration: none;
    font-weight: 800;
}

.home-announcements {
    display: flex;
    flex-direction: column;
}

.home-announcement-item {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
}

.home-announcement-item:first-child {
    padding-top: 4px;
}

.home-announcement-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-announcement-item time {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.home-announcement-item h3 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.home-announcement-item:hover h3 {
    color: #0f766e;
}

.home-useful-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-useful-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.home-useful-media {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ccfbf1;
}

.home-useful-media img,
.home-useful-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-useful-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-size: 24px;
    font-weight: 900;
}

.home-useful-content {
    padding: 22px;
}

.home-useful-date {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.home-useful-content h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
}

.home-useful-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.home-empty {
    margin: 0;
    padding: 26px;
    border-radius: 18px;
    background: #f8fafc;
    color: #64748b;
}

@media (max-width: 900px) {
    .home-slider-section {
        padding-top: 20px;
    }

    .home-news-slider {
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 22px;
        -webkit-clip-path: inset(0 round 22px);
        clip-path: inset(0 round 22px);
    }

    .home-slide-content {
        left: 28px;
        right: 28px;
        bottom: 64px;
    }

    .home-slide-content h1 {
        font-size: 32px;
    }

    .home-slider-controls {
        top: 20px;
        right: 20px;
    }

    .home-slider-arrow {
        width: 46px;
        height: 46px;
    }

    .home-slider-dots {
        left: 28px;
        bottom: 28px;
    }

    .home-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .home-news-slider {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .home-slide-content {
        left: 22px;
        right: 22px;
        bottom: 62px;
    }

    .home-slide-meta {
        gap: 8px;
        font-size: 11px;
    }

    .home-slide-meta span + span::before {
        margin-right: 8px;
    }

    .home-slide-content h1 {
        font-size: 27px;
    }

    .home-slider-controls {
        top: 16px;
        right: 16px;
    }

    .home-slider-arrow {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 20px;
    }

    .home-slider-dots {
        left: 22px;
        bottom: 24px;
    }

    .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-quick-card {
        min-height: 110px;
    }

    .home-panel {
        padding: 22px;
    }

    .home-panel-head {
        align-items: flex-start;
    }

    .home-panel-head h2,
    .home-section-head h2 {
        font-size: 25px;
    }

    .home-useful-media {
        height: 210px;
    }
}

body {
    background-color: var(--page-bg);
    background-image: var(--page-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    transition: color 0.2s ease;
}

.site-header {
    background: var(--surface);
    border-bottom-color: var(--border-soft);
}

.logo {
    color: var(--accent);
}

.desktop-nav a {
    color: var(--text);
}

.desktop-nav a:hover {
    color: var(--accent);
}

.burger-btn {
    color: var(--text);
}

.mobile-menu.is-open {
    background: var(--surface);
    border-bottom-color: var(--border);
}

.mobile-menu a {
    color: var(--text);
    border-top-color: var(--border);
}

.site-footer {
    background: var(--surface);
    border-top-color: var(--border);
}

.footer-copy,
.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent);
}

.home-quick-card,
.home-panel,
.news-list-item,
.article-page,
.catalog-card,
.vacancy-card,
.empty-text {
    background: var(--surface);
    border-color: var(--border);
}

.home-useful-card {
    background: var(--surface-soft);
    border-color: var(--border);
}

.home-section-head h2,
.home-panel-head h2,
.home-quick-card h3,
.home-announcement-item h3,
.home-useful-content h3,
.news-list-content h2,
.article-page h1,
.catalog-card h3,
.vacancy-card h2 {
    color: var(--text);
}

.home-useful-content p,
.news-list-content p,
.article-content,
.vacancy-meta,
.home-empty {
    color: var(--text-secondary);
}

.news-date,
.home-announcement-item time,
.home-useful-date {
    color: var(--text-muted);
}

.home-panel-head a,
.home-announcement-item:hover h3,
.logo,
.footer-links a:hover {
    color: var(--accent);
}

.home-announcement-item {
    border-bottom-color: var(--border);
}

input,
textarea,
select {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.theme-toggle-sun,
.theme-toggle-moon {
    font-size: 17px;
    line-height: 1;
    transition: color 0.2s ease,
    opacity 0.2s ease;
}

.theme-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dbe3ec;
    transition: background-color 0.2s ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.20);
    transition: transform 0.22s ease;
}

html[data-theme="dark"] .theme-toggle-track {
    background: #168eaf;
}

html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(20px);
}

html[data-theme="light"] .theme-toggle-sun {
    color: #f59e0b;
}

html[data-theme="dark"] .theme-toggle-moon {
    color: #7dd3fc;
}

html[data-theme="dark"] .staff-card,
html[data-theme="dark"] .staff-card:hover {
    background: var(--page-bg);
    box-shadow: none;
}

html[data-theme="dark"] .home-quick-card:hover,
html[data-theme="dark"] .home-useful-card:hover,
html[data-theme="dark"] .news-list-item:hover,
html[data-theme="dark"] .catalog-card:hover {
    border-color: #36516a;
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .home-empty,
html[data-theme="dark"] .news-thumb-placeholder,
html[data-theme="dark"] .home-useful-placeholder {
    background: var(--surface-soft);
    color: var(--accent);
}

@media (max-width: 900px) {
    .theme-toggle {
        margin-left: auto;
    }
}

html[data-theme="dark"] .contacts-card,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .feedback-card,
html[data-theme="dark"] .paid-services-category {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme="dark"] .contact-row {
    border-bottom-color: var(--border);
}

html[data-theme="dark"] .contact-row span {
    color: var(--text-muted);
}

html[data-theme="dark"] .contact-row strong {
    color: var(--text);
}

html[data-theme="dark"] .contact-row a {
    color: var(--accent);
}

html[data-theme="dark"] .map-card h2,
html[data-theme="dark"] .feedback-card .section-head h2 {
    color: var(--text);
}

html[data-theme="dark"] .feedback-field label {
    color: var(--text);
}

html[data-theme="dark"] .feedback-field input,
html[data-theme="dark"] .feedback-field textarea {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .nav-dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nav-dropdown-menu a {
    color: var(--text);
}

html[data-theme="dark"] .nav-dropdown-menu a:hover {
    background: var(--surface-hover);
    color: var(--accent);
}

html[data-theme="dark"] .paid-services-category h2 {
    color: var(--text);
}

html[data-theme="dark"] .paid-service-row {
    background: var(--surface-soft);
    border-color: var(--border);
}

html[data-theme="dark"] .paid-service-code {
    color: var(--accent);
}

html[data-theme="dark"] .paid-service-name,
html[data-theme="dark"] .paid-service-price {
    color: var(--text);
}

html[data-theme="dark"] .vacancy-card {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme="dark"] .vacancy-card h2 {
    color: var(--text);
}

html[data-theme="dark"] .vacancy-meta,
html[data-theme="dark"] .vacancy-meta-row span {
    color: var(--text-secondary);
}

html[data-theme="dark"] .vacancy-meta strong,
html[data-theme="dark"] .vacancy-meta-row strong {
    color: var(--text);
}

html[data-theme="dark"] .vacancy-card ul,
html[data-theme="dark"] .vacancy-card li {
    color: var(--text-secondary);
}

html[data-theme="dark"] .vacancy-contacts .contact-row span {
    color: var(--text-muted);
}

html[data-theme="dark"] .vacancy-contacts .contact-row strong {
    color: var(--text);
}

html[data-theme="dark"] .vacancy-contacts .contact-row a {
    color: var(--accent);
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
}

.language-picker summary {
    list-style: none;
}

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

.language-picker-current {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease,
    border-color 0.2s ease;
}

.language-picker-current:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

.language-picker-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1500;
    min-width: 105px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.language-picker-option {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: background-color 0.2s ease,
    color 0.2s ease;
}

.language-picker-option:hover {
    background: var(--surface-hover);
    color: var(--accent);
}

html[data-theme="dark"] .language-picker-menu {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .header-inner {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

    .logo {
        margin-right: auto;
    }

    .theme-toggle {
        margin-left: 0;
    }

    .language-picker {
        margin-left: 0;
    }

    .burger-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: 2px;
        padding: 0;
        width: 38px;
        height: 38px;
    }
}

.header-inner {
    position: relative;
    width: min(1200px, 92%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: 76px;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-start !important;
}

.logo {
    flex: 0 0 auto;
    margin: 0 !important;
}

.desktop-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.theme-toggle {
    margin-left: auto !important;
    flex: 0 0 auto;
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
    margin-left: 12px !important;
}

.language-picker-current {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.language-picker-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.burger-btn {
    display: none !important;
}

@media (max-width: 900px) {
    .header-inner {
        width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: flex-start !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .logo {
        margin-right: auto !important;
    }

    .theme-toggle {
        margin-left: 0 !important;
        flex: 0 0 auto;
    }

    .language-picker {
        margin-left: 0 !important;
        flex: 0 0 auto;
    }

    .burger-btn {
        display: block !important;
        position: relative;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        margin: 0 !important;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text);
        cursor: pointer;
    }

    .burger-btn::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 16px;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        box-shadow: 0 -7px 0 currentColor,
        0 7px 0 currentColor;
    }
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-bg-hover: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.72);
    --glass-border-soft: rgba(91, 160, 190, 0.20);
    --glass-shadow: 0 22px 60px rgba(31, 78, 108, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
    --glass-shadow-hover: 0 28px 70px rgba(31, 97, 130, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
    --glass-blur: 22px;
    --design-accent: #0ea5b7;
    --design-accent-2: #38bdf8;
    --design-accent-soft: rgba(14, 165, 183, 0.13);
}

html[data-theme="dark"] {
    --glass-bg: rgba(7, 25, 43, 0.58);
    --glass-bg-strong: rgba(8, 29, 50, 0.72);
    --glass-bg-hover: rgba(10, 38, 62, 0.82);
    --glass-border: rgba(93, 210, 239, 0.23);
    --glass-border-soft: rgba(78, 183, 218, 0.15);
    --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(123, 227, 255, 0.10);
    --glass-shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(0, 189, 214, 0.10),
    inset 0 1px 0 rgba(123, 227, 255, 0.16);
    --design-accent: #2dd4d7;
    --design-accent-2: #38bdf8;
    --design-accent-soft: rgba(45, 212, 215, 0.12);
}

body {
    font-family: Inter,
    "Segoe UI",
    Arial,
    sans-serif;
    background-color: #eaf5f8;
    background-image: radial-gradient(
    circle at 4% 8%,
    rgba(52, 211, 210, 0.34) 0%,
    rgba(52, 211, 210, 0.13) 24%,
    transparent 46%
    ),
    radial-gradient(
    circle at 96% 14%,
    rgba(96, 165, 250, 0.32) 0%,
    rgba(96, 165, 250, 0.12) 25%,
    transparent 48%
    ),
    radial-gradient(
    circle at 58% 86%,
    rgba(186, 230, 253, 0.42) 0%,
    transparent 42%
    ),
    linear-gradient(
    135deg,
    #f7fbfc 0%,
    #e9f7f8 38%,
    #edf6ff 70%,
    #e8f1fb 100%
    );
    background-attachment: fixed;
    background-size: cover;
}

html[data-theme="dark"] body {
    background-color: #061522;
    background-image: radial-gradient(
    circle at 4% 10%,
    rgba(0, 187, 181, 0.26) 0%,
    rgba(0, 187, 181, 0.10) 25%,
    transparent 47%
    ),
    radial-gradient(
    circle at 95% 18%,
    rgba(37, 99, 235, 0.34) 0%,
    rgba(37, 99, 235, 0.12) 29%,
    transparent 52%
    ),
    radial-gradient(
    circle at 50% 100%,
    rgba(8, 145, 178, 0.13) 0%,
    transparent 40%
    ),
    linear-gradient(
    135deg,
    #06131e 0%,
    #071b29 42%,
    #07172a 72%,
    #071326 100%
    );
}

.site-header {
    background: transparent !important;
    border-bottom: 1px solid var(--glass-border-soft) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

.logo {
    color: var(--design-accent) !important;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.desktop-nav a {
    position: relative;
    transition: color 0.2s ease,
    transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--design-accent) !important;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
    90deg,
    var(--design-accent),
    var(--design-accent-2)
    );
    transform: translateX(-50%);
    transition: width 0.22s ease;
}

.desktop-nav a:hover::after {
    width: 70%;
}

.language-picker-current {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.language-picker-current:hover {
    background: var(--glass-bg-hover) !important;
    border-color: var(--design-accent) !important;
    transform: translateY(-1px);
}

.language-picker-menu {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border) !important;
    -webkit-backdrop-filter: blur(20px)
    saturate(150%);
    backdrop-filter: blur(20px)
    saturate(150%);
    box-shadow: var(--glass-shadow) !important;
}

.home-section-head h2,
.home-panel-head h2 {
    letter-spacing: -0.035em;
    font-weight: 850;
}

.home-section-head h2 {
    font-size: clamp(26px, 2.4vw, 34px);
}

.home-panel-head h2 {
    font-size: clamp(23px, 2vw, 30px);
}

.home-news-slider {
    background: transparent !important;
    box-shadow: 0 26px 70px rgba(11, 58, 83, 0.16),
    0 0 42px rgba(23, 181, 198, 0.08);
    transition: transform 0.30s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.30s ease;
}

.home-news-slider:hover {
    -webkit-transform: translate3d(0, -6px, 0)
    scale(1.004);
    transform: translate3d(0, -6px, 0)
    scale(1.004);
    box-shadow: 0 34px 88px rgba(11, 58, 83, 0.22),
    0 0 56px rgba(23, 181, 198, 0.14);
}

html[data-theme="dark"] .home-news-slider {
    background: transparent !important;
    box-shadow: 0 30px 82px rgba(0, 0, 0, 0.36),
    0 0 46px rgba(0, 210, 220, 0.09);
}

html[data-theme="dark"] .home-news-slider:hover {
    box-shadow: 0 38px 96px rgba(0, 0, 0, 0.46),
    0 0 64px rgba(45, 212, 215, 0.16);
}

.home-slide-media {
    background: transparent !important;
    opacity: 0.88;
}

html[data-theme="dark"] .home-slide-media {
    opacity: 0.84;
}

.home-slide-overlay {
    background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.02) 8%,
    rgba(15, 23, 42, 0.13) 45%,
    rgba(15, 23, 42, 0.76) 100%
    ) !important;
}

html[data-theme="dark"] .home-slide-overlay {
    background: linear-gradient(
    to bottom,
    rgba(5, 16, 28, 0.04) 8%,
    rgba(5, 16, 28, 0.17) 45%,
    rgba(5, 16, 28, 0.80) 100%
    ) !important;
}

.home-slider-arrow {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    -webkit-backdrop-filter: blur(14px)
    saturate(145%);
    backdrop-filter: blur(14px)
    saturate(145%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.home-slider-arrow:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.70) !important;
}

.home-quick-grid {
    gap: 18px;
}

.home-quick-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    padding: 24px;
    border: 1px solid var(--glass-border) !important;
    border-radius: 22px;
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.60),
    rgba(255, 255, 255, 0.32)
    ) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur))
    saturate(155%);
    backdrop-filter: blur(var(--glass-blur))
    saturate(155%);
    box-shadow: var(--glass-shadow);
    transition: transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.home-quick-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    top: -70px;
    right: -45px;
    border-radius: 50%;
    background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.23),
    transparent 68%
    );
    pointer-events: none;
}

.home-quick-card:hover {
    transform: translateY(-6px)
    scale(1.012);
    border-color: rgba(14, 165, 183, 0.55) !important;
    box-shadow: var(--glass-shadow-hover);
}

html[data-theme="dark"] .home-quick-card {
    background: linear-gradient(
    145deg,
    rgba(11, 38, 61, 0.67),
    rgba(8, 28, 47, 0.43)
    ) !important;
}

html[data-theme="dark"] .home-quick-card:hover {
    border-color: rgba(45, 212, 215, 0.48) !important;
}

.home-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--glass-border) !important;
    border-radius: 28px;
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.67),
    rgba(255, 255, 255, 0.40)
    ) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur))
    saturate(150%);
    backdrop-filter: blur(var(--glass-blur))
    saturate(150%);
    box-shadow: var(--glass-shadow);
}

.home-panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -150px;
    right: -110px;
    border-radius: 50%;
    background: radial-gradient(
    circle,
    rgba(45, 212, 215, 0.13),
    transparent 68%
    );
    pointer-events: none;
}

html[data-theme="dark"] .home-panel {
    background: linear-gradient(
    145deg,
    rgba(9, 33, 54, 0.72),
    rgba(7, 25, 43, 0.50)
    ) !important;
}

.home-announcement-item {
    position: relative;
    border-bottom-color: var(--glass-border-soft) !important;
    transition: padding-left 0.22s ease,
    background-color 0.22s ease;
}

.home-announcement-item:hover {
    padding-left: 8px;
}

.home-announcement-item:hover h3 {
    color: var(--design-accent) !important;
}

.home-useful-card {
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.36) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-useful-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(15, 74, 100, 0.16);
}

html[data-theme="dark"] .home-useful-card {
    background: rgba(5, 28, 48, 0.44) !important;
}

.home-panel-head a {
    color: var(--design-accent) !important;
    transition: color 0.2s ease,
    transform 0.2s ease;
}

.home-panel-head a:hover {
    color: var(--design-accent-2) !important;
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .home-quick-grid {
        gap: 18px;
    }

    .home-quick-card {
        min-height: 110px;
        border-radius: 20px;
    }

    .home-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .site-header {
        -webkit-backdrop-filter: blur(18px)
        saturate(150%);
        backdrop-filter: blur(18px)
        saturate(150%);
    }
}

@media (max-width: 600px) {
    .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .home-quick-card {
        min-height: 108px !important;
        padding: 14px 10px !important;
        gap: 8px !important;
    }

    .home-quick-card h3 {
        font-size: 16px !important;
        line-height: 1.18;
    }
}

.home-panel {
    transition: transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    background-color 0.26s ease;
}

.home-panel:hover {
    transform: translateY(-7px);
    border-color: rgba(14, 165, 183, 0.48) !important;
    box-shadow: 0 28px 70px rgba(20, 88, 116, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

html[data-theme="dark"] .home-panel:hover {
    border-color: rgba(45, 212, 215, 0.40) !important;
    box-shadow: 0 30px 76px rgba(0, 0, 0, 0.34),
    0 0 38px rgba(45, 212, 215, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

.home-panel:hover .home-panel-head h2 {
    color: var(--design-accent) !important;
}

.home-panel:hover .home-panel-head a {
    color: var(--design-accent-2) !important;
    transform: translateX(3px);
}

.home-useful-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.home-announcement-item:hover {
    padding-left: 0 !important;
}

.home-useful-media img,
.home-useful-media video {
    transition: transform 0.32s ease;
}

.home-panel:hover .home-useful-media img,
.home-panel:hover .home-useful-media video {
    transform: scale(1.025);
}

.home-quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.home-quick-card::after {
    content: "";
    order: -1;
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: linear-gradient(
    135deg,
    var(--design-accent),
    var(--design-accent-2)
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform 0.24s ease,
    filter 0.24s ease;
}

.home-quick-card:nth-child(1)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.73a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.73a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.home-quick-card:nth-child(2)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3Cpath d='M9 10h.01'/%3E%3Cpath d='M15 10h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3Cpath d='M9 10h.01'/%3E%3Cpath d='M15 10h.01'/%3E%3C/svg%3E");
}

.home-quick-card:nth-child(3)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.home-quick-card:nth-child(4)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M7 15h2'/%3E%3Cpath d='M11 15h4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M7 15h2'/%3E%3Cpath d='M11 15h4'/%3E%3C/svg%3E");
}

.home-quick-card:hover::after {
    transform: translateY(-3px)
    scale(1.08);
    filter: drop-shadow(
    0 8px 12px
    rgba(14, 165, 183, 0.24)
    );
}

@media (max-width: 600px) {
    .home-quick-card {
        gap: 10px;
    }

    .home-quick-card::after {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

body {
    position: relative;
    isolation: isolate;
}

body::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 16px;
    bottom: 16px;
    left: 50%;
    width: min(1264px, calc(100% - 32px));
    transform: translateX(-50%);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 32px;
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.035)
    );
    box-shadow: 0 24px 80px rgba(26, 92, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
    backdrop-filter: blur(7px) saturate(120%);
}

html[data-theme="dark"] body::before {
    border-color: rgba(87, 214, 236, 0.20);
    background: linear-gradient(
    145deg,
    rgba(16, 63, 91, 0.10),
    rgba(4, 25, 42, 0.04)
    );
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26),
    0 0 42px rgba(45, 212, 215, 0.055),
    inset 0 1px 0 rgba(123, 227, 255, 0.09);
}

main,
.site-footer,
.mobile-menu {
    position: relative;
    z-index: 1;
}

.site-header,
html[data-theme="light"] .site-header,
html[data-theme="dark"] .site-header {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.site-footer,
html[data-theme="light"] .site-footer,
html[data-theme="dark"] .site-footer {
    background: transparent !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.home-news-slider {
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16),
    rgba(215, 244, 250, 0.055)
    ) !important;
}

html[data-theme="dark"] .home-news-slider {
    background: linear-gradient(
    145deg,
    rgba(8, 53, 78, 0.22),
    rgba(5, 25, 43, 0.08)
    ) !important;
}

.home-slide-media {
    opacity: 0.76 !important;
    transition: opacity 0.30s ease,
    filter 0.30s ease;
}

html[data-theme="dark"] .home-slide-media {
    opacity: 0.72 !important;
}

.home-slide-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
    135deg,
    rgba(210, 252, 250, 0.08),
    rgba(190, 224, 255, 0.04)
    );
}

html[data-theme="dark"] .home-slide-link::before {
    background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.055),
    rgba(59, 130, 246, 0.035)
    );
}

.home-slide-overlay {
    background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.01) 8%,
    rgba(15, 23, 42, 0.10) 46%,
    rgba(15, 23, 42, 0.70) 100%
    ) !important;
}

html[data-theme="dark"] .home-slide-overlay {
    background: linear-gradient(
    to bottom,
    rgba(5, 16, 28, 0.025) 8%,
    rgba(5, 16, 28, 0.13) 46%,
    rgba(5, 16, 28, 0.73) 100%
    ) !important;
}

.home-news-slider:hover .home-slide-media {
    opacity: 0.82 !important;
    filter: saturate(1.04) contrast(1.02);
}

html[data-theme="dark"] .home-news-slider:hover .home-slide-media {
    opacity: 0.78 !important;
}

@media (max-width: 600px) {
    body::before {
        top: 8px;
        bottom: 8px;
        width: calc(100% - 12px);
        border-radius: 24px;
    }
}

:root {
    --public-content-max: 1120px;
}

.site-header {
    padding-top: 12px !important;
}

@media (max-width: 600px) {
    .site-header {
        padding-top: 10px !important;
    }
}

.page-section > .container {
    width: min(var(--public-content-max), calc(100% - 80px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-section .section-head,
.page-section .article-topbar,
.news-search,
.staff-search,
.news-list,
.catalog-grid,
.paid-services-list,
.vacancies-list {
    width: 100%;
    max-width: var(--public-content-max);
    margin-left: auto;
    margin-right: auto;
}

.news-search,
.staff-search {
    margin-bottom: 28px;
}

.contacts-card,
.article-page,
.empty-state-card,
.vacancy-card,
.map-card,
.feedback-card,
.nszu-contract {
    width: min(100%, 860px);
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-page,
.nszu-contract {
    width: min(100%, 920px);
    max-width: 920px;
}

.map-card,
.feedback-card {
    margin-top: 28px !important;
}

.vacancies-list {
    align-items: center;
}

.vacancy-card {
    max-width: 860px;
}

@media (max-width: 900px) {
    .page-section > .container {
        width: calc(100% - 40px) !important;
    }
}

@media (max-width: 600px) {
    .page-section > .container {
        width: calc(100% - 24px) !important;
    }
}

.contacts-card,
.map-card,
.feedback-card,
.article-page,
.empty-state-card,
.vacancy-card,
.news-list-item,
.catalog-card,
.paid-services-category,
.home-block,
.home-patient-card,
.legal-page,
.nszu-contract {
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.67),
    rgba(255, 255, 255, 0.38)
    ) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 22px 60px rgba(31, 78, 108, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur))
    saturate(150%);
    backdrop-filter: blur(var(--glass-blur))
    saturate(150%);
}

html[data-theme="dark"] .contacts-card,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .feedback-card,
html[data-theme="dark"] .article-page,
html[data-theme="dark"] .empty-state-card,
html[data-theme="dark"] .vacancy-card,
html[data-theme="dark"] .news-list-item,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .paid-services-category,
html[data-theme="dark"] .home-block,
html[data-theme="dark"] .home-patient-card,
html[data-theme="dark"] .legal-page,
html[data-theme="dark"] .nszu-contract {
    background: linear-gradient(
    145deg,
    rgba(9, 34, 55, 0.72),
    rgba(7, 24, 42, 0.46)
    ) !important;
    border-color: rgba(86, 207, 231, 0.20) !important;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(123, 227, 255, 0.09) !important;
}

.paid-service-row,
.home-item,
.empty-text,
.news-thumb-placeholder {
    background: rgba(255, 255, 255, 0.34) !important;
    border-color: rgba(120, 166, 189, 0.18) !important;
}

html[data-theme="dark"] .paid-service-row,
html[data-theme="dark"] .home-item,
html[data-theme="dark"] .empty-text,
html[data-theme="dark"] .news-thumb-placeholder {
    background: rgba(8, 31, 51, 0.42) !important;
    border-color: rgba(83, 191, 220, 0.15) !important;
}

.news-list-item,
.catalog-card,
.vacancy-card,
.paid-services-category {
    transition: transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.news-list-item:hover,
.catalog-card:hover,
.vacancy-card:hover,
.paid-services-category:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 183, 0.42) !important;
    box-shadow: 0 28px 68px rgba(21, 83, 111, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html[data-theme="dark"] .news-list-item:hover,
html[data-theme="dark"] .catalog-card:hover,
html[data-theme="dark"] .vacancy-card:hover,
html[data-theme="dark"] .paid-services-category:hover {
    border-color: rgba(45, 212, 215, 0.34) !important;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(45, 212, 215, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.news-search input,
.staff-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58) !important;
    color: var(--text) !important;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

html[data-theme="dark"] .news-search input,
html[data-theme="dark"] .staff-search input {
    background: rgba(10, 26, 40, 0.82) !important;
    color: var(--text) !important;
    border-color: #cbd5e1 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-search input::placeholder,
.staff-search input::placeholder {
    color: var(--text-muted) !important;
}

.news-search input:focus,
.staff-search input:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(43, 196, 179, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.nav-dropdown-menu,
.language-picker-menu {
    background: var(--glass-bg-strong) !important;
    border-color: var(--glass-border) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.feedback-field input,
.feedback-field textarea,
select {
    background: rgba(255, 255, 255, 0.46) !important;
    border-color: rgba(128, 165, 184, 0.28) !important;
}

html[data-theme="dark"] .feedback-field input,
html[data-theme="dark"] .feedback-field textarea,
html[data-theme="dark"] select {
    background: rgba(8, 28, 45, 0.68) !important;
    border-color: rgba(83, 191, 220, 0.18) !important;
}

.pagination a,
.pagination-current {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.pagination-current {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}

.contact-row {
    border-bottom-color: rgba(114, 151, 171, 0.20) !important;
}

html[data-theme="dark"] .contact-row {
    border-bottom-color: rgba(83, 191, 220, 0.14) !important;
}

.hospital-map {
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 14px 36px rgba(20, 75, 101, 0.10);
}

.article-content,
.article-page,
.nszu-contract {
    overflow-wrap: break-word;
}

html[data-theme="dark"] .news-search input,
html[data-theme="dark"] .staff-search input {
    background: linear-gradient(
    145deg,
    rgba(8, 27, 44, 0.82),
    rgba(8, 35, 55, 0.68)
    ) !important;
    color: var(--text) !important;
    border-color: rgba(76, 132, 158, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 24px rgba(0, 0, 0, 0.10) !important;
}

html[data-theme="dark"] .news-search input:hover,
html[data-theme="dark"] .staff-search input:hover {
    border-color: rgba(67, 164, 190, 0.42) !important;
}

html[data-theme="dark"] .news-search input:focus,
html[data-theme="dark"] .staff-search input:focus {
    outline: none !important;
    border-color: rgba(45, 212, 215, 0.62) !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 215, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.news-search,
.staff-search {
    display: flex !important;
    align-items: stretch;
    gap: 12px !important;
}

.news-search input,
.staff-search input {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 600px) {
    .news-search,
    .staff-search {
        gap: 10px !important;
    }
}

.news-thumb-placeholder {
    padding: 18px !important;
    color: var(--accent) !important;
    font-size: clamp(18px, 1.45vw, 22px) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    text-align: center;
}

html[data-theme="dark"] .news-thumb-placeholder {
    color: #55e4dd !important;
}

.home-useful-placeholder {
    font-size: clamp(20px, 1.7vw, 26px) !important;
    line-height: 1.15;
    text-align: center;
    padding: 18px;
}

.home-slide-placeholder {
    font-size: clamp(40px, 5vw, 72px) !important;
}

html[data-theme="light"] .feedback-card {
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.48),
    rgba(236, 250, 253, 0.24)
    ) !important;
    border-color: rgba(255, 255, 255, 0.70) !important;
    box-shadow: 0 24px 62px rgba(31, 96, 123, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

html[data-theme="light"] .feedback-field input,
html[data-theme="light"] .feedback-field textarea {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(95, 151, 177, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] .legal-page .article-content,
html[data-theme="dark"] .legal-page .article-content p,
html[data-theme="dark"] .legal-page .article-content li {
    color: var(--text-secondary) !important;
}

html[data-theme="dark"] .legal-page .article-content h1,
html[data-theme="dark"] .legal-page .article-content h2,
html[data-theme="dark"] .legal-page .article-content h3,
html[data-theme="dark"] .legal-page .article-content h4,
html[data-theme="dark"] .legal-page .article-content strong,
html[data-theme="dark"] .legal-page .article-content b {
    color: var(--text) !important;
}

html[data-theme="dark"] .legal-page .article-content a {
    color: #55e4dd !important;
}

.news-search button,
.staff-search button,
.map-action-btn,
.feedback-submit,
.btn-primary,
.btn-secondary,
.reset-search {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 165, 183, 0.30) !important;
    border-radius: 14px;
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.56),
    rgba(67, 205, 221, 0.16)
    ) !important;
    color: #087a78 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(24, 101, 126, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.20s ease,
    border-color 0.20s ease,
    background-color 0.20s ease,
    box-shadow 0.20s ease,
    color 0.20s ease;
}

.news-search button:hover,
.staff-search button:hover,
.map-action-btn:hover,
.feedback-submit:hover,
.btn-primary:hover,
.btn-secondary:hover,
.reset-search:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 183, 0.52) !important;
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.72),
    rgba(45, 212, 215, 0.23)
    ) !important;
    color: #056b69 !important;
    box-shadow: 0 16px 36px rgba(24, 101, 126, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="dark"] .news-search button,
html[data-theme="dark"] .staff-search button,
html[data-theme="dark"] .map-action-btn,
html[data-theme="dark"] .feedback-submit,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .reset-search {
    border-color: rgba(45, 212, 215, 0.26) !important;
    background: linear-gradient(
    145deg,
    rgba(17, 69, 86, 0.60),
    rgba(8, 38, 59, 0.50)
    ) !important;
    color: #e1fffb !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(144, 241, 246, 0.10) !important;
}

html[data-theme="dark"] .news-search button:hover,
html[data-theme="dark"] .staff-search button:hover,
html[data-theme="dark"] .map-action-btn:hover,
html[data-theme="dark"] .feedback-submit:hover,
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .reset-search:hover {
    border-color: rgba(45, 212, 215, 0.50) !important;
    background: linear-gradient(
    145deg,
    rgba(24, 97, 111, 0.70),
    rgba(9, 52, 73, 0.60)
    ) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(45, 212, 215, 0.08),
    inset 0 1px 0 rgba(144, 241, 246, 0.14) !important;
}

.map-actions .map-action-btn,
.feedback-submit {
    width: auto;
}

@media (max-width: 900px) {
    .map-actions .map-action-btn,
    .feedback-submit {
        width: 100%;
    }
}

.back-link,
.back-link:visited {
    color: var(--design-accent) !important;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--design-accent-2) !important;
    opacity: 1 !important;
}

.news-thumb-placeholder {
    padding: 20px !important;
    font-size: clamp(42px, 4.2vw, 64px) !important;
    line-height: 1.02 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 600px) {
    .news-thumb-placeholder {
        font-size: clamp(30px, 8vw, 44px) !important;
    }
}

@media (max-width: 600px) {
    body::before {
        top: 10px !important;
        bottom: 10px !important;
        width: calc(100% - 28px) !important;
        border-radius: 22px !important;
    }
}

.back-to-top-btn {
    position: fixed;
    z-index: 1600;
    right: max(24px, calc((100vw - 1264px) / 2 + 26px));
    bottom: 26px;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(14, 165, 183, 0.30);
    border-radius: 14px;
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.56),
    rgba(67, 205, 221, 0.16)
    );
    color: #087a78;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(24, 101, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.20s ease,
    visibility 0.20s ease,
    transform 0.20s ease,
    border-color 0.20s ease,
    box-shadow 0.20s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 183, 0.52);
    box-shadow: 0 16px 36px rgba(24, 101, 126, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .back-to-top-btn {
    border-color: rgba(45, 212, 215, 0.26);
    background: linear-gradient(
    145deg,
    rgba(17, 69, 86, 0.60),
    rgba(8, 38, 59, 0.50)
    );
    color: #e1fffb;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(144, 241, 246, 0.10);
}

html[data-theme="dark"] .back-to-top-btn:hover {
    border-color: rgba(45, 212, 215, 0.50);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(45, 212, 215, 0.08),
    inset 0 1px 0 rgba(144, 241, 246, 0.14);
}

.back-to-top-btn-arrow {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 600px) {
    .back-to-top-btn {
        right: 22px;
        bottom: 22px;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 13px;
    }
}

.news-search,
.staff-search {
    display: block !important;
}

.news-search input,
.staff-search input {
    width: 100% !important;
}

.news-search button,
.staff-search button {
    display: none !important;
}

.news-search,
.staff-search {
    width: 100% !important;
}

.news-search input,
.staff-search input {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 600px) {
    body::before {
        width: calc(100% - 28px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .container,
    .header-inner,
    .page-section > .container,
    .site-footer > .container {
        width: calc(100% - 56px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .header-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .news-search,
    .staff-search,
    .news-list,
    .catalog-grid,
    .paid-services-list,
    .vacancies-list,
    .contacts-card,
    .map-card,
    .feedback-card,
    .article-page,
    .nszu-contract,
    .legal-page {
        max-width: 100% !important;
    }
}

@media (max-width: 900px) {
    .mobile-menu.is-open {
        width: calc(100% - 56px) !important;
        max-width: none !important;
        margin: 6px auto 0 !important;
        padding: 8px !important;
        overflow: visible !important;
        border: 1px solid rgba(255, 255, 255, 0.68) !important;
        border-radius: 20px !important;
        background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.46),
        rgba(223, 247, 252, 0.24)
        ) !important;
        box-shadow: 0 20px 54px rgba(25, 88, 117, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
        -webkit-backdrop-filter: blur(22px)
        saturate(155%) !important;
        backdrop-filter: blur(22px)
        saturate(155%) !important;
    }

    html[data-theme="dark"] .mobile-menu.is-open {
        border-color: rgba(76, 202, 231, 0.22) !important;
        background: linear-gradient(
        145deg,
        rgba(7, 37, 58, 0.76),
        rgba(7, 25, 45, 0.58)
        ) !important;
        box-shadow: 0 22px 58px rgba(0, 0, 0, 0.30),
        0 0 26px rgba(45, 212, 215, 0.055),
        inset 0 1px 0 rgba(130, 228, 248, 0.09) !important;
    }

    .mobile-menu > a,
    .mobile-menu .nav-dropdown-trigger {
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 16px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: var(--text) !important;
        text-decoration: none !important;
        transition: background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
    }

    .mobile-menu > a + a,
    .mobile-menu .nav-dropdown {
        margin-top: 2px !important;
    }

    .mobile-menu > a:hover,
    .mobile-menu > a:focus-visible,
    .mobile-menu .nav-dropdown-trigger:hover,
    .mobile-menu .nav-dropdown-trigger:focus-visible {
        background: rgba(255, 255, 255, 0.24) !important;
        color: var(--design-accent) !important;
    }

    html[data-theme="dark"] .mobile-menu > a:hover,
    html[data-theme="dark"] .mobile-menu > a:focus-visible,
    html[data-theme="dark"] .mobile-menu .nav-dropdown-trigger:hover,
    html[data-theme="dark"] .mobile-menu .nav-dropdown-trigger:focus-visible {
        background: rgba(45, 212, 215, 0.075) !important;
    }

    .mobile-menu .nav-dropdown {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mobile-menu .nav-dropdown-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .mobile-menu .nav-dropdown-arrow {
        flex: 0 0 auto;
        transition: transform 0.20s ease;
    }

    .mobile-menu .nav-dropdown-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 8px !important;
        overflow: hidden !important;
        border: 1px solid transparent !important;
        border-radius: 14px !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        max-height: 0 !important;
        transform: none !important;
        transition: max-height 0.24s ease,
        opacity 0.18s ease,
        margin 0.18s ease,
        padding 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease !important;
    }

    .mobile-menu .nav-dropdown:hover .nav-dropdown-menu,
    .mobile-menu .nav-dropdown:focus-within .nav-dropdown-menu,
    .mobile-menu .nav-dropdown.is-open .nav-dropdown-menu,
    .mobile-menu .nav-dropdown.open .nav-dropdown-menu {
        margin-top: 4px !important;
        padding: 8px !important;
        max-height: 560px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border-color: rgba(255, 255, 255, 0.52) !important;
        background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.30),
        rgba(227, 248, 252, 0.16)
        ) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.50) !important;
        -webkit-backdrop-filter: blur(16px)
        saturate(145%) !important;
        backdrop-filter: blur(16px)
        saturate(145%) !important;
    }

    html[data-theme="dark"] .mobile-menu .nav-dropdown:hover .nav-dropdown-menu,
    html[data-theme="dark"] .mobile-menu .nav-dropdown:focus-within .nav-dropdown-menu,
    html[data-theme="dark"] .mobile-menu .nav-dropdown.is-open .nav-dropdown-menu,
    html[data-theme="dark"] .mobile-menu .nav-dropdown.open .nav-dropdown-menu {
        border-color: rgba(73, 197, 225, 0.16) !important;
        background: linear-gradient(
        145deg,
        rgba(14, 56, 78, 0.56),
        rgba(7, 29, 49, 0.42)
        ) !important;
        box-shadow: inset 0 1px 0 rgba(130, 228, 248, 0.07) !important;
    }

    .mobile-menu .nav-dropdown:hover .nav-dropdown-arrow,
    .mobile-menu .nav-dropdown:focus-within .nav-dropdown-arrow,
    .mobile-menu .nav-dropdown.is-open .nav-dropdown-arrow,
    .mobile-menu .nav-dropdown.open .nav-dropdown-arrow {
        transform: rotate(180deg) !important;
    }

    .mobile-menu .nav-dropdown-menu a {
        display: block !important;
        width: 100% !important;
        margin: 2px 0 !important;
        padding: 12px 13px !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: var(--text-secondary) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .mobile-menu .nav-dropdown-menu a:hover,
    .mobile-menu .nav-dropdown-menu a:focus-visible {
        background: rgba(255, 255, 255, 0.26) !important;
        color: var(--design-accent) !important;
    }

    html[data-theme="dark"] .mobile-menu .nav-dropdown-menu a:hover,
    html[data-theme="dark"] .mobile-menu .nav-dropdown-menu a:focus-visible {
        background: rgba(45, 212, 215, 0.075) !important;
    }
}

@media (max-width: 420px) {
    .container,
    .header-inner,
    .page-section > .container,
    .site-footer > .container,
    .mobile-menu.is-open {
        width: calc(100% - 48px) !important;
    }
}

.logo {
    display: block;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
    text-decoration: none;
    line-height: 0;
    color: inherit !important;
}

.site-logo-box {
    position: relative;
    display: block;
    width: 190px;
    height: 58px;
    flex: 0 0 190px;
}

.site-logo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.site-logo-light {
    opacity: 1;
}

.site-logo-dark {
    opacity: 0;
}

html[data-theme="dark"] .site-logo-light {
    opacity: 0;
}

html[data-theme="dark"] .site-logo-dark {
    opacity: 1;
}

@media (max-width: 900px) {
    .site-logo-box {
        width: 148px;
        height: 46px;
        flex-basis: 148px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        width: calc(100% - 56px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: 118px
        minmax(0, 1fr)
        auto
        auto
        34px;
        align-items: center !important;
        column-gap: 8px !important;
    }

    .logo {
        display: block !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        margin: 0 !important;
        justify-self: start;
        line-height: 0;
    }

    .site-logo-box {
        position: relative;
        display: block !important;
        width: 118px !important;
        height: 40px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        overflow: visible;
    }

    .site-logo-image {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: contain;
        object-position: left center;
    }

    .theme-toggle {
        grid-column: 3;
        margin: 0 !important;
        justify-self: end;
        flex: none !important;
    }

    .language-picker {
        grid-column: 4;
        margin: 0 !important;
        justify-self: end;
        flex: none !important;
    }

    .burger-btn {
        grid-column: 5;
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        justify-self: end;
        flex: none !important;
    }
}

.paid-service-code,
html[data-theme="dark"] .paid-service-code {
    color: var(--design-accent) !important;
}

.contacts-card .contact-row a,
.contacts-card a[href^="tel:"],
.contacts-card a[href^="mailto:"],
html[data-theme="dark"] .contacts-card .contact-row a,
html[data-theme="dark"] .contacts-card a[href^="tel:"],
html[data-theme="dark"] .contacts-card a[href^="mailto:"] {
    color: var(--design-accent) !important;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.footer-hospital-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.footer-hospital-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.footer-hospital-name span {
    display: block;
}

@media (max-width: 700px) {
    .footer-brand {
        width: 100%;
    }

    .footer-hospital-name {
        font-size: 13px;
    }
}

:root,
html[data-theme="light"],
html[data-theme="dark"] {
    --ui-accent: #0EA5B7;
    --accent: #0EA5B7 !important;
    --design-accent: #0EA5B7 !important;
    --design-accent-2: #0EA5B7 !important;
}

.back-link,
.back-link:visited,
.back-link:hover,
.back-link:focus-visible {
    color: var(--ui-accent) !important;
}

.home-panel:hover .home-panel-head h2,
.home-announcement-item:hover h3,
.home-useful-card:hover .home-useful-content h3 {
    color: var(--ui-accent) !important;
}

.home-panel-head a,
.home-panel-head a:visited,
.home-panel-head a:hover,
.home-panel-head a:focus-visible {
    color: var(--ui-accent) !important;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--ui-accent) !important;
}

.paid-service-code,
html[data-theme="dark"] .paid-service-code {
    color: var(--ui-accent) !important;
}

.contacts-card .contact-row a,
.contacts-card a[href^="tel:"],
.contacts-card a[href^="mailto:"],
html[data-theme="dark"] .contacts-card .contact-row a,
html[data-theme="dark"] .contacts-card a[href^="tel:"],
html[data-theme="dark"] .contacts-card a[href^="mailto:"] {
    color: var(--ui-accent) !important;
}

.map-action-btn,
.feedback-submit,
html[data-theme="dark"] .map-action-btn,
html[data-theme="dark"] .feedback-submit {
    color: var(--ui-accent) !important;
}

.map-action-btn:hover,
.map-action-btn:focus-visible,
.feedback-submit:hover,
.feedback-submit:focus-visible,
html[data-theme="dark"] .map-action-btn:hover,
html[data-theme="dark"] .map-action-btn:focus-visible,
html[data-theme="dark"] .feedback-submit:hover,
html[data-theme="dark"] .feedback-submit:focus-visible {
    color: var(--ui-accent) !important;
}

.news-thumb-placeholder,
html[data-theme="dark"] .news-thumb-placeholder {
    color: var(--ui-accent) !important;
}



.desktop-nav a:hover {
    color: var(--ui-accent) !important;
}

.desktop-nav a::after {
    background: var(--ui-accent) !important;
}

.vacancy-card .vacancy-contacts a,
.vacancy-card a[href^="tel:"],
.vacancy-card a[href^="mailto:"],
html[data-theme="dark"] .vacancy-card .vacancy-contacts a,
html[data-theme="dark"] .vacancy-card a[href^="tel:"],
html[data-theme="dark"] .vacancy-card a[href^="mailto:"] {
    color: var(--design-accent) !important;
}

/* =========================================================
   DEPARTMENTS — CONTACTS
========================================================= */

.department-contacts {
    margin: 16px 0 24px;
}

.department-contacts .contact-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: nowrap;

    gap: 6px;

    padding: 6px 0;

    border-bottom: 0 !important;
}

.department-contacts .contact-row span {
    flex: 0 1 auto;
    min-width: 0;

    color: var(--text-secondary);
    font-weight: 700;

    overflow-wrap: break-word;
}

.department-contacts .contact-row span::after {
    content: ":";
}

.department-contacts .contact-row strong {
    flex: 0 0 auto;
    min-width: 0;
}

.department-contacts .contact-row a,
.department-contacts .contact-row a:visited {
    color: rgb(14, 165, 183) !important;
    text-decoration: none;
    font-weight: 700;
}

.department-contacts .contact-row a:hover {
    color: rgb(14, 165, 183) !important;
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 700px) {

    .department-contacts .contact-row {
        flex-wrap: wrap;

        gap: 3px 6px;

        width: 100%;
        max-width: 100%;
    }

    .department-contacts .contact-row span {
        max-width: 100%;
        white-space: normal;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    .department-contacts .contact-row strong {
        max-width: 100%;
    }

    .department-contacts .contact-row a {
        white-space: nowrap;
    }
}
/* =========================================================
   MOBILE FOOTER — FINAL
========================================================= */

@media (max-width: 700px) {

    .site-footer {
        padding: 8px 0 12px !important;
        background: transparent !important;
        border-top: 0 !important;
    }

    .footer-inner {
        width: calc(100% - 28px) !important;
        max-width: none !important;

        margin: 0 auto !important;
        padding: 12px 14px !important;

        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 9px !important;

        border-radius: 18px;

        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.30),
                rgba(67, 205, 221, 0.08)
            );

        box-shadow:
            0 8px 22px rgba(24, 101, 126, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.50);

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .footer-brand {
        width: 100% !important;
        margin: 0 !important;
    }

    .footer-hospital-name {
        margin: 0 !important;

        display: flex;
        flex-direction: column;

        gap: 1px !important;

        font-size: 12px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;

        color: var(--text-secondary) !important;
    }

    .footer-links {
        width: 100%;

        display: grid !important;
        grid-template-columns: 1fr 1fr !important;

        gap: 7px !important;

        margin: 0 !important;
    }

    .footer-links a,
    .footer-links a:visited {
        min-width: 0;
        min-height: 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 7px 8px;

        border-radius: 10px;

        border: 1px solid rgba(14, 165, 183, 0.16);

        background:
            rgba(255, 255, 255, 0.24);

        color: var(--text-secondary) !important;

        font-size: 11.5px !important;
        line-height: 1.2;
        font-weight: 700;

        text-align: center;
        text-decoration: none;
    }

    .footer-links a:hover,
    .footer-links a:focus-visible {
        color: rgb(14, 165, 183) !important;

        border-color:
            rgba(14, 165, 183, 0.35);

        background:
            rgba(14, 165, 183, 0.08);
    }

    html[data-theme="dark"] .footer-inner {
        background:
            linear-gradient(
                145deg,
                rgba(10, 34, 52, 0.44),
                rgba(8, 27, 44, 0.30)
            );

        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(144, 241, 246, 0.04);
    }

    html[data-theme="dark"] .footer-links a {
        background:
            rgba(17, 69, 86, 0.20);

        border-color:
            rgba(45, 212, 215, 0.14);
    }
}
