@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #12385b;
    --blue: #176b91;
    --turquoise: #16a6a6;
    --gold: #c5a45b;
    --light: #f3f8fb;
    --white: #ffffff;
    --text: #34495e;
    --muted: #718096;
    --border: #e3edf3;
    --shadow: 0 12px 35px rgba(18,56,91,.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* TOP BAR */

.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 13px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-links {
    display: flex;
    gap: 12px;
}

.language-links a {
    color: #fff;
}

/* HEADER */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 430px;
}

.brand-symbol {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--turquoise));
    color: white;
    font-size: 29px;
    font-weight: 700;
}

.brand-text strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.35;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

/* NAVIGATION */

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0;
    transition: .25s;
}

.main-navigation a:hover,
.main-navigation .current > a {
    color: var(--turquoise);
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.main-navigation li:hover > ul {
    display: block;
}

.main-navigation ul ul a {
    padding: 9px 12px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 20px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(22,166,166,.4), transparent 30%),
        linear-gradient(120deg, #102f50 0%, #176b91 65%, #16a6a6 100%);
}

.hero::before {
    content: "✧";
    position: absolute;
    right: 8%;
    top: 8%;
    font-size: 240px;
    color: rgba(255,255,255,.07);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 65px;
    padding-bottom: 65px;
}

.hero-label {
    color: #f1d89c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.13;
    font-weight: 800;
}

.hero p {
    max-width: 620px;
    margin: 0 0 32px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 14px 24px;
    border-radius: 8px;
    background: var(--gold);
    color: #172e45;
    font-weight: 700;
    transition: .25s;
}

.hero-button:hover {
    background: #e0c47d;
    transform: translateY(-2px);
}

/* QUICK LINKS */

.quick-links {
    position: relative;
    margin-top: -30px;
    z-index: 2;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card {
    min-height: 115px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    transition: .25s;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: var(--turquoise);
}

.quick-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e7f6f7;
    color: var(--turquoise);
    font-size: 23px;
}

.quick-card > span:last-child {
    margin-left: auto;
    color: var(--gold);
}

/* CONTENT */

.content-section {
    padding: 85px 0;
}

.departments-section {
    background: var(--light);
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading > span {
    color: var(--turquoise);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 8px 0 0;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
}

/* JOOMLA CONTENT */

.com-content-article,
.blog-item,
.moduletable {
    border-radius: 14px;
}

.com-content-article {
    color: var(--text);
}

.com-content-article img {
    max-width: 100%;
    height: auto;
}

.page-header h1,
.page-header h2,
h1, h2, h3, h4 {
    color: var(--navy);
}

/* FOOTER */

.site-footer {
    background: #102b47;
    color: rgba(255,255,255,.85);
}

.footer-inner {
    padding-top: 55px;
    padding-bottom: 45px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
}

.site-footer p {
    color: rgba(255,255,255,.7);
}

.footer-bottom {
    padding: 18px 4%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
    color: rgba(255,255,255,.65);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .main-navigation ul {
        gap: 12px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .header-inner {
        min-height: 75px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-symbol {
        width: 43px;
        height: 43px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 15px 4%;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-navigation.open {
        display: block;
    }

    .main-navigation ul {
        display: block;
    }

    .main-navigation ul ul {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 18px;
    }

    .main-navigation li:hover > ul {
        display: block;
    }

    .hero {
        min-height: 400px;
    }

    .hero p {
        font-size: 15px;
    }

    .quick-grid {
        gap: 10px;
    }

    .quick-card {
        min-height: 100px;
        padding: 12px;
        font-size: 12px;
    }

    .content-section {
        padding: 55px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Место для будущего логотипа больницы */
.brand-logo-placeholder {
    display: block;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border: 2px dashed #c6a45c;
    border-radius: 14px;
    background: #f5f8fc;
    position: relative;
}

.brand-logo-placeholder::after {
    content: "ЛОГО";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7890a5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
/* Флаг Казахстана в верхней полосе */
.topbar-country {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topbar-country img {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
