.vote {
    background: #E6E1D8;
}
.vote-hero {
    position: relative;
    background: #FAF7ED;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0px 0px 20px 20px;
    overflow: hidden;
}

.vote-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vote-hero-bg img {
    padding: 0 !important;
    border: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vote-hero-content {
    position: relative;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 54px;
    margin-bottom: 54px;
}

.vote-logo {
    margin-right: 76px;
}

.vote-logo img {
    display: block;
    width: 276px;
    border: none !important;
    padding: 0 !important;
}

.vote-hero-text {
    position: relative;
    max-width: 600px;
    padding-top: 40px;
    padding-bottom: 26px;
}

.vote-hero-text::after {
    content: '';
    position: absolute;
    inset: -8px;
    z-index: -1;
    border-radius: inherit;
    background: #fff;
    filter: blur(10px);
    opacity: 0.9;
    border-radius: 80%;
}

.vote-hero-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #4E2F07;
    text-align: center;
    margin-bottom: 16px;
}

.vote-hero-description {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.2;
    color: #4E2F07;
    text-align: center;
}

.vote-content {
    padding-top: 40px;
    padding-bottom: 64px;
}

.vote-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 50px;
}

.vote-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    background: #F3F1ED;
    border-radius: 20px;
    min-width: 0;
}

.vote-card-image {
    display: block;
    width: 100%;
    /* height: 120px; */
    aspect-ratio: 192/116;
    object-fit: contain;
    object-fit: cover;
    object-position: center;
    border: none !important;
    padding: 0 !important;
}

.vote-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    border: none !important;
    padding: 0 !important;
}

.vote-card-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #4E2F07;
    margin-bottom: 8px;
}

.vote-rating {
    margin-top: auto;
    display: flex;
    justify-content: center;
    justify-content: space-between;
    gap: 4px;
}

.vote-rating-button {
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: .2s;
    text-decoration: none !important;
    background-image: url('data:image/svg+xml,<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.6555 1.49135C12.1422 0.279271 13.8581 0.279269 14.3449 1.49135L16.5036 6.8671C16.7109 7.38326 17.1953 7.73522 17.7503 7.77285L23.53 8.16475C24.8332 8.25311 25.3634 9.885 24.361 10.7225L19.9155 14.4368C19.4887 14.7934 19.3036 15.3629 19.4393 15.9023L20.8526 21.5202C21.1713 22.7869 19.7831 23.7955 18.6769 23.101L13.7707 20.0208C13.2996 19.7251 12.7008 19.7251 12.2297 20.0208L7.32345 23.101C6.21723 23.7955 4.82905 22.7869 5.14772 21.5203L6.56104 15.9023C6.69674 15.3629 6.51171 14.7934 6.08486 14.4368L1.63931 10.7225C0.636962 9.885 1.16719 8.25311 2.47036 8.16475L8.2501 7.77285C8.80505 7.73522 9.28948 7.38326 9.49675 6.86711L11.6555 1.49135Z" fill="%23E2CA9C"/></svg>');
    background-size: 26px 26px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Выбранная звезда + все звёзды перед ней */
.vote-rating-button:has(input:checked),
.vote-rating-button:has(~ .vote-rating-button input:checked) {
    background-image: url('../images/voting/star.png');
}

/* Hover: текущая звезда + все звёзды слева */
.vote-rating-button:hover,
.vote-rating-button:has(~ .vote-rating-button:hover) {
    background-image: url('../images/voting/star.png');
}

.vote-form {
    width: 350px;
    margin: 0 auto;
    text-align: center;
}

.vote-form-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #4E2F07;
    margin-bottom: 12px;
}

.vote-age {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 6px;
    background: #F3F1ED;
    border-radius: 28px;
}

.vote-age-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background: #D24F3A;
    transition: .2s;
}

.vote-age-value {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: #4E2F07;
    border: none;
    background-color: transparent;
    width: max-content;
    text-align: center;
}

.vote-gender {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
}

.vote-gender-button {

    flex: 1;
    transition: .2s;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: #4E2F07 !important;
    padding: 11px 20px;
    background: #F3F1ED;
    border-radius: 28px;
    text-decoration: none !important;
    cursor: pointer;
}

.vote-gender-button:has(input:checked) {
    color: #fff !important;
    background: #D24F3A;
}


.vote-submit {
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: rgb(255, 255, 255);
    padding: 20px;
    background: #D24F3A;
    border-radius: 30px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: .2s;
    margin-bottom: 20px;
}

.vote-submit:disabled {
    cursor: default;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    background: #DF8F7E;
    opacity: 0.6;
}

.vote-submit:disabled {
    cursor: default;
}

.vote-thanks {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #4E2F07;
    margin-bottom: 12px;
}


.vote-rating-button input,
.vote-gender-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vote-card {
    border: 0;
    min-width: 0;
    margin: 0;
}

.vote-card-title {
    display: block;
}

.vote-popup {
    background: rgba(243, 241, 237, 0.6);
    display: flex;
    gap: 20px;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    min-height: 180px;
    backdrop-filter: blur(2px);
    padding: 40px;
    border-radius: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vote-popup.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vote-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}

.vote-popup-close svg {
    width: 34px;
    height: 34px;
}

.vote-popup-image {
    position: relative;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
}

.vote-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vote-popup-image-num {
    font-size: 33.9989px;
    line-height: 1.2;
    font-weight: 800;
    color: #FFFFFF;
    position: absolute;
    left: 40.85px;
    top: 28.82px;
    text-shadow: -1.93176px -1.93176px 0px #271A0A;
}

.vote-popup-text {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #4E2F07;
}

.vote-popup-text-taste {
    font-size: 26px;
    text-transform: uppercase;
}

@media (hover: hover) {
    .vote-rating-button:hover,
    .vote-gender-button:hover,
    .vote-submit:hover,
    .vote-age-button:hover,
    .vote-popup-close:hover {
        opacity: 0.8;
    }
}

@media (max-width: 1200px) {

    .vote-logo {
        margin-right: 52px;
    }

    .vote-cards {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 992px) {
    .vote-logo {
        margin-right: 32px;
    }
}

@media (max-width: 768px) {


    .vote-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .vote-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .vote-form {
        width: 100%;
    }

    .vote-hero h1 {
        font-size: 30px;
    }

    .vote-hero p {
        font-size: 18px;
    }

    .vote-rating-button {
        font-size: 16px;
        width: 40px;
        height: 40px;
    }

}

@media (max-width: 599px) {
    .vote-hero {
        text-align: left;
        gap: 20px;
        margin-top: 0;
        background-color: transparent;
        border: unset;
        box-shadow: unset;
    }

    .vote-hero-text {
        padding: 0;
    }

    .vote-hero-text::after {
        display: none;
    }

    .vote-hero-bg {
        display: none;
    }

    .vote-hero-content {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .vote-content {
        padding-top: 0;
        padding-bottom: 28px;
    }

    .vote-hero-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .vote-hero-description {
        font-size: 15px;
    }

    .vote-logo {
        margin-right: 0;
    }
    .vote-cards {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
    }

    .vote-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px;
        padding: 10px 7px;
        border-radius: 12px;
    }

    .vote-card-title {
        font-size: 13px;
        line-height: 1.3;
        text-align: left;
        margin-bottom: 0;
        flex-grow: 1;
    }

    .vote-hero-title br {
        display: none;
    }

    .vote-card-image {
        width: 20%;
        flex: 0 0 20%;
    }

    .vote-rating {
        width: 142px;
        flex: 0 0 142px;
        gap: 3px;
        margin-top: 0;
    }

    .vote-form-title {
        font-size: 17px;
    }

    .vote-age {
        margin-bottom: 16px;
    }

    .vote-age-button {
        width: 32px;
        height: 32px;
    }

    .vote-age-button svg {
        width: 16px;
        height: 16px;
    }

    .vote-age-value {
        font-size: 18px;
    }

    .vote-gender {
        margin-bottom: 36px;
    }

    .vote-gender-button {
        font-size: 18px;
    }

    .vote-popup {
        top: unset;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translate(0);
        width: 100%;
        min-height: 112px;
        padding: 20px 30px 20px 20px;
        border-radius: 12px 12px 0 0;
    }

    .vote-popup-close {
        width: 32px;
        height: 32px;
    }

    .vote-popup-close svg {
        width: 20px;
        height: 20px;
    }

    .vote-popup-image {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }

    .vote-popup-image-num {
        left: 27.85px;
        top: 18.82px;
        font-size: 27.2px;
        text-shadow: -0.818182px -0.818182px 0.818182px #271A0A;
    }

    .vote-popup-text {
        font-size: 15px;
        line-height: 1.2;
    }

    .vote-popup-text-taste {
        font-size: 19px;
        margin-top: 4px;
    }
}