/* =========================================================
   БІСКВІТ • ІЗЮМ
   Единый стиль сайта
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #fffaf6;
    color: #21130d;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================================================
   ОБЩИЙ КОНТЕЙНЕР
   ========================================================= */

.site-header-new > *,
.main-header-new > * {
    width: 100%;
}

.top-info-inner-new,
.main-header-inner-new,
.hero-inner,
.catalog-inner,
.container {
    width: min(1400px, calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ========================================================= */

.site-header-new {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #b15d2e82;
    color: #fff;
    position: relative;
    z-index: 1000;
}

.top-info-new {
    width: 100%;
    min-height: 48px;
    background: #b15d2e82;
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.top-info-inner-new {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.top-item-new {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.social-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-new a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:  #b15d2e82;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: .2s ease;
}

.social-new a:hover {
    transform: translateY(-2px);
    opacity: .85;
}

.top-slogan-new {
    color: #ffd21c;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

/* =========================================================
   ОСНОВНАЯ ШАПКА
   ========================================================= */

.main-header-new {
    width: 100%;
    background:#b15d2e82;
    color: #fff;
    border-bottom: 3px solid #f5c400;
}

.main-header-inner-new {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* ЛОГОТИП */

.logo-new {
    flex: 0 0 auto;
    display: block;
    color: #ffd21c;
}

.logo-main-new {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.logo-sub-new {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================================
   НАВИГАЦИЯ
   ========================================================= */

.main-nav-new {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.main-nav-new a {
    height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;

    border-radius: 7px;
    transition:
        background .2s ease,
        color .2s ease;
}

.main-nav-new a:hover {
    color: #21130d;
    background: #ffd21c;
}

.main-nav-new a.nav-home-new,
.main-nav-new a.active,
.main-nav-new a[aria-current="page"] {
    color: #21130d;
    background: #b15d2e82;
}

/* ПОИСК */

.search-new {
    width: 42px !important;
    padding: 0 !important;
    font-size: 21px !important;
}

/* КОРЗИНА */

.cart-new {
    margin-left: 4px;
    padding: 0 16px !important;
    background: #ffd21c;
    color: #21130d !important;
    border-radius: 7px !important;
}

.cart-new:hover {
    background: #fff;
    color: #21130d !important;
}

.cart-new strong {
    margin-left: 5px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero,
.hero-new,
.home-hero {
    position: relative;
    width: 100%;
    height: 390px;
    min-height: 390px;
    overflow: hidden;
}

.hero img,
.hero-new img,
.home-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before,
.hero-new::before,
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(20, 10, 5, .78) 0%,
            rgba(20, 10, 5, .55) 38%,
            rgba(20, 10, 5, .15) 75%,
            rgba(20, 10, 5, .05) 100%
        );
}

.hero-inner {
    height: 100%;
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    color: #fff;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-content p {
    margin: 0 0 25px;
    max-width: 540px;
    font-size: 17px;
    line-height: 1.5;
    color: #fff;
}

.hero-content a,
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 25px;

    background: #fff;
    color: #21130d;

    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;

    transition: .2s ease;
}

.hero-content a:hover,
.hero-button:hover {
    background: #ffd21c;
    transform: translateY(-2px);
/* ===== СЛАЙДЕР 1580 × 580 БЕЗ ОБРЕЗАНИЯ ===== */

/* ===== ФИНАЛЬНАЯ НАСТРОЙКА СЛАЙДЕРА ===== */

.hero-slider {
    position: relative;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1580 / 580;
    min-height: 0 !important;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
}

.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}
/* ТОЧКИ СЛАЙДЕРА */

.hero-dots,
.slider-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dots span,
.slider-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.65);
    border-radius: 50%;
}

.hero-dots span.active,
.slider-dots span.active {
    width: 24px;
    border-radius: 10px;
    background: #fff;
}

/* =========================================================
   КАТАЛОГ
   ========================================================= */

.catalog {
    width: 100%;
    background: #fffaf6;
    padding: 34px 0 60px;
}

.catalog-inner {
    position: relative;
}

.catalog h2 {
    margin: 0 0 5px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    color: #21130d;
}

.catalog > p,
.catalog-inner > p {
    margin: 0 0 20px;
    color: #777;
    font-size: 15px;
}

/* =========================================================
   КНОПКИ КАТЕГОРИЙ
   ========================================================= */

.category-buttons,
.catalog-filters,
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
}

.category-buttons button,
.catalog-filters button,
.filters button,
.category-buttons a,
.catalog-filters a,
.filters a {
    min-height: 34px;
    padding: 0 17px;

    border: 1px solid #dfd2ca;
    border-radius: 20px;

    background: #fff;
    color: #21130d;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    transition: .2s ease;
}

.category-buttons button:hover,
.catalog-filters button:hover,
.filters button:hover,
.category-buttons a:hover,
.catalog-filters a:hover,
.filters a:hover {
    background: #ffd21c;
    border-color: #ffd21c;
}

.category-buttons button.active,
.catalog-filters button.active,
.filters button.active,
.category-buttons a.active,
.catalog-filters a.active,
.filters a.active {
    background: #21130d;
    border-color: #21130d;
    color: #fff;
}

/* =========================================================
   ТОВАРЫ
   ========================================================= */

.products,
.products-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.product-card {
    min-width: 0;
    overflow: hidden;

    background: #fff;
    border: 1px solid #eadfd8;
    border-radius: 12px;

    box-shadow: 0 2px 10px rgba(40,20,10,.06);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(40,20,10,.12);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.product-card-content {
    padding: 15px;
}

.product-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.25;
}

.product-card p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.product-price {
    margin-top: 10px;
    color: #21130d;
    font-size: 18px;
    font-weight: 900;
}

/* =========================================================
   ФУТЕР
   ========================================================= */

footer {
    width: 100%;
    background: #21130d;
    color: #fff;
    padding: 40px 0;
}

footer a:hover {
    color: #ffd21c;
}

/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 1200px) {

    .top-info-inner-new,
    .main-header-inner-new,
    .hero-inner,
    .catalog-inner,
    .container {
        width: min(100% - 40px, 1100px);
    }

    .main-header-inner-new {
        gap: 15px;
    }

    .main-nav-new {
        gap: 0;
    }

    .main-nav-new a {
        padding: 0 8px;
        font-size: 13px;
    }

    .logo-main-new {
        font-size: 25px;
    }

    .products,
    .products-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    .top-info-inner-new {
        justify-content: center;
    }

    .top-item-new:nth-child(1),
    .top-item-new:nth-child(2) {
        display: none;
    }

    .main-header-inner-new {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .logo-new {
        margin-right: auto;
    }

    .main-nav-new {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .main-nav-new a {
        flex: 0 0 auto;
    }

    .hero,
    .hero-new,
    .home-hero {
        height: 350px;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .products,
    .products-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

    .top-info-new {
        display: none;
    }

    .top-info-inner-new,
    .main-header-inner-new,
    .hero-inner,
    .catalog-inner,
    .container {
        width: calc(100% - 28px);
    }

    .main-header-inner-new {
        padding: 12px 0;
    }

    .logo-main-new {
        font-size: 23px;
    }

    .logo-sub-new {
        font-size: 8px;
    }

    .main-nav-new {
        gap: 2px;
    }

    .main-nav-new a {
        height: 38px;
        padding: 0 9px;
        font-size: 12px;
    }

    .search-new {
        width: 38px !important;
    }

    .cart-new {
        padding: 0 10px !important;
    }

    .hero,
    .hero-new,
    .home-hero {
        height: 320px;
        min-height: 320px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 35px;
        line-height: 1.05;
    }

    .hero-content p {
        font-size: 14px;
        max-width: 90%;
    }

    .catalog {
        padding: 25px 0 40px;
    }

    .catalog h2 {
        font-size: 27px;
    }

    .products,
    .products-grid,
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-card-content {
        padding: 10px;
    }

    .product-card h3 {
        font-size: 14px;
    }
}

/* =========================================================
   МАЛЕНЬКИЙ ТЕЛЕФОН
   ========================================================= */

@media (max-width: 420px) {

    .products,
    .products-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-new,
    .home-hero {
        height: 300px;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 31px;
    }
}


/* ==================================================
   ФИНАЛЬНЫЙ РАЗМЕР БАНЕРА
   ================================================== */

.hero-slider {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.hero-slide {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
    position: absolute !important;
    inset: 0 !important;
}

.hero-slide > img {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Планшет */
@media (max-width: 900px) {
    .hero-slider,
    .hero-slide,
    .hero-slide > img {
        height: 250px !important;
        max-height: 250px !important;
    }
}

/* Телефон */
@media (max-width: 600px) {
    .hero-slider,
    .hero-slide,
    .hero-slide > img {
        height: 190px !important;
        max-height: 190px !important;
    }
}