﻿:root {
    --bg: #f5f1e8;
    --bg-soft: #fbf8f2;
    --surface: #ffffff;
    --surface-strong: #1f2421;
    --text: #1f241f;
    --text-soft: #5d645d;
    --line: rgba(31, 36, 33, 0.12);
    --accent: #b7812c;
    --accent-dark: #8f631f;
    --shadow: 0 24px 60px rgba(31, 36, 33, 0.12);
    --radius: 24px;
    --header-height: 84px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    padding-top: var(--header-height);
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(183, 129, 44, 0.16), transparent 28%),
        linear-gradient(180deg, #f7f2e8 0%, #f3efe7 48%, #f9f7f2 100%);
}

body.is-locked {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
}

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

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    height: var(--header-height);
    backdrop-filter: blur(18px);
    background: rgba(251, 248, 242, 0.82);
    border-bottom: 1px solid rgba(31, 36, 33, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    color: inherit;
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(183, 129, 44, 0.12);
    transform: translateY(-1px);
}

.site-nav a.is-active {
    color: var(--surface);
    background: var(--surface-strong);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(183, 129, 44, 0.14);
    font-weight: 600;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(10, 18, 14, 0.82), rgba(25, 32, 28, 0.48)),
        url('assets/images/hero.jpg') center / cover;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: calc(100vh - var(--header-height));
    max-width: 760px;
    padding: 72px 0 96px;
    color: #fff;
}

.eyebrow {
    margin-bottom: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero .eyebrow {
    color: #f0cb8f;
}

.hero h1,
.section-heading h1,
.section-heading h2,
.page-card h2,
.feature-card h2,
.feature-card h3,
.service-card h2,
.contact-card h2,
.service-panel h2,
.service-panel h3,
.modal h2 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.9rem);
    margin-bottom: 22px;
}

.hero__lead,
.section-heading__text,
.feature-card p,
.page-card p,
.contact-card p,
.service-card p,
.service-panel p,
.modal__text,
.check-list li {
    line-height: 1.7;
}

.hero__lead {
    max-width: 620px;
    margin-bottom: 32px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.86);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #d59b3a);
    box-shadow: 0 16px 36px rgba(183, 129, 44, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: linear-gradient(135deg, #c78a2b, #e1a947);
}

.button--ghost,
.button--secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.button--secondary {
    background: rgba(183, 129, 44, 0.12);
    border-color: rgba(183, 129, 44, 0.18);
}

.button--block {
    width: 100%;
}

.section {
    padding: 88px 0;
}

.section--compact {
    padding-top: 56px;
}

.section--accent {
    background: linear-gradient(180deg, rgba(183, 129, 44, 0.06), rgba(255, 255, 255, 0));
}

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

.section-heading h1,
.section-heading h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 5vw, 3.3rem);
}

.section-heading__text,
.feature-card p,
.page-card p,
.contact-card p,
.service-card p,
.service-panel p,
.modal__text,
.check-list li,
.stats-card__item span {
    color: var(--text-soft);
}

.feature-grid,
.contacts-grid,
.services-grid {
    display: grid;
    gap: 24px;
}

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

.feature-card,
.contact-card,
.page-card,
.service-card,
.stats-card,
.modal,
.service-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.feature-card,
.contact-card,
.page-card,
.stats-card,
.service-card,
.modal {
    border-radius: var(--radius);
}

.feature-card,
.contact-card,
.page-card,
.stats-card {
    padding: 28px;
}

.feature-card h2,
.feature-card h3,
.contact-card h2,
.page-card h2 {
    margin-bottom: 12px;
    font-size: 1.65rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.stats-card {
    display: grid;
    gap: 18px;
}

.stats-card__item {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.stats-card__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.stats-card__item strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
}

.page-shell {
    min-height: calc(100vh - var(--header-height));
}

.page-card {
    margin-top: 24px;
}

.check-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 26px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.service-card {
    overflow: hidden;
}

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

.service-card__body {
    padding: 24px;
}

.service-card__body h2 {
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.service-card__body p {
    margin-bottom: 20px;
}

.panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(19, 22, 20, 0.34);
    backdrop-filter: blur(3px);
}

.service-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 22px;
    width: min(100%, 520px);
    height: 100vh;
    padding: 28px;
    border-radius: 32px 0 0 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.service-panel.is-open {
    transform: translateX(0);
}

.service-panel__close,
.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text);
    background: rgba(31, 36, 33, 0.08);
    cursor: pointer;
}

.service-panel__image {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    object-fit: cover;
}

.service-panel__block {
    display: grid;
    gap: 14px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: rgba(19, 22, 20, 0.5);
    backdrop-filter: blur(8px);
}

.modal {
    position: relative;
    width: min(100%, 520px);
    padding: 32px;
}

.modal h2 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.modal__text {
    margin-bottom: 24px;
}

.quote-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 0.95rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 36, 33, 0.14);
    border-radius: 18px;
    background: #fff;
    color: var(--text);
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(183, 129, 44, 0.28);
    border-color: rgba(183, 129, 44, 0.4);
}

.form-status {
    min-height: 24px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.form-status.is-error {
    color: #b23b29;
}

.form-status.is-success {
    color: #2f6a3d;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .feature-grid,
    .contacts-grid,
    .services-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .site-header {
        height: auto;
    }

    .site-header__inner {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    body {
        padding-top: 110px;
    }

    .hero__content {
        min-height: calc(100vh - 110px);
    }
}

@media (max-width: 720px) {
    body {
        padding-top: 88px;
    }

    .site-header {
        height: var(--header-height);
    }

    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(251, 248, 242, 0.97);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 12px 14px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero__content {
        padding: 52px 0 72px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .service-panel {
        width: 100%;
        border-radius: 24px 24px 0 0;
        top: auto;
        bottom: 0;
        height: min(88vh, 760px);
        transform: translateY(100%);
    }

    .service-panel.is-open {
        transform: translateY(0);
    }

    .modal,
    .feature-card,
    .contact-card,
    .page-card,
    .stats-card {
        padding: 22px;
    }
}
