/* =========================================================
   PROMOTIONS — COMMON
   ========================================================= */

.promotions-page,
.promotion-detail-page {
    width: 100%;
    color: #1A1A2B;
}

.promotions-container,
.promotion-detail-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


/* =========================================================
   PROMOTION CARD (универсальная)
   ========================================================= */

.promotion-card {
    display: flex;
    position: relative;
    width: 411px;
    height: 274px;
    overflow: hidden;
    background: #8080D80D;
    text-decoration: none;
    border-radius: 16px;
}

.promotion-card__image {
    overflow: hidden;
}

.promotion-card__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.promotion-card__content {
    position: relative;
    z-index: 1;
}

.promotion-card__label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.promotion-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.promotion-card__text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.4;
}

.promotion-card__button {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 8px;
    background: currentColor;
    font-weight: 600;
}

.promotion-detail__inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}


/* Вариант 1 — вертикальный */

.promotion-card--default {
    flex-direction: column;
}

.promotion-card--default .promotion-card__image {
    width: 100%;
    height: 154px;
}

.promotion-card--default .promotion-card__content {
    padding: 16px 20px;
}

.promotion-card__place {
    color: #06060B80;
    font-size: 16px;
    line-height: 24px;
}

.promotion-card__place:hover {
    color: #06060B80;
}

.promo-title {
    color: #1A1A2B;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    min-height: calc(28px * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-title:hover {
    color: #8080D8;
}


/* Вариант 2 — компактный */

.promotion-card--compact {
    flex-direction: row;
    align-items: stretch;
}

.promotion-card--compact .promotion-card__image {
    flex: 0 0 180px;
    width: 180px;
    min-height: 150px;
}

.promotion-card--compact .promotion-card__content {
    padding: 20px;
}

.promotion-card--compact .promotion-card__title {
    font-size: 20px;
}

@media (max-width: 600px) {
    .promotion-card--compact .promotion-card__image {
        flex-basis: 120px;
        width: 120px;
    }

    .promotion-card--compact .promotion-card__content {
        padding: 16px;
    }

    .promotion-card--compact .promotion-card__title {
        font-size: 18px;
    }
}


/* =========================================================
   PROMOTIONS LIST
   ========================================================= */

.promotions-page {
    padding: 96px 0 80px;
    background: #fff;
}

.promotions-page__title {
    margin: 0 0 48px;
    font-size: 40px;
    line-height: 48px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #1A1A2B;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 32px;
}


/* =========================================================
   PROMOTION LIST CARD
   ========================================================= */

.promotion-list-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #F7F7FC;
    color: #1A1A2B;
    text-decoration: none;
}

.promotion-list-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.95 / 1;
    overflow: hidden;
    background: #EEF0FF;
}

.promotion-list-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-list-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EEF3FF 0%, #DDE6FF 100%);
}

.promotion-list-card__placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #8080D8;
    border-radius: 8px;
    color: #8080D8;
    font-size: 25px;
}

.promotion-list-card__content {
    padding: 10px 10px 12px;
}

.promotion-list-card__place {
    margin-bottom: 4px;
    overflow: hidden;
    color: #8A8A98;
    font-size: 7px;
    line-height: 10px;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.promotion-list-card__title {
    display: -webkit-box;
    min-height: 32px;
    overflow: hidden;
    color: #1A1A2B;
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: -0.025em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.promotion-list-card__text {
    margin-top: 5px;
    color: #777784;
    font-size: 10px;
    line-height: 13px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.promotions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 40px 20px;
    border-radius: 16px;
    background: #F7F7FC;
    text-align: center;
}

.promotions-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 2px solid #8080D8;
    border-radius: 10px;
    color: #8080D8;
    font-size: 30px;
}

.promotions-empty h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 28px;
}

.promotions-empty p {
    margin: 0;
    color: #858594;
    font-size: 14px;
    line-height: 20px;
}


/* =========================================================
   INFO BANNER
   ========================================================= */

.promotions-info-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    margin-top: 40px;
    padding: 48px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(91.82deg, #E8EDFF 0%, #FFFFFF 16%, #FFFFFF 87.82%, #E8EDFF 100%);
}

.promotions-info-banner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 552px;
}

.promotions-info-banner__title {
    margin: 0 0 12px;
    color: #1A1A2B;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.promotions-info-banner__text {
    width: 100%;
    color: #06060B99;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.04em;
}

.promotions-info-banner__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.promotions-info-banner__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #8080D81A;
    padding: 8px;
}


/* =========================================================
   PROMOTION DETAIL
   ========================================================= */

.promotion-detail-page {
    padding: 20px 0 60px;
}

.promotion-detail-container {
    display: flex;
    flex-direction: column;
}

.promotion-detail__back {
    margin-bottom: 16px;
}

.promotion-detail__back a {
    color: #777784;
    font-size: 10px;
    line-height: 14px;
    text-decoration: none;
}

.promotion-detail__place {
    margin-bottom: 16px;
}

.promotion-detail__title {
    margin: 0 0 32px;
    color: #1A1A2B;
    font-size: 40px;
    line-height: 48px;
    font-weight: 600;
}

.promotion-detail__hero {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #F1F1F5;
}

.promotion-detail__hero img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.promotion-detail__body {
    width: min(100%, 650px);
    margin: 28px auto 0;
    color: #444450;
    font-size: 12px;
    line-height: 18px;
}

.promotion-detail__short {
    margin-bottom: 16px;
    color: #3D3D49;
    font-weight: 500;
}

.promotion-detail__description {
    margin-bottom: 18px;
}

.promotion-detail__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 18px;
    color: #777784;
    font-size: 10px;
    line-height: 14px;
}

.promotion-detail__place-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 10px;
    background: #8080D8;
    color: #FFFFFF;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    text-decoration: none;
}

.promotions-info-banner--detail {
    width: 100%;
    margin-top: 60px;
}


/* =========================================================
   BANNER ON PLACE PAGE
   ========================================================= */

.place-promotion-banner {
    width: 100%;
    margin: 16px 0;
    padding: 0 12px;
}

.promotion-place-banner {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #F3F3F8;
    text-decoration: none;
}

.promotion-place-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 5.25 / 1;
    object-fit: cover;
}


/* =========================================================
   NEW TEMPLATES SUPPORT
   (promotion-detail + promotion-place-card)
   ========================================================= */

.promotion-detail {
    padding: 58px 0 80px;
    width: 100%;
    color: #1A1A2B;
    background: white;
}

.promo-place {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #06060B80;
}

.promotion-detail .promotion-detail__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.promotion-detail__header {
    margin-bottom: 14px;
}

.promotion-detail__image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 40px;
}

.promotion-detail__image img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.promotion-detail__description {
    max-width: 846px;
    margin: 64px auto 0;
    color: #06060BCC;
    font-size: 20px;
    line-height: 28px;
}

.promotion-detail__description p {
    margin: 0 0 12px;
}

.promotion-detail__description p:last-child {
    margin-bottom: 0;
}

.promotion-detail__place a:hover {
    color: #8080D8;
}

.promotion-place-card {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: #F3F3F8;
    text-decoration: none;
}

.promotion-place-card__image {
    width: 100%;
    overflow: hidden;
}

.promotion-place-card__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .promotions-container,
    .promotion-detail-container {
        width: calc(100% - 32px);
    }

    .promotions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotion-detail__title {
        font-size: 25px;
        line-height: 31px;
    }

    /* new templates */
    .promotion-detail .promotion-detail__inner {
        padding: 0 16px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    /* ---------- PAGE / CONTAINER ---------- */

    .promotions-page,
    .promotion-detail-page {
        padding: 32px 0 64px;
    }

    .promotions-container,
    .promotion-detail-container {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .promotion-detail {
        padding: 32px 0 64px;
    }

    .promotion-detail .promotion-detail__inner {
        padding: 0 12px;
    }

    /* ---------- PAGE TITLE ---------- */

    .promotions-page__title {
        margin-bottom: 20px;
        font-size: 22px;
        line-height: 27px;
    }

    /* ---------- GRID ---------- */

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ---------- LIST CARD ---------- */

    .promotion-list-card {
        border-radius: 12px;
    }

    .promotion-list-card__image {
        aspect-ratio: 2.1 / 1;
    }

    .promotion-list-card__content {
        padding: 11px 12px 13px;
    }

    .promotion-list-card__place {
        font-size: 8px;
        line-height: 11px;
    }

    .promotion-list-card__title {
        font-size: 14px;
        line-height: 18px;
        min-height: 36px;
    }

    .promotion-list-card__text {
        font-size: 11px;
        line-height: 14px;
    }

    /* ---------- DEFAULT CARD (promotion-card--default) ---------- */

    .promotion-card {
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

    .promotion-card--default .promotion-card__image {
        height: 131px;
    }

    .promotion-card--default .promotion-card__image img {
        width: 100%;
        object-fit: cover;
    }

    .promotion-card--default .promotion-card__content {
        padding: 12px 14px 14px;
    }

    .promotion-card__place {
        font-size: 13px;
        line-height: 18px;
    }

    .promo-title {
        font-size: 15px;
        line-height: 20px;
        min-height: calc(20px * 2);
        -webkit-line-clamp: 2;
    }

    /* ---------- COMPACT CARD ---------- */

    .promotion-card--compact {
        flex-direction: row;
    }

    .promotion-card--compact .promotion-card__image {
        flex: 0 0 120px;
        width: 120px;
        min-height: 120px;
    }

    .promotion-card--compact .promotion-card__content {
        padding: 12px 14px;
    }

    .promotion-card--compact .promotion-card__title {
        font-size: 16px;
        line-height: 20px;
    }

    /* ---------- INFO BANNER ---------- */

    .promotions-info-banner {
        min-height: 304px;
        margin-top: 32px;
        padding: 48px 24px;
        border-radius: 32px;
    }

    .promotions-info-banner__title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 12px;
        max-width: 303px;
    }

    .promotions-info-banner__text {
        max-width: 296px;
        font-size: 14px;
        line-height: 20px;
    }

    .promotions-info-banner__socials {
        gap: 16px;
        margin-top: 24px;
    }

    .promotions-info-banner__socials a {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        padding: 8px;
    }

    .promotions-info-banner__socials a img {
        width: 100%;
        height: 100%;
    }

    /* ---------- EMPTY ---------- */

    .promotions-empty {
        min-height: 200px;
        padding: 28px 16px;
        border-radius: 14px;
    }

    .promotions-empty__icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 14px;
    }

    .promotions-empty h2 {
        font-size: 18px;
        line-height: 23px;
    }

    .promotions-empty p {
        font-size: 12px;
        line-height: 17px;
    }

    /* ---------- DETAIL ---------- */

    .promotion-detail__back {
        margin-bottom: 12px;
    }

    .promotion-detail__back a {
        font-size: 11px;
        line-height: 15px;
    }

    .promotion-detail__place {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 8px;
    }

    .promotion-detail__header {
        margin-bottom: 12px;
    }

    .promotion-detail__title {
        margin-bottom: 12px;
        font-size: 22px;
        line-height: 27px;
    }

    .promotion-detail__hero,
    .promotion-detail__image {
        border-radius: 14px;
    }

    .promotion-detail__hero img,
    .promotion-detail__image img {
        max-height: none;
        object-fit: cover;
    }

    .promotion-detail__body, .promotion-detail__description {
        width: 100%;
        margin-top: 32px;
        font-size: 16px;
        line-height: 24px;
    }

    .promotion-detail__place-link {
        width: 100%;
    }

    .promotions-info-banner--detail {
        margin-top: 40px;
    }

    /* ---------- PLACE BANNER / COMPACT CARD ---------- */

    .promotion-place-banner,
    .promotion-place-card {
        border-radius: 12px;
    }

    .promotion-place-banner img {
        aspect-ratio: 2.1 / 1;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .promotions-container,
    .promotion-detail-container {
        padding: 0 10px;
    }

    .promotions-page__title {
        font-size: 24px;
        line-height: 32px;
    }

    .promotion-detail__title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 24px;
    }

    .promo-title {
        font-size: 16px;
        line-height: 22px;
        min-height: calc(19px * 2);
    }

    .promotion-card__place {
        font-size: 14px;
        line-height: 20px;
    }
}