/* HERO CAROUSEL — несколько карточек в ряд */
.hero-slider-section { padding: 24px 0 0; }

.hero-search-bar { margin-bottom: 20px; }
.hero-search-bar .hero-search-form {
    display: flex; gap: 8px; padding: 8px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 8px 24px rgba(20,24,43,0.08);
}
.hero-search-bar .hero-search-field {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 0 16px; min-width: 0;
}
.hero-search-bar .hero-search-city { flex: 0 0 240px; border-left: 1px solid var(--border-soft); }
.hero-search-bar .hero-search-field i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.hero-search-bar .hero-search-field input,
.hero-search-bar .hero-search-field select {
    width: 100%; border: 0; outline: 0; background: transparent;
    height: 52px; font-size: 15px; color: var(--text); min-width: 0;
}
.hero-search-bar .btn { flex-shrink: 0; height: 52px; padding: 0 32px; }

.hero-carousel { position: relative; overflow: hidden; }
.hero-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card {
    flex: 0 0 calc((100% - 32px) / 3);  /* 3 карточки в ряд */
    height: 190px;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-card-body { position: relative; z-index: 2; }
.hero-card-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; line-height: 1.15; }
.hero-card-text { font-size: 14px; opacity: 0.92; margin: 0 0 14px; line-height: 1.4; }
.hero-card-btn {
    display: inline-flex; align-items: center;
    padding: 9px 18px;
    background: #fff; color: #14182B;
    border-radius: 999px;
    font-weight: 700; font-size: 13px;
    transition: transform 0.2s;
}
.hero-card-btn:hover { transform: translateY(-2px); color: #14182B; }

.hero-carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-elev); color: var(--text);
    display: grid; place-items: center; font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.2s; z-index: 5; border: 0; cursor: pointer;
}
.hero-carousel-nav:hover { background: var(--brand); color: #fff; }
.hero-carousel-prev { left: 8px; }
.hero-carousel-next { right: 8px; }

.hero-carousel-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 18px;
}
.hero-carousel-dots .dot {
    width: 28px; height: 5px; border-radius: 999px;
    background: var(--border-strong); border: 0; cursor: pointer;
    transition: all 0.2s; padding: 0;
}
.hero-carousel-dots .dot.active { background: var(--brand); width: 40px; }

@media (max-width: 1100px) {
    .hero-card { flex: 0 0 calc((100% - 16px) / 2); }  /* 2 в ряд */
}
@media (max-width: 768px) {
    .hero-search-bar .hero-search-form { flex-direction: column; }
    .hero-search-bar .hero-search-city { flex: 1; border-left: 0; border-top: 1px solid var(--border-soft); }
    .hero-card { flex: 0 0 100%; height: 170px; }  /* 1 в ряд */
    .hero-card-title { font-size: 20px; }
}


    /* ============================================================================
   POPULAR CATEGORIES — luxe-style (прямоугольные, 2 ряда, горизонт. скролл)
   ============================================================================ */
.luxe-cats-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -4px;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.luxe-cats-scroll::-webkit-scrollbar { display: none; }

.luxe-cats-rows {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr;          /* 2 ряда */
    grid-auto-columns: minmax(190px, 1fr);
    gap: 12px;
}

.luxe-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 108px;
    padding: 16px;
    border-radius: 16px;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
    color: var(--text);
}
.luxe-cat:hover {
    background: var(--brand-soft);
    transform: translateY(-2px);
    color: var(--text);
}

.luxe-cat-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    max-width: 58%;
    position: relative;
    z-index: 2;
}

.luxe-cat-img {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 130px;
    height: 80px;
    display: grid;
    place-items: center;
    z-index: 1;
}
.luxe-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.luxe-cat-img i {
    font-size: 40px;
    color: var(--brand);
    opacity: 0.85;
}

/* Десктоп — чтобы влезало 8 колонок без скролла на широких экранах */
@media (min-width: 1101px) {
    .luxe-cats-rows {
        grid-auto-columns: minmax(0, 1fr);
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr 1fr;
        grid-auto-flow: row;
    }
    .luxe-cats-scroll { overflow: visible; }
}

/* Планшет — 5-6 колонок, появляется скролл если не влезает */
@media (max-width: 1100px) {
    .luxe-cat { min-height: 100px; }
}

/* Мобилка — 4 видны на экране, дальше скролл пальцем */
@media (max-width: 768px) {
    .luxe-cats-rows {
        grid-auto-columns: 150px;
        gap: 10px;
    }
    .luxe-cat {
        min-height: 92px;
        padding: 12px;
    }
    .luxe-cat-name { font-size: 13px; max-width: 60%; }
    .luxe-cat-img { width: 130px; height: 80px; }
    .luxe-cat-img i { font-size: 28px; }
}

@media (max-width: 420px) {
    .luxe-cats-rows { grid-auto-columns: 130px; }
}