:root {
    --color-primary: #1e3a8a;
    --color-secondary: #3b82f6;
    --color-accent: #93c5fd;
    --color-deep: #0f172a;
    --color-muted: #475569;
    --color-surface: #f8fafc;
    --color-soft: #e2e8f0;
    --color-white: #ffffff;
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-light: 0 10px 30px rgba(59, 130, 246, 0.18);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --transition-base: 0.3s ease;
    --hero-gradient: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.88));
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-deep);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.section {
    padding: var(--space-xl) 0;
}

.section.compact {
    padding: var(--space-lg) 0;
}

.section .section-header {
    max-width: 720px;
    margin-bottom: var(--space-lg);
}

.section .section-header h2 {
    font-size: clamp(1.8rem, 2vw + 1.2rem, 2.4rem);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.18);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: background var(--transition-base), color var(--transition-base);
}

.nav-toggle::before {
    content: "☰";
    font-size: 1.25rem;
}

.nav-toggle[aria-expanded="true"]::before {
    content: "✕";
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-deep);
}

.nav-list {
    position: fixed;
    inset: 0 0 auto auto;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    padding: var(--space-xl) var(--space-lg);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: right;
    max-width: 320px;
}

.nav-list a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--color-accent);
}

.nav-list.open {
    transform: translateY(0);
}

.site-header .contact-pill {
    display: none;
}

/* Hero */
.page-hero {
    position: relative;
    padding: var(--space-2xl) 0;
    overflow: hidden;
    background: var(--color-white);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 50%);
    pointer-events: none;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--space-lg);
}

.page-hero .hero-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    color: var(--color-accent);
    font-weight: 600;
    background: rgba(147, 197, 253, 0.15);
    border-radius: 999px;
    padding: var(--space-2xs) var(--space-sm);
    width: fit-content;
}

.page-hero h1,
.page-hero h2 {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    letter-spacing: -0.03em;
}

.page-hero p {
    font-size: clamp(1rem, 0.6vw + 1rem, 1.1rem);
    color: rgba(226, 232, 240, 0.92);
    max-width: 600px;
}

.page-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.page-hero .hero-media {
    position: relative;
    z-index: 2;
}

.page-hero .hero-media .media-card {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: var(--space-sm);
}

/* Home hero unique */
.page-hero.homepage-hero {
    background: var(--hero-gradient);
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.page-hero.homepage-hero .hero-content {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

/* Secondary hero */
.page-hero.secondary-hero {
    background: linear-gradient(140deg, rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.98));
    padding: var(--space-2xl) 0 var(--space-xl);
}

.page-hero.secondary-hero h1,
.page-hero.secondary-hero h2 {
    font-size: clamp(2rem, 2vw + 1.4rem, 2.8rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: var(--color-white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    border: 1.5px solid rgba(147, 197, 253, 0.8);
    color: var(--color-white);
    background: rgba(15, 23, 42, 0.3);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.9);
}

.btn-surface {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
}

.btn-surface:hover,
.btn-surface:focus-visible {
    border-color: rgba(59, 130, 246, 0.6);
    color: var(--color-secondary);
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.dual-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.triple-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card::after {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.4), transparent 70%);
    transform: translate(-30%, 30%);
    pointer-events: none;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

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

.card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    color: var(--color-secondary);
    font-weight: 600;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

/* Icon pill */
.icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

/* Highlights */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    background: rgba(147, 197, 253, 0.22);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background: var(--color-white);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th,
.table td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--color-soft);
    text-align: left;
    font-size: 0.95rem;
}

.table th {
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.table tbody tr:hover {
    background: rgba(147, 197, 253, 0.12);
}

/* Lists */
.rich-text h2 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    margin-top: var(--space-lg);
}

.rich-text h3 {
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: var(--space-xs);
    margin-top: var(--space-md);
}

.rich-text p {
    margin-bottom: var(--space-sm);
    color: var(--color-muted);
}

.rich-text ul {
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--color-muted);
}

.rich-text li {
    margin-bottom: var(--space-2xs);
}

/* Insight cards */
.insight-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.insight-card img {
    width: 100%;
    height: 220px;
}

.insight-card .insight-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.insight-card h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.insight-card p {
    color: var(--color-muted);
    flex: 1;
}

.insight-card .insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(30, 58, 138, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

/* Team */
.team-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-card {
    background: rgba(15, 23, 42, 0.85);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.team-card img {
    width: 100%;
    height: 260px;
}

.team-card .team-content {
    padding: var(--space-md);
}

.team-card .role {
    font-size: 0.9rem;
    color: rgba(147, 197, 253, 0.9);
    margin-bottom: var(--space-xs);
}

/* Contact */
.contact-wrapper {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.contact-card a {
    color: var(--color-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
}

.contact-card a:hover,
.contact-card a:focus-visible {
    color: var(--color-primary);
}

/* Forms */
.form-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

.form-grid.dual {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.form-field label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(148, 163, 184, 0.4);
    background: rgba(248, 250, 252, 0.85);
    font-size: 0.95rem;
    transition: border var(--transition-base), box-shadow var(--transition-base);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(59, 130, 246, 0.6);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: var(--color-white);
}

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

/* FAQ */
.faq-list {
    display: grid;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.faq-item p {
    color: var(--color-muted);
}

/* Callout */
.callout {
    background: radial-gradient(circle at top left, rgba(147, 197, 253, 0.5), rgba(59, 130, 246, 0.4));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    gap: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.callout h2 {
    font-size: clamp(1.8rem, 2vw + 1.1rem, 2.4rem);
    margin: 0;
    color: var(--color-white);
}

.callout p {
    color: rgba(241, 245, 249, 0.85);
    margin: 0;
}

/* Footer */
.site-footer {
    background: var(--color-deep);
    color: rgba(226, 232, 240, 0.9);
    padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer .footer-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h3 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
}

.site-footer p,
.site-footer li {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.75);
}

.site-footer a {
    color: rgba(147, 197, 253, 0.9);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-accent);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: var(--space-lg);
    padding-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-contacts {
    display: inline-flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 2*var(--space-sm), 640px);
    background: rgba(15, 23, 42, 0.9);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    z-index: 998;
    display: grid;
    gap: var(--space-sm);
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-banner a {
    flex: 1;
    text-align: center;
}

.cookie-banner .cookie-link {
    color: rgba(147, 197, 253, 0.9);
    text-decoration: underline;
}

.cookie-banner.hide {
    display: none;
}

/* Thank you */
.thank-you {
    display: grid;
    gap: var(--space-md);
    justify-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-sm);
}

.thank-you h1 {
    font-size: clamp(2rem, 2vw + 1.4rem, 2.6rem);
    color: var(--color-primary);
}

.thank-you p {
    color: var(--color-muted);
    max-width: 620px;
}

/* Utility */
.tagline {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(59, 130, 246, 0.9);
    font-size: 0.85rem;
}

.muted {
    color: var(--color-muted);
}

.surface {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: var(--color-white);
}

/* Media Queries */
@media (min-width: 768px) {
    .nav-list {
        position: static;
        transform: none;
        flex-direction: row;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        gap: var(--space-md);
        max-width: none;
        align-items: center;
    }

    .nav-list a {
        color: var(--color-muted);
        font-size: 0.95rem;
    }

    .nav-toggle {
        display: none;
    }

    .site-header .contact-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1.1rem;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: var(--color-primary);
        font-weight: 600;
    }

    .page-hero .hero-content {
        grid-template-columns: minmax(320px, 1fr) minmax(280px, 400px);
        align-items: stretch;
    }

    .callout {
        text-align: left;
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1024px) {
    .page-hero.homepage-hero {
        min-height: 92vh;
    }

    .section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .cookie-banner {
        width: calc(100% - 2*var(--space-sm));
        left: var(--space-sm);
        transform: none;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}