body {
    position: relative;
    background: linear-gradient(#1f1e2f, #1C1B2B);
}

body.contest-page-body,
body.contest-page-body.modal-open {
    overflow-y: auto !important;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -30px;
    background-image: url(../images/vote/main-back.jpeg);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: -1;
}

.contest-page {
    padding: 40px 0 80px;
    color: #fff;
    font-size: 18px;
    overflow-x: clip;
}

.contest-page p,
.contest-page li {
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contest-page p {
    line-height: 1.6;
    font-weight: 500;
}

.contest-page li {
    line-height: 1.05;
}

.programs-new-panel {
    width: 100%;
    border-radius: 40px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(53, 7, 98, 0.3));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 10px 10px rgb(34 3 42 / 40%);
    font-size: 20px;
    line-height: 1.6;
    overflow: visible;
}

.programs-new-panel-inner {
    width: 100%;
    overflow: visible;
}

.contest-hero {
    text-align: center;
    margin-bottom: 28px;
}

.contest-title {
    margin: 0 0 10px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 38px;
}

.contest-subtitle {
    margin: 0;
    opacity: 0.85;
    font-size: 20px;
}

.contest-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 18px;
    background: transparent;
}

.contest-media-wrap {
    max-width: 1100px;
    margin: 0 auto 18px auto;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: start;
    position: relative;
    overflow: visible;
}

.contest-media-wrap img {
    max-width: 100%;
}

.contest-media-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 152%;
    height: 152%;
    transform: translate(-50%, -50%);
    z-index: 0;
    background-image: url('../images/contest/contest-new.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.contest-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 1;
    visibility: hidden;
    pointer-events: none;
}

.contest-gallery-top {
    width: 100%;
    min-height: 140px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(to right, #3f00ff, #ff00ff);
    padding: 3px;
}

.contest-gallery-top > img  {
    height: 140px;
    object-fit: cover;
    width: 100%;
    border-radius: 15px;
}

.contest-gallery-left {
    flex: 0 0 calc(40% - 7px);
    height: 86px; /* 80px изображение + по 3px границы сверху и снизу */
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(to right, #3f00ff, #ff00ff);
    padding: 3px;
}

.contest-gallery-left > img {
    height: 80px;
    object-fit: cover;
    object-position: top;
    width: 100%;
    display: block;
    border-radius: 15px;
}

.contest-gallery-right {
    flex: 0 0 calc(60% - 7px);
    height: 86px; /* 80px изображение + по 3px границы сверху и снизу */
    border-radius: 18px;
    overflow: hidden;
    object-fit: cover;
    background: linear-gradient(to right, #3f00ff, #ff00ff);
    padding: 3px;
}

.contest-gallery-right > img {
    height: 80px;
    object-fit: cover;
    width: 100%;
    display: block;
    border-radius: 15px;
}

.contest-side {
    height: 100%;
    border-radius: 22px;
    /* background: rgba(255, 255, 255, 0.06); */
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.contest-date-tag {
    align-self: flex-start;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    background: linear-gradient(90deg, #f002c2, #0618f0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
}

.contest-side-title {
    font-size: 70px;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    overflow-wrap: normal;
    overflow: visible;
    word-break: normal;
    text-align: center;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.65),
        0 0 26px rgba(187, 153, 255, 0.55),
        0 0 44px rgba(231, 31, 108, 0.35);
}

@media (max-width: 1400px) {
    .contest-side-title {
        font-size: 60px;
    }
}

@media (max-width: 1200px) {
    .contest-side-title {
        font-size: 52px;
    }

    .contest-info-list {
        padding-left: 22px;
    }
}

@media (max-width: 1170px) {
    .contest-media-bg {
        width: 118%;
        height: 118%;
    }
}

@media (max-width: 992px) {
    .programs-new-panel,
    .programs-new-panel-inner,
    .contest-media-wrap {
        overflow: visible;
    }

    .contest-media-wrap {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 14px;
    }

    .contest-media-bg {
        width: 100%;
        height: 100%;
        background-size: 92% auto;
    }

    .contest-side {
        min-width: 260px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .contest-media-bg {
        width: 112%;
        height: 112%;
        background-size: 100% auto;
    }
}


.contest-text {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 0;
    border-radius: 18px;
    line-height: 1.55;
    background: transparent;
}

.contest-content-wrap {
    margin-top: 36px;
}

.contest-text p {
    margin: 0;
    opacity: 0.92;
}

.contest-text p + p {
    margin-top: 10px;
    margin-bottom: 20px;
}

.contest-info-footnote {
    margin-top: 40px;
}

.contest-steps-wrap {
    max-width: 1100px;
    margin: 0 auto 18px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: start;
}

.contest-steps-left {
    position: relative;
    border-radius: 22px;
    padding: 30px 40px;
    background: linear-gradient(216deg, rgb(255 170 131 / 22%), rgb(161 44 244 / 22%), rgba(30, 6, 56, 0.22));
    box-shadow: 10px 10px 10px rgb(34 3 42 / 25%);
    overflow: hidden;
}

.contest-steps-left::before {
    background-image: url(../images/sound-check/curves-back.svg);
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-radius: inherit;
    background-size: 200%;
    background-position: 0px 100px;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.contest-steps-left > * {
    position: relative;
    z-index: 1;
}

.contest-steps-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contest-steps-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.55;
}

.contest-steps-list li {
    margin: 0;
    opacity: 0.95;
}

.contest-steps-list li + li {
    margin-top: 8px;
}

.contest-info-list {
    padding: 0;
}

.contest-steps-sublist {
    margin: 8px 0 0 0;
    padding-left: 18px;
    opacity: 0.95;
}

.contest-steps-inline {
    white-space: nowrap;
}

.contest-steps-link {
    color: #e71f6c;
    text-decoration: underline;
}

.contest-steps-link:hover {
    color: #ff4aa0;
}

.contest-steps-right {
    display: grid;
    gap: 18px;
}

.contest-info-card {
    border-radius: 22px;
    padding: 0px 18px 20px 0;
    line-height: 1.55;
    background: transparent;
}

.contest-info-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
}

.contest-info-card b {
    margin: 0;
    opacity: 0.92;
}

.contest-info-card b + b {
    margin-top: 8px;
}

.contest-info-card--prizes {
    font-size: 22px;
}

.contest-info-list {
    margin: 0;
}

.contest-info-list li + li {
    margin-top: 10px;
}

.contest-info-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin: 14px 0;
}

.contest-info-strong {
    font-weight: 700;
    opacity: 1;
    font-size: 18px;
}

.contest-info-block {
    margin-top: 40px;
}

.contest-bottom-wrap {
    max-width: 1100px;
    margin: 0 auto 18px auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.contest-bottom-left,
.contest-bottom-right {
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.contest-bottom-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.95;
    color: #ff0091;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: transform 0.12s ease, opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.contest-bottom-link:hover {
    opacity: 1;
    color: #ff33aa;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.contest-bottom-link:active {
    transform: translateY(0);
    opacity: 0.95;
}

.contest-bottom-link:disabled,
.contest-bottom-link[aria-disabled="true"] {
    cursor: default;
    opacity: 0.75;
}

.contest-bottom-link:disabled:hover,
.contest-bottom-link[aria-disabled="true"]:hover {
    color: #ff0091;
    text-shadow: none;
    transform: none;
}

.contest-bottom-link-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: currentColor;
}

.contest-bottom-link--instrument {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contest-bottom-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
    color: currentColor;
}

.contest-bottom-info i {
    display: block;
}

.contest-bottom-btn {
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, #f002c2, #0618f0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.contest-bottom-btn:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.contest-bottom-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.contest-bottom-mid {
    border-radius: 22px;
    overflow: hidden;
    display: flex;
}

.contest-bottom-mid img,
.contest-bottom-right img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contest-bottom-right {
    text-align: center;
}

.contest-bottom-right {
    overflow: hidden;
    display: flex;
}

/* Правая картинка: показываем целиком, без обрезки */
.contest-bottom-right {
    padding: 0;
}

.contest-bottom-right img {
    object-fit: contain;
}

@media (max-width: 768px) {
    .contest-page ul {
        padding-left: 12px;
    }

    .contest-page {
        padding: 28px 0 60px;
        overflow-x: visible;
    }
    .programs-new-panel {
        border-radius: 28px;
        padding: 18px 16px;
    }
    .contest-block {
        border-radius: 16px;
    }
    
    .contest-side {
        gap: 30px;
    }

    .contest-gallery-top,
    .contest-gallery-left,
    .contest-gallery-right {
        border-radius: 16px;
    }

    .contest-gallery {
        flex-direction: column;
    }

    .contest-gallery-top {
        min-height: 180px;
    }

    .contest-gallery-top > img {
        height: 180px;
    }

    .contest-gallery-left,
    .contest-gallery-right {
        flex: 1 1 100%;
        height: 110px;
    }

    .contest-gallery-left > img,
    .contest-gallery-right > img {
        height: 110px;
    }

    .contest-media-wrap {
        grid-template-columns: 1fr;
    }

    .contest-gallery {
        display: none;
    }

    .contest-media-bg {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 220px;
        transform: scale(1.1);
        transform-origin: center top;
        margin-bottom: 0;
        margin-left: 0;
        background-size: contain;
        background-position: center;
    }

    .contest-side {
        border-radius: 16px;
    }

    .contest-side-title {
        font-size: 48px;
    }

    .contest-text {
        border-radius: 16px;
        padding-top: 0;
    }

    .contest-steps-wrap {
        grid-template-columns: 1fr;
    }

    .contest-steps-left,
    .contest-info-card {
        border-radius: 16px;
    }

    .contest-info-card--prizes {
        padding-left: 10px;
    }

    .contest-bottom-wrap {
        grid-template-columns: 1fr;
    }

    .contest-bottom-left,
    .contest-bottom-mid,
    .contest-bottom-right {
        border-radius: 16px;
    }
}

@media (max-width: 532px) {
    .contest-media-bg {
        width: 100%;
        height: 190px;
        margin-left: 0;
        transform: scale(1.12);
        background-size: contain;
    }
}

