.prizes {
    padding: 150px 0;
}

.prizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prizes-list__item {
    padding: 0;
}

.prizes-list__item+.prizes-list__item {
    margin-top: 150px;
}

.prize__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-fantasy);
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.prize__heading::before {
    --size: 36px;
    content: '';
    width: var(--size);
    height: var(--size);
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    margin-right: 10px;
}

.prize__heading>span {
    flex-grow: 1;
}

.prize__title::before {
    background-image: url('../img/prizes/train.svg');
}

.prize__country-icon {
    flex-shrink: 0;
    width: 46px;
    margin-left: 20px;
}

.prize__result {
    font-size: 34px;
    margin-bottom: 0;
}

.prize__result::before {
    background-image: url('../img/prizes/box.svg');
}

.prize__result>span>span:not([class]) {
    margin-right: 16px;
}

.prize__result-date {
    color: var(--color-warning-accent);
}

p.prize__description {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.prize__item {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}

.prize__item img {
    margin: 0 auto;
    max-width: 100%;
}

.prize__item span {
    display: block;
    margin-top: 10px;
    color: var(--color-prize-name);
    font-size: 20px;
    line-height: 1.2;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        'first first first first first'
        'second second second third third'
        'last last last last last';
    gap: 20px;
}

.gallery__item {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter .4s, opacity .4s;
}

.gallery .gallery__item:nth-child(1) {
    grid-area: first;
}

.gallery .gallery__item:nth-child(2) {
    grid-area: second;
}

.gallery .gallery__item:nth-child(3) {
    grid-area: third;
}

.gallery .gallery__item:nth-child(4) {
    grid-area: last;
}

.prize:nth-child(2n) .gallery {
    grid-template-areas:
        'first first first first first'
        'second second third third third'
        'last last last last last';
}

@media screen and (min-width: 992px) {
    .gallery__img:hover {
        cursor: pointer;
        filter: grayscale(0);
        opacity: 1;
    }
}

@media screen and (max-width: 1199px) {
    .prizes {
        padding: 110px 0;
    }

    .prizes-list__item+.prizes-list__item {
        margin-top: 110px;
    }
}

@media screen and (max-width: 991px) {
    .prizes {
        padding: 80px 0;
    }

    .prizes-list__item+.prizes-list__item {
        margin-top: 80px;
    }

    .prize__country-icon {
        width: 40px;
    }

    .prize__item span {
        font-size: 16px;
    }

    p.prize__description {
        font-size: 16px;
        margin-bottom: 26px;
    }

    .gallery {
        margin-bottom: 40px;
    }

    .gallery__item {
        border-radius: 20px;
    }

    .gallery__img {
        filter: grayscale(0);
        opacity: 1;
    }

    .gallery .gallery__item:nth-child(4) {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .prizes {
        padding: 60px 0;
    }

    .prizes-list__item+.prizes-list__item {
        margin-top: 60px;
    }

    .prize__heading {
        font-size: 34px;
    }

    .prize__heading::before {
        --size: 30px;
    }

    .prize__result>span>span:not([class]) {
        margin-right: 10px;
    }

    .prize__item span {
        font-size: 14px;
    }

    p.prize__description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .gallery {
        gap: 14px;
    }

    .gallery__item {
        border-radius: 10px;
    }
}

@media screen and (max-width: 665px) {
    .prizes {
        padding: 40px 0;
    }

    .prize__country-icon {
        width: 36px;
        margin-left: 10px;
    }

    .prize__heading {
        font-size: 30px;
    }

    .prize__heading::before {
        --size: 28px;
    }

    .prize__item span {
        font-size: 12px;
    }

    img.prize__img-note {
        max-width: 320px;
    }

    img.prize__img-main {
        max-width: 80%;
    }
}

@media screen and (max-width: 479px) {
    .prize__heading {
        font-size: 24px;
    }

    .prize__heading::before {
        --size: 28px;
    }

    img.prize__img-note {
        max-width: 220px;
    }

    img.prize__img-main {
        max-width: 90%;
    }
}