/* Local contest «Обмен энергией». Homepage first slide + /energy/. Not sitewide. */

.page-index .main__banner .main__slide--energy {
    position: relative;
    min-height: 400px;
    width: 100%;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(255, 236, 196, 0.7), transparent 48%),
        linear-gradient(165deg, #f8d48a 0%, #f0a84a 52%, #e07a28 100%);
}

.page-index .main__banner .main__swiper {
    min-height: 400px;
}

.page-index .main__slide--energy .main__slide_right {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.page-index .main__slide--energy .main__slide_right img,
.page-index .main__banner .main__slide--energy img {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    background: transparent;
}

.page-index .main__banner .main__slide--energy .main__slide_left {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 22rem;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 248, 237, 0.96);
    box-shadow: 0 10px 28px rgba(92, 42, 12, 0.12);
}

.page-index .main__banner .main__slide--energy .main__slide_left .main__slide_title,
.page-index .main__banner .main__slide--energy .main__slide_left .main__slide_text,
.page-index .main__banner .main__slide--energy .main__slide_title,
.page-index .main__banner .main__slide--energy .main__slide_text {
    color: #4a2210;
}

.page-index .main__slide--energy .main__slide_buttons .btn {
    background: #fd7728;
    border-color: #fd7728;
    color: #fff;
}

.cotinder-energy-page {
    color: #2d2d2d;
}

.cotinder-energy-page .seo-articles__cover-banner {
    background: #f6c56a;
}

.cotinder-energy-page .seo-articles__cover-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 720;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 767px) {
    .cotinder-energy-page .seo-articles__cover-banner img {
        aspect-ratio: 16 / 9;
        max-height: 180px;
        object-fit: cover;
        object-position: center 28%;
    }
}

.cotinder-energy-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
}

.cotinder-energy-page__prize {
    display: block;
    width: 100%;
    height: auto;
    margin: 8px 0 0;
    border-radius: 16px;
}

.cotinder-energy-page__box {
    margin: 0 0 22px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ead9c6;
}

.cotinder-energy-page__box--admin {
    background: #fffaf3;
    border-color: #fdba74;
}

.cotinder-energy-page__stats {
    margin: 0 0 12px;
    line-height: 1.45;
}

.cotinder-energy-page__inviter {
    margin: 16px 0 8px;
    font-size: 1.05rem;
}

.cotinder-energy-page__inviter small {
    display: block;
    font-weight: 500;
    color: #6b3a16;
}

.cotinder-energy-page__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cotinder-energy-page__table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.cotinder-energy-page__table th,
.cotinder-energy-page__table td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f0e6dc;
}

.cotinder-energy-page__table th {
    color: #9a3412;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cotinder-energy-page__table small {
    display: block;
    color: #7a6a5c;
    font-size: 0.78rem;
}

.cotinder-energy__ref {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.cotinder-energy__ref input {
    flex: 1 1 200px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.cotinder-energy__ref button {
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 0;
    background: #2f6b4f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cotinder-energy__bar {
    height: 10px;
    border-radius: 999px;
    background: #f3e6dc;
    overflow: hidden;
    margin: 8px 0 4px;
}

.cotinder-energy__bar > span {
    display: block;
    height: 100%;
    background: #fd7728;
}

.cotinder-energy__ok {
    color: #2f6b4f;
    font-weight: 700;
}

.cotinder-energy__wait {
    color: #9a3412;
}

@media (max-width: 767.98px) {
    .page-index .main__slide--energy .main__slide_left {
        max-width: 100%;
        width: auto;
        align-self: flex-end;
        padding: 10px 12px;
    }

    .page-index .main__slide--energy .main__slide_title {
        font-size: 1.2rem;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .page-index .main__slide--energy .main__slide_text {
        display: none;
    }

    .page-index .main__banner .main__slide--energy img {
        object-position: left center;
    }

    .cotinder-energy-page__table {
        min-width: 520px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .page-index .main__slide--energy .main__slide_left {
        max-width: 20rem;
    }
}

@media (min-width: 1200px) {
    .page-index .main__banner .main__slide--energy .main__slide_left {
        align-self: flex-end;
        max-width: min(28rem, 42%);
        margin: 0 0 12px 0;
    }

    .page-index .main__banner .main__slide--energy .main__slide_left .main__slide_title {
        font-size: 2rem;
        line-height: 1.15;
        color: #4a2210;
    }

    .page-index .main__banner .main__slide--energy .main__slide_left .main__slide_text {
        color: #5c2e12;
        font-size: 1.05rem;
    }
}
