:root {
    --bg: #fffdf8;
    --surface: #ffffff;
    --muted-surface: #f8f3e6;
    --text: #2c2519;
    --text-soft: #6f6656;
    --primary: #c79546;
    --primary-deep: #a17229;
    --accent: #6f8a46;
    --border: #e9dfcb;
    --shadow: 0 12px 35px rgba(61, 49, 26, 0.08);
    --header-bg: #5d453f;
    --header-bg-soft: #684941;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, #fffcf3 0%, #fffefb 60%, #fffdf8 100%);
}

img {
    max-width: 100%;
    display: block;
    border-radius: 14px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #567234;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem;
    color: var(--text-soft);
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section-space {
    padding: 4.8rem 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-deep);
    background: #fff2d4;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #7e6159;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    overflow: visible;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    transform: translateY(100%);
    background-image: url("/assets/images/koronka-sm2.webp");
    background-repeat: repeat-x;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}

.header-topline {
    border-bottom: 1px solid #73564f;
    background: var(--header-bg-soft);
}

.header-topline-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}

.topline-contact {
    display: inline-flex;
    gap: 1rem;
}

.header-topline a,
.topline-lang {
    color: #f5ead6;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-weight: 700;
    color: #fff5e5;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 1.45rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.brand img {
    display: block;
    height: 53px;
    width: auto;
    max-width: 296px;
    border-radius: 0;
}

.main-nav {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #8f6f66;
    background: transparent;
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f5ead6;
    margin: 0.29rem 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a {
    font-weight: 600;
    color: #f6ead9;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.main-nav a:hover {
    color: #fff;
}

.header-cta {
    border: 1px solid #d5ac67;
    background: #d2a35d;
    padding: 0.5rem 0.85rem;
    border-radius: 3px;
    font-weight: 600;
    color: #332316;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.header-cta:hover {
    border-color: #e7c488;
    background: #ddb06b;
    transform: translateY(-1px);
}

.hero-banner {
    width: 100%;
    height: clamp(250px, 32vw, 340px);
    background-image: url("/assets/images/hero_bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-deep);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff9ec;
    color: var(--text);
    border-color: #f2ddab;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--text);
}

.category-page {
    background: #efefef;
    padding-top: 4.2rem;
}

.category-container {
    max-width: 930px;
}

.category-header h1 {
    text-transform: uppercase;
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    margin-bottom: 0.8rem;
}

.category-header p {
    max-width: 78ch;
    color: #544c3f;
    margin-bottom: 2.2rem;
}

.catalog-list {
    display: grid;
    gap: 2rem;
}

.catalog-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.8rem;
    align-items: start;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid #d7d1c6;
}

.catalog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.catalog-text h2 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 1.55rem;
}

.catalog-text p {
    color: #584f41;
    margin-bottom: 0.85rem;
}

.catalog-text ul {
    color: #4f473b;
}

.catalog-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-cta {
    margin-top: 2rem;
}

.two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
}

.products,
.benefits,
.contact {
    background: var(--surface);
}

.products {
    background: linear-gradient(180deg, #fffdf8 0%, #fff9ed 100%);
}

.product-grid,
.benefits-grid,
.use-grid {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.products h2 {
    max-width: 760px;
    margin-bottom: 0.4rem;
}

.products .card p {
    margin-bottom: 0.2rem;
}

.products .card li strong {
    color: var(--text);
}

.benefits-grid,
.use-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.benefits-grid article,
.use-grid article,
.legal-content {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(61, 49, 26, 0.12);
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.card h3 {
    margin: 0.2rem 0;
    font-size: 1.15rem;
}

.card ul {
    color: var(--text-soft);
    display: grid;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.benefits-grid article,
.use-grid article {
    padding: 1.15rem;
    background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    align-items: start;
}

.contact-list {
    margin-top: 1rem;
}

.contact-form {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    background: #fffbef;
    display: grid;
    gap: 0.6rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #dacfb7;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(111, 138, 70, 0.14);
}

.form-note {
    margin: 0;
    font-size: 0.85rem;
}

.legal {
    min-height: 65vh;
}

.legal-content {
    max-width: 860px;
    padding: 1.6rem;
}

.legal-content h1 {
    margin-bottom: 1rem;
}

.legal-content h2 {
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #f8f4e8;
    padding-top: 2.3rem;
}

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 250;
    margin: 0 auto;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #d7c9ad;
    background: rgba(255, 250, 239, 0.98);
    box-shadow: 0 18px 36px rgba(43, 32, 16, 0.2);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.95rem;
    color: #4f4537;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.cookie-consent.is-hidden {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1rem;
}

.site-footer h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.site-footer p,
.site-footer li {
    font-size: 0.94rem;
    color: var(--text-soft);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.footer-bottom {
    margin-top: 1.3rem;
    border-top: 1px solid var(--border);
    padding: 1rem 0 1.3rem;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 68px;
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 0.8rem;
        padding: 0.55rem 0;
    }

    .catalog-item,
    .two-col,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .header-topline-inner {
        min-height: 34px;
        font-size: 0.72rem;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .header-cta {
        order: 3;
    }

    .main-nav {
        grid-column: 1 / -1;
        order: 4;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
        margin-top: 0.25rem;
        padding: 0.85rem 0.2rem 0.5rem;
        border-top: 1px solid #795d55;
    }

    .site-header.menu-open .main-nav {
        display: flex;
    }

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-nav a {
        font-size: 0.86rem;
        width: 100%;
    }

    .topline-contact {
        gap: 0.65rem;
    }

    .benefits-grid,
    .use-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .brand img {
        height: 36px;
        max-width: 190px;
    }

    .header-topline {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .header-cta {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .section-space {
        padding: 3.4rem 0;
    }

    .product-grid,
    .benefits-grid,
    .use-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .card img,
    .catalog-media img {
        aspect-ratio: 3 / 2;
    }

    .cookie-consent {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}
