:root {
    --green: #163f34;
    --graphite: #232d38;
    --cream: #f6eee4;
    --terracotta: #c96a48;
    --white: #fff;
    --line: rgba(35, 45, 56, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    color: var(--graphite);
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
}

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

/* =========================
   HEADER
   ========================= */

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: block;
    width: 148px;
}

.brand img {
    width: 100%;
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-links a {
    color: var(--graphite);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

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

.header-phone {
    font-size: 14px;
    text-align: right;
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone span {
    display: block;
    color: #7b807f;
    font-weight: 500;
    font-size: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font: 700 14px Manrope;
    color: var(--green);
    margin-left: auto;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--green);
}

/* =========================
   HERO
   ========================= */

.hero {
    background: var(--cream);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    min-height: 600px;
}

.hero-copy {
    padding: 92px 56px 86px 0;
    align-self: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--terracotta);
    font-weight: 800;
    font-size: 12px;
    margin: 0 0 14px;
}

.hero h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.08;
    letter-spacing: -.045em;
    color: var(--green);
    margin-bottom: 24px;
}

.lead {
    max-width: 605px;
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 30px;
}

.hero-photo {
    margin: 34px 0;
    background:
        linear-gradient(
            90deg,
            rgba(22, 63, 52, .15),
            rgba(22, 63, 52, .02)
        ),
        url('../img/close-up-carpenter-working-with-drill.jpg')
        center / cover;
    border-radius: 120px 0 0 0;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 23px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}

.button-primary {
    background: var(--green);
    color: #fff;
}

.button-primary:hover {
    background: #0e2e25;
}

.button-ghost {
    color: var(--green);
    border: 1px solid var(--green);
}

.button-ghost:hover {
    background: rgba(22, 63, 52, .08);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 0;
    margin: 40px 0 0;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
}

.hero-facts li:before {
    content: '•';
    color: var(--terracotta);
    margin-right: 8px;
}

/* =========================
   SECTIONS
   ========================= */

.section {
    padding: 112px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section h2 {
    color: var(--green);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.15;
    letter-spacing: -.04em;
    margin-bottom: 16px;
}

.section-heading > p:last-child {
    font-size: 17px;
    color: #53605b;
}

/* =========================
   SERVICES
   ========================= */

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

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px 24px 25px;
    min-height: 260px;
}

.card-number {
    font-weight: 800;
    color: var(--terracotta);
    font-size: 14px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--green);
    line-height: 1.25;
    margin: 48px 0 12px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #5a625f;
}

/* =========================
   PROCESS
   ========================= */

.process {
    background: var(--green);
    color: #ecf0ee;
}

.process h2 {
    color: #fff;
}

.process-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px;
}

.process-layout > div > p:last-child {
    max-width: 400px;
    color: #c1cdc8;
}

.steps {
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.steps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.steps span {
    font-weight: 800;
    color: var(--terracotta);
}

.steps h3 {
    color: #fff;
    font-size: 17px;
    margin: 0 0 3px;
}

.steps p {
    font-size: 14px;
    margin: 0;
    color: #c1cdc8;
}

/* =========================
   PRICES
   ========================= */

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

.price-list {
    border-top: 1px solid rgba(22, 63, 52, .3);
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(22, 63, 52, .3);
    font-size: 17px;
}

.price-row strong {
    color: var(--green);
    text-align: right;
    white-space: nowrap;
}

.price-note {
    font-size: 13px;
    color: #66706a;
    margin: 17px 0 0;
}

/* =========================
   TRUST
   ========================= */

.trust {
    background: #fff;
    padding: 74px 0;
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 2.2fr repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.trust-statement {
    font-size: 21px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--green);
    margin: 0;
}

.trust-grid strong {
    display: block;
    font-size: 29px;
    line-height: 1.1;
    color: var(--terracotta);
    letter-spacing: -.04em;
}

.trust-grid span {
    font-size: 12px;
    line-height: 1.4;
    display: block;
    margin-top: 7px;
}

/* =========================
   CONTACTS
   ========================= */

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

.contact-panel {
    background: var(--green);
    color: #e2ebe7;
    padding: 56px 66px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 52px;
}

.contact-panel h2 {
    color: #fff;
    margin-bottom: 12px;
}

.contact-panel p:last-child {
    max-width: 570px;
    margin-bottom: 0;
}

.phone-large {
    font-size: 27px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: block;
}

.contact-actions {
    text-align: right;
}

.contact-actions p {
    font-size: 11px;
    margin: 4px 0 14px;
    color: #c1cdc8;
}

.button-light {
    background: #fff;
    color: var(--green);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    background: #232d38;
    color: #d8dcdb;
    padding: 52px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-brand {
    margin: 0 0 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.footer-description {
    margin: 0;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.6;
    color: #aeb7b5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #d8dcdb;
    text-decoration: none;
    font-size: 13px;
    transition: .2s;
}

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

.footer-contact {
    text-align: right;
}

.footer-contact a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
}

.footer-contact span {
    font-size: 12px;
    color: #aeb7b5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    font-size: 11px;
    color: #899390;
}

.footer-bottom p {
    margin: 0;
}

/* =========================
   TABLET / MOBILE
   до 900 px
   ========================= */

@media (max-width: 900px) {

    .nav {
        min-height: 70px;
    }

    .brand {
        width: 118px;
    }

    .header-phone {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        margin-left: 0;
        z-index: 20;
    }

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

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

    .hero-copy {
        padding: 76px 0 40px;
    }

    .hero-photo {
        margin: 0;
        min-height: 330px;
        border-radius: 90px 0 0 0;
    }

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

    .process-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trust-grid {
        grid-template-columns: 1fr 2fr 1fr 1fr;
    }

    .contact-panel {
        padding: 44px;
    }

}

/* =========================
   MOBILE
   до 640 px
   ========================= */

@media (max-width: 640px) {

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

    .nav {
        min-height: 70px;
    }

    .brand {
        width: 118px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        top: 70px;
        padding: 16px;
        gap: 12px;
    }

    .hero-copy {
        padding: 56px 0 32px;
    }

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

    .lead {
        font-size: 16px;
    }

    .hero-photo {
        min-height: 250px;
        margin-left: -16px;
    }

    .section {
        padding: 74px 0;
    }

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

    .service-card {
        min-height: 0;
    }

    .service-card h3 {
        margin-top: 32px;
    }

    .price-row {
        font-size: 14px;
        align-items: center;
    }

    .price-row strong {
        font-size: 13px;
    }

    .trust {
        padding: 58px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .trust-grid .eyebrow,
    .trust-statement {
        grid-column: 1 / -1;
    }

    .contact-panel {
        padding: 36px 24px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-actions {
        text-align: left;
    }

    .phone-large {
        font-size: 23px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 20px;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-contact a {
        font-size: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}