/*
 * EcoBrus Promotions page.
 * Content and commercial behaviour remain owned by the existing backend.
 */

.promotions-page {
    --eco-ink: #24364f;
    --eco-muted: #617083;
    --eco-teal: #0ea498;
    --eco-teal-dark: #087d75;
    --eco-blue: #0871ad;
    --eco-line: #dbe4e8;
    --eco-soft: #f5f8f8;
    --eco-soft-blue: #edf4f7;
    overflow-x: hidden;
    background: #fff;
    color: var(--eco-ink);
}

/* Shared light inner-page header. */
.promotions-page .header {
    position: relative;
    z-index: 60;
    margin: 0;
    background: #eef0f0;
}

.promotions-page .header-bot {
    border-color: rgba(36, 54, 79, .09);
}

.promotions-page .header .logo {
    background-image: url(../images/logo.png);
}

.promotions-page .header .h-phone a {
    color: #111;
}

.promotions-page .header:not(.fixed) .current-city-active {
    color: var(--eco-teal);
}

.promotions-page .header:not(.fixed) .ecobrus-search-entry,
.promotions-page .header:not(.fixed) .ecobrus-favorites-entry {
    color: var(--eco-ink);
}

.promotions-page .header:not(.fixed) .ecobrus-search-entry:hover,
.promotions-page .header:not(.fixed) .ecobrus-search-entry:focus,
.promotions-page .header:not(.fixed) .ecobrus-favorites-entry:hover,
.promotions-page .header:not(.fixed) .ecobrus-favorites-entry:focus {
    background: rgba(14, 164, 152, .09);
    color: var(--eco-teal-dark);
}

.promotions-page .header .navi-h_link {
    color: var(--eco-blue);
}

.promotions-page .header .navi-h_item.active .navi-h_link,
.promotions-page .header .navi-h_link:hover,
.promotions-page .header .navi-h_link:focus-visible {
    color: var(--eco-teal);
}

.promotions-page .content,
.promotions-page .content--padtop {
    min-height: 0;
    padding-top: 0;
    background: #fff;
}

.promotions-page .content > .container[itemscope][itemtype*="BreadcrumbList"] {
    padding-top: 20px;
}

.promotions-page .breadcrumbs {
    margin-bottom: 0;
    padding-top: 0;
    color: var(--eco-muted);
}

/* Intro and promotional offer. */
.promotions-page .events-section,
.promotions-page .stock-unit,
.promotions-page .stock-unit_col,
.promotions-page .cost-block,
.promotions-page .counter {
    float: none;
    width: auto;
    height: auto;
}

.promotions-page .events-section {
    margin: 0;
    padding: 30px 0 0;
    background: #fff;
}

.promotions-page .events-section > .container > h1 {
    max-width: 980px;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--eco-ink);
    font-size: clamp(40px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.promotions-page .events-section > .container > h1:after,
.promotions-page .promotion-gifts > h2:after,
.promotions-page .cost-block h2:after {
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 18px;
    border-radius: 2px;
    background: var(--eco-teal);
    content: "";
}

.promotions-page .events-section > .container > .descr-text {
    max-width: 840px;
    margin: 22px 0 56px;
    color: #56677b;
    font-size: 18px;
    line-height: 1.58;
}

.promotions-page .events-section > .container > .descr-text p {
    margin: 0;
}

.promotions-page .promotions-intro__gifts {
    padding-bottom: 94px;
}

.promotions-page .promotion-gifts {
    margin: 0;
}

.promotions-page .promotion-gifts > h2 {
    max-width: 930px;
    margin: 0 0 38px;
    color: var(--eco-ink);
    font-size: clamp(36px, 3.4vw, 44px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.02em;
}

.promotions-page .promotion-gifts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.promotions-page .promotion-gifts__grid:has(> .promotion-gift-card:only-child) {
    grid-template-columns: minmax(0, 570px);
}

.promotions-page .promotion-gifts__grid:has(> .promotion-gift-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promotions-page .promotion-gifts__grid:has(> .promotion-gift-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promotions-page .promotion-gift-card {
    display: flex;
    min-width: 0;
    min-height: 390px;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--eco-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 56, 72, .035);
}

.promotions-page .promotion-gift-card__media {
    display: flex;
    height: 178px;
    align-items: center;
    justify-content: center;
    padding: 20px 22px 10px;
    background: var(--eco-soft);
}

.promotions-page .promotion-gift-card .stock-unit_img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.promotions-page .promotion-gift-card__content {
    padding: 24px 22px 26px;
}

.promotions-page .promotion-gift-card h3 {
    margin: 0 0 12px;
    color: var(--eco-ink);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.32;
}

.promotions-page .promotion-gift-card p {
    margin: 0;
    color: var(--eco-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Package and deadline module. */
.promotions-page .cost-block {
    margin: 0;
    padding: 82px 0;
    background: var(--eco-soft-blue);
}

.promotions-page .cost-block__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    gap: 70px;
    align-items: center;
}

.promotions-page .cost-block h2 {
    max-width: 590px;
    margin: 0 0 30px;
    color: var(--eco-ink);
    font-size: clamp(32px, 3.2vw, 42px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.018em;
}

.promotions-page .cost-block_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.promotions-page .cost-block_list li {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 25px;
    color: var(--eco-ink);
    font-size: 16px;
    line-height: 1.52;
}

.promotions-page .cost-block_list li:last-child {
    margin-bottom: 0;
}

.promotions-page .cost-block_list li:before {
    position: absolute;
    top: .7em;
    left: 1px;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--eco-teal);
    content: "";
}

.promotions-page .cost-block__deadline {
    margin: 0;
    padding: 38px 36px;
    border: 1px solid rgba(14, 164, 152, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
}

.promotions-page .counter_title {
    max-width: 420px;
    margin: 0 0 26px;
    color: var(--eco-ink);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
}

.promotions-page .counter-box {
    display: grid;
    grid-template-columns: minmax(52px, 1fr) 13px minmax(52px, 1fr) 13px minmax(52px, 1fr) 13px minmax(52px, 1fr);
    gap: 4px;
    align-items: start;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-variant-numeric: tabular-nums;
}

.promotions-page .counter-box li {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: center;
}

.promotions-page .counter-box__unit > span {
    display: block;
    min-width: 0;
    color: var(--eco-ink);
    font-size: clamp(30px, 3.3vw, 42px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
}

.promotions-page .counter-box__unit > p {
    margin: 8px 0 0;
    color: var(--eco-muted);
    font-size: 12px;
    line-height: 1.2;
    text-transform: lowercase;
}

.promotions-page .counter-box .seperator {
    color: var(--eco-muted);
    font-size: 31px;
    font-weight: 400;
    line-height: .95;
}

.promotions-page .cost-block__deadline .btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 52px;
    margin: 0;
    padding: 13px 22px;
    border-radius: 9px;
    background: var(--eco-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.promotions-page .cost-block__deadline .btn-green:hover,
.promotions-page .cost-block__deadline .btn-green:focus-visible {
    background: var(--eco-teal-dark);
}

.promotions-page .promotion-deadline-message {
    margin: 0 0 22px;
    color: var(--eco-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.promotions-page .cost-block__deadline.is-expired .counter-box,
.promotions-page .cost-block__deadline.is-expired .promotion-deadline-cta,
.promotions-page.promotion-deadline-invalid .counter-box,
.promotions-page.promotion-deadline-invalid .promotion-deadline-cta {
    display: none;
}

.promotions-page .cost-block__deadline.is-expired .promotion-deadline-message,
.promotions-page.promotion-deadline-invalid .promotion-deadline-message {
    display: block;
}

/* Keep accepted shared components, tune only page rhythm. */
.promotions-page .start-block {
    background: #fff;
}

.promotions-page .benefits {
    background: var(--eco-soft);
}

.promotions-page .order_widget.consult {
    margin-top: 0;
}

@media (max-width: 1199px) {
    .promotions-page .promotion-gifts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotions-page .promotion-gift-card {
        min-height: 330px;
    }

    .promotions-page .cost-block__grid {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .promotions-page .promotions-intro__gifts {
        padding-bottom: 76px;
    }

    .promotions-page .cost-block {
        padding: 70px 0;
    }

    .promotions-page .cost-block__grid {
        grid-template-columns: 1fr;
    }

    .promotions-page .cost-block__deadline {
        max-width: 650px;
    }
}

@media (max-width: 767px) {
    .promotions-page .header {
        min-height: 68px;
        border-bottom: 1px solid var(--eco-line);
        background: #fff;
        box-shadow: 0 3px 14px rgba(36, 54, 79, .045);
    }

    .promotions-page .header-top,
    .promotions-page .header.fixed .header-top {
        border-bottom: 1px solid var(--eco-line);
        background: #fff;
    }

    .promotions-page .header .logo,
    .promotions-page .header.fixed .logo {
        background-image: url(../images/logo.png);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .promotions-page .header .btn-navi,
    .promotions-page .header.fixed .btn-navi {
        background-image: url(../images/ic-navi.png);
    }

    .promotions-page .content > .container[itemscope][itemtype*="BreadcrumbList"] {
        padding-top: 16px;
    }

    .promotions-page .events-section {
        padding-top: 22px;
    }

    .promotions-page .events-section > .container > h1 {
        font-size: clamp(30px, 9vw, 36px);
        line-height: 1.1;
    }

    .promotions-page .events-section > .container > h1:after,
    .promotions-page .promotion-gifts > h2:after,
    .promotions-page .cost-block h2:after {
        width: 48px;
        margin-top: 14px;
    }

    .promotions-page .events-section > .container > .descr-text {
        margin: 18px 0 38px;
        font-size: 15px;
        line-height: 1.55;
    }

    .promotions-page .promotions-intro__gifts {
        padding-bottom: 58px;
    }

    .promotions-page .promotion-gifts > h2 {
        margin-bottom: 26px;
        font-size: clamp(28px, 8vw, 32px);
        line-height: 1.16;
    }

    .promotions-page .promotion-gifts__grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .promotions-page .promotion-gift-card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 0;
        align-items: center;
        border-radius: 12px;
    }

    .promotions-page .promotion-gift-card__media {
        width: 92px;
        height: 100%;
        min-height: 112px;
        padding: 15px 10px;
    }

    .promotions-page .promotion-gift-card__content {
        padding: 17px 16px;
    }

    .promotions-page .promotion-gift-card h3 {
        margin-bottom: 7px;
        font-size: 16px;
        line-height: 1.3;
    }

    .promotions-page .promotion-gift-card p {
        font-size: 14px;
        line-height: 1.4;
    }

    .promotions-page .cost-block {
        padding: 58px 0;
    }

    .promotions-page .cost-block__grid {
        gap: 36px;
    }

    .promotions-page .cost-block h2 {
        margin-bottom: 24px;
        font-size: 29px;
    }

    .promotions-page .cost-block_list li {
        margin-bottom: 10px;
        padding-left: 21px;
        font-size: 15px;
    }

    .promotions-page .cost-block__deadline {
        padding: 26px 20px;
        border-radius: 13px;
    }

    .promotions-page .counter_title {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .promotions-page .counter-box {
        grid-template-columns: minmax(42px, 1fr) 8px minmax(42px, 1fr) 8px minmax(42px, 1fr) 8px minmax(42px, 1fr);
        gap: 2px;
        margin-bottom: 24px;
    }

    .promotions-page .counter-box__unit > span {
        font-size: clamp(27px, 9vw, 34px);
    }

    .promotions-page .counter-box__unit > p {
        margin-top: 6px;
        font-size: 10px;
    }

    .promotions-page .counter-box .seperator {
        font-size: 26px;
    }

    .promotions-page .cost-block__deadline .btn-green {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 370px) {
    .promotions-page .promotion-gift-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .promotions-page .promotion-gift-card__media {
        width: 82px;
    }

    .promotions-page .cost-block__deadline {
        padding-right: 15px;
        padding-left: 15px;
    }
}
