:root {
    --bg: #f4f8fd;
    --white: #ffffff;
    --dark: #08213f;
    --text: #2c3b4f;
    --muted: #6f7d90;
    --primary: #1f74c9;
    --primary-hover: #165fa7;
    --secondary: #2fb76b;
    --border: #dce6f2;
    --shadow: 0 14px 35px rgba(8, 33, 63, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.topbar {
    background: #08213f;
    color: #d8e8fb;
    font-size: 0.88rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.topbar p {
    margin: 0;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 52px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid transparent;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.hero {
    position: relative;
    background:
        linear-gradient(115deg, rgba(7, 28, 54, 0.9) 0%, rgba(10, 42, 84, 0.76) 55%, rgba(47, 183, 107, 0.48) 100%),
        url('../images/hero.jpg') center/cover no-repeat;
    color: var(--white);
    min-height: 86vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    padding: 70px 0;
}

.hero-text h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.15;
}

.hero-text p {
    margin: 0;
    color: #d8e6f8;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #b9d8ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow.dark {
    color: #35679f;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(31, 116, 201, 0.35);
}

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

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.quick-form-card {
    background: var(--white);
    border-radius: 14px;
    padding: 22px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.quick-form-card h2 {
    margin: 0 0 2px;
    color: var(--dark);
}

.quick-form-card > p {
    margin: 0 0 14px;
    color: var(--muted);
}

.section {
    padding: 82px 0;
}

.section-alt {
    background: linear-gradient(180deg, #ffffff 0%, #eef5fd 100%);
}

.section-title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.centered-title {
    text-align: center;
    margin-bottom: 24px;
}

.cards {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

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

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 10px;
    color: var(--dark);
}

.card p {
    margin: 0;
    color: var(--muted);
}

.service-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content blockquote {
    margin: 15px 0;
    border-left: 4px solid var(--primary);
    padding: 8px 14px;
    background: #eaf3ff;
    color: #244a7a;
    border-radius: 8px;
}

.check-list {
    margin: 16px 0 24px;
    padding-left: 18px;
}

.check-list li {
    margin: 8px 0;
}

.stats {
    margin-top: 10px;
    margin-bottom: 10px;
}

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

.stats-grid article {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stats-grid h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.8rem;
}

.stats-grid p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.steps article {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
}

.steps span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(31, 116, 201, 0.15);
    color: var(--primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.steps h3 {
    margin: 14px 0 6px;
    color: var(--dark);
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 28, 54, 0.88), rgba(10, 42, 84, 0.62));
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding: 68px 0;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.page-hero p {
    margin: 0;
    color: #dce9f8;
}

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

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

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.price-card.featured {
    border-color: rgba(47, 183, 107, 0.65);
}

.price-card h3 {
    margin: 0;
    color: var(--dark);
}

.price {
    margin: 12px 0 14px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price span {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 600;
}

.price-card ul {
    margin: 0 0 20px;
    padding-left: 18px;
}

.price-card li {
    margin: 8px 0;
    color: var(--text);
}

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

.project-card {
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.project-card div {
    padding: 14px;
}

.project-card .tag {
    margin: 0;
    text-transform: uppercase;
    color: #6f88a3;
    letter-spacing: 0.07em;
    font-size: 0.72rem;
    font-weight: 700;
}

.project-card h3 {
    margin: 6px 0 0;
    color: var(--dark);
    font-size: 1.05rem;
}

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

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.testimonial-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.testimonial-card blockquote {
    margin: 14px 0 10px;
    color: var(--text);
    font-weight: 500;
}

.testimonial-card p {
    margin: 0;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.narrow {
    max-width: 860px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    margin: 0 0 12px;
    color: var(--dark);
}

.contact-card p {
    margin: 8px 0;
}

.form {
    display: grid;
    gap: 10px;
}

.form label {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--dark);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    border: 1px solid #cad9eb;
    border-radius: 10px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.96rem;
    background: #fbfdff;
    color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: rgba(31, 116, 201, 0.75);
    box-shadow: 0 0 0 3px rgba(31, 116, 201, 0.12);
}

.form .btn {
    width: fit-content;
    margin-top: 4px;
}

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

.status-message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.92rem;
}

.status-message.success {
    background: #eaf8ef;
    border: 1px solid #b8e4c8;
    color: #0b7a41;
}

.status-message.error {
    background: #fff1f1;
    border: 1px solid #f0bbbb;
    color: #be2c2c;
}

.legal h2 {
    margin: 0 0 8px;
    color: var(--dark);
}

.legal h2:not(:first-child) {
    margin-top: 28px;
}

.legal p {
    margin: 8px 0;
}

.site-footer {
    margin-top: 30px;
    background: #071b33;
    color: #d2deed;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    padding: 55px 0 30px;
}

.footer-logo {
    width: min(250px, 100%);
    margin-bottom: 14px;
}

.footer-col h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.08rem;
}

.footer-col p {
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin: 8px 0;
}

.footer-col a:hover {
    color: #99cbff;
}

.footer-bottom {
    border-top: 1px solid rgba(210, 222, 237, 0.18);
    padding: 16px 0 22px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

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

    .service-grid,
    .pricing-grid,
    .projects-grid,
    .testimonials-grid,
    .cards-3,
    .steps,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 122px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px 4%;
        display: grid;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.25s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 680px) {
    .brand-logo {
        height: 45px;
    }

    .service-grid,
    .pricing-grid,
    .projects-grid,
    .testimonials-grid,
    .cards-3,
    .steps,
    .stats-grid,
    .inline-fields,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .section {
        padding: 68px 0;
    }
}
