@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue-dark: #0f2d52;
    --blue: #1f4f88;
    --blue-light: #dbe8f6;
    --gold: #caa64b;
    --gold-soft: #f3ead3;
    --text: #1c2430;
    --muted: #5f6b7a;
    --white: #ffffff;
    --border: #d8e0ea;
    --bg: #f7f9fc;
    --shadow: 0 12px 35px rgba(15, 45, 82, 0.10);
    --red-note: #b91c1c;
    --note-bg: #fff7f7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

p,
li,
.card p,
.benefit-box p,
.contact-card p,
.hero-text,
.hero-card p,
.footer-grid p,
.footer-bottom p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-kicker,
.hero-kicker,
.btn,
.header-cta,
.logo,
.footer-title,
.footer-brand,
.top-note p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

section[id] {
    scroll-margin-top: 110px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-kicker,
.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--blue-dark);
    font-size: 0.92rem;
    font-weight: 600;
}

.top-note {
    background: var(--note-bg);
    border-top: 2px solid var(--red-note);
    border-bottom: 2px solid var(--red-note);
    color: var(--red-note);
}

.top-note p {
    margin: 0;
    padding: 14px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--red-note);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 45, 82, 0.08);
    box-shadow: 0 4px 18px rgba(15, 45, 82, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 84px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    font-weight: 700;
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #e0c57e);
    color: var(--blue-dark);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.logo-text {
    line-height: 1.15;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.25s ease;
}

.header-cta,
.btn-primary {
    background: var(--gold);
    color: var(--blue-dark);
    box-shadow: var(--shadow);
}

.header-cta:hover,
.btn-primary:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
}

.btn-secondary:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
}

.btn-full {
    width: 100%;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--blue-dark);
    margin: 5px 0;
    border-radius: 2px;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(15, 45, 82, 0.78), rgba(15, 45, 82, 0.72)),
        url('/assets/images/hero-tiptop.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 110px 0 95px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 34px;
    align-items: center;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.08;
}

.hero-text {
    max-width: 760px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 10px;
}

.hero-points li {
    color: var(--white);
}

.hero-points li::before {
    content: "•";
    color: var(--gold);
    font-weight: 700;
    margin-right: 10px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    padding: 28px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    color: var(--blue-dark);
}

.hero-card h2,
.hero-card p,
.hero-card strong,
.hero-card a {
    color: var(--blue-dark);
}

.hero-card a:hover,
.hero-card a:focus {
    color: var(--blue);
}

.hero-card h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.intro {
    background: var(--bg);
}

.services .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card,
.benefit-box,
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 45, 82, 0.04);
}

.card h3,
.benefit-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--blue-dark);
}

.benefits {
    background: linear-gradient(180deg, var(--white), var(--blue-light));
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.area {
    background: var(--white);
}

.contact {
    background: linear-gradient(180deg, var(--gold-soft), #fffdf7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

.site-footer {
    background: var(--blue-dark);
    color: #dbe8f6;
    padding-top: 54px;
}

.site-footer a {
    color: #dbe8f6;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 28px;
}

.footer-brand,
.footer-title {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--gold);
}

.footer-grid p,
.footer-grid li,
.footer-bottom p {
    color: #dbe8f6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0 24px;
    color: #dbe8f6;
}

.legal-page {
    min-height: 70vh;
    background: var(--bg);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h2 {
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-top: 0;
}

p {
    margin-top: 0;
    color: var(--text);
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--blue-dark);
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 45, 82, 0.18);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    text-decoration: none;
    background: #d8b45d;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .services .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid,
    .hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        padding: 18px 0;
        box-shadow: 0 10px 24px rgba(15, 45, 82, 0.08);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 90px 0 70px;
    }

    .top-note p {
        font-size: 18px;
        padding: 12px 0;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        padding: 0 14px;
        min-height: 42px;
        font-size: 0.95rem;
    }
}

@media (max-width: 620px) {
    .services .cards,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }

    .hero-card,
    .card,
    .benefit-box,
    .contact-card {
        padding: 20px;
    }

    .container,
    .narrow {
        width: min(100% - 1.2rem, 1180px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .top-note p {
        font-size: 16px;
        line-height: 1.35;
    }
}