* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

body {
    margin-top: 60px;
    margin-bottom: 60px;
    background-color: rgb(245, 245, 245);
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 80px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    margin-bottom: 60px;
}

.logo img {
    width: 220px;
    height: auto;
}

.hero__title {
    text-align: center;
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 60px;
}

.btn {
    color: white;
    background-color: #FF5050;
    padding: 31px 65px;
    border-radius: 20px;
    font-size: 28px;
    font-weight: 500;
    transition: all 0.4s ease;
}

.btn:hover {
    cursor: pointer;
    background-color: #ef1b1b;
    box-shadow: 0 0 20px rgba(255, 80, 80, 0.3);
    transition: all 0.4s ease;
    scale: 1.05;
}

.prizes {
    margin: 110px 0;
}

.prizes__header {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
}

.prizes__text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
}

.prizes__wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 60px;
}

.prizes__card {
    width: 100%;
    border-radius: 20px;
    padding: 0 40px 40px 40px;
    background-color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 20px;
    overflow: hidden;
}

.prizes__card-img {
    margin-bottom: 40px;
    font-size: 0;
}

.prizes__card-img img {
    width: auto;
    height: 100%;
    object-fit: none;
    transition: all 0.4s ease;
}

.prizes__card-img img:hover {
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.prizes__card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 30px;
    font-weight: 500;
}

.prizes__card-title::after {
    content: "";
    display: block;
    margin-top: 24px;
    width: 60px;
    height: 2px;
    border-radius: 2px;
    background-color: #000;
}

.winners {
    margin: 110px 0;
}

.winners__wrapper {
    display: flex;
    gap: 14px;
}

.winners__card {
    width: 100%;
    border-radius: 20px;
    padding: 40px;
    background-color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 20px;
    overflow: hidden;
}

.winners__card-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 16px;
}

.winners__card ol {
    margin-left: 20px;
}

.winners__card li {
    color: grey;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 400;
    display: list-item;
}

.winners__card--clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winners__card--clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#all-participants-list {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    padding-right: 10px;
}

/* Custom Scrollbar */
#all-participants-list::-webkit-scrollbar {
    width: 6px;
}

#all-participants-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#all-participants-list::-webkit-scrollbar-thumb {
    background: #FF5050;
    border-radius: 10px;
}

#all-participants-list::-webkit-scrollbar-thumb:hover {
    background: #ef1b1b;
}

/* Popup Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.popup {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF9D7 100%);
    width: 90%;
    max-width: 500px;
    padding: 60px 40px;
    border-radius: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay.active .popup {
    transform: scale(1);
}

.popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.popup__icon img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
}

.popup__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.popup__code {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
}

.popup--full {
    max-width: 90%;
    width: 90%;
    height: 90vh;
    overflow-y: auto;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.code-item {
    background: #fff;
    border: 2px solid #FF5050;
    color: #FF5050;
    padding: 10px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.code-item:hover {
    background: #fff5f5;
    transform: translateY(-2px);
}

.winner-item--active {
    color: #FF5050 !important;
    font-weight: 700 !important;
}

@media (max-width: 1024px) {
    body {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .container {
        padding: 0 30px;
    }

    .logo {
        margin-bottom: 40px;
    }

    .hero__title {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .hero__img {
        margin-bottom: 40px;
    }

    .hero__img img {
        width: 100%;
        max-width: 600px;
    }

    .btn {
        padding: 20px 53px;
        font-size: 20px;
    }

    .prizes {
        margin: 70px 0;
    }

    .prizes__header {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .prizes__text {
        font-size: 18px;
    }

    .prizes__wrapper {
        margin-top: 40px;
    }

    .prizes__card {
        padding: 0 26px 26px 26px;
    }

    .prizes__card-title {
        font-size: 22px;
    }


    .prizes__card-title::after {
        margin-top: 16px;
    }

    .winners {
        margin: 70px 0;
    }

    .winners__card {
        padding: 26px;
    }

    .winners__card-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .winners__card ol {
        margin-left: 20px;
    }

    .winners__card li {
        margin-bottom: 12px;
        font-size: 16px;

    }


}

@media (max-width: 768px) {
    body {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 20px;
    }

    .logo {
        margin-bottom: 30px;
    }

    .logo img {
        width: 150px;
        height: auto;
    }

    .hero__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .hero__img {
        text-align: center;
        margin-bottom: 30px;
    }

    .hero__img img {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .btn {
        padding: 20px 48px;
        font-size: 18px;
    }


    .prizes {
        margin: 60px 0;
    }

    .prizes__header {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .prizes__text {
        font-size: 16px;
    }

    .prizes__wrapper {
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
    }

    .prizes__card {
        padding: 0 32px 32px 32px;
    }

    .prizes__card-img img {
        max-height: 120px;
        object-fit: contain;
    }

    .prizes__card-img {
        margin-bottom: 22px;
    }

    .prizes__card-title {
        font-size: 20px;
    }

    .prizes__card-title::after {
        margin-top: 16px;
    }

    .winners {
        margin: 60px 0;
    }

    .winners__wrapper {
        flex-direction: column;
    }

    .winners__card {
        padding: 32px;
    }

    .winners__card-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .winners__card ol {
        margin-left: 20px;
    }

    .winners__card li {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .popup {
        padding: 40px 20px;
    }

    .popup__title {
        font-size: 28px;
    }

    .popup__code {
        font-size: 22px;
    }
}