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

:root {
    --blue: #0066cc;
    --dark: #004499;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --muted: #666666;
    --border: #e4e9f0;
    --shadow: rgba(0, 102, 204, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

main,
section,
article,
div,
form,
nav,
ul,
li {
    min-width: 0;
}

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

a,
p,
h1,
h2,
h3,
h4,
li,
label,
span {
    overflow-wrap: anywhere;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

nav {
    background: var(--white);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--dark);
}

#nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: all 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--blue);
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.btn-compact {
    padding: 0.65rem 1.1rem;
    font-size: 0.86rem;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--blue);
}

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

.btn-white {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}

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

.btn-white-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-sub {
    color: var(--muted);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-action {
    text-align: center;
    margin-top: 2.5rem;
}

.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 6rem 5% 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.18;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.93;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 4rem 5% 3.5rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto;
}

.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 4.5rem 5%;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 2.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.9;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #777777;
}

.form-group {
    margin-bottom: 1.4rem;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

@media (max-width: 768px) {
    html {
        scroll-padding-top: 84px;
    }

    nav {
        padding: 1rem 4%;
        position: relative;
    }

    .logo {
        font-size: 1.35rem;
    }

    .nav-toggle-label {
        display: flex;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-top: 0.75rem;
        border-radius: 10px;
        overflow: hidden;
    }

    nav ul li a {
        display: block;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    #nav-toggle:checked ~ ul {
        display: flex;
    }

    .hero {
        padding: 4rem 4% 3rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .page-hero {
        padding: 3rem 4% 2.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 0.98rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-sub {
        margin-bottom: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col a,
    .footer-col p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .hero-btns,
    .cta-banner-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }

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