/* Рецепт дня — дополнения к header-promos.css */

.header-brand-bar-inner {
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.header-promo__photo-col .header-best-photos__title,
.recipe-day-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-color, #134e4a);
    margin: 0 0 0.35rem;
    text-align: center;
    line-height: 1.2;
}

.recipe-day-title__before,
.recipe-day-title__mid,
.recipe-day-title__after {
    position: relative;
    display: inline-block;
}

.recipe-day-title__before::after,
.recipe-day-title__after::after {
    content: '';
    position: absolute;
    height: 0.1em;
    min-height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(-2.2deg);
    transform-origin: center center;
    pointer-events: none;
}

.recipe-day-title__before::after {
    left: 0.02em;
    right: 0.28em;
    bottom: -0.08em;
}

.recipe-day-title__after::after {
    left: 0.08em;
    right: 0.02em;
    bottom: 0.02em;
    transform: rotate(-1.6deg);
    transform-origin: right center;
}

.header-promo__photo-col .header-best-photos__thumb {
    border: none;
    padding: 0;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    width: 140px;
    height: 92px;
    display: block;
}

.header-promo__photo-col .header-best-photos__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Модалка вне fixed-header — поверх затемнения Bootstrap */
#recipeDayModal.modal {
    z-index: 1065;
}

.recipe-day-modal__image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
    background: #f0f2f5;
}

.recipe-day-modal__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0 0;
}

.recipe-day-modal__rec {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.recipe-day-modal__rec h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    color: var(--primary-dark, #0f766e);
}

[data-bs-theme="dark"] .header-promo__photo-col .header-best-photos__title,
[data-bs-theme="dark"] .recipe-day-title {
    color: var(--dark-color, #134e4a);
}

[data-bs-theme="dark"] .recipe-day-modal__image {
    background: #1e242b;
}

[data-bs-theme="dark"] .recipe-day-modal__rec {
    background: rgba(45, 212, 191, 0.12);
}

@media (max-width: 991.98px) {
    .header-promo__photo-col .header-best-photos__thumb {
        width: 130px;
        height: 86px;
    }
}

@media (max-width: 575.98px) {
    .header-promo__photo-col .header-best-photos__thumb {
        width: 112px;
        height: 74px;
    }

    .recipe-day-title {
        font-size: 0.7rem;
    }
}
