:root {
    --green: #0b7d3d;
    --green-dark: #075b2d;
    --green-soft: #1f9f53;
    --gold: #f1ba4b;
    --gold-dark: #ce8b26;
    --cream: #fff9ec;
    --white: #ffffff;
    --text: #143224;
    --muted: #547064;
    --line: rgba(11, 125, 61, 0.12);
    --shadow: 0 18px 40px rgba(7, 91, 45, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: linear-gradient(180deg, #f4faee 0%, #fff9ec 100%);
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 91, 45, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--white);
}

.brand img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    border: 3px solid rgba(241, 186, 75, 0.85);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.brand strong {
    display: block;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 650;
}

.brand span {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: var(--white);
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
}

.menu a:hover,
.menu a.active {
    background: var(--gold);
    color: var(--green-dark);
}

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-menu-panel {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.container {
    padding: 28px 0 36px;
}

.hero,
.page-head,
.info-card,
.product-card,
.search-box,
.empty,
.contact-card,
.promo-banner {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(7, 91, 45, 0.10);
}

.hero-home {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--line);
}

.hero-copy {
    padding: 12px 6px 12px 8px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 650;
    line-height: 1;
    color: var(--green-dark);
}

.lead,
.page-head p,
.info-card p,
.empty p,
.contact-card p,
.quick-data li,
.result-count {
    color: var(--muted);
    line-height: 1.62;
    font-weight: 400;
}

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

.btn,
.search-box button,
.search-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
}

.btn-primary,
.search-box button {
    background: var(--green);
    color: var(--white);
}

.btn-primary:hover,
.search-box button:hover {
    background: var(--green-dark);
}

.btn-secondary,
.search-box a {
    background: rgba(241, 186, 75, 0.18);
    color: var(--green-dark);
    border: 1px solid rgba(241, 186, 75, 0.55);
}

.quick-data {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.quick-data li {
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media img,
.contact-poster img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.promo-banner {
    margin-top: 20px;
    padding: 12px;
    overflow: hidden;
}

.promo-banner img {
    width: 100%;
    border-radius: 18px;
}

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

.info-card {
    padding: 24px;
    border: 1px solid var(--line);
}

.info-card h2,
.contact-card h2,
.empty h2 {
    margin-top: 0;
    font-weight: 650;
    color: var(--green-dark);
}

.page-head,
.brand-panel {
    padding: 28px;
    border: 1px solid var(--line);
}

.page-head h1 {
    margin-bottom: 10px;
}

.search-box {
    margin-top: 18px;
    padding: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
}

.search-box input,
.search-box select {
    flex: 1;
    min-width: 240px;
    min-height: 48px;
    border: 1px solid #d7e3d8;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
    background: var(--white);
    color: var(--text);
}

.category-select-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 340px;
}

.category-select-wrap::after {
    content: "⌄";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-58%);
    pointer-events: none;
    color: var(--green-dark);
    font-size: 22px;
    font-weight: 700;
}

.search-box select {
    width: 100%;
    max-width: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    padding-right: 48px;
    cursor: pointer;
}

.search-box input:focus,
.search-box select:focus {
    border-color: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(31, 159, 83, 0.12);
}

.result-count {
    margin: 16px 4px 18px;
}

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
}

.product-img {
    position: relative;
    height: 185px;
    background: linear-gradient(180deg, #f7fbf3 0%, #ffffff 100%);
    display: grid;
    place-items: center;
    color: #92a59a;
    font-weight: 700;
    overflow: hidden;
    padding: 14px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-fallback {
    display: none;
    color: #8aa095;
    font-size: 14px;
}

.product-img:not(:has(img)) .image-fallback,
.product-img.is-missing .image-fallback {
    display: block;
}

.product-body {
    padding: 16px;
}

.sku {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-dark);
}

.product-body h2 {
    margin: 0 0 12px;
    min-height: 46px;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--green-dark);
}

.price {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 650;
    color: var(--green);
}

.stock {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.stock.ok {
    color: #0d5e2e;
    background: #dff6e5;
    border: 1px solid #bde6c7;
}

.stock.no {
    color: #8f2727;
    background: #fde8e8;
    border: 1px solid #f4bcbc;
}

.scales {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scales span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(241, 186, 75, 0.16);
    border: 1px solid rgba(241, 186, 75, 0.35);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--white);
}

.pagination a.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.catalog-head {
    padding-top: 24px;
    padding-bottom: 24px;
}

.catalog-head h1 {
    font-size: clamp(32px, 3.6vw, 46px);
}

.about-section {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 18px;
}

.about-copy,
.about-note {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(7, 91, 45, 0.10);
    border: 1px solid var(--line);
    padding: 26px;
}

.about-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 650;
    line-height: 1.08;
    color: var(--green-dark);
}

.about-copy p,
.about-note p {
    color: var(--muted);
    line-height: 1.65;
}

.about-note {
    background: var(--green-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-note strong {
    color: var(--gold);
    font-size: 22px;
    font-weight: 650;
}

.about-note p {
    color: rgba(255,255,255,.9);
}

.categories-head {
    margin-bottom: 18px;
}

.category-search-panel {
    margin: -4px 0 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
    gap: 14px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(7, 91, 45, 0.08);
}

.category-search-panel label {
    display: block;
    color: var(--green-dark);
    font-weight: 750;
    margin-bottom: 4px;
}

.category-search-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.category-search-panel input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d7e3d8;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 16px;
    outline: none;
    color: var(--text);
    background: #fbfdf9;
}

.category-search-panel input:focus {
    border-color: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(31, 159, 83, 0.12);
    background: var(--white);
}

.category-card[hidden],
.category-empty-search[hidden] {
    display: none !important;
}

.category-empty-search {
    margin-bottom: 18px;
}

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

.category-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(7, 91, 45, 0.10);
    overflow: hidden;
}

.category-main-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf3 100%);
}

.category-main-link:hover h2,
.category-main-link:hover .category-cta {
    color: var(--gold-dark);
}

.category-label {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(241, 186, 75, 0.18);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.category-card h2 {
    margin: 16px 0 8px;
    color: var(--green-dark);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 650;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.category-cta {
    font-weight: 700;
    color: var(--green);
}

.subcategory-links {
    padding: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategory-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(11, 125, 61, 0.055);
    text-decoration: none;
    color: var(--green-dark);
    font-weight: 650;
}

.subcategory-links a:hover {
    background: rgba(241, 186, 75, 0.18);
}

.subcategory-links small {
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-card {
    padding: 24px;
    border: 1px solid var(--line);
}

.contact-poster {
    padding: 12px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.contact-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.empty {
    padding: 30px;
    text-align: center;
}

.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.9);
    padding: 26px 0 36px;
}

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

@media (max-width: 980px) {
    .hero-home,
    .contact-grid,
    .about-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .site-header {
        z-index: 80;
    }

    .header-inner {
        min-height: 74px;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
    }

    .brand {
        width: auto;
        min-width: 0;
        gap: 10px;
    }

    .brand img {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
    }

    .brand strong {
        font-size: 15px;
        line-height: 1.15;
    }

    .brand span {
        display: none;
    }

    .menu {
        display: none;
    }

    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border: 1px solid rgba(255,255,255,0.28);
        border-radius: 14px;
        background: rgba(255,255,255,0.10);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        border-radius: 999px;
        background: var(--white);
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(0, 0, 0, 0.42);
    }

    .mobile-menu-backdrop:not([hidden]) {
        display: block;
    }

    .mobile-menu-panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        width: min(86vw, 340px);
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 18px;
        background: var(--cream);
        box-shadow: -18px 0 36px rgba(0,0,0,0.22);
        transform: translateX(105%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

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

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu-head strong {
        color: var(--green-dark);
        font-size: 22px;
        font-weight: 750;
    }

    .mobile-menu-close {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 999px;
        background: var(--green-dark);
        color: var(--white);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-menu-links {
        display: grid;
        gap: 10px;
        padding: 18px 0;
    }

    .mobile-menu-links a {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: 13px 15px;
        border-radius: 16px;
        background: var(--white);
        border: 1px solid var(--line);
        text-decoration: none;
        color: var(--green-dark);
        font-weight: 700;
        box-shadow: 0 10px 20px rgba(7, 91, 45, 0.06);
    }

    .mobile-menu-links a.active,
    .mobile-menu-links a:hover {
        background: var(--green);
        color: var(--white);
    }

    .mobile-menu-contact {
        margin-top: auto;
        padding: 16px;
        border-radius: 20px;
        background: var(--green-dark);
        color: var(--white);
    }

    .mobile-menu-contact p {
        margin: 0 0 12px;
        color: rgba(255,255,255,0.86);
        line-height: 1.4;
    }

    .mobile-menu-contact a {
        display: block;
        margin-top: 8px;
        padding: 11px 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.10);
        color: var(--white);
        text-decoration: none;
        font-weight: 750;
    }

    .hero-home,
    .page-head,
    .search-box,
    .info-card,
    .contact-card,
    .empty,
    .product-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-home {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .cards-grid,
    .catalog-grid,
    .categories-grid,
    .category-search-panel {
        grid-template-columns: 1fr;
    }

    .category-select-wrap {
        max-width: none;
        width: 100%;
    }

    .product-img {
        height: 180px;
    }
}
