.kg-header,
.kg-header *,
.kg-mobile-menu,
.kg-mobile-menu * {
    box-sizing: border-box;
}

.kg-header,
.kg-mobile-menu {
    font-family: inherit;
    color: #1f1f1f;
}

.kg-header img,
.kg-mobile-menu img {
    display: block;
    max-width: 100%;
}

.kg-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 auto;
}

.kg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.kg-icon path,
.kg-icon circle,
.kg-icon rect {
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.kg-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg, #f2f8ea 0%, #ffffff 45%, #f2f8ea 100%);
    border-bottom: 1px solid #eef1eb;
}

/* DESKTOP */

.kg-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 38px;
    display: grid;
    grid-template-columns: auto auto minmax(420px, 560px) auto;
    align-items: center;
    gap: 42px;
}

.kg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #233f24;
    text-decoration: none;
    white-space: nowrap;
}

.kg-logo img {
    width: 72px;
    height: 54px;
    object-fit: contain;
}

.kg-logo strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: .95;
    font-weight: 700;
    color: #23451f;
}

.kg-logo small {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    line-height: 1;
    color: #666;
}

.kg-catalog-btn {
    height: 52px;
    min-width: 150px;
    padding: 0 20px;
    border-radius: 8px;
    border: 0;
    background: #2f8f28;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: background .2s ease;
}

.kg-catalog-btn:hover {
    background: #267820;
    color: #fff;
}

.kg-catalog-btn .kg-icon {
    width: 20px;
    height: 20px;
}

.kg-search {
    height: 52px;
    max-width: 560px;
    border: 1px solid #e2e2dc;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 18px;
    overflow: hidden;
}

.kg-search input,
.kg-menu-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
}

.kg-search input {
    font-size: 14px;
}

.kg-search button,
.kg-menu-search button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #222;
}

.kg-search button {
    width: 54px;
    height: 52px;
    background: #2f8f28;
    color: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kg-search button:hover {
    background: #267820;
}

.kg-search .kg-icon {
    width: 22px;
    height: 22px;
}

.kg-actions {
    display: flex;
    align-items: center;
    gap: 34px;
    justify-content: flex-end;
}

.kg-actions a,
.kg-menu-actions a {
    position: relative;
    color: #222;
    text-decoration: none;
}

.kg-actions a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.kg-actions .kg-icon {
    width: 28px;
    height: 28px;
}

.kg-actions span {
    font-size: 14px;
    font-weight: 500;
}

.kg-actions b,
.kg-mobile-action b,
.kg-menu-actions .kg-cart-link b {
    position: absolute;
    background: #4d8f2f;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
}

.kg-actions b {
    top: -8px;
    left: 18px;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
}

.kg-nav {
    max-width: none;
    width: 100%;
    height: 56px;
    margin: 0 auto;
    padding: 0 38px;
    background: #fff;
    border-top: 1px solid #eef1eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
}

.kg-nav a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.kg-nav a:hover {
    color: #1f6f1c;
}

.kg-sale,
.kg-nav .kg-sale,
.kg-menu-sale span {
    color: #d64b78 !important;
    font-weight: 600;
}

.kg-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.kg-nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kg-nav-item .kg-icon-arrow-down {
    width: 12px;
    height: 12px;
    color: #1f6f1c;
}

.kg-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 235px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d9e6ce;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
    display: none;
    z-index: 1000;
}

.kg-nav-item:hover .kg-nav-dropdown {
    display: grid;
    gap: 4px;
}

.kg-nav-dropdown a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.kg-nav-dropdown a:hover {
    background: #f1f7ec;
    color: #1f6f1c;
}

.kg-mobile-header,
.kg-mobile-menu {
    display: none;
}

/* MOBILE */

@media (max-width: 900px) {
    .kg-desktop-header {
        display: none;
    }

    .kg-header {
        border-bottom: 0;
        padding: 0;
        background: #fff;
    }

    .kg-icon path,
    .kg-icon circle,
    .kg-icon rect {
        stroke-width: 1.35;
    }

    .kg-mobile-header {
        height: 72px;
        background: #fff;
        border-bottom: 1px solid #eef1eb;
        display: grid;
        grid-template-columns: 42px 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
    }

    .kg-burger {
        width: 42px;
        height: 38px;
        border: 0;
        border-right: 1px solid #eef1eb;
        border-radius: 0;
        background: transparent;
        padding: 0 12px 0 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: #222;
    }

    .kg-burger .kg-icon {
        width: 25px;
        height: 25px;
    }

    .kg-logo-mobile {
        justify-content: flex-start;
        gap: 8px;
        min-width: 0;
    }

    .kg-logo-mobile img,
    .kg-logo-menu img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

    .kg-logo-mobile span,
    .kg-logo-menu span {
        display: block;
        min-width: 0;
    }

    .kg-logo-mobile strong,
    .kg-logo-menu strong {
        font-size: 21px;
        line-height: 1;
        color: #23451f;
    }

    .kg-logo-mobile small,
    .kg-logo-menu small {
        display: block;
        font-size: 10px;
        line-height: 1.1;
        margin-top: 2px;
        color: #666;
        white-space: nowrap;
    }

    .kg-mobile-actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .kg-mobile-action {
        position: relative;
        display: flex;
        color: #222;
        text-decoration: none;
    }

    .kg-mobile-action .kg-icon {
        width: 25px;
        height: 25px;
    }

    .kg-mobile-action b {
        top: -8px;
        right: -8px;
        width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 18px;
    }

    body.kg-menu-open {
        overflow: hidden;
    }

    .kg-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0,0,0,.34);
        display: none;
        overflow: hidden;
    }

    .kg-mobile-menu.is-open {
        display: block;
    }

    .kg-mobile-panel {
        width: 86%;
        max-width: 390px;
        height: 100dvh;
        overflow-y: auto;
        background: #fff;
        padding: 16px 18px 44px;
        border-radius: 0 22px 22px 0;
        box-shadow: 12px 0 30px rgba(0,0,0,.12);
        -webkit-overflow-scrolling: touch;
    }

    .kg-menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 22px;
        padding-top: 8px;
    }

    .kg-logo-menu {
        justify-content: flex-start;
        gap: 8px;
    }

    .kg-close {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: #f1f4e8;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1f6f1c;
    }

    .kg-close .kg-icon {
        width: 19px;
        height: 19px;
    }

    .kg-menu-catalog {
        width: 100%;
        height: 48px;
        border: 0;
        border-radius: 12px;
        background: #1f6f1c;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        margin: 10px 0 12px;
        cursor: pointer;
    }

    .kg-menu-catalog .kg-icon {
        width: 16px;
        height: 16px;
    }

    .kg-menu-search {
        height: 44px;
        border: 1px solid #e2e2dc;
        background: #fbfbf8;
        border-radius: 10px;
        display: flex;
        align-items: center;
        padding: 0 14px;
        margin-bottom: 8px;
    }

    .kg-menu-search input {
        font-size: 14px;
        padding: 0;
    }

    .kg-menu-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .kg-menu-actions a {
        height: 44px;
        border: 1px solid #e2e2dc;
        border-radius: 10px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 0 12px;
        font-size: 14px;
        font-weight: 400;
    }

    .kg-menu-actions .kg-icon {
        width: 20px;
        height: 20px;
    }

    .kg-menu-actions .kg-cart-link b {
        top: 4px;
        right: 8px;
        width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 18px;
    }

    .kg-menu-list {
        display: grid;
        gap: 0;
    }

    .kg-menu-list a,
    .kg-menu-item > button {
        width: 100%;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: #1f1f1f;
        text-decoration: none;
        display: grid;
        grid-template-columns: 22px 1fr 18px;
        align-items: center;
        gap: 10px;
        padding: 0 2px;
        font-size: 14px;
        font-weight: 400;
        text-align: left;
        cursor: pointer;
    }

    .kg-menu-list > a {
        grid-template-columns: 22px 1fr;
    }

    .kg-menu-list .kg-icon {
        width: 19px;
        height: 19px;
        color: #1f6f1c;
    }

    .kg-menu-item > button .kg-icon:last-child {
        width: 16px;
        height: 16px;
        justify-self: end;
        transition: transform .2s ease;
    }

    .kg-menu-item.is-open > button .kg-icon:last-child {
        transform: rotate(90deg);
    }

    .kg-submenu {
        display: none;
        padding: 0 0 4px 32px;
    }

    .kg-menu-item.is-open .kg-submenu {
        display: block;
    }

    .kg-submenu a {
        min-height: 26px;
        display: block;
        padding: 4px 0;
        color: #555;
        font-size: 12px;
        font-weight: 300;
        text-decoration: none;
    }

    .kg-menu-list-secondary {
        margin-top: 7px;
        padding-top: 7px;
        border-top: 1px solid #e2e2dc;
    }

    .kg-menu-banner {
        position: relative;
        min-height: 170px;
        margin-top: 12px;
        border-radius: 16px;
        overflow: hidden;
        background: #f1f4e8;
    }

    .kg-menu-banner > div {
        position: relative;
        z-index: 2;
        padding: 18px 16px;
        max-width: 72%;
    }

    .kg-menu-banner > div img {
        width: 22px;
        height: 22px;
        margin-bottom: 8px;
    }

    .kg-menu-banner strong {
        display: block;
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .kg-menu-banner p {
        margin: 0;
        font-size: 12px;
        line-height: 1.35;
    }

    .kg-menu-banner > img {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 58%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .kg-menu-phone {
        margin-top: 14px;
        color: #1f1f1f;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .kg-menu-phone strong {
        display: block;
        font-size: 16px;
        font-weight: 400;
    }

    .kg-menu-phone small {
        display: block;
        margin-top: 3px;
        color: #666;
        font-size: 11px;
    }

    .kg-socials {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 16px 8px 20px;
        border-bottom: 1px solid #e2e2dc;
    }

    .kg-socials a {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #f1f4e8;
        color: #1f6f1c;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}