/* ============================================
   ВСП — Буфет (buffet.css)
   ============================================ */

/* ========================
   HERO — фон
   ======================== */
.bf-hero .bf-hero__card {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 100%),
        url('../images/буфет.png') center / cover no-repeat;
}


/* ========================
   МЕНЮ БУФЕТА — ПРОСТЫЕ КАРТОЧКИ
   ======================== */
.bf-menu {
    padding: var(--section-py) 0;
    background: var(--c-bg-alt);
}

.bf-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.bf-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.bf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.bf-card__img {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.bf-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bf-card__body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.bf-card__title {
    font-family: var(--f-heading);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--c-text);
    margin: 0;
}

.bf-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.bf-card__weight {
    font-size: 13px;
    color: var(--c-text-secondary);
    opacity: 0.65;
}

.bf-card__price {
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--c-primary);
}


/* ========================
   УНИКАЛЬНЫЙ БЛОК 1: ПОЧЕМУ МЫ
   ======================== */
.bf-why {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.bf-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.bf-why__card {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.bf-why__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}

.bf-why__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-why__icon svg { width: 26px; height: 26px; }

.bf-why__icon--orange { background: rgba(255,107,53,0.10); color: var(--c-primary); }
.bf-why__icon--blue   { background: rgba(99,102,241,0.10); color: #4F46E5; }
.bf-why__icon--green  { background: rgba(52,211,153,0.12); color: #059669; }
.bf-why__icon--yellow { background: rgba(247,201,72,0.18); color: #B45309; }

.bf-why__card h3 {
    font-family: var(--f-heading);
    font-size: 17px;
    font-weight: 900;
}

.bf-why__card p {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.65;
    opacity: 0.8;
}


/* ========================
   УНИКАЛЬНЫЙ БЛОК 2: ПРОЦЕСС
   ======================== */
.bf-process {
    padding: var(--section-py) 0;
    background: var(--c-bg-alt);
}

.bf-process__steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 56px;
}

.bf-process__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 0 16px;
}

.bf-process__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-gradient-1);
    color: #fff;
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--c-primary-glow);
    flex-shrink: 0;
}

.bf-process__icon { font-size: 32px; line-height: 1; }

.bf-process__step h3 {
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 900;
}

.bf-process__step p {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.65;
    opacity: 0.8;
}

.bf-process__time {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    font-family: var(--f-heading);
    font-size: 12px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

.bf-process__arrow {
    font-size: 24px;
    color: var(--c-border);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 20px;
    padding-top: 16px;
}


/* ========================
   УНИКАЛЬНЫЙ БЛОК 3: ДЛЯ КАКИХ СИТУАЦИЙ
   ======================== */
.bf-cases {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.bf-cases__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.bf-cases__text {
    font-size: 16px;
    color: var(--c-text-secondary);
    line-height: 1.7;
    margin: 20px 0 36px;
    opacity: 0.8;
}

.bf-cases__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bf-cases__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 20px;
    border-left: 3px solid var(--c-primary);
}

.bf-cases__stat strong {
    font-family: var(--f-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    color: var(--c-text);
    line-height: 1;
}

.bf-cases__stat span {
    font-size: 14px;
    color: var(--c-text-secondary);
    opacity: 0.7;
}

.bf-cases__types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--c-border);
}

.bf-cases__type {
    background: var(--c-bg-alt);
    padding: 28px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background var(--t-fast);
}

.bf-cases__type:hover { background: #fff; }

.bf-cases__type-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.bf-cases__type h4 {
    font-family: var(--f-heading);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 6px;
}

.bf-cases__type p {
    font-size: 13px;
    color: var(--c-text-secondary);
    line-height: 1.55;
    opacity: 0.75;
}


/* ========================
   АДАПТИВ
   ======================== */
@media (max-width: 1200px) {
    .bf-menu__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .bf-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-cases__inner {
        grid-template-columns: 1fr;
    }

    .bf-cases__stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bf-cases__stat {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 960px) {
    .bf-process__steps {
        flex-direction: column;
        gap: 24px;
    }

    .bf-process__step {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        gap: 12px;
    }

    .bf-process__icon { display: none; }
    .bf-process__step h3 { flex: 0 1 auto; }
    .bf-process__step p  { flex: 1 1 100%; }
    .bf-process__arrow   { display: none; }
}

@media (max-width: 600px) {
    .bf-menu__grid {
        grid-template-columns: 1fr;
    }

    .bf-why__grid {
        grid-template-columns: 1fr;
    }

    .bf-cases__types {
        grid-template-columns: 1fr;
    }

    .bf-cases__stats {
        flex-direction: column;
    }
}
