:root {
    --green: #176947;
    --dark: #102f26;
    --lime: #d4f287;
    --cream: #f6f8f3;
    --muted: #63716a;
    --header: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
    font-family: Manrope, sans-serif;
    letter-spacing: -0.04em;
}

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

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

button { cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

.topbar {
    background: #103e2e;
    color: #e3f2e8;
    text-align: center;
    padding: 9px 16px;
    font-size: 12px;
    line-height: 1.5;
}

.header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 40;
    border-bottom: 1px solid #e8eee8;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header);
    gap: 20px;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
    font-family: Manrope, sans-serif;
    min-width: 0;
}

.brand-image {
    display: block;
    width: 205px;
    max-width: 100%;
    height: auto;
    max-height: 75px;
    object-fit: contain;
}

.links {
    display: flex;
    gap: 27px;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.links a:hover { color: var(--green); }

.menu-call { display: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 14px 21px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 8px 20px #1769472e;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

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

.btn.light {
    background: #fff;
    color: var(--dark);
    box-shadow: 0 8px 20px #102f2618;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-block { width: 100%; }

.menu {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    color: white;
    background:
        linear-gradient(90deg, rgba(8, 38, 29, 0.93) 0%, rgba(8, 38, 29, 0.75) 46%, rgba(8, 38, 29, 0.1) 100%),
        url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1800&q=85') center/cover;
}

.hero-inner { padding: 76px 0; }

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: #b9e6a5;
}

.hero h1 {
    font-size: clamp(42px, 5.2vw, 76px);
    line-height: 1.08;
    max-width: 750px;
    margin: 20px 0;
}

.hero h1 em { font-style: normal; color: var(--lime); }

.hero p {
    font-size: 17px;
    line-height: 1.8;
    color: #e0ebe4;
    max-width: 590px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-note {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 14px;
    font-size: 13px;
    color: #e7f3eb;
}

.hero-note div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 16px 18px;
    backdrop-filter: blur(8px);
}

.hero-note strong {
    font-size: 22px;
    display: block;
    color: white;
    margin-bottom: 4px;
}

.section { padding: 88px 0; }

.section[id],
#calculator {
    scroll-margin-top: calc(var(--header) + 12px);
}

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

.section-head h2,
.calculator-copy h2 {
    font-size: clamp(29px, 3.5vw, 45px);
    line-height: 1.2;
    margin: 10px 0;
}

.section-head p,
.calculator-copy p {
    max-width: 460px;
    line-height: 1.7;
    color: var(--muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head .tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

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

.service {
    border: 1px solid #e2eae4;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    min-width: 0;
    box-shadow: 0 12px 32px #103e2e0d;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px #103e2e18;
}

.service img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .45s ease;
}

.service:hover img { transform: scale(1.05); }

.service-body { padding: 25px; }

.service h3 { font-size: 22px; margin: 0 0 10px; }

.service p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

.service a {
    color: var(--green);
    font-weight: 800;
    font-size: 13px;
}

.band { background: var(--cream); }

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.benefit {
    padding: 24px;
    background: #fff;
    border: 1px solid #e6ede7;
    border-radius: 18px;
    min-width: 0;
    box-shadow: 0 10px 28px #103e2e0a;
    transition: transform .2s ease;
}

.benefit:hover { transform: translateY(-4px); }

.benefit .symbol {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e9f6d9;
    color: var(--green);
    font-size: 22px;
    margin-bottom: 14px;
}

.benefit h3 { font-size: 18px; margin-bottom: 7px; }

.benefit p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.calculator {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e3ebe5;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 50px #103e2e10;
}

.calculator-copy {
    background: #123d2e;
    color: #e7f3eb;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.calculator-copy .tag { color: var(--lime); }

.calculator-copy h2 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    color: #fff;
    margin: 12px 0 14px;
}

.calculator-copy p {
    max-width: none;
    color: #d5e6dc;
}

.calc-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.calc-points li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #e7f3eb;
}

.calc-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
}

.calc-aside {
    margin: 0;
    font-size: 14px;
}

.calc-aside a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.calc-panel {
    background: white;
    padding: 36px 32px 28px;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
}

.calc-panel h3 {
    font-size: 23px;
    margin: 0;
}

.panel-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.field { margin: 16px 0; }

.field label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

.field label span {
    font-weight: 500;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid #d5e3da;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    color: var(--dark);
}

.field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23176a47' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px #17694722;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field small {
    display: block;
    margin-top: 6px;
    color: #9f1239;
    font-size: 12px;
    line-height: 1.4;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: #be123c;
}

.estimate-fields,
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.estimate-fields { margin-top: 18px; }

.estimate-fields .field,
.form-grid .field { margin: 0; }

.details-title {
    margin: 28px 0 14px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
}

.form-grid .full { grid-column: 1 / -1; }

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    content: "";
    height: 1px;
    background: #d7e4da;
    flex: 1;
}

.form-alert {
    background: #fff1f2;
    color: #9f1239;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
}

.form-success p {
    color: var(--muted);
    line-height: 1.7;
}

.form-success .success-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #e7f6ea;
    color: #14532d;
    font-weight: 700;
    line-height: 1.6;
}

.form-alt {
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-alt a {
    color: var(--green);
    font-weight: 700;
}

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

.results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.result {
    background: #eaf5e8;
    border-radius: 12px;
    padding: 17px;
    min-width: 0;
}

.result span {
    display: block;
    font-size: 12px;
    color: #536e5b;
}

.result strong {
    display: block;
    font-size: clamp(20px, 2vw, 26px);
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.disclaimer {
    font-size: 12px;
    color: #6d7c74;
    line-height: 1.55;
    margin: 14px 0 0;
}

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

.step {
    background: var(--cream);
    border-radius: 18px;
    padding: 22px 20px 20px;
    min-width: 0;
}

.step b {
    color: var(--green);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.step h3 { margin: 13px 0 8px; }

.step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.footer {
    background: #0d291f;
    color: #d0ded4;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 45px;
}

.footer-logo {
    display: inline-flex;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    max-width: 100%;
}

.footer .brand-image { width: min(205px, 100%); }

.footer p,
.footer a {
    font-size: 13px;
    line-height: 1.9;
    color: #c2d2c8;
}

.footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #355145;
    margin-top: 35px;
    padding-top: 20px;
    font-size: 12px;
    color: #a8b9ae;
}

.footer-bottom p { margin: 0 0 6px; }

.wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #24b963;
    color: white;
    border-radius: 100px;
    padding: 14px 19px;
    font-weight: 800;
    box-shadow: 0 6px 24px #0003;
    z-index: 25;
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .nav { position: static; }

    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 8px 6% 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 15px 25px #0002;
    }

    .links.open { display: flex; }

    .links a {
        padding: 14px 0;
        border-bottom: 1px solid #eef3ef;
    }

    .menu-call {
        display: inline-flex;
        margin-top: 14px;
        border: 0;
        border-radius: 9px;
        padding: 14px 18px;
        background: var(--green);
        color: #fff;
        justify-content: center;
    }

    .nav-call { display: none; }

    .menu { display: block; }

    .cards,
    .benefits,
    .steps { grid-template-columns: 1fr 1fr; }

    .calculator { grid-template-columns: 1fr; gap: 0; }

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

@media (max-width: 720px) {
    .hero { min-height: 0; }

    .hero-inner { padding: 48px 0 56px; }

    .hero h1 { font-size: clamp(34px, 11vw, 48px); }

    .hero-actions { flex-direction: column; }

    .hero-actions .btn { width: 100%; }

    .hero-note {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .section { padding: 56px 0; }

    .section-head { display: block; }

    .cards,
    .benefits,
    .steps,
    .footer-grid,
    .form-grid,
    .estimate-fields,
    .results { grid-template-columns: 1fr; }

    .calculator-copy { padding: 32px 22px; gap: 22px; }

    .service img { height: 190px; }

    .calc-panel { padding: 20px; }

    .brand-image { width: min(168px, 58vw); }

    .footer { padding-bottom: 96px; }

    .wa {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 380px) {
    .container { width: min(1180px, calc(100% - 24px)); }

    .topbar { font-size: 11px; }

    .hero h1 { font-size: 32px; }
}
