@font-face {
    font-family: 'Manrope';
    src:
        url('../fonts/Manrope-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'Onest';
    src:
        url('../fonts/Onest-VariableFont_wght.ttf');
}

@font-face {
    font-family: "Playpen Sans", cursive;
    src:
        url('../fonts/PlaypenSans-VariableFont_wght.ttf');

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
    text-decoration: none;
    list-style: none;
    color: black;
    scroll-behavior: smooth;
    transition: 0.4s ease-in-out;
}


pre {
    max-width: 100%;
    white-space: pre-wrap;
    /* Переносит длинные строки */
}

@media (min-width: 2500px) {
    .container {max-width: 2500px;
        padding: 0 300px !important;
        margin: 0 auto;
    }

}

@media (min-width: 2000px) {
    .container {
        padding: 0 160px !important;
        margin: 0 auto;
    }

    /*     .promminer-box .container {
        padding: 0 0 0 120px;
    } */
}

@media (max-width: 2000px) {
    .container {
        padding: 0 160px !important;
        margin: 0 auto;
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 30px !important;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px !important;
        margin: 0 auto;
    }

    .burger {
        right: 0 !important;
    }

}

button {
    cursor: pointer;
}

:root {
    --bg-color: #F5F5F5;
    --color-green: #054F2A;
    --color-orange: #D15722;
    --color-yellow: #DAA520;
    --color-yellowWhite: #FAF3E0;
}

body {
    background-color: var(--bg-color);
    font-size: 20px;
}

/* header */
/* моб каталог */
.mobile-catalog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

.mobile-catalog.active {
    transform: translateX(0);
}

.mobile-catalog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 13px;
    flex-shrink: 0;
}

.mobile-catalog__back,
.mobile-catalog__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .2s;
}

.mobile-catalog__back:hover,
.mobile-catalog__close:hover {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, .17);
}

.mobile-catalog__body {
    overflow-y: auto;
    flex: 1;
}

/* Группа категории */
.mob-cat-group {
    border-bottom: 1px solid #676767;
}

.mob-cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mob-cat-toggle span {
    font-size: 18px;
    font-weight: 500;
}

.mob-cat-toggle svg {
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.mob-cat-toggle.rotate svg {
    transform: rotate(180deg);
}

/* Подкатегории */
.mob-cat-content {
    display: none;
    flex-direction: column;
    padding: 4px 20px 20px;
    gap: 14px;
}

.mob-cat-content.visible {
    display: flex;
}

.mob-cat-content a {
    font-size: 18px;
    font-weight: 300;
    color: #222;
    text-decoration: none;
    padding-left: 8px;
    transition: color .2s;
}

.mob-cat-content a:hover {
    color: #054F2A;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: var(--bg-color);
}

header .container {
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
}
/* Состояние когда верхняя панель скрыта (для десктопа) */
.burger.header-up-hidden {
    top: 20px;
}

.h-up {
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    /* Плавность как на 585zolotoy */
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
        opacity 0.35s ease,
        margin-bottom 0.35s ease;

    transform: translateY(0);
    opacity: 1;
    margin-bottom: 0;

    /* Для производительности */
    will-change: transform, opacity;
}

/* Класс для скрытия верхней панели */
.h-up.header-up-hidden {
    transform: translateY(-100%);
    opacity: 0;
    margin-bottom: -55px;
    /* Отрицательный отступ чтобы контент подтянулся */
    pointer-events: none;
}

/* Небольшой эффект тени когда верхняя панель скрыта */
.h-up.header-up-hidden+.h-down {
    transform: translateY(-2px);
    margin-top: 25px;
}

/* Анимация появления */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.h-up:not(.header-up-hidden) {
    animation: slideDown 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.h-down {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.h-up-nav {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.h-up-nav-link {
    font-size: 16px;
}

.h-up-nav-link:hover,
.h-up-r a:hover {
    color: var(--color-green);
}

.h-up-r {
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.h-up-r {
    display: flex;
    align-items: stretch;
    gap: 18px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: -1;
}


.h-down-l {
    display: flex;
    align-items: center;
    gap: 40px;
}

.h-down-l-btn-input,
.h-down-r {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.logo {
    width: 281px;
}

.btn {
    background-color: white;
    border-radius: 60px;
    padding: 20px;
    border: none;
}

.btn:hover {
    box-shadow: 4px 4px 10px rgba(191, 191, 191, 0.195);
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.input-box-h {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 289px;
}

.input-header::placeholder {
    color: #898989;
}

.input-header {
    border: none;
    font-size: 24px;
    background: none;
}

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


.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
}

.burger span {
    width: 24px;
    height: 2px;
    background: black;
    display: block;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================
   MOBILE MENU
   ======================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 100;
    transition: 0.4s;
    overflow-y: auto;
    padding: 90px 20px 40px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.header-nav-up-mobile {
    flex-direction: column;
    align-items: baseline;
}

@media (max-width:1055px) {
    .input-box-h {
        width: 100%;
    }

    .h-up-r {
        width: 100%;
        justify-content: end;
    }

    .desktop {
        display: none;
    }

    .burger {
        display: flex;
        position: fixed;
        right: 10px;
        top: 60px;
        /* Базовое значение для десктопа когда верхняя панель открыта */
        z-index: 200;
        transition: top 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
        /* Такая же плавность как у шапки */
        will-change: top;
    }

    .h-down-l-btn-input {
        flex-direction: column;
    }

    .header-btn,
    .input-header {
        font-size: 20px;
    }

    h2 {
        font-size: 38px !important;
    }
}

@media (max-width:780px) {
    .h-up-r a {
        font-size: 16px;
    }

    .logo {
        width: 230px;
    }

    .burger {
        top: 50px;
    }

    .mt100 {
        margin-top: 50px !important;
    }

    .cat-price {
        font-size: 18px !important;
    }

    .cat-title {
        font-size: 16px !important;
    }

    .cat-btn {
        font-size: 20px !important;
    }

    .cat-slider-bg-green {
        margin-top: 130px !important;
    }

    .cat-slider-header-btns img {
        width: 50px;
    }

    .product-filterPage p {
        font-size: 16px;
    }
}

/* ========================
   ВЫДВИГАЮЩИЙСЯ ПОИСК
   ======================== */

/* Оверлей для поиска */
.search-expand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-expand-overlay.active {
    transform: translateY(0);
}

/* Контейнер поиска */
.search-expand-container {
    max-width: 100000px;
    margin: 0 auto;
    padding: 36px 160px;
}

/* Блок с инпутом и кнопкой */
.search-expand-box {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 60px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Поле ввода */
.search-expand-input {
    flex: 1;
    border: 1px solid #F5F5F5;
    background: #F5F5F5;
    font-size: 24px;
    padding: 20px;
    border-radius: 60px;
}

.search-expand-input::placeholder {
    color: #898989;
}

.search-expand-input:focus {
    border: 1px solid rgba(0, 0, 0, 0.447)
}

/* Кнопка "Найти" */
.search-expand-btn {
    font-size: 24px;
    border: 1px solid #F5F5F5;
    background: #F5F5F5;
}

.search-expand-btn:hover {
    background-color: #054F2A;
    border-color: #054F2A;
    color: white;
}

/* Анимация для плавного появления */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-expand-overlay.active {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стили для обычного инпута (чтобы скрывать его при активации) */
.input-box-h {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.input-box-h.hidden-search {
    opacity: 0;
    visibility: hidden;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .search-expand-input {
        font-size: 16px;
        padding: 12px 0;
    }

    pre {
        font-size: 18px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .search-expand-input {
        font-size: 14px;
    }

    pre {
        font-size: 16px;
    }
}



.catalog-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.catalog-btn.active {
    background: var(--color-green, #4CAF50);
    color: white;
}

.catalog-btn.active img {
    filter: brightness(0) invert(1);
}

/* Оверлей для затемнения фона */
.catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Выпадающая плашка - ВЫЕЗЖАЕТ СНИЗУ ШАПКИ */
.catalog-dropdown {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 99;
    overflow-y: auto;
    max-width: 3000px;
    margin: 0 auto;
    padding: 0 160px;
    /* Анимация выезда снизу */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Важно: позиционируем относительно header */
    top: 162px;
}

.catalog-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}


/* Контейнер плашки */
.catalog-dropdown-container {
    background: white;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 80px 40px;
}

/* Сетка каталога */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    margin-bottom: 60px;
}

.catalog-col-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.catalog-list li a {
    font-size: 20px;
}

.catalog-list li a:hover {
    color: #054F2A;
}

/* Анимации для пунктов меню */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-dropdown.active .catalog-col {
    animation: fadeInUp 0.4s ease forwards;
}

.catalog-dropdown.active .catalog-col:nth-child(1) {
    animation-delay: 0.05s;
}

.catalog-dropdown.active .catalog-col:nth-child(2) {
    animation-delay: 0.1s;
}

.catalog-dropdown.active .catalog-col:nth-child(3) {
    animation-delay: 0.15s;
}

.catalog-dropdown.active .catalog-col:nth-child(4) {
    animation-delay: 0.2s;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .catalog-dropdown {

        padding: 0 20px;

    }

}

@media (max-width: 1300px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

@media (max-width: 768px) {
    .catalog-dropdown-container {
        padding: 20px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .catalog-col-title {
        font-size: 18px;
    }
}

/* Анимации для пунктов меню */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-dropdown.active .catalog-col {
    animation: fadeInUp 0.4s ease forwards;
}

.catalog-dropdown.active .catalog-col:nth-child(1) {
    animation-delay: 0.05s;
}

.catalog-dropdown.active .catalog-col:nth-child(2) {
    animation-delay: 0.1s;
}

.catalog-dropdown.active .catalog-col:nth-child(3) {
    animation-delay: 0.15s;
}

.catalog-dropdown.active .catalog-col:nth-child(4) {
    animation-delay: 0.2s;
}

/* home-up-categ */
.breadcrumb {
    margin-bottom: 40px;
}

.breadcrumb-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

main {
    margin-top: 150px;
}

h2 {
    margin-bottom: 40px;
}

.home-up-categ .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-up-categ-catPage {
    margin-top: 40px;
}

.home-up-categ-catPage .container {
    display: block;
}

.home-up-categ-up {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-up-categ-item {

    border-radius: 40px;
    position: relative;
    padding: 50px 30px 30px 30px;
    height: 600px;
    overflow: hidden;
}

.green {
    background-color: var(--color-green);
}

.orange {
    background-color: var(--color-orange);
}

.yellowWhite {
    background-color: var(--color-yellowWhite);
}

.yellow {
    background-color: var(--color-yellow);
}

.home-up-cat-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 32px;
    font-weight: 600;
    max-width: 250px;
}

.home-up-cat-img {
    position: absolute;
    right: 0;
    bottom: 0;
}

.arrow-box {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(14.15px);
    border-radius: 60px;
    padding: 13px;
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-up-categ-item:hover .arrow-box {
    transform: translate(5px, -5px);
}

.mobile-svg {
    display: none;
}

@media (max-width:1750px) {

    .home-up-categ .container,
    .home-up-categ-up {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-svg {
        display: block;
    }

    .desktop-svg {
        display: none;
    }

    .home-up-categ-item {
        height: 350px;
    }

    .home-up-cat-img {
        inline-size: 60%;
        bottom: 0;
    }

    .blog-title {
        font-size: 20px !important;
    }
}

@media (max-width:1100px) {
    .home-up-cat-title {
        font-size: 28px;
    }

    .breadcrumb {
        font-size: 18px;
    }


}

@media (max-width:600px) {

    .home-up-categ .container,
    .home-up-categ-up {
        grid-template-columns: repeat(1, 1fr);
    }

    .blog-filters {
        flex-direction: column;
    }

    .breadcrumb {
        font-size: 16px;
    }

    .blog-filter {
        padding: 15px 20px !important;
    }

}

@media (max-width:480px) {
    .home-up-categ-item {
        height: 330px;
    }

    .header-btn,
    .input-header {
        font-size: 16px;
    }

    .h-up-r a {
        font-size: 14px;
    }

    h2 {
        font-size: 26px !important;
    }

    .cat-slider-padding {
        padding: 40px 0 100px 0 !important;
    }

    .cat-slider-bg-green {
        margin-top: 100px !important;
    }



    .cat-btn {
        font-size: 16px !important;
    }
}

/* cat-slider */

.mt100 {
    margin-top: 100px;
}

.cat-slider-header-btns img {
    cursor: pointer;
}

.cat-slider-header-btns img:hover {
    transform: scale(1.1);
}

/* Убираем стандартные иконки Swiper и используем свои */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.cat-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cat-slider-header h2 {
    margin-bottom: 0;
}

h2 {
    font-size: 64px;
    font-weight: 300;
}

.cat-slider-header-btns {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cat-items {
    margin-top: 20px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 40px;
    background-color: white;
}

.cat-title-art {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-item-img-box {
    border-radius: 40px;
    overflow: hidden;
}

.cat-item-img-box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.cat-price {
    font-weight: 500;
    font-size: 24px;
}

.cat-title {
    font-size: 20px;
}

.cat-art {
    font-size: 12px;
    font-weight: 300;
}

.cat-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-top: 20px;
    border: 1px solid white;
}

.cat-slider-bg {
    border-radius: 40px 40px 0 0;
}

.Vector1,
.Vector2 {
    position: absolute;
}

.Vector1 {
    top: 150px;
    left: 0;
}

.Vector2 {
    bottom: 0px;
    right: 0;
}

.cat-slider-btn:hover {
    box-shadow: 4px 4px 10px rgba(255, 255, 255, 0.342);
}

.cat-slider-padding {
    padding: 40px 0 140px 0;
}

.cat-slider-bg h2 {
    color: white;
}

.cat-slider-position {
    position: relative;
}

.cat-slider-bg-green {
    margin-top: 272px;
    background-color: var(--color-green);
}

.cat-slider-bg-back-green {
    background-color: var(--color-green);
}

.cat-slider-bg-orange {
    background-color: var(--color-orange);
}

.cat-slider-bg-yellowWhite {
    background-color: var(--color-yellowWhite);
}

.cat-slider-bg-yellow {
    background-color: #E9B83D;
}

.cat-slider-bg-yellow-pos {
    background: url('../images/yel-fon.png'); background-repeat: no-repeat; background-size: cover;
}

@media (max-width:1600px) {
    .cat-slider-bg-green {
        margin-top: 250px;
    }
}

/* home-blog */
.blog-filters {
    margin: 40px 0 20px 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.blog-filters button {
    font-size: 24px;
    font-weight: 500;
}

.blog-all {
    border: 1px solid white;
}
.blog-filter-btn.active{
 border: 1px solid white; background-color: white !important; color: black;
}
.blog-filter {
    color: rgba(0, 0, 0, 0.416);
    border: 1px solid rgba(0, 0, 0, 0.416);
    background: none;
}

.blog-filter:hover,
.btn-home-blog:hover {
    background: rgba(0, 0, 0, 0.074);
}

.blog-box {
    display: grid;
    grid-template-columns: 790px 1fr;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-l {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
}

.blog-img-box {
    border-radius: 40px;
    overflow: hidden;
}

.blog-img-box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.blog-subdesc {
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-subdesc p {
    font-size: 16px;
}

.blog-r-subdesc p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.745);
}

.blog-title {
    font-size: 24px;
}

.blog-desc {
    font-weight: 300;
    font-size: 12px;
}

.blog-r-desc {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.745);
}

.blog-r {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 770px;
}

.blog-r-up {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-r-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-home-blog {
    border: 1px solid black;
    width: max-content;
    font-weight: 500;
    margin-top: 53px;
    background: none;
}


/* page-blog */

.blog-boxPage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.blog-item1 {
    grid-area: 1 / 1 / 2 / 3;
}

.blog-item2 {
    grid-area: 1 / 3 / 2 / 4;
}

.blog-item3 {
    grid-area: 1 / 4 / 2 / 5;
}

.blog-item4 {
    grid-area: 2 / 1 / 3 / 2;
}

.blog-item5 {
    grid-area: 2 / 2 / 3 / 3;
}

.blog-item6 {
    grid-area: 2 / 3 / 3 / 5;
}

.blog-img-box-item {
    aspect-ratio: 1/0.96;
}

/* blog-detail-Page */
@media (max-width:1500px) {
    .blog-box {
        grid-template-columns: 1fr;
    }

    .blog-r {
        max-width: 100%;

    }

    .blog-img-box {
        width: 100%;
    }

    .btn-home-blog {
        width: 100%;
        justify-content: center;
    }
    .blog-filters button{font-size: 20px;}
}

.blog-boxPage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.blog-item1 {
    grid-area: 1 / 1 / 2 / 3;
}

.blog-item2 {
    grid-area: 1 / 3 / 2 / 4;
}

.blog-item3 {
    grid-area: 1 / 4 / 2 / 5;
}

.blog-item4 {
    grid-area: 2 / 1 / 3 / 2;
}

.blog-item5 {
    grid-area: 2 / 2 / 3 / 3;
}

.blog-item6 {
    grid-area: 2 / 3 / 3 / 5;
}

.blog-img-box-item {
    aspect-ratio: 1/0.96;
}

.breadcrumb-box-detail {
    justify-content: center;
}

.blog-box-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 980px;
}

.blog-box-detail-info-box {
    display: flex;
    justify-content: center;
}

.bbd-title {
    font-size: 36px;
}

.blog-detail-hr {
    height: 2px;
    background-color: #054F2A;
    width: 100%;
}

.blog-detail-box-desc {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 5vh, 52px);
}

.blog-deatail-items {margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 8px;
}

/* ≤ 1024px — планшет горизонтальный */
@media (max-width: 1024px) {
    .blog-boxPage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .blog-item1 {
        grid-area: 1 / 1 / 2 / 3;
    }

    .blog-item2 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .blog-item3 {
        grid-area: 2 / 2 / 3 / 3;
    }

    .blog-item4 {
        grid-area: 3 / 1 / 4 / 2;
    }

    .blog-item5 {
        grid-area: 3 / 2 / 4 / 3;
    }

    .blog-item6 {
        grid-area: 4 / 1 / 5 / 3;
    }

    .bbd-date,
    .blog-detail-desc {
        font-size: 18px;
    }

    .bbd-title {
        font-size: 24px;
    }
}

/* ≤ 768px — планшет вертикальный */
@media (max-width: 768px) {

    .bbd-date,
    .blog-detail-desc {
        font-size: 16px;
    }

    .blog-boxPage {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-item1 {
        grid-area: 1 / 1 / 2 / 3;
    }

    .blog-item2 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .blog-item3 {
        grid-area: 2 / 2 / 3 / 3;
    }

    .blog-item4 {
        grid-area: 3 / 1 / 4 / 2;
    }

    .blog-item5 {
        grid-area: 3 / 2 / 4 / 3;
    }

    .blog-item6 {
        grid-area: 4 / 1 / 5 / 3;
    }
}

/* ≤ 480px — мобильный */
@media (max-width: 480px) {
    .blog-boxPage {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }

    .blog-item1,
    .blog-item2,
    .blog-item3,
    .blog-item4,
    .blog-item5,
    .blog-item6 {
        grid-area: auto;
    }

    .blog-img-box {
        height: 160px;
    }
}

/* ≤ 320px — минимальный экран */
@media (max-width: 320px) {
    .blog-boxPage {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .blog-item1,
    .blog-item2,
    .blog-item3,
    .blog-item4,
    .blog-item5,
    .blog-item6 {
        grid-area: auto;
    }
}


.cookie-desc {
    font-size: 16px;
    color: #565656 !important;
}
.cookie-desc a {
    color: #565656 !important;
}

.cookie-btn {
    background-color: #054F2A;
    border: 1px solid #054F2A;
    color: white;
    font-weight: 500;
    font-size: 24px;
}

.cookie-btn:hover {
    background: none;
    color: #054F2A;

}

/* Стили для cookie контейнера */
.cookie {
    position: fixed;
    right: 0;
    bottom: 40px;
    z-index: 10000;
    display: none;
}

.cookie-box {
    padding: 20px;
    display: flex;
    gap: 60px;
    border-radius: 20px;
    background: white;
    max-width: 803px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Анимация появления */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Анимация исчезновения */
@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Класс для анимации появления */
.cookie.show .cookie-box {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Класс для анимации исчезновения */
.cookie.hide .cookie-box {
    animation: slideDown 0.3s ease forwards;
}

/* footer */
footer {
    background-image: url('../images/footer/bg-footer.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-color: white;
    margin-top: 100px;
}

footer .container {
    padding-top: 54px !important;
    padding-bottom: 76px !important;
}

.footer-box {
    display: grid;
    grid-template-columns: 450px 1fr;
    column-gap: 100px;
}

.footer-l {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-item,
.footer-r-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-item a:hover {
    color: #054F2A;
}

.footer-i-title,
.footer-r-item-title {
    font-size: 40px;
    font-weight: 300;
}

.hr-down {
    height: 2px;
    width: 100px;
    background: #054F2A;
}

.footer-i-desc {
    font-size: 24px;
    font-weight: 300;
}

footer .header-btn {
    border: 1px solid black;
    width: max-content;
}

.footer-r {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer-r-up {
    display: flex;
    gap: 60px;
}

.footer-r-item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-r-down-item-list a img {
    border-radius: 50%;
    overflow: hidden;
}

.footer-r-down-item-list a:hover img {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.171);
}

.footer-r-down-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hover-grey-btn:hover {
    background-color: rgba(0, 0, 0, 0.074);
}

.footer-down {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-down-desc,
.footer-down-a {
    font-size: 12px;
}

.footer-down-a:hover {
    color: #054F2A;
}

.footer-down-pol-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── 1280px — сжимаем колонку левой части ── */
@media (max-width: 1280px) {
    .footer-box {
        grid-template-columns: 360px 1fr;
        column-gap: 60px;
    }

    .footer-i-title,
    .footer-r-item-title {
        font-size: 32px;
    }

    .footer-i-desc {
        font-size: 20px;
    }
}

/* ── 1024px — переходим на одну колонку ── */
@media (max-width: 1024px) {
    .footer-box {
        grid-template-columns: 1fr;
        row-gap: 50px;
    }

    .footer-l {
        gap: 32px;
    }

    .footer-i-title,
    .footer-r-item-title {
        font-size: 28px;
    }

    .footer-i-desc {
        font-size: 18px;
    }

    .footer-r {
        gap: 40px;
        flex-direction: row;
    }

    .footer-r-up {
        gap: 40px;
    }
}

@media (max-width: 885px) {
    footer {
        margin-top: 60px;
    }

    .footer-r {
        flex-direction: column;
    }

    footer .container {
        padding-top: 40px;
        padding-bottom: 50px;
    }


    .footer-r-up {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-down {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 32px;
    }

    .footer-down-pol-box {
        gap: 12px;
    }
}

/* ── 480px — крупный телефон ── */
@media (max-width: 480px) {
    footer {
        margin-top: 40px;
    }

    footer .container {
        padding-top: 30px;
        padding-bottom: 36px;
    }

    .footer-l {
        gap: 24px;
    }

    .footer-item,
    .footer-r-item {
        gap: 14px;
    }

    .footer-i-title {
        font-size: 18px;
    }

    .footer-i-desc {
        font-size: 13px;
    }

    .footer-r {
        gap: 30px;
    }

    .footer-r-up {
        flex-direction: column;
        gap: 24px;
    }

    .footer-r-item-list {
        gap: 14px;
    }

    .footer-down {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 24px;
    }

    footer .header-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-r-down-item-list a img {
        width: 40px;
    }

    .footer-i-title,
    .footer-r-item-title {
        font-size: 20px !important;
    }

    .footer-i-desc {
        font-size: 16px !important;
    }

    .footer-r-down-item-list {
        gap: 10px !important;
    }

    .footer-r-item-list a {
        font-size: 16px;
    }

    .footer-down-desc,
    .footer-down-a {
        font-size: 11px !important;
    }

    .bread {
        font-size: 16px !important;
    }
}

/* catPage */
.home-up-categ-down {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    gap: 20px;
}

.home-up-categ-down .home-up-categ-item {
    height: 180px;
    padding: 50px 30px;
}

.home-up-categ-down .home-up-categ-item .home-up-cat-img {
    inline-size: 40%;
    right: 13%;
    bottom: -84px;
}

.grey {
    background-color: #4D4D4D;
}

.white {
    background-color: white;
}

.home-up-categ-down .home-up-categ-item .arrow-box {
    right: 30px !important;
    bottom: 47px;
    width: 73px;
    left: auto;
}

@media (max-width: 1500px) {
    .home-up-categ-down .home-up-categ-item .home-up-cat-img {
        inline-size: 47%;
    }
}

@media (max-width: 930px) {
    .home-up-categ-down .home-up-categ-item .home-up-cat-img {
        inline-size: 57%;
    }

    .home-up-categ-down {
        grid-template-columns: 1fr;
    }

    .home-up-categ-down .home-up-categ-item .home-up-cat-img {
        inline-size: 51%;

    }

}

@media (max-width: 480px) {

    .home-up-categ-down .home-up-categ-item .home-up-cat-img {
        inline-size: 58%;
        right: 0;
    }

}

@media (max-width: 380px) {

    .home-up-categ-down .home-up-categ-item .home-up-cat-img {
        inline-size: 65%;
    }

}

/* cat-category-page */
.cat-filters-box-center {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.cat-category-box-filters {
    display: flex;
    align-items: stretch;
    gap: clamp(20px, 5vw, 100px);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 8px;
}

.cat-category-box-filters button {
    white-space: nowrap;
}

.cat-category-box-filters::-webkit-scrollbar {
    display: none;
}

.cat-category-items {
    margin-top: 40px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .cat-category-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-category-items {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 420px) {
    .cat-category-items {
        grid-template-columns: 1fr;
    }

}

/* фильтры в каталоге */
.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.filter-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.filter-panel__close,
.anketa-panel__close {
    background: none;
    border: none;
    border-radius: 50%;
}

.filter-panel__close:hover,
.anketa-panel__close:hover {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.17);
}

.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-panel__header-l {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header */
.filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 33px 30px 40px 30px;
    flex-shrink: 0;
}

.filter-panel__title {
    font-size: 32px;
    font-weight: 500;
}

/* Body — скролл если контента много */
.filter-panel__body {
    overflow-y: auto;
    padding: 8px 0;
}

/* Filter group */
.filter-group {
    border-bottom: 1px solid #676767;
}

.filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #111;
    text-align: left;
    transition: color 0.2s;
}

.filter-group__toggle:hover {
    color: #054F2A;
}

.filter-group__arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #555;
}

.filter-group__content {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 4px 32px 24px;
}

.filter-group__content--visible {
    display: flex;
}

/* Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input {
    display: none;
}
.filter-panel__body .filter-checkbox__box{
 border: 1px solid black !important;
}
.filter-checkbox__box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #898989;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.filter-checkbox input:checked+.filter-checkbox__box {
    background: black;
    border-color: black;
}

.filter-group__toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Класс для поворота стрелки */
.filter-group__toggle.rotate svg {
    transform: rotate(180deg);
}

.filter-checkbox__label {
    font-size: 24px;
    font-weight: 300;
    color: #222;
}

.filter-checkbox:hover .filter-checkbox__box {
    border-color: #054F2A;
}

/* Footer */
.filter-panel__footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px;
}

.filter-panel__apply {
    width: 100%;
    padding: 20px;
    background: #054F2A;
    color: white !important;
    border: none;
    border-radius: 40px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s;

       /* Фикс для iOS */
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}



/* Дополнительно для WebKit (Chrome, Safari на iOS) */
.filter-panel__apply::-webkit-search-decoration,
.filter-panel__apply::-webkit-search-cancel-button,
.filter-panel__apply::-webkit-search-results-button,
.filter-panel__apply::-webkit-search-results-decoration {
    -webkit-appearance: none;
}
.filter-group__toggle span {
    font-size: 24px;
    font-weight: 500;
}

.filter-panel__apply:hover {
    background: #033d20;
    transform: translateY(-1px);
}

.filter-panel__apply:active {
    transform: translateY(0);
}

.filter-panel__reset {
    width: 100%;
    padding: 20px;
    background: none;
    color: #333;
    border: 1.5px solid #ddd;
    border-radius: 40px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.filter-panel__reset:hover {
    border-color: #054F2A;
    color: #054F2A;
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
    .filter-panel__title {
        font-size: 24px;
    }

    .filter-group__toggle span,
    .filter-checkbox__label,
    .filter-panel__apply,
    .filter-panel__reset {
        font-size: 20px;
    }

    .filter-checkbox__box {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .filter-panel {
        width: 100vw;
    }

    .filter-panel__header,
    .filter-group__toggle,
    .filter-group__content,
    .filter-panel__footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-panel__title {
        font-size: 20px;
    }

    .filter-group__toggle span,
    .filter-checkbox__label,
    .filter-panel__apply,
    .filter-panel__reset {
        font-size: 18px;
    }
}


/* cat-category-corp */
.cat-category-items-box {
    margin-top: 20px;
    border-radius: 100px 100px 0 0;
    background-color: #4D4D4D;
    padding-top: 40px;
    padding-bottom: 100px;
}

.cat-category-items-up {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

.cat-category-item-up {
    width: 100%;
    padding: 40px 30px;
    background-color: #F5F5F5;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.cci-l {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 424px;
}

.cat-category-item-up-title {
    font-size: 32px;
    font-weight: 600;
}

.cat-category-item-up-desc {
    font-size: 20px;
    font-weight: 300;
}
@media (max-width:1100px) {
    .cat-category-items-up{
        flex-direction: column;
    }
    .cat-category-item-up-title{font-size: 28px;}
}
@media (max-width:758px) {
  .cookie{right: 0;}
    .cat-category-item-up-title{font-size: 22px;}
    .cat-category-item-up-desc{font-size: 18px;} 
    .cat-category-items-box{border-radius: 50px 50px  0 0;}
}
/* product */
/* Сетка для изображений - только это меняем */
.detail-inner {
    display: grid;
    grid-template-columns: 185px 800px 1.2fr;
    gap: 24px;
    align-items: start;
}

/* Миниатюры */
.detail-thumbs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.detail-thumb.active,
.detail-thumb:hover {
    border-color: #2d6a2d;
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Главное изображение */
.detail-main-img {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: #e8e0d5;
    aspect-ratio: 1 / 1;
}

.detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-orange);
    color: white;
    font-size: 20px;
    font-weight: 500;
    padding: 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-badge img {
    width: 24px;
}

/* ===== INFO PANEL ===== */
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-halal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 40px;
    padding: 30px 20px;
    font-size: 20px;
}

.detail-halal-desc {
    font-size: 19px;
    color: var(--color-green);
}

.detail-box-info {
    padding: 40px 20px;
    border-radius: 40px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-art {
    font-size: 14px;
    font-weight: 300;
}

.detail-name {
    font-size: 24px;
    font-weight: 500;

}

.detail-price {
    font-size: 40px;
    font-weight: 500;
}


.detail-stock {
    font-size: 16px;
    font-weight: 300;
}

.detail-stock b {
    color: var(--color-green);
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-cart {
    flex: 1;
    background: var(--color-green);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 20px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cart:hover {
    background: #245824;
}

.btn-oneclick {
    background: white;
    border: 1px solid white;
    cursor: pointer;
    text-align: center;
    padding: 20px;
    border-radius: 40px;
}

.btn-oneclick:hover {
    color: #2d6a2d;
}

.detail-about {
    background-color: white;
    border-radius: 40px;
    padding: 20px;
}

.detail-about-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-green);
    margin-bottom: 10px;
}

.product-filters {
    display: grid;
    grid-template-columns: 1000px 1fr;
}

.product-filters-box {
    display: flex;
    flex-direction: column;
}

.product-filterPage {
    background: white;
    border-radius: 40px;
    padding: 40px 20px; grid-template-columns: 1fr;
}

.product-filterPage-ch {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-filterPage-item {
    display: flex;
    align-items: baseline;
}

.product-filterPage-t {
    flex-shrink: 0;
    white-space: nowrap;
}

.product-filterPage-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(11, 101, 56, 0.2);
    margin: 0 10px;
    height: 12px;
}

.product-filterPage-desc {
    color: #054F2A;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ===== RESPONSIVE ===== */

/* ≤ 1024px */
@media (max-width:1800px) {
    .detail-inner {
        grid-template-columns: 100px 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }

    .detail-thumb {
        border-radius: 25px;
    }

.product-filters{
grid-template-columns: 1.2fr 1fr;
}
}

@media (max-width: 1024px) {
    .product-filters {
        grid-template-columns: 1fr;
    }

    .detail-name {
        font-size: 17px;
    }

    .detail-price {
        font-size: 24px;
    }

    .detail-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .detail-thumbs {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        flex-direction: row;
        gap: 10px;
        margin-top: -15px;
    }

    .detail-main-img {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .detail-info {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .btn-cart {
        font-size: 20px;
    }
}

/* ≤ 768px — thumbs уходят наверх горизонтально */
@media (max-width: 768px) {

    .product-filters-box .blog-filters {
        flex-direction: column;
    }

    .detail-name,
    .detail-about-text {
        font-size: 16px;
    }

    .detail-price,
    .detail-about-title {
        font-size: 20px;
    }

    .detail-badge {
        font-size: 16px;
        padding: 15px 20px;
    }

    .blog-filters button {
        font-size: 16px !important;
    }
}


/* ≤ 480px */
@media (max-width: 480px) {

    .breadcrumb {
        font-size: 13px;
    }

    .container {
        padding: 0 14px;
    }

    .detail-halal-desc {
        font-size: 16px;
    }

    .btn-cart {
        font-size: 16px;
    }



    .btn-fav {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }


}

@media (max-width: 900px) {
    .product-items .cat-item-img-box {
        width: 200px;
    }
}

/* contact */
.contact-box {
    display: grid;
    grid-template-columns: 580px 1fr;
    gap: 20px;

}

.contact-l {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    padding: 40px;
    border-radius: 40px;
}

.contact-l .footer-item {
    gap: 5px;
}

iframe {
    border: none;
    height: 100%;
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
}

.vop {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.vop-box {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vop-t {
    font-size: 48px;
    font-weight: 300;
}

.vop-desc {
    font-size: 24px;
    max-width: 370px;
    font-weight: 300;
}

.vop button {
    width: max-content;
}

@media (max-width: 1600px) {
    .footer-i-title {
        font-size: 28px;
    }

    .footer-i-desc {
        font-size: 18px;
    }

    .bread {
        font-size: 18px;
    }

    .vop-img {
        width: 500px;
    }
}

@media (max-width: 1100px) {
    .contact-box {
        grid-template-columns: repeat(2, 1fr);

    }

    .vop-t {
        font-size: 36px;
    }

    .vop-img {
        width: 300px;
    }
}

@media (max-width: 900px) {
    .contact-box {
        grid-template-columns: 1fr;
    }

    iframe {
        height: 400px;
    }

    .vop-desc {
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    .vop-img {
        display: none;
    }

    .vop-t {
        font-size: 28px;
    }

    .vop-desc {
        font-size: 20px;

    }
}

@media (max-width: 480px) {
    .vop button {
        width: 100%;
        justify-content: center;
    }

    .vop-t {
        font-size: 20px;
    }

    .vop-desc {
        font-size: 16px;

    }

    .vop-box {
        gap: 20px;
    }
}

/* оплата и доставка */
.od-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.od-op {
    padding: 40px;
    background-color: white;
    border-radius: 40px;
}

.op_d-title-up {
    font-size: 36px;
    margin-bottom: 40px;
}

.op_items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.op-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.op-item img {
    width: 64px;
}

.op_d-title {
    font-size: 32px;
}

.op_d-desc {
    font-weight: 300;
}

@media (max-width: 1600px) {
    .op_d-title-up {
        font-size: 28px;
    }

    .op_d-title {
        font-size: 24px;
    }

    .op_d-desc {
        font-size: 18px;
    }
}

@media (max-width: 920px) {
    .od-box {
        flex-direction: column;
    }

}

@media (max-width: 480px) {
    .op_d-title-up {
        font-size: 20px;
    }

    .op_d-title {
        font-size: 18px;
    }

    .op_d-desc {
        font-size: 16px;
    }

}

/* мастер */
.masterPage-up {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: clamp(20px, 5vh, 190px);
}

.masterPage-up button {
    width: max-content;
}

.masterPage-up-l {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.master-t {
    font-size: 40px;
}

.master-desc {
    font-weight: 300;
}

.masterPage-up-r img {
    width: 100%;
    height: 100%;
}

.master-adv {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.master-adv img {
    width: 48px;
}

.master-adv .footer-item {
    gap: 15px;
}

.master-adv-desc-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.master-adv-t {
    font-size: 24px;
    font-weight: 500;
}

.master-adv-d {
    font-size: 16px;
    color: #898989;
}

.vop-master {
    align-items: baseline;
}

.vop-r {
    display: flex;
    gap: 20px;
}

.vop-r-item {
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 30px;
    height: 600px;
    width: 385px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.vop-r-item1 {
    background-image: url('../images/master/ank11.png');
}

.vop-r-item2 {
    background-image: url('../images/master/ank2.png');
}

.vop-item-t {
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.vop-item-d {
    font-size: 16px;
    color: white;
}

.anketa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.anketa-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.anketa-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.anketa-panel.active {
    transform: translateX(0);
}



.anketa-panel__close:hover {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, .17);
}

.anketa-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 30px 0px;
    flex-shrink: 0;
}

.anketa-panel__header-title h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px;
}

.anketa-panel__header-title p {
    font-size: 24px;
}

.anketa-panel__header-title {
    max-width: 400px;
}

.anketa-panel__body {
    max-width: 432px;
    overflow-y: auto;
    padding: 60px 0 60px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.anketa-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anketa-field label {
    font-size: 16px;
    margin-left: 20px;
}

.anketa-field input {
    max-width: 400px;
    width: 100%;
    padding: 28px 20px;
    border: 1px solid #898989;
    border-radius: 40px;
    font-size: 24px;
    font-weight: 500;
    background: #F5F5F5;

    transition: border-color .2s;
}

.anketa-field input:focus {
    border-color: #054F2A;
}

.anketa-field input.error {
    border-color: #d63031;
}

.anketa-field__error {
    font-size: 13px;
    color: #d63031;
    padding-left: 18px;
    display: none;
}

.anketa-field__error.visible {
    display: block;
}

.anketa-panel__footer {
    flex-shrink: 0;
    padding: 16px 30px 28px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anketa-panel__apply {
    max-width: 400px;
    padding: 20px;
    background: #0B6538;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.anketa-panel__apply:hover {
    background: #033d20;
}

.anketa-panel__note {
    max-width: 400px;
    font-size: 14px;
    color: #293835;
}

.anketa-panel__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    z-index: 2;
}



.anketa-form-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.anketa-success-view {
    display: none;
    flex: 1;
    padding: 30px;
}

.anketa-success-view.visible {
    display: flex;
}

.anketa-success__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 400px;
    width: 100%;
}

.anketa-success__text {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
}

.anketa-success__btn {
    width: 100%;
}

@media (max-width: 480px) {
    .anketa-success__text {
        font-size: 22px;
        margin-bottom: 0;
    }

}

@media (max-width: 1600px) {
    .master-t {
        font-size: 36px;
    }

    .vop-master {
        flex-direction: column;
    }

    .vop-r {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .vop-r-item {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 920px) {
    .master-t {
        font-size: 28px;
    }

    .master-desc {
        font-size: 18px;
    }
}

@media (max-width: 800px) {
    .master-adv {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .masterPage-up {

        grid-template-columns: 1fr;
    }

    .masterPage-up-r {
        display: none;
    }

    .vop-r {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .anketa-panel__header-title p {
        font-size: 20px;
    }

    .master-t {
        font-size: 20px;
    }

    .masterPage-up button {
        width: 100%;
    }

    .master-desc {
        font-size: 16px;
    }

    .anketa-field input {
        font-size: 20px;
    }

    .vop-r-item {
        padding: 40px 20px;
    }

    .anketa-panel__apply {
        font-size: 16px;
    }

    .masterPage-up-l {
        gap: 20px;
    }

    .vop-item-t {
        font-size: 24px;
    }

    .anketa-panel__body {
        padding: 30px;
    }

    .anketa-field input {
        padding: 20px;
    }
}

@media (max-width: 434px) {
    .anketa-panel__body {
        padding: 30px;
    }
}

/* error */
.errorPage .container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.error-box {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.error-t {
    font-size: 249px;
    font-weight: 500;
    font-family: "Playpen Sans", cursive;
    color: #E7B12A;
}

.error-d {
    font-weight: 300;
    font-size: 40px;
    max-width: 700px;
}

.btn-error {
    background-color: #E7B12A;
    color: white;
    border-radius: 40px;
    padding: 20px;
    width: max-content;
    gap: 10px;
}

.error-img-box img {
    width: 100%;
    height: 100%;
}

@media (max-width:1600px) {
    .error-d {
        font-size: 28px;
    }

    .error-t {
        font-size: 200px;
    }
}

@media (max-width:1100px) {
    .error-d {
        font-size: 20px;
        max-width: 400px;
    }

    .error-t {
        font-size: 150px;
    }
}

@media (max-width:600px) {
    .error-img-box {
        display: none;
    }

    .errorPage .container {
        display: block;
    }

    .error-box {
        align-items: center;
    }

    .error-d {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width:480px) {
    .error-d {
        font-size: 18px;
    }

    .error-box {
        gap: 20px;
    }

    .error-t {
        font-size: 100px;
    }

    .btn-error {
        font-size: 16px;
    }
}


/* about */

.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.about-l {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-up {
    font-size: 40px;
}

.about-down {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-p {
    color: #898989;
}

.about-span {
    color: black;
}

.about-r {
    overflow: hidden;
    border-radius: 40px;
}

.about-r img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.doc-items {
    margin-top: 20px;
}

.doc-item {
    padding: 40px 20px 20px 20px;
}

.doc-item .blog-title {
    font-size: 20px;
}

.about-vop-box,
.about-btn-box {
    display: flex;
    gap: 20px;
}

@media (max-width:1810px) {
    .about-img {
        width: 400px;
    }
}

@media (max-width:1600px) {
    .about-up {
        font-size: 30px;
    }
}

@media (max-width:1080px) {
    .about-up {
        font-size: 25px;
    }

    .about-p {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-r {
        height: 300px;
    }

    .about-img {
        display: none;
    }

    .about-vop {
        display: block;
    }
}

@media (max-width:480px) {
    .about-btn-box {
        flex-direction: column;
    }

    .about-up {
        font-size: 20px;
    }
}

/* cart */
.cart-page-box { margin-top: 40px;
    display: flex;
    justify-content: center;
}

#cartStep2 {
    width: 100%;
}

.cart-up {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ch-l {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ch-p {
    font-weight: 300;
    font-size: 48px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    height: 240px;
    display: flex;
    gap: clamp(20px, 4vh, 90px);
    background-color: white;
    border-radius: 40px;
    padding: 20px;
}

.cart-item-l {
    display: flex;
    gap: 20px;
}

.cart-img-box {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 40px;
    flex-shrink: 0;
}

.cc-title {
    max-width: 500px;
}

.cart-img-box img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.cart-content-center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-content-up {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-art {
    font-size: 14px;
    font-weight: 300;
}

.cc-title {
    font-size: 24px;
    font-weight: 500;
}

.cart-content-down {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cc-price {
    font-weight: 500;
    font-size: 40px;
}

.cc-price-sk {
    font-weight: 500;
    font-size: 24px;
    color: #898989;
    text-decoration: line-through;
}

.cart-content-r {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.delCart {
    display: flex;
    justify-content: end;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    background: none;
    max-width: max-content;
    justify-items: end;
}

.cart-calc {
    display: flex;
    align-items: center;
    gap: 37px;
    background-color: #F5F5F5;
    border-radius: 40px;
    padding: 13px 10px;
}

.cart-calc button {
    cursor: pointer;
    background: none;
    border: none;
}

.cart-calc button:hover,
.delCart:hover {
    opacity: 0.7;
}

.cart-down-box {
    margin-top: 20px;

    display: flex;
    justify-content: center;
}

.cart-down-box .anketa-panel__apply {
    max-width: 100%;
}

.cart-down {
    max-width: 600px;
}

.cart-down-content {
    border-radius: 40px;
    padding: 20px;
    background-color: white;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-down-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cd-price {
    color: #054F2A;
}

.cd-title-itog {
    font-size: 24px;
    font-weight: 500;
}

.cart-politic {
    margin-top: 20px;
    color: #293835;
    font-weight: 300;
}

/* 1200px */
@media (max-width: 1200px) {

    .ch-p {
        font-size: 40px;
    }

    .cc-title {
        font-size: 20px;
    }

    .cc-price {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
    }

    .cart-header .anketa-panel__apply {
        max-width: 100%;
        width: 100%;
    }

    .ch-r {
        width: 100%;
    }

    .cc-title {
        font-size: 18px;
    }

    .cart-item {
        flex-direction: column;
        gap: 0 !important;

    }

    .cart-item-l {
        height: 150px;
    }

    .cart-content-r {
        flex-direction: row-reverse;
        justify-content: end;
        gap: 20px;
    }

    .ch-p {
        font-size: 30px;
    }

    .cart-content-r {
        margin-top: 20px;
    }

    .cart-delivery-option__label,
    .cart-delivery-address__hint,
    .cart-delivery-address__input {
        font-size: 18px !important;
    }
}

@media (max-width: 580px) {
    .cc-price {
        font-size: 28px;
    }

    .cc-price-sk {
        font-size: 20px;
    }

    .cd-title-itog {
        font-size: 20px !important;
    }

    .cd-title {
        font-size: 18px;
    }

    .cart-item {
        flex-direction: column;
        gap: 0 !important;
        height: auto;

    }

    .cart-item-l {
        height: auto;
        flex-direction: column;
    }

    .cart-content-r {
        flex-direction: row-reverse;
        justify-content: end;
        gap: 20px;
    }


}

/* Шаги оформления */
.cart-checkout {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.cart-checkout__title {
    font-size: 48px;
    font-weight: 300;
    text-align: center;
}

.cart-checkout__btn {
    width: 100%;
    max-width: 100%;
}

/* Варианты доставки */
.cart-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.cart-delivery-option:has(input:checked) {
    background-color: white;
}

.cart-delivery-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 40px;
    border: 1.5px solid transparent;
    cursor: pointer;
    flex-wrap: wrap;
    transition: border-color .2s;
    position: relative;
}

.cart-delivery-option input[type="radio"] {
    display: none;
}

/* Невыбранный — граница */
.cart-delivery-option:not(:has(input:checked)) {
    border-color: #898989;
}

.cart-delivery-option__radio {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid #898989;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    margin-top: 2px;
}

.cart-delivery-option:has(input:checked) .cart-delivery-option__radio {
    background: black;
    border-color: black;
    background-image: url("../images/cart/gal.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.cart-delivery-option__label {
    font-size: 20px;
    font-weight: 400;
    color: #111;
    flex: 1;
    padding-top: 4px;
}

/* Блок адреса */
.cart-delivery-address {
    display: none;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    padding: 0 20px 40px 20px;
}

.cart-delivery-option:has(input:checked) .cart-delivery-address {
    display: flex;
}

.cart-delivery-address__hint {
    font-size: 20px;
}

.cart-checkout .anketa-field input,
.cart-checkout .anketa-panel__apply {
    max-width: 100%;
}

.cart-checkout .anketa-panel__note {
    font-size: 20px;
    max-width: 100%;
}

.cart-checkout .cart-contacts-footer {
    margin-top: 10px;
}

.cart-checkout .anketa-panel__footer {
    gap: 10px;
}

.cart-del .anketa-field__error {
    margin-top: 5px;
    padding: 0;
}

.cart-delivery-address__input {
    width: 100%;
    padding: 5px 0;
    border: none;
    border-bottom: 1.5px solid #ccc;
    font-size: 20px;
    font-weight: 300;
    background: transparent;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.cart-delivery-address__input::placeholder {

    color: #0000003c;
    font-weight: 300;

}

.cart-delivery-address__input:focus {
    border-color: #054F2A;
}

.cart-delivery-address__input.error {
    border-color: #d63031;
}

.cart-delivery-address__note {
    font-size: 14px;
}

/* Контакты */
.cart-contacts-body {
    width: 100%;
    padding: 0 !important;
    max-width: 100%;
}

.cart-contacts-footer {
    width: 100%;
    padding: 0 !important;
    border: none !important;
}

#cartStep4 .anketa-success__text,   .cart-page-empty .anketa-success__text{
    font-weight: 300;
    text-align: center;
    font-size: 48px;
    margin-bottom: 0;
}

#cartStep4 .anketa-success__body,  .cart-page-empty .anketa-success__body {
    align-items: center;
    gap: 0;
    max-width: 705px;
}
 .cart-page-empty .anketa-success__body {
    gap: 20px !important;
}

#cartStep4 .anketa-success__text-desc, .cart-page-empty .anketa-success__text-desc{
    font-weight: 300;
    text-align: center;
    color: #898989;
    font-size: 24px;
}
 .cart-page-empty .anketa-success__text-desc{
    max-width: 310px;
}
#cartStep4 .anketa-success__text-desc{
margin: 20px 0 40px 0;
    max-width: 500px;
}.anketa-cart-btn{width: max-content; padding: 17px 71px;}

.cart-page-empty{display: flex; flex-direction: column; align-items: center; }
@media (max-width: 1600px) {
  
    .cookie-desc {
        font-size: 18px;
    }

    .cookie-btn {
        font-size: 20px;
        padding: 10px 31px;
    }

    .cookie-box {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    #cartStep4 .anketa-success__text,   .cart-page-empty .anketa-success__text {
        font-size: 28px;
    }

    #cartStep4 .anketa-success__text-desc,   .cart-page-empty .anketa-success__text-desc {
        font-size: 20px;

    }

    #cartStep4 .anketa-success__img,  .cart-page-empty .anketa-success__img {
        width: 250px;
    }


    .cart-checkout__img {
        width: 200px;
    }

    .cart-checkout__title {
        font-size: 28px !important;
    }

    .cookie-desc {
        font-size: 12px;
    }

    .cookie-btn {
        font-size: 16px;
        padding: 10px 22px;
    }

    .cookie-box {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .cookie-box {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-checkout__title {
        font-size: 24px;
    }

    .cart-delivery-option__label {
        font-size: 18px;
    }

    .cart-checkout .anketa-panel__note {
        font-size: 18px;
    }   #cartStep4 .anketa-success__img,  .cart-page-empty .anketa-success__img {
        width: 150px;
    }

}