:root {
    --ink: #17202a;
    --muted: #5d6b78;
    --line: #d9e1e8;
    --paper: #ffffff;
    --soft: #f3f6f8;
    --deep: #113b4c;
    --green: #1f6b57;
    --gold: #c8912f;
    --danger: #a33a2f;
    --shadow: 0 20px 50px rgba(17, 59, 76, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

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

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--deep);
    color: white;
    font-weight: 800;
    border-radius: 8px;
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 16px;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
}

.site-nav a:hover {
    color: var(--deep);
}

.site-nav a.phone-link {
    color: var(--deep);
    font-weight: 900;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-nav a.quote-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 2px solid #2563eb !important;
    border-radius: 8px;
    background: #2563eb !important;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.site-nav a.quote-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.site-nav a.quote-cta:visited,
.site-nav a.quote-cta:focus {
    color: #ffffff !important;
}

.button-secondary {
    background: transparent;
    color: var(--deep);
    border: 1px solid var(--line);
}

.button-secondary:hover {
    background: var(--soft);
    color: var(--deep);
}

.button-call {
    background: #2563eb;
}

.button-call:hover {
    background: #1d4ed8;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    min-height: 620px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 28, 39, 0.95), rgba(17, 59, 76, 0.78)),
        url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-grid,
.service-hero-grid,
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 56px;
    align-items: center;
}

.hero h1,
.service-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p,
.service-hero p {
    max-width: 660px;
    margin: 0 0 28px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.92);
}

.hero .button-secondary {
    border-color: rgba(255, 255, 255, 0.78);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero .button-secondary:hover {
    background: white;
    color: var(--deep);
}

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

.hero-card,
.service-panel,
.lead-form {
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.hero-card span,
.service-panel span,
.section-label {
    display: block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-card p,
.service-panel p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

.section,
.service-hero {
    padding: 92px 0;
}

.service-hero {
    background: linear-gradient(135deg, var(--soft), #eaf0f2);
}

.service-hero-image {
    min-height: 540px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(12, 25, 35, 0.86), rgba(17, 59, 76, 0.58)),
        var(--service-image);
    background-size: cover;
    background-position: center;
    color: white;
}

.service-hero-image h1,
.service-hero-image p {
    color: white;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.service-hero-image .section-label {
    color: #ffd27a;
}

.service-hero-image .service-panel {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    color: var(--ink);
}

.service-hero-image .service-panel span {
    color: var(--gold);
    text-shadow: none;
}

.service-hero-image .service-panel p {
    color: var(--muted);
    text-shadow: none;
}

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

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    font-size: 18px;
}

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

.service-card {
    display: grid;
    min-height: 235px;
    align-content: start;
    gap: 12px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(31, 107, 87, 0.4);
}

.service-card span {
    font-size: 23px;
    font-weight: 900;
    color: var(--deep);
}

.service-card p {
    margin: 0;
    font-size: 16px;
}

.service-card strong {
    margin-top: auto;
    color: var(--green);
}

.steps {
    display: grid;
    gap: 16px;
}

.steps div,
.check-list li {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.steps span {
    display: inline-block;
    color: var(--gold);
    font-weight: 900;
    margin-bottom: 6px;
}

.steps p {
    margin: 0;
}

.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--green);
}

.lead-form {
    display: grid;
    gap: 16px;
    align-self: start;
}

.lead-form h2 {
    font-size: 26px;
}

.lead-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: white;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--green);
    outline: 3px solid rgba(31, 107, 87, 0.13);
}

.trap {
    position: absolute;
    left: -9999px;
}

.form-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
}

.form-alert.is-ok {
    background: rgba(31, 107, 87, 0.11);
    color: var(--green);
}

.form-alert.is-error {
    background: rgba(163, 58, 47, 0.11);
    color: var(--danger);
}

.site-footer {
    background: var(--deep);
    color: white;
    padding: 56px 0 24px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 38px;
}

.footer-grid div {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-grid span,
.footer-grid strong {
    font-weight: 900;
}

.footer-grid a {
    text-decoration: none;
}

.footer-phone {
    font-weight: 900;
    color: white !important;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 940px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 82px;
        display: none;
        padding: 18px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

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

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

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

    .hero,
    .service-hero {
        min-height: auto;
        padding: 78px 0;
    }

    .section {
        padding: 68px 0;
    }

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

    .brand-copy strong {
        font-size: 14px;
    }

    .brand-copy small {
        display: none;
    }
}
