.vote-hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 60px;
    margin-bottom: 40px;
}

.vote-logo {
    margin-right: 76px;
}

.vote-logo img {
    display: block;
    width: 206px;
    border: none !important;
    padding: 0 !important;
}

.vote-hero-text {
    max-width: 771px;
}

.vote-hero-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #4E2F07;
    margin-bottom: 16px;
}

.vote-hero-description {
    max-width: 591px;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    color: #4E2F07;
}


.vote-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 50px;
}

.vote-card {
    text-align: center;
    padding: 16px 16px 12px;
    background: #FFD27B;
    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: 16px;
    min-height: 40px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #4E2F07;
    margin-bottom: 8px;
}

.vote-rating {
    display: flex;
    justify-content: center;
    justify-content: space-between;
    gap: 4px;
}

.vote-rating-button {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: #4E2F07 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background: #FFB018;
    transition: .2s;
    text-decoration: none !important;
}

.vote-rating-button:has(input:checked) {
    color: #fff !important;
    background: #3F382B;
}

.vote-rating-button:has(input:disabled):not(:has(input:checked)) {
    font-size: 0;
    background-color: rgba(255, 176, 24, 0.3);
    background-image: url('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.74994 9L7.49994 12.75L14.9999 5.25" stroke="%234E2F07" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    pointer-events: none;
}

.vote-labels {
    font-weight: 300;
    font-size: 10px;
    line-height: 1.2;
    color: #4E2F07;
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.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: #FFD27B;
    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: #3F382B;
    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: #FFD27B;
    border-radius: 28px;
    text-decoration: none !important;
    cursor: pointer;
}

.vote-gender-button:has(input:checked) {
    color: #fff !important;
    background: #3F382B;
}


.vote-submit {
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: rgb(255, 255, 255);
    padding: 20px;
    background: #3F382B;
    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: #3F382B;
    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 {
    display: flex;
    gap: 20px;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 468px;
    min-height: 180px;
    background: rgba(255, 210, 123, 0.6);
    backdrop-filter: blur(1.5px);
    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 {
    position: absolute;
    left: 43.85px;
    top: 26.82px;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: -0.818182px -0.818182px 0.818182px #271A0A;
}

.vote-popup-text {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #4E2F07;
}

@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 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 24px;
    }

    .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;
        margin-bottom: 16px;
    }

    .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 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        padding: 8px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .vote-card-title {
        font-size: 13px;
        text-align: left;
        overflow-wrap: break-word;
        hyphens: auto;
        min-height: auto;
        margin-bottom: 0;
    }

    .vote-hero-title br {
        display: none;
    }

    .vote-card-image {
        display: none;
    }

    .vote-labels {
        display: none;
    }

    /* .vote-rating-button {
        font-size: 16px;
        width: 40px;
        height: 40px;
    } */
    .vote-form-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .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;
        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: 30.85px;
        top: 18.82px;
        font-size: 14.4px;
        text-shadow: -0.818182px -0.818182px 0.818182px #271A0A;
    }

    .vote-popup-text {
        font-size: 19px;
        line-height: 1.2;
    }
}