:root {
    --primary: #0682b4;
    --primary-dark: #055f84;
    --accent: #31b7e9;
    --light: #a3d5e9;
    --ink: #1d2a3b;
    --muted: #5b6b7c;
    --bg: #f4f8fb;
    --card: #ffffff;
    --border: #e2ebf1;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(6, 130, 180, .08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
    font-size: 1.05rem;
}

.brand-mark {
    display: inline-flex;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
}

.site-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    background: rgba(6, 130, 180, .08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.15rem;
    max-width: 640px;
    opacity: .95;
    margin-bottom: 28px;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .98rem;
    cursor: pointer;
    border: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
}

.btn-primary:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-light {
    background: #fff;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card .num {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .label {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
}

/* Cards grid */
.grid {
    display: grid;
    gap: 24px;
}

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

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(6, 130, 180, .14);
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 130, 180, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: .97rem;
}

/* Member */
.member {
    text-align: center;
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.member .role {
    color: var(--primary);
    font-weight: 700;
    font-size: .9rem;
}

.member .meta {
    color: var(--muted);
    font-size: .85rem;
    margin-top: 6px;
}

.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(6, 130, 180, .1);
    color: var(--primary);
    margin-top: 10px;
}

/* Articles */
.article-card .tag {
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.article-card h3 {
    font-size: 1.15rem;
    margin: 8px 0;
}

.article-card .excerpt {
    color: var(--muted);
    font-size: .95rem;
}

.article-card .meta {
    margin-top: 14px;
    font-size: .82rem;
    color: var(--muted);
}

/* Events */
.event {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
}

.event .date {
    flex: 0 0 64px;
    text-align: center;
    background: rgba(6, 130, 180, .08);
    border-radius: 12px;
    padding: 10px 0;
}

.event .date .d {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.event .date .m {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.event h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.event .type {
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
}

.event p {
    color: var(--muted);
    font-size: .92rem;
}

/* Page hero (inner) */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 60px 0;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.page-hero p {
    opacity: .95;
    max-width: 640px;
}

/* Article body */
.article-body {
    max-width: 760px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 18px;
    color: #2c3a4a;
    font-size: 1.05rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: start;
}

.info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.info-item .icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(6, 130, 180, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
}

form.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fbfdff;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 130, 180, .15);
}

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

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .92rem;
    margin-bottom: 18px;
}

.alert-success {
    background: #e7f7ec;
    color: #1f7a43;
    border: 1px solid #bce8ca;
}

.alert-error {
    background: #fdeaea;
    color: #b3261e;
    border: 1px solid #f3c2bf;
}

/* Footer */
.site-footer {
    background: #0c1622;
    color: #c6d2de;
    padding: 54px 0 26px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.site-footer h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 14px;
}

.site-footer p {
    font-size: .92rem;
    opacity: .85;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: .92rem;
    opacity: .85;
}

.footer-links a {
    color: #c6d2de;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .83rem;
    opacity: .75;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .site-nav.open {
        max-height: 360px;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 10px 20px 16px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
