/* ==========================================================================
   Slobozhanska Central Hospital — modern healthcare redesign
   ========================================================================== */

:root {
    --c-primary: #0a7c8a;
    --c-primary-dark: #075a64;
    --c-primary-light: #e6f4f6;
    --c-accent: #14b8a6;
    --c-accent-soft: #cdebe8;
    --c-coral: #ef6c5a;
    --c-text: #0f1f24;
    --c-text-muted: #4a5b62;
    --c-text-soft: #6b7c83;
    --c-bg: #ffffff;
    --c-bg-soft: #f6fafb;
    --c-bg-alt: #eef5f6;
    --c-border: #e1ebed;
    --c-border-strong: #c9d8db;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(15, 31, 36, 0.05);
    --shadow: 0 8px 24px rgba(10, 124, 138, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 124, 138, 0.14);

    --container: 1200px;
    --gap: clamp(1rem, 2vw, 1.75rem);

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color .18s ease;
}
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--c-text);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; color: var(--c-text-muted); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: 0;
    background: var(--c-primary);
    color: #fff;
    padding: .75rem 1rem;
    z-index: 10000;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* -------------------- Topbar -------------------- */
.topbar {
    background: var(--c-primary-dark);
    color: #d5eef1;
    font-size: .82rem;
    padding: .55rem 0;
}
.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar__contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.topbar__item {
    color: #d5eef1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 500;
}
.topbar__item:hover { color: #fff; }
.topbar__meta {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.topbar__hours {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #b5dde2;
}
.topbar__edrpou {
    color: #b5dde2;
    font-weight: 500;
    letter-spacing: .02em;
}

/* -------------------- Header / Nav -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: .85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--c-text);
}
.brand:hover { color: var(--c-primary); }
.brand__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    background: #fff;
    border: 1px solid var(--c-border);
}
.site-footer .brand__logo { background: #fff; border-color: transparent; }
.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-family: var(--font-head);
}
.brand__text strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-primary);
}
.brand__text span {
    font-size: .8rem;
    color: var(--c-text-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.brand--light { color: #fff; }
.brand--light:hover { color: var(--c-accent-soft); }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text span { color: rgba(255,255,255,.7); }

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-nav__item {
    position: relative;
}
.primary-nav__item > a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    color: var(--c-text);
    font-weight: 600;
    font-size: .92rem;
    transition: background .18s ease, color .18s ease;
}
.primary-nav__item > a:hover,
.primary-nav__item:hover > a {
    background: var(--c-primary-light);
    color: var(--c-primary);
}
.primary-nav__item.is-cta > a { background: transparent !important; padding: 0; }

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, visibility .2s, transform .2s;
    z-index: 50;
}
.primary-nav__item.has-children:hover > .submenu,
.primary-nav__item.has-children:focus-within > .submenu,
.primary-nav__item.has-children.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu li a {
    display: block;
    padding: .6rem .8rem;
    border-radius: 8px;
    color: var(--c-text);
    font-size: .9rem;
    font-weight: 500;
}
.submenu li a:hover { background: var(--c-bg-alt); color: var(--c-primary); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 9px;
    border-radius: 10px;
}
.nav-toggle span {
    display: block;
    height: 2.5px;
    background: var(--c-text);
    border-radius: 2px;
    margin: 4px 0;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--c-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .primary-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: var(--shadow);
    }
    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: .75rem;
        gap: .2rem;
    }
    .primary-nav__item > a {
        width: 100%;
        justify-content: space-between;
    }
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s;
        padding-top: 0;
        padding-bottom: 0;
    }
    .primary-nav__item.has-children.is-open > .submenu {
        max-height: 600px;
        padding-top: .25rem;
        padding-bottom: .25rem;
    }
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(10, 124, 138, 0.28);
}
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10, 124, 138, 0.34); }
.btn--secondary {
    background: #fff;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.btn--secondary:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.btn--accent {
    background: var(--c-coral);
    color: #fff;
}
.btn--accent:hover { background: #d4523f; color: #fff; }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-border-strong); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 1.85rem; font-size: 1rem; }

/* -------------------- Hero / Banner -------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(60% 60% at 15% 15%, rgba(20,184,166,0.15), transparent 60%),
        radial-gradient(50% 50% at 95% 50%, rgba(10,124,138,0.12), transparent 60%),
        linear-gradient(180deg, #f0f9fa 0%, #ffffff 100%);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(20,184,166,0.12);
    color: var(--c-primary-dark);
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.hero__eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(20,184,166,0.25);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 strong { color: var(--c-primary); font-weight: 800; }
.hero__lead {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    margin-bottom: 1.8rem;
    max-width: 56ch;
}
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
}
.hero__stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.75rem;
    color: var(--c-primary);
    font-weight: 800;
    line-height: 1;
}
.hero__stat span {
    display: block;
    margin-top: .3rem;
    font-size: .85rem;
    color: var(--c-text-soft);
}
.hero__visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
}
.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}
.hero__badge-icon {
    width: 48px; height: 48px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.hero__badge h4 { margin: 0 0 .15rem; font-size: 1rem; }
.hero__badge p { margin: 0; font-size: .85rem; }

@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { aspect-ratio: 16/10; max-height: 360px; }
    .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* -------------------- Page header / Breadcrumb -------------------- */
.page-header {
    background:
        radial-gradient(60% 60% at 80% 20%, rgba(20,184,166,0.15), transparent 60%),
        linear-gradient(180deg, var(--c-primary-light) 0%, #fff 100%);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--c-border);
}
.page-header h1 { margin-bottom: .5rem; }
.page-header__lead {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    max-width: 70ch;
    margin-bottom: 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: .85rem;
    color: var(--c-text-soft);
}
.breadcrumb li + li::before {
    content: '/';
    margin-right: .35rem;
    color: var(--c-border-strong);
}
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb [aria-current="page"] { color: var(--c-primary-dark); font-weight: 600; }

/* -------------------- Sections -------------------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--c-bg-soft); }
.section--dark {
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(20,184,166,0.25), transparent 50%),
        linear-gradient(135deg, var(--c-primary-dark), #053f47);
    color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.85); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-head--left { text-align: left; margin-left: 0; }
.section-head__eyebrow {
    display: inline-block;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--c-text-muted); font-size: 1.05rem; margin-bottom: 0; }

/* -------------------- Grid & Cards -------------------- */
.grid {
    display: grid;
    gap: var(--gap);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
}
.card__icon--coral { background: rgba(239,108,90,0.12); color: var(--c-coral); }
.card__icon--teal { background: rgba(20,184,166,0.15); color: var(--c-accent); }
.card h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.card p { margin-bottom: 1.25rem; font-size: .95rem; color: var(--c-text-muted); flex-grow: 1; }
.card__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--c-primary);
    font-weight: 600;
    font-size: .9rem;
}
.card__link:hover { color: var(--c-primary-dark); }
.card__link::after { content: '→'; transition: transform .2s; }
.card__link:hover::after { transform: translateX(3px); }

/* -------------------- Department cards -------------------- */
.dept-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dept-card__media {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    position: relative;
    overflow: hidden;
}
.dept-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7,90,100,0.55) 100%);
}
.dept-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.dept-card:hover .dept-card__media img { transform: scale(1.05); }
.dept-card__icon {
    position: absolute;
    top: 1rem; left: 1rem;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.92);
    color: var(--c-primary);
    border-radius: 12px;
    display: grid; place-items: center;
    z-index: 2;
}
.dept-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dept-card__body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.dept-card__body p { font-size: .92rem; flex-grow: 1; }

/* -------------------- Post cards -------------------- */
.post-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media {
    aspect-ratio: 16/10;
    background: var(--c-bg-alt);
    overflow: hidden;
}
.post-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.post-card__meta {
    display: flex;
    gap: .85rem;
    font-size: .8rem;
    color: var(--c-text-soft);
    margin-bottom: .75rem;
    align-items: center;
}
.post-card__meta time { display: inline-flex; align-items: center; gap: .3rem; }
.post-card__category {
    display: inline-block;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    padding: .2rem .65rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.post-card h3 { font-size: 1.12rem; margin-bottom: .65rem; line-height: 1.35; }
.post-card h3 a { color: var(--c-text); }
.post-card h3 a:hover { color: var(--c-primary); }
.post-card__excerpt { font-size: .92rem; color: var(--c-text-muted); flex-grow: 1; margin-bottom: 1rem; }

/* -------------------- Content / Article -------------------- */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.article__meta {
    display: flex;
    gap: 1rem;
    font-size: .9rem;
    color: var(--c-text-soft);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.article__featured {
    margin: 0 0 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article__featured img { width: 100%; height: auto; display: block; }
.prose {
    font-size: 1.05rem;
    color: var(--c-text);
    line-height: 1.75;
}
.prose p { color: var(--c-text); margin-bottom: 1.3em; }
.prose h2 { margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: .75rem; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    border-left: 4px solid var(--c-accent);
    background: var(--c-primary-light);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--c-text);
}
.prose img {
    border-radius: var(--radius);
    margin: 1.5em auto;
    box-shadow: var(--shadow-sm);
}
.prose a { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; }
.prose strong { color: var(--c-text); font-weight: 700; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
}
.prose th, .prose td {
    padding: .75rem 1rem;
    border: 1px solid var(--c-border);
    text-align: left;
}
.prose th { background: var(--c-bg-alt); font-weight: 600; }

/* Sidebar (for article pages) */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.article-layout .article { padding: 0; max-width: none; }
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.widget {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.widget h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-primary-dark);
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--c-accent-soft);
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.widget li a { color: var(--c-text); font-size: .92rem; }
.widget li a:hover { color: var(--c-primary); }

@media (max-width: 880px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

/* -------------------- CTA section -------------------- */
.cta-section {
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(20,184,166,0.3), transparent 50%),
        linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin: clamp(3rem, 5vw, 4rem) 0;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.92); max-width: 600px; margin: 0 auto 1.75rem; font-size: 1.05rem; }
.cta-section .btn--primary { background: #fff; color: var(--c-primary-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.cta-section .btn--primary:hover { background: var(--c-accent-soft); color: var(--c-primary-dark); }

/* -------------------- Info / Feature list -------------------- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.feature-list li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
}
.feature-list li::before {
    content: '';
    width: 24px; height: 24px;
    background: var(--c-accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7c8a' stroke-width='3'><polyline points='5 12 10 17 19 8'/></svg>") center / 14px no-repeat;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

/* -------------------- Footer -------------------- */
.site-footer {
    background: var(--c-primary-dark);
    color: rgba(255,255,255,0.82);
    padding: clamp(3rem, 5vw, 4.5rem) 0 0;
    margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col__title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid rgba(255,255,255,0.18);
}
.footer-col__about {
    color: rgba(255,255,255,0.7);
    font-size: .92rem;
    margin: 1.25rem 0 1.5rem;
}
.footer-links, .footer-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.footer-links a {
    color: rgba(255,255,255,0.78);
    font-size: .92rem;
}
.footer-links a:hover { color: #fff; }
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .92rem;
    color: rgba(255,255,255,0.78);
}
.footer-contacts li svg { flex-shrink: 0; margin-top: 3px; color: var(--c-accent); }
.footer-contacts a { color: rgba(255,255,255,0.78); }
.footer-contacts a:hover { color: #fff; }
.footer-helsi { margin-top: .5rem; background: var(--c-accent); border-color: var(--c-accent); color: #fff !important; }
.footer-helsi:hover { background: #10a89a; border-color: #10a89a; color: #fff !important; }

.footer-social {
    display: flex;
    gap: .65rem;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .2s;
}
.footer-social a:hover { background: var(--c-accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1.5rem 0;
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,0.6);
}
.footer-bottom p { margin: 0; color: inherit; }

/* -------------------- Pagination -------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin: 3rem 0 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 .85rem;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s, color .15s, border-color .15s;
}
.pagination a:hover { background: var(--c-primary-light); border-color: var(--c-primary); color: var(--c-primary-dark); }
.pagination .is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* -------------------- Info pills / tags -------------------- */
.tag {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--c-bg-alt);
    color: var(--c-text-muted);
    font-size: .78rem;
    font-weight: 500;
}

/* -------------------- Table of staff (department) -------------------- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.staff-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}
.staff-card__avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent-soft));
    color: var(--c-primary);
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}
.staff-card h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.staff-card__role { font-size: .85rem; color: var(--c-text-soft); margin: 0; }

/* -------------------- Empty states -------------------- */
.empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--c-text-muted);
}

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
