:root {
    --brand-navy: #123a5a;
    --brand-navy-deep: #0a2236;
    --brand-navy-soft: #1e4f78;
    --brand-red: #ea1d24;
    --brand-red-deep: #b9161c;
    --brand-ice: #eff5f9;
    --brand-sky: #d7e7f2;
    --brand-white: #ffffff;
    --brand-gold: #caa24a;
    --text-main: #17324a;
    --text-soft: #5c6f80;
    --border-soft: #d8e1e8;
    --surface-soft: #f5f8fb;
    --surface-dark: #0d2337;
    --surface-darker: #071521;
    --surface-section: #ffffff;
    --surface-section-soft: #f5f8fb;
    --surface-muted-gradient: linear-gradient(180deg, #fbfdff 0%, #f7fafc 52%, #f3f8fb 100%);
    --surface-flow: linear-gradient(180deg, #fbfdff 0%, #f7fafc 52%, #f3f8fb 100%);
    --surface-glass: rgba(255, 255, 255, 0.74);
    --shadow-soft: 0 18px 48px rgba(10, 34, 54, 0.12);
    --shadow-strong: 0 22px 70px rgba(7, 21, 33, 0.32);
    --shadow-card: 0 12px 28px rgba(18, 58, 90, 0.06);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 18px;
    --container: 1200px;
    --font-main: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-heading: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --page-bg: var(--brand-white);
    --page-text: var(--text-main);
    --surface-card: var(--brand-white);
    --surface-card-alt: var(--surface-soft);
    --surface-border: var(--border-soft);
    --header-surface: rgba(255, 255, 255, 0.92);
    --header-text: var(--brand-navy-deep);
    --muted-line: rgba(10, 34, 54, 0.1);
    --nav-scrolled-bg: #ffffff;
    --nav-scrolled-border: rgba(10, 34, 54, 0.08);
    --nav-scrolled-shadow: 0 14px 34px rgba(9, 25, 43, 0.08);
    --input-bg: rgba(255, 255, 255, 0.88);
    --input-border: rgba(11, 46, 99, 0.12);
    --input-focus: rgba(11, 46, 99, 0.42);
    --placeholder-text: rgba(8, 28, 48, 0.42);
}

:root[data-theme="dark"] {
    --page-bg: #071521;
    --page-text: #e4edf4;
    --text-main: #e4edf4;
    --text-soft: #a9bccb;
    --surface-soft: #0d2337;
    --surface-card: #10283c;
    --surface-card-alt: #0d2337;
    --surface-border: rgba(159, 209, 235, 0.14);
    --header-surface: rgba(7, 21, 33, 0.9);
    --header-text: #f5f9fc;
    --surface-section: #071521;
    --surface-section-soft: #0d2337;
    --surface-muted-gradient: linear-gradient(180deg, #071521 0%, #081a2b 52%, #0a2031 100%);
    --surface-flow: linear-gradient(180deg, #071521 0%, #081a2b 52%, #0a2031 100%);
    --surface-glass: rgba(255, 255, 255, 0.07);
    --shadow-card: 0 18px 38px rgba(0, 0, 0, 0.2);
    --muted-line: rgba(159, 209, 235, 0.14);
    --nav-scrolled-bg: rgba(7, 21, 33, 0.96);
    --nav-scrolled-border: rgba(159, 209, 235, 0.12);
    --nav-scrolled-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(159, 209, 235, 0.16);
    --input-focus: rgba(159, 209, 235, 0.38);
    --placeholder-text: rgba(255, 255, 255, 0.42);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 500;
    background: var(--page-bg);
    color: var(--page-text);
    font-optical-sizing: auto;
    text-rendering: geometricPrecision;
    transition: background-color 0.28s ease, color 0.28s ease;
}

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

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

p,
h1,
h2,
h3 {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.shell {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section-light {
    background: var(--page-bg);
}

.section-soft {
    background: var(--surface-soft);
}

.section-dark {
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
    color: var(--brand-white);
}

.section-label {
    margin-bottom: 18px;
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-label-on-dark {
    color: #ffb6b9;
}

.section-title {
    max-width: 760px;
    margin-bottom: 24px;
    color: var(--header-text);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.section-copy,
.split-heading-copy {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.dark-section-title {
    max-width: 760px;
    margin-bottom: 24px;
    color: var(--brand-white);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.dark-section-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.85;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
    transition: 0.2s ease;
}

.button-primary {
    background: var(--brand-red);
    color: var(--brand-white);
}

.button-primary:hover {
    background: var(--brand-red-deep);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--brand-white);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.button-secondary-dark {
    border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1023px) {
    .section {
        padding: 64px 0;
    }
}

@media (max-width: 767px) {
    .shell {
        width: min(var(--container), calc(100% - 24px));
    }

    .section {
        padding: 56px 0;
    }

    .section-title,
    .dark-section-title {
        font-size: 30px;
    }
}
