:root {
    --color-primary: #1d4ed8;
    --color-secondary: #3b82f6;
    --color-tertiary: #0f172a;
    --color-accent: #22d3ee;
    --color-muted: #94a3b8;
    --color-surface: rgba(255, 255, 255, 0.82);
    --color-background: #f8fafc;
    --color-white: #ffffff;

    --gradient-primary: linear-gradient(135deg, rgba(29, 78, 216, 0.95), rgba(59, 130, 246, 0.9));
    --gradient-highlight: linear-gradient(120deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.15));

    --shadow-soft: 0 20px 40px -18px rgba(15, 23, 42, 0.25);
    --shadow-card: 0 16px 32px -12px rgba(15, 23, 42, 0.2);
    --shadow-hover: 0 24px 48px -18px rgba(30, 41, 59, 0.25);

    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 1.75rem;

    --font-heading: "Inter", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;

    --space-2xs: 0.5rem;
    --space-xs: 0.875rem;
    --space-sm: 1.25rem;
    --space-md: 2rem;
    --space-lg: 3.25rem;
    --space-xl: 5.5rem;

    --transition-base: all 0.35s ease;
    --max-width: 1200px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-tertiary);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

main {
    flex: 1;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--color-tertiary);
}

h1 {
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.25;
}

h4 {
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
    line-height: 1.3;
}

p,
li {
    font-size: clamp(1rem, 1.2vw, 1.13rem);
    color: rgba(15, 23, 42, 0.82);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.85rem;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 3rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.88);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(148, 163, 184, 0.7);
    color: var(--color-tertiary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.55);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: var(--space-sm);
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-tertiary);
    letter-spacing: -0.01em;
    transition: var(--transition-base);
}

.brand:hover {
    color: var(--color-primary);
}

.nav-toggle {
    background: transparent;
    border: none;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--color-tertiary);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(15, 23, 42, 0.08);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.primary-nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

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

.primary-nav ul {
    list-style: none;
    text-align: center;
}

.primary-nav li + li {
    margin-top: var(--space-md);
}

.primary-nav a {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.92);
    position: relative;
    padding-bottom: 0.35rem;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus::after {
    width: 100%;
    left: 0;
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        transform: none;
        background: transparent;
        backdrop-filter: none;
    }

    .primary-nav ul {
        display: flex;
        gap: var(--space-sm);
        align-items: center;
    }

    .primary-nav li + li {
        margin-top: 0;
    }

    .primary-nav a {
        font-size: 0.95rem;
        color: var(--color-tertiary);
        letter-spacing: 0.04em;
    }

    .primary-nav a::after {
        bottom: -0.6rem;
    }
}

.page-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: clamp(350px, 45vw, 560px);
    height: clamp(350px, 45vw, 560px);
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.35), transparent 65%);
    filter: blur(4px);
    z-index: 0;
}

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

.page-hero.homepage-hero {
    background: var(--gradient-primary);
    color: var(--color-white);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--space-lg) + 3rem);
}

.page-hero.homepage-hero::before {
    display: none;
}

.page-hero.homepage-hero h1,
.page-hero.homepage-hero p {
    color: var(--color-white);
}

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

.hero-subtitle {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    max-width: 40rem;
    color: rgba(248, 250, 252, 0.86);
}

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

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

.stat-card {
    background: rgba(15, 23, 42, 0.26);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    min-width: 180px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.stat-card span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-card small {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.hero-visual {
    margin-top: var(--space-lg);
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: rgba(248, 250, 252, 0.12);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.4));
    mix-blend-mode: multiply;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.15);
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.grid.featured-grid {
    margin-top: -5rem;
    position: relative;
    z-index: 2;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-sm);
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .grid.featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-highlight);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-title {
    font-weight: 700;
}

.card p {
    color: rgba(15, 23, 42, 0.75);
}

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

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

.section-title {
    margin-bottom: var(--space-xs);
}

.section-lead {
    color: rgba(15, 23, 42, 0.72);
}

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

@media (min-width: 900px) {
    .split-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.list-check {
    list-style: none;
    display: grid;
    gap: var(--space-xs);
}

.list-check li {
    position: relative;
    padding-left: 2.5rem;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    top: 0;
    font-weight: 700;
    color: var(--color-primary);
}

.highlight-box {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.12);
}

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

.timeline-step {
    display: grid;
    gap: 0.45rem;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    width: fit-content;
}

.insight-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.insight-card img {
    height: 220px;
    object-fit: cover;
}

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

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

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

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

.faq-question {
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.legal-section {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    margin-bottom: var(--space-xs);
}

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

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.data-table th {
    background: rgba(15, 23, 42, 0.06);
    font-weight: 700;
    color: var(--color-tertiary);
}

.data-table tbody tr:hover {
    background: rgba(29, 78, 216, 0.08);
}

.form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: var(--space-sm);
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1.5px solid rgba(148, 163, 184, 0.4);
    background: rgba(248, 250, 252, 0.9);
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

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

textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-details {
    display: grid;
    gap: var(--space-sm);
}

.contact-card {
    background: var(--color-white);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.4rem;
}

.contact-card a {
    font-weight: 600;
    word-break: break-word;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.site-footer {
    background: var(--color-tertiary);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-lg) 0 var(--space-md);
}

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

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

.footer-branding p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
}

.footer-links,
.footer-legal {
    display: grid;
    gap: 0.65rem;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

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

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding-top: var(--space-sm);
    font-size: 0.95rem;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(120%);
    width: min(90%, 480px);
    background: rgba(15, 23, 42, 0.94);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(18px);
    display: grid;
    gap: var(--space-xs);
    z-index: 2000;
    transition: transform 0.45s ease;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-action {
    flex: 1 1 auto;
    text-align: center;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.cookie-accept {
    background: rgba(34, 211, 238, 0.2);
    color: var(--color-white);
}

.cookie-decline {
    background: rgba(148, 163, 184, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

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

    .hero-visual {
        margin-top: var(--space-md);
    }

    .grid.featured-grid {
        margin-top: -3rem;
        padding: var(--space-md);
    }

    .site-footer {
        padding: var(--space-md) 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .hero-visual {
        margin-top: 0;
        min-height: 420px;
    }

    .hero-stats {
        margin-top: 0;
    }

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

@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}