:root {
    --primary: #176b87;
    --primary-light: #1f7a9a;
    --primary-dark: #0f4f63;

    --accent: #0d6efd;

    --bg-main: #F5F7FA;
    --bg-card: #ffffff;
    --bg-soft: #f1f5f9;

    --text-main: #2b2f33;
    --text-muted: #6b7a86;

    --border: #e3e8ee;

    --shadow-soft: 0 6px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.notranslate * {
    translate: no;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    top: 0 !important;
    position: static !important;
    background: var(--bg-main);
}

img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.top-left,
.top-center,
.top-right {
    flex: 1;
}

.dp-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.resources-line {
    width: 60px;
    height: 3px;
    background: #1a6b8a;
    border-radius: 2px;
}

section {
    margin: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    font-size: 12px;
    text-align: center;
    padding: 5px 0;
    border-bottom: 1px solid #e5e5e5;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    justify-content: flex-start;
}

.top-center {
    display: flex;
    justify-content: center;
}

.top-right {
    display: flex;
    justify-content: flex-end;
}

.top-center .tg-link {
    pointer-events: auto;
}

.tg-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.top-bar .access-btn,
.top-bar .access-btn i {
    color: #fff;
}

.tg-link a i {
    font-size: 16px;
}

.tg-link a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.tg-link a:active {
    transform: scale(0.96);
}

.tg-link {
    color: var(--primary);
    text-decoration: none;
}

.access-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 4px 8px;
    border-radius: 8px;

    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);

    font-size: 13px;
    color: #fff;
    transition: 0.2s;
}

.access-btn:hover {
    background: rgba(255,255,255,0.1);
}

.main-header {
    position: relative;
    background:
        linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 18px 0;
    overflow: visible;
    z-index: 200;
}

.main-header::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top left,
        rgba(23,107,135,0.06),
        transparent 30%);

    pointer-events: none;
}

/* =========================
   CONTAINER
========================= */

.header-inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 34px;
}

/* =========================
   LEFT SIDE
========================= */

.header-left {
    display: flex;
    align-items: center;
    gap: 22px;

    min-width: 0;
    flex: 1;
}

/* =========================
   LOGOS
========================= */

.header-logos {
    flex-shrink: 0;
}

.header-logos a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    display: block;
    object-fit: contain;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.header-logos:hover .logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.08));
}

/* герб */
.logo-gerb {
    width: 100px;
    height: 100px;
}

/* больница */
.logo-hospital {
    width: 120px;
    height: 120px;

    margin-left: -2px;
}

/* =========================
   TITLE
========================= */

.title-block {
    min-width: 0;
}

.title {
    max-width: 620px;

    margin: 0 0 8px;

    color: #145c78;

    font-size: 24px;
    line-height: 1.12;
    font-weight: 800;

    letter-spacing: -0.6px;
}

.subtitle {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #748391;

    font-size: 14px;
    font-weight: 500;
}

.subtitle::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 2px;

    background: linear-gradient(
        90deg,
        #2d89ab,
        transparent
    );
}

/* =========================
   RIGHT SIDE
========================= */

.header-right {
    width: 300px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   ADDRESS
========================= */

.address {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 50px;

    padding: 0 16px;

    border-radius: 14px;

    background: rgba(255,255,255,0.75);

    border: 1px solid #dbe4ea;

    backdrop-filter: blur(10px);

    color: #324554;

    font-size: 14px;
    font-weight: 600;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.address:hover {
    transform: translateY(-1px);

    border-color: #c9d7df;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.05);
}

.address i {
    color: #1b7ea1;
    font-size: 17px;
}

/* =========================
   SEARCH
========================= */

.search-box {
    position: relative;
    width: 100%;
    z-index: 999;
}

#live-search {
    width: 100%;
    height: 50px;

    padding: 0 16px;

    border-radius: 14px;

    border: 1px solid #dbe4ea;

    background: rgba(255,255,255,0.82);

    color: #0f172a;

    font-size: 14px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

#live-search::placeholder {
    color: #94a3b8;
}

#live-search:hover {
    background: #ffffff;
}

#live-search:focus {
    outline: none;

    background: #ffffff;

    border-color: #1b7ea1;

    box-shadow:
        0 0 0 4px rgba(27,126,161,0.08),
        0 10px 24px rgba(0,0,0,0.06);
}

/* =========================
   SEARCH RESULTS
========================= */

#search-results {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 100%;

    display: none;

    z-index: 99999;

    overflow: hidden;

    border-radius: 16px;

    background: rgba(255,255,255,0.97);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(220,229,236,0.9);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.05);

    animation: headerSearch .18s ease;
}

@keyframes headerSearch {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* элемент поиска */
.search-item {
    padding: 14px 16px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.search-item:not(:last-child) {
    border-bottom: 1px solid rgba(15,23,42,0.05);
}

.search-item:hover {
    background: rgba(23,107,135,0.06);
    transform: translateX(3px);
}

.search-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.search-item-desc {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.45;

    color: #708090;
}

.search-empty {
    padding: 16px;

    text-align: center;

    color: #94a3b8;
    font-size: 14px;
}

/* =========================
   PSYCHO BUTTON
========================= */

.psych-help-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 50px;

    padding: 0 16px;

    border-radius: 14px;

    background: rgba(255,255,255,0.75);

    border: 1px solid #dbe4ea;

    backdrop-filter: blur(10px);

    color: #324554;

    font-size: 12px;
    font-weight: 600;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

    text-decoration: none;
}

.psych-help-btn:hover {
    transform: translateY(-2px);

    opacity: .96;
    border-color: #2c7da0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.psych-help-btn i {
    font-size: 15px;
}

#site-loader {
    position: fixed;
    inset: 0;

    background:
        linear-gradient(180deg, #f7fafc 0%, #edf4f7 100%);

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

#site-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    border: 4px solid rgba(23,107,135,0.15);
    border-top-color: #176b87;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scroll-arrow {
    position: relative;
    z-index: 2;

    width: 14px;
    height: 14px;

    border-left: 3px solid #2c7da0;
    border-top: 3px solid #2c7da0;

    transform:
        rotate(45deg)
        translateY(2px);

    transition:
        transform .25s ease,
        border-color .25s ease;
}

button.scroll-top-btn:hover .scroll-arrow {
    transform:
        rotate(45deg)
        translateY(-1px);

    border-color: #1f6f8b;
}

button.scroll-top-btn {
    all: unset;

    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 64px;
    height: 64px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(24px) scale(.92);

    transition:
        opacity .35s ease,
        transform .35s ease,
        box-shadow .35s ease;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eef5f8
        );

    border: 1px solid rgba(44,125,160,0.12);

    box-shadow:
        0 10px 35px rgba(0,0,0,0.12),
        0 4px 14px rgba(44,125,160,0.18);

    overflow: hidden;
}

button.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}

button.scroll-top-btn:active {
    transform: scale(.96);
}

button.scroll-top-btn svg {
    position: absolute;
    inset: 0;

    width: 64px;
    height: 64px;

    transform: rotate(-90deg);
}

button.scroll-top-btn svg circle {
    fill: none;
    stroke-width: 4;
}

button.scroll-top-btn .progress-bg {
    stroke: rgba(44,125,160,0.10);
}

button.scroll-top-btn .progress-bar {
    stroke: #2c7da0;

    stroke-linecap: round;

    stroke-dasharray: 176;
    stroke-dashoffset: 176;

    transition: stroke-dashoffset .15s linear;

    filter:
        drop-shadow(0 0 3px rgba(44,125,160,0.28));
}

button.scroll-top-btn i {
    position: relative;
    z-index: 2;

    font-size: 22px;
    color: #2c7da0;

    transition:
        transform .25s ease,
        color .25s ease;
}

button.scroll-top-btn:hover i {
    transform: translateY(-2px);
    color: #1f6f8b;
}

@media (max-width: 768px) {

    button.scroll-top-btn {
        width: 56px;
        height: 56px;

        right: 16px;
        bottom: 16px;

        border-radius: 18px;
    }

    button.scroll-top-btn svg {
        width: 56px;
        height: 56px;
    }

    button.scroll-top-btn i {
        font-size: 18px;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1200px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .header-right {
        width: 100%;
        max-width: 420px;
    }

    .title {
        max-width: 100%;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .main-header {
        padding: 16px 0;
    }

    .header-inner {
        gap: 18px;
    }

    .header-left {
        flex-direction: column;
        align-items: center;

        text-align: center;

        gap: 14px;
    }

    .title {
        font-size: 20px;
        line-height: 1.2;
    }

    .subtitle {
        justify-content: center;
    }

    .header-right {
        width: 100%;
        max-width: 100%;
    }

    .logo-gerb {
        width: 74px;
        height: 74px;
    }

    .logo-hospital {
        width: 82px;
        height: 82px;
    }

    .address,
    #live-search,
    .psych-help-btn {
        border-radius: 12px;
    }
}

.lang-switch button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
}

.lang-switch button.active {
    text-decoration: underline;
}

.accessibility-toggle button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
}

.accessibility-toggle button:hover {
    text-decoration: underline;
}

.nav-menu {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-menu .nav-link {
    position: relative;
    color: #fff !important;
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.nav-menu .nav-link:hover {
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

.nav-menu .nav-item.active .nav-link {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
}

.nav-menu ul.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    width: 100%;
}

.nav-menu .nav-item {
    position: relative;
    will-change: transform;
}

.nav-menu .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #1f6f8b;
    transform: rotate(45deg);
}

.nav-menu .dropdown-menu {
    display: block;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    min-width: 220px;
}

.nav-menu .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.nav-menu .nav-item.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.nav-menu .dropdown-item {
    color: #fff !important;
    padding: 10px 16px;
    margin: 2px 4px;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-menu .dropdown-item:hover {
    background: transparent;
    transform: translateX(6px);
    opacity: 0.85;
}

.nav-wrapper {
    display: block;
}

.breadcrumbs-wrapper {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-bottom: 30px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #2c7da0;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.breadcrumbs a:hover {
    color: #1b4965;
}

.breadcrumbs .sep {
    color: #cbd5e1;
}

.breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

.crumb-home {
    display: flex;
    align-items: center;
    gap: 4px;
}

.crumb-home i {
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .breadcrumbs {
        font-size: 13px;
    }
}

.slider-progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transition: width linear;
}

.card,
.info-card,
.resource-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

main {
    min-height: 70vh;
    padding: 0 0 20px;
}

.content-placeholder {
    margin-bottom: 20px;
}

.main-footer {
    background: linear-gradient(135deg, #1f5562, #2f7c8f);
    color: #fff;
    padding: 60px 0 25px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-grid h3 {
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 600;
    position: relative;
}

.footer-grid h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #4fc3f7;
    margin-top: 6px;
    border-radius: 2px;
}

.footer-contacts p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.25s ease;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #4fc3f7;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-map iframe {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    border: none;
    filter: grayscale(0.2) contrast(1.05);
    transition: 0.3s;
}

.footer-map iframe:hover {
    filter: none;
    transform: scale(1.02);
}

.footer-qr {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
}

.qr-block {
    display: flex;
    align-items: center;
    gap: 20px;

    background: rgba(255,255,255,0.08);
    padding: 18px 24px;
    border-radius: 18px;

    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.qr-block:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.qr-block img {
    width: 90px;
    height: 90px;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
}

.qr-title {
    font-size: 13px;
    opacity: 0.8;
}

.qr-text a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.qr-text a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-map iframe {
        height: 200px;
    }
}

body.font-small { font-size: 14px; }
body.font-medium { font-size: 18px; }
body.font-large { font-size: 22px; }

body.theme-dark {
    background: #000;
    color: #fff;
}

body.theme-yellow {
    background: #000;
    color: #ff0;
}

body.no-images img {
    display: none;
}

body.accessibility-enabled * {
    animation: none !important;
    transition: none !important;
}

.cms-content {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.75;
    color: #1e293b;
}

.cms-content p {
    margin-bottom: 18px;
}

.cms-content h1 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.25;
    background: linear-gradient(90deg, #0f172a, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cms-content h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #2c7da0, #2a9d8f);
}

.cms-content h2 {
    text-align: center;
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 400;
}

.cms-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 35px 0 15px;
    color: #0f172a;
    position: relative;
    padding-left: 14px;
}

.cms-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(#2c7da0, #2a9d8f);
}

.cms-content ul,
.cms-content ol {
    padding-left: 22px;
    margin-bottom: 20px;
}

.cms-content li {
    margin-bottom: 8px;
}

.cms-content a {
    color: #2c7da0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(44,125,160,0.5);
    transition: 0.25s;
}

.cms-content a:hover {
    color: #1e5f7a;
    border-bottom: 1px solid #1e5f7a;
}

.cms-content blockquote {
    margin: 25px 0;
    padding: 16px 18px;
    background: #f1f5f9;
    border-left: 4px solid #2c7da0;
    border-radius: 10px;
    color: #334155;
}

.cms-content img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.cms-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 25px 0;
}

.cms-content thead th {
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7a86;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
}

.cms-content tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-radius: 12px;
    transition: 0.2s;
}

.cms-content tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cms-content tbody td {
    padding: 14px 12px;
    border: none;
    font-size: 15px;
}

.cms-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 14px;
}

.cms-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.cms-content iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.cms-content hr {
    margin: 30px 0;
    border: none;
    height: 1px;
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .cms-content {
        font-size: 16px;
    }

    .cms-content h1 {
        font-size: 26px;
    }

    .cms-content h3 {
        font-size: 18px;
    }
}

.goog-te-banner-frame,
iframe.goog-te-banner-frame,
body > .skiptranslate,
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

html {
    margin-top: 0 !important;
}

.nav-toggle {
    display: none;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-primary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2c7be5, #1a6b8a);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44,123,229,0.3);
}

@media (max-width: 992px) {

    .top-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .top-bar .top-left,
    .top-bar .top-center,
    .top-bar .top-right {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .main-header {
        border-radius: 22px;
        overflow: hidden;
        margin-bottom: 18px;
        padding: 22px 0;
    }

    .main-header .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .header-right {
        align-items: stretch;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .logo {
        height: 52px;
    }

    .title {
        font-size: clamp(16px, 4.2vw, 20px);
    }

    .contacts {
        text-align: center;
    }
}


@media (max-width: 768px) {

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .top-left,
    .top-center,
    .top-right {
        width: 100%;
        justify-content: center;
        position: static;
        transform: none;
    }

    .top-left { order: 1; }
    .top-right { order: 2; }
    .top-center { order: 3; }

    .access-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .main-header .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .header-inner {
        align-items: center;
    }

    .header-right {
        align-items: stretch;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        gap: 12px;
    }

    .logo {
        height: 52px;
    }

    .title {
        font-size: clamp(16px, 5vw, 20px);
        line-height: 1.25;
    }

    .search-box {
        width: 100%;
    }

    #live-search {
        width: 100%;
        box-sizing: border-box;
    }

    .contacts {
        text-align: center;
    }

    .nav-toggle {
        display: block;
        width: 100%;
        padding: 14px 16px;
        font-size: 22px;
        color: #fff;
        background: #1a6b8a;
        border: none;
        cursor: pointer;
    }

    .nav-wrapper {
        display: none;
        background: #1a6b8a;
    }

    .nav-wrapper.active {
        display: block !important;
    }

    .nav-menu ul.navbar-nav {
        flex-direction: column !important;
        padding: 0;
        margin: 0;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        background: #145a73;
    }

    .nav-menu .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-menu .dropdown-item {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cms-content table {
        display: block;
        width: 100%;
    }

    .cms-content thead {
        display: none;
    }

    .cms-content tbody {
        display: block;
    }

    .cms-content tbody tr {
        display: block;
        margin-bottom: 16px;
        padding: 16px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #e3e6ea;
    }

    .cms-content tbody td {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
        border-bottom: 1px dashed #e3e8ee;
        font-size: 15px;
    }

    .cms-content tbody td:last-child {
        border-bottom: none;
    }

    .cms-content tbody td::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 600;
        color: #6b7a86;
    }

    .cms-content tbody td:first-child {
        font-weight: 700;
        color: #176b87;
    }
}

@media (max-width: 576px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lang-switch button {
        min-width: 44px;
        min-height: 40px;
        padding: 8px 10px;
    }

    .top-center .tg-link {
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
    }

    .cms-content table {
        font-size: 14px;
    }

    .cms-content tbody tr {
        padding: 12px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-menu .dropdown-menu:empty {
    display: none !important;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-5 { transition-delay: 0.7s; }

@media (max-width: 768px) {
    .resource-card {
        width: 180px;
        height: 100px;
    }
}