@font-face {
    font-family: "Rubik";
    src:
        url("../fonts/Rubik_woff/Rubik-Regular-QiapgeJ.woff2") format("woff2"),
        url("../fonts/Rubik_woff/Rubik-Regular-_40MQ63.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Rubik";
    src:
        url("../fonts/Rubik_woff/Rubik-Italic-9TxjaBY.woff2") format("woff2"),
        url("../fonts/Rubik_woff/Rubik-Italic-eQfUN3Q.woff") format("woff");
    font-display: swap;
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Rubik";
    src:
        url("../fonts/Rubik_woff/Rubik-Medium-T6O2aSu.woff2") format("woff2"),
        url("../fonts/Rubik_woff/Rubik-Medium-5VHUZTM.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Rubik";
    src:
        url("../fonts/Rubik_woff/Rubik-SemiBold-4SIhmJe.woff2") format("woff2"),
        url("../fonts/Rubik_woff/Rubik-SemiBold-wUfvxqK.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Rubik";
    src:
        url("../fonts/Rubik_woff/Rubik-Bold-YUK3Kq4.woff2") format("woff2"),
        url("../fonts/Rubik_woff/Rubik-Bold-VBVzaEv.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Source Sans 3";
    src:
        url("../fonts/Source_Sans_3_woff/SourceSans3-Roman-fYNeFUQ.woff2") format("woff2"),
        url("../fonts/Source_Sans_3_woff/SourceSans3-Roman-TOjHRoB.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Source Sans 3";
    src:
        url("../fonts/Source_Sans_3_woff/SourceSans3-Italic--Axfo0u.woff2") format("woff2"),
        url("../fonts/Source_Sans_3_woff/SourceSans3-Italic--8mMwGT.woff") format("woff");
    font-display: swap;
    font-style: italic;
    font-weight: 400;
}

:root {
    --navy: #272755;
    --navy-deep: #1b1b3f;
    --ink: #171727;
    --muted: #343948;
    --line: rgba(39, 39, 85, .12);
    --orange: #d98c1b;
    --orange-light: #efa52d;
    --cream: #f7f5ef;
    --soft: #fbfaf7;
    --white: #fff;
    --radius: 8px;
    --max: 1180px;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-title: "Rubik", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.04rem;
    line-height: 1.6;
}

body,
button,
input,
textarea {
    font: inherit;
}

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

button,
input,
textarea {
    border: 0;
}

p,
span,
a,
li,
label,
button,
input,
textarea {
    font-family: var(--font-body);
}

.container {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-family: var(--font-title);
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: auto;
    height: 38px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 650;
}

.nav-links a {
    opacity: .86;
}

.nav-links a:hover,
.text-link:hover,
.footer-links a:hover {
    opacity: 1;
    color: var(--orange);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-small {
    min-height: 38px;
    padding-inline: 16px;
    font-size: .9rem;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-light);
}

.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(247, 245, 239, .8), rgba(255, 255, 255, .9)),
        radial-gradient(circle at 86% 18%, rgba(217, 140, 27, .15), transparent 30%);
}

.hero-grid {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: center;
    padding-block: 76px 64px;
}

.eyebrow,
.section-label,
.tag {
    color: var(--orange);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.08;
}

.hero h1 {
    max-width: 780px;
    margin-top: 18px;
    font-size: clamp(2.45rem, 6vw, 5.1rem);
}

.hero-lead {
    max-width: 720px;
    margin: 24px 0 0;
    padding-left: 18px;
    border-left: 4px solid var(--orange);
    color: var(--navy);
    font-family: var(--font-title);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    font-weight: 400;
}

.hero-text {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.72;
    opacity: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.signal-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 24px 60px rgba(39, 39, 85, .18);
}

.signal-item {
    display: grid;
    gap: 6px;
    padding: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.signal-item:last-child {
    border-bottom: 0;
}

.signal-item strong {
    color: var(--orange-light);
    font-family: var(--font-title);
    font-size: 1.48rem;
    font-weight: 600;
    line-height: 1.1;
}

.signal-item span {
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
}

.section {
    padding-block: 88px;
}

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

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section h2,
.contact-section h2 {
    max-width: 760px;
    margin-top: 10px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.section-dark h2,
.contact-section h2 {
    color: var(--white);
}

.section-intro {
    max-width: 690px;
    margin: 18px 0 42px;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.7;
    opacity: 1;
}

.section-dark .section-intro {
    color: rgba(255, 255, 255, .72);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card,
.tool-card,
.article-card {
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.tool-card:hover,
.article-card:hover {
    border-color: rgba(217, 140, 27, .35);
    box-shadow: 0 18px 46px rgba(39, 39, 85, .1);
    transform: translateY(-2px);
}

.card h3,
.tool-card h3,
.article-card h3,
.step h3 {
    margin: 14px 0 8px;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.28;
}

.card p,
.tool-card p,
.article-card p,
.step p {
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.62;
    opacity: 1;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
}

.split-grid p,
.contact-section p {
    max-width: 620px;
    color: rgba(255, 255, 255, .74);
    font-size: 1.02rem;
}

.quote {
    margin: 54px 0 0;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: var(--white);
    font-family: var(--font-title);
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 18px;
}

.tool-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    justify-content: space-between;
    background: var(--soft);
}

.tool-card-featured {
    background: var(--navy);
}

.tool-card-featured h3,
.tool-card-featured p {
    color: var(--white);
}

.tool-card a,
.article-card a,
.text-link {
    margin-top: 24px;
    color: var(--navy);
    font-weight: 750;
}

.tool-card-featured a {
    color: var(--orange-light);
}

.tool-card a[aria-disabled="true"] {
    cursor: default;
    opacity: .62;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.step {
    position: relative;
}

.step span {
    display: grid;
    width: 54px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-weight: 850;
}

.section-header-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: start;
}

.contact-links {
    display: grid;
    gap: 10px;
    margin-top: 30px;
    color: rgba(255, 255, 255, .7);
}

.contact-links a {
    color: var(--orange-light);
    font-weight: 750;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
}

.contact-form label {
    display: grid;
    gap: 7px;
}

.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.flash {
    margin: 0;
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: .95rem !important;
    font-weight: 600 !important;
    line-height: 1.45;
}

.flash-success {
    background: rgba(46, 125, 50, .18);
    color: #d8f3dc !important;
}

.flash-error {
    background: rgba(217, 83, 79, .18);
    color: #ffe0df !important;
}

.contact-form label span {
    color: rgba(255, 255, 255, .64);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    outline: 0;
    padding: 12px 14px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange-light);
}

.consent {
    grid-template-columns: 18px 1fr;
    align-items: start;
}

.consent input {
    width: 18px;
    margin-top: 2px;
}

.consent span {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

.form-note {
    margin: -4px 0 0;
    color: rgba(255, 255, 255, .5) !important;
    font-size: .82rem !important;
    text-align: center;
}

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .7);
    padding-block: 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.brand-footer {
    color: var(--white);
}

.brand-footer .brand-logo {
    filter: brightness(0) invert(1);
    opacity: .82;
}

.site-footer p {
    font-size: .86rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .88rem;
    font-weight: 700;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.copyright {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.legal-page {
    background: var(--soft);
    min-height: 70vh;
}

.legal-content {
    max-width: 780px;
}

.legal-content h1,
.legal-content h2 {
    color: var(--navy);
    font-family: var(--font-title);
}

.legal-content h1 {
    margin: 10px 0 34px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.legal-content h2 {
    margin: 30px 0 8px;
    font-size: 1.2rem;
}

.legal-content p {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

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

    .signal-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .signal-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, .12);
    }

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

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

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

    .footer-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, var(--max));
    }

    .site-header {
        position: static;
    }

    .nav {
        min-height: 66px;
    }

    .nav-links {
        display: none;
    }

    .hero-grid {
        gap: 36px;
        padding-block: 54px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding-block: 62px;
    }

    .cards-grid,
    .tool-grid,
    .steps,
    .articles-grid,
    .signal-panel {
        grid-template-columns: 1fr;
    }

    .signal-item {
        border-right: 0 !important;
    }

    .section-header-row {
        align-items: start;
        flex-direction: column;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}
