/* ==========================================================================
   Hero Section (Главный экран)
   ========================================================================== */
.hero {
    position: relative;
    padding: 60px 0 120px;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero__background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__badge-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.hero__title-highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item__val {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-text);
}

.stat-item__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__plate-wrapper {
    position: relative;
    width: clamp(300px, 40vw, 500px);
    height: clamp(300px, 40vw, 500px);
}

/* Медленно вращающаяся тарелка - классический "вкусный" прием */
.hero__plate-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spin-plate 60s linear infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

@keyframes spin-plate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-tag {
    position: absolute;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.floating-tag--1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-tag--2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.floating-tag__icon {
    font-size: 1.5rem;
}

.floating-tag__info {
    display: flex;
    flex-direction: column;
}

.floating-tag__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.floating-tag__price {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   Benefits Section (Преимущества)
   ========================================================================== */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.benefit-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.benefit-card__icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 90, 48, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.benefit-card__icon {
    width: 32px;
    height: 32px;
}

.benefit-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Menu Section (Меню)
   ========================================================================== */
.menu__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.menu__filter-btn {
    padding: 10px 24px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.menu__filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.menu__filter-btn--active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.menu__filter-btn--active:hover {
    color: #ffffff;
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
}

.menu-card__img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.menu-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.menu-card:hover .menu-card__img {
    transform: scale(1.05);
}

.menu-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.menu-card__badge--green {
    background-color: var(--color-success);
}

.menu-card__info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-card__title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.menu-card__desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.menu-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border);
}

.menu-card__weight {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.menu-card__price {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.menu__action {
    text-align: center;
}

/* ==========================================================================
   App Promo (Доставка / Приложение)
   ========================================================================== */
.app-promo__container {
    background-color: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.app-promo__content {
    flex: 1;
    padding: 80px 0;
    max-width: 500px;
    color: #ffffff;
}

.app-promo__title {
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
}

.app-promo__text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.app-promo__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-store-btn img {
    height: 48px;
    width: auto;
    transition: transform var(--transition);
}

.app-store-btn:hover img {
    transform: translateY(-2px);
}

.app-promo__visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: stretch;
    position: relative;
}

.app-promo__phone-mockup {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 320px;
}

.app-promo__phone-img {
    width: 100%;
    filter: drop-shadow(-20px 20px 30px rgba(0,0,0,0.2));
}

/* ==========================================================================
   Locations (Адреса)
   ========================================================================== */
.locations__layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.locations__list-wrapper {
    padding: 24px 0;
}

.locations__list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 24px;
}

/* Стилизация скроллбара для списка */
.locations__list::-webkit-scrollbar {
    width: 6px;
}
.locations__list::-webkit-scrollbar-track {
    background: transparent;
}
.locations__list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.location-item {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all var(--transition);
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item:hover {
    border-color: #D1D5DB;
}

.location-item--active {
    border-color: var(--color-primary);
    background-color: rgba(255, 90, 48, 0.05);
}

.location-item__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.location-item__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.location-item__time {
    display: inline-block;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.location-item--active .location-item__time {
    color: var(--color-primary);
    border-color: rgba(255, 90, 48, 0.2);
}

.locations__map-wrapper {
    height: 100%;
    min-height: 500px;
}

.locations__map {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Адаптив (index.css)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero__stats { gap: 24px; }
    
    .floating-tag--1 { left: 0; }
    .floating-tag--2 { right: 0; }
    
    .app-promo__container {
        padding: 0 40px;
    }
    
    .app-promo__phone-mockup {
        width: 260px;
    }
    
    .locations__layout {
        grid-template-columns: 1fr;
    }
    
    .locations__list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero__subtitle {
        margin: 0 auto 32px;
    }
    
    .hero__buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .app-promo__container {
        flex-direction: column;
        padding: 40px 24px 0;
        text-align: center;
    }
    
    .app-promo__content {
        padding: 0 0 40px;
    }
    
    .app-promo__buttons {
        justify-content: center;
    }
    
    .app-promo__visual {
        min-height: 300px;
        justify-content: center;
    }
    
    .app-promo__phone-mockup {
        position: relative;
        bottom: -20px;
        right: auto;
    }
}