/* ---------------------------------------------------------------------------------- */

/* Секция promotions.css - переменные страницы */

.promotions-page {
    --promo-accent: rgb(18, 124, 124);
    --promo-accent-dark: rgb(24, 84, 88);
    --promo-tint: #effffa;
    --promo-border: rgba(18, 124, 124, 0.15);
}


/* ---------------------------------------------------------------------------------- */

/* Секция promotions.css - заголовок страницы */

.promotions-header {
    max-width: 700px;
    margin: 80px auto 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promotions-header__eyebrow {
    color: var(--promo-accent);
    font-size: 20px;
    margin: 0 0 8px 0;
}

.promotions-header__title {
    font-size: 44px;
    margin: 0 0 20px 0;
}

.promotions-header__text {
    color: rgb(80, 80, 80);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}


/* ---------------------------------------------------------------------------------- */

/* Секция promotions.css - карточки акций (компактные, квадратное фото) */

.promotions-grid {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.promotion-card {
    display: flex;
    align-items: center;
    gap: 26px;
    background-color: #ffffff;
    border: 1px solid var(--promo-border);
    border-radius: 28px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(18, 124, 124, 0.1);
}

.promotion-card__media {
    flex-shrink: 0;
    width: 160px;
    aspect-ratio: 1 / 1;
    background-color: var(--promo-tint);
    border-radius: 20px;
    overflow: hidden;
}

.promotion-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promotion-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.promotion-card__title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
}

.promotion-card__meta {
    color: var(--promo-accent);
    font-size: 15px;
    margin: 0 0 6px 0;
}

.promotion-card__btn {
    height: 44px;
    padding: 0 26px;
    background-color: var(--promo-accent);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.promotion-card__btn:hover {
    background-color: var(--promo-accent-dark);
    transform: translateY(-2px);
}


/* ---------------------------------------------------------------------------------- */

/* Секция promotions.css - модальное окно с подробностями акции */

.promotion-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 35, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1001;
}

.promotion-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    z-index: 1002;
}

.promotion-overlay.open,
.promotion-modal.open {
    display: block;
}

.promotion-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgb(120, 120, 120);
}

.promotion-modal__title {
    font-size: 26px;
    margin: 0 0 8px 0;
    padding-right: 24px;
}

.promotion-modal__meta {
    color: var(--promo-accent);
    font-size: 15px;
    margin: 0 0 20px 0;
}

.promotion-modal__text {
    color: rgb(70, 70, 70);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.promotion-modal__text p {
    margin: 0 0 10px 0;
}

.promotion-modal__text p:last-child {
    margin-bottom: 0;
}

.promotion-modal__list {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

.promotion-modal__list li {
    margin-bottom: 4px;
}

.promotion-modal__btn,
.promotion-modal__btn:visited {
    height: 45px;
    padding: 0 28px;
    background-color: var(--promo-accent);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.promotion-modal__btn:hover {
    background-color: var(--promo-accent-dark);
    transform: translateY(-2px);
}


/* ---------------------------------------------------------------------------------- */

/* Секция promotions.css - адаптив */

@media (max-width: 700px) {

    .promotions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .promotions-header {
        margin: 60px auto 40px auto;
    }

    .promotions-header__title {
        font-size: 32px;
    }

    .promotion-card {
        padding: 16px;
        border-radius: 22px;
        gap: 18px;
    }

    .promotion-card__media {
        width: 110px;
    }

    .promotion-card__title {
        font-size: 18px;
    }

    .promotion-modal {
        padding: 28px 20px;
    }

    .promotion-modal__title {
        font-size: 22px;
    }
}