@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #2563eb;
    --color-secondary: #1d4ed8;
    --color-tertiary: #0ea5e9;
    --color-dark: #0f172a;
    --color-muted: #475569;
    --color-light: #f8fafc;
    --color-surface: rgba(255, 255, 255, 0.8);
    --color-border: rgba(15, 23, 42, 0.08);
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.8));
    --gradient-card: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06));
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.75rem;
    --space-lg: 3.5rem;
    --space-xl: 6rem;
    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-light);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.responsive-img {
    width: 100%;
    height: auto;
}

.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

button,
a {
    transition: all 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-tertiary);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-muted);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
}

ul,
ol {
    padding-left: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-muted);
}

strong {
    color: var(--color-dark);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    position: relative;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.12));
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.3);
    background: #fff;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
}

.menu-toggle span::before {
    transform: translateY(-7px);
}

.menu-toggle span::after {
    transform: translateY(7px);
}

.menu-toggle.is-active span {
    background: transparent;
}

.menu-toggle.is-active span::before {
    transform: rotate(45deg);
}

.menu-toggle.is-active span::after {
    transform: rotate(-45deg);
}

.primary-nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a:focus {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Hero */
.page-hero {
    padding: var(--space-xl) 0;
    background: #fff;
}

.page-hero.homepage-hero {
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.page-hero.homepage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 55%);
    opacity: 0.65;
}

.page-hero.homepage-hero .hero-content {
    position: relative;
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--space-md);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.hero-meta-item {
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    padding-left: var(--space-sm);
    color: rgba(255, 255, 255, 0.84);
}

.hero-visual {
    position: relative;
    max-width: 580px;
    justify-self: center;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.stats-panel {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(18px);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--space-md);
    box-shadow: var(--shadow-card);
}

.stats-panel span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.stats-panel strong {
    font-size: 1.3rem;
    color: #fff;
}

/* Sections */
.page-section {
    padding: var(--space-xl) 0;
}

.page-section.alt {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.section-header {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.section-header p {
    font-size: clamp(1rem, 2.1vw, 1.1rem);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

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

.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(37, 99, 235, 0.12);
    pointer-events: none;
}

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

.card p {
    margin-bottom: var(--space-sm);
}

.card a {
    font-weight: 600;
    color: var(--color-primary);
}

.card a:hover {
    color: var(--color-tertiary);
}

/* Buttons */
.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    min-height: 48px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.button-secondary:hover,
.button-secondary:focus {
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-dark);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* Highlighted list */
.icon-list {
    display: grid;
    gap: var(--space-sm);
}

.icon-list-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.08);
}

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.2));
    display: grid;
    place-items: center;
    color: var(--color-primary);
    font-weight: 600;
}

/* Insight cards */
.insight-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.insight-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.insight-card img {
    border-radius: 0;
}

.insight-card-content {
    padding: var(--space-md);
    flex: 1;
}

.insight-card a {
    font-weight: 600;
    color: var(--color-primary);
}

/* Forms */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
}

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

.form-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-control label {
    font-weight: 500;
    color: var(--color-dark);
}

.form-control input,
.form-control select,
.form-control textarea {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: rgba(248, 250, 252, 0.85);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

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

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Contact info block */
.contact-details {
    display: grid;
    gap: var(--space-sm);
}

.contact-details a {
    color: var(--color-primary);
    font-weight: 600;
    word-break: break-word;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--shadow-card);
    background: #fff;
}

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

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
}

thead {
    background: rgba(37, 99, 235, 0.08);
}

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

.faq-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--shadow-card);
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.86);
    padding: var(--space-lg) 0 var(--space-md);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    gap: var(--space-lg);
}

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

.footer-brand h3 {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.65rem;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--color-tertiary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    inset: auto var(--space-sm) var(--space-sm) var(--space-sm);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 480px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.45);
    z-index: 1200;
}

.cookie-banner.is-hidden {
    display: none;
}

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

.cookie-actions a {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.cookie-actions a.accept {
    background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
    color: #fff;
}

.cookie-actions a.decline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-actions a:hover {
    transform: translateY(-2px);
}

/* Utility */
.split-layout {
    display: grid;
    gap: var(--space-lg);
}

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

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.metric-card {
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.metric-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.9rem;
}

.quote-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: var(--shadow-card);
    font-style: italic;
}

.timeline {
    border-left: 2px solid rgba(37, 99, 235, 0.2);
    padding-left: var(--space-md);
    display: grid;
    gap: var(--space-md);
}

.timeline-item {
    position: relative;
    padding-left: var(--space-sm);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -var(--space-md);
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
}

/* Responsive */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-sm);
        min-width: 220px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li a {
        border: none;
        width: 100%;
        padding: 0.6rem 0.75rem;
        border-radius: var(--radius-sm);
    }

    .nav-links li a:hover {
        background: rgba(37, 99, 235, 0.08);
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: var(--space-lg) 0;
    }

    .stats-panel {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: var(--space-md);
    }

    .cookie-banner {
        max-width: none;
        inset: auto var(--space-xs) var(--space-xs) var(--space-xs);
    }

    table {
        min-width: 0;
    }
}