:root {
    --bg: #fbf7ef;
    --text: #2a2118;
    --muted: #75685c;
    --accent: #a86f3c;
    --accent-dark: #6d4326;
    --panel: #fffaf2;
    --line: #eadccc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(72, 47, 24, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background:
        radial-gradient(circle at 82% 7%, rgba(168, 111, 60, .14), transparent 28%),
        linear-gradient(180deg, #fffaf2 0%, var(--bg) 38%, #f7efe4 100%);
    color: var(--text);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 247, 239, .88);
    border-bottom: 1px solid rgba(234, 220, 204, .75);
    backdrop-filter: blur(14px);
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.logo-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}
.logo-main {
    color: var(--text);
    font-size: 26px;
    letter-spacing: -.04em;
}
.logo-sub {
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 0;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}
.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
}
.site-nav a:hover { background: var(--panel); color: var(--accent); }
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    font-size: 22px;
}

.hero {
    padding: 78px 0 64px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
    align-items: center;
    gap: 52px;
}
.eyebrow {
    display: inline-flex;
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    margin-bottom: 14px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -.06em;
    margin-bottom: 24px;
}
h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
}
.hero-content p, .page-title p, .cta p, .about-grid p, .contacts-grid p {
    color: var(--muted);
    font-size: 18px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.hero-note span {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 242, .8);
    font-weight: 800;
    color: var(--muted);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(168, 111, 60, .25);
    white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn-light {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn-light:hover { color: #fff; }

.hero-card {
    min-height: 520px;
    border-radius: 42px;
    background: linear-gradient(145deg, #efe0cd, #c69b73);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 32px;
    z-index: 1;
    pointer-events: none;
}
.hero-photo-card { background: #ead9c4; }
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    image-rendering: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 78px;
}
.features article, .product-card, .about-card, .request-form, .timeline article {
    background: rgba(255, 250, 242, .9);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.features article { min-height: 190px; }
.features strong {
    color: var(--accent);
    font-size: 14px;
}
.features p, .product-card p, .about-card li, .timeline p, .contact-list p { color: var(--muted); }

.section-head { margin-bottom: 24px; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 78px;
}
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}
.product-card h3 { font-size: 24px; margin-bottom: 0; letter-spacing: -.025em; }
.product-card p { margin-bottom: 0; }
.product-card a, .product-card strong { color: var(--accent); font-weight: 900; margin-top: auto; }
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    max-height: 270px;
    border-radius: 22px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(234, 220, 204, .95);
    background: #f2e7d9;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
    image-rendering: auto;
}

.cta {
    padding: 58px 0;
    background: #2f241d;
    color: #fff;
}
.cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.cta p { color: #dbcbbb; }

.page-main { padding: 64px 0 80px; }
.page-title { max-width: 840px; margin-bottom: 34px; }
.filter-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.filter-btn {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: #fff;
}
.catalog-grid { margin-bottom: 0; }

.about-grid, .contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 48px;
}
.about-card ul { padding-left: 20px; margin: 0; }
.about-card li + li { margin-top: 10px; }
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.timeline article { min-height: 220px; }
.timeline span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    margin-bottom: 18px;
}

.contact-list {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 24px;
}
.contact-list p:last-child { margin-bottom: 0; }
.request-form {
    display: grid;
    gap: 16px;
}
label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}
input, select, textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    font: inherit;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(168, 111, 60, .15);
}
.form-message {
    margin: 0;
    color: var(--accent-dark);
    font-weight: 800;
}

.site-footer {
    padding: 44px 0;
    background: #211915;
    color: #f8efe4;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .55fr 1fr;
    gap: 28px;
    align-items: start;
}
.site-footer p { color: #cdbfad; }
.site-footer h4 { margin: 0 0 14px; }
.site-footer a:not(.logo) {
    display: block;
    margin-bottom: 8px;
    color: #cdbfad;
}
.site-footer a:hover { color: #fff; }

@media (max-width: 1100px) {
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .burger { display: inline-block; }
    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px; }
    .hero-grid, .about-grid, .contacts-grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 390px; }
    .features, .cards-grid, .catalog-grid, .timeline, .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1160px); }
    .hero { padding-top: 46px; }
    .features, .cards-grid, .catalog-grid, .timeline, .footer-grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 320px; border-radius: 28px; }
    .hero-actions .btn { width: 100%; }
    .product-img { min-height: 210px; }
}
