.vote {
    --orange: #FF6A00;
    --orange-dark: #f04e00;
    --text: #1F2937;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft: #F7F7F7;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    color: var(--text);
    background: #fff;
}

.vote__form {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    padding: 32px 44px 44px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.08);
}

.vote__top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
}

.vote__brand {
    color: var(--orange);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.vote__counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.vote__counter span:first-child {
    color: var(--orange);
    font-size: 28px;
}

.vote__step-list {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 36px rgba(31, 41, 55, 0.06);
}

.vote__step-list span {
    position: relative;
    color: #8a9099;
    font-size: 15px;
    font-weight: 600;
}

.vote__step-list span.is-active {
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
}

.vote__step-list span.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--orange);
    transform: translateX(-50%);
}

.vote__progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 4px;
    background: #f0f1f3;
}

.vote__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 0 4px 4px 0;
    background: var(--orange);
    transition: width 260ms ease;
}

.vote__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(360px, 0.94fr) minmax(360px, 1.06fr);
    gap: 32px;
    align-items: center;
    min-height: 500px;
}

.vote__content {
    max-width: 560px;
    padding-top: 28px;
}

.vote__content[hidden],
.vote__thanks[hidden],
.vote__actions[hidden] {
    display: none;
}

.vote__thanks {
    align-self: center;
    max-width: 560px;
    padding-top: 34px;
    animation: voteFadeUp 260ms ease both;
}

.vote__thanks-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(255, 106, 0, 0.24);
}

.vote__thanks h2 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 44px;
    line-height: 1.14;
    font-weight: 900;
}

.vote__thanks p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.vote__nav-button.vote__reset {
    min-width: 220px;
    margin-top: 28px;
    border-color: rgba(255, 106, 0, 0.3);
    color: var(--orange);
}

.vote__nav-button.vote__reset:hover {
    border-color: rgba(255, 106, 0, 0.6);
    box-shadow: 0 16px 32px rgba(255, 106, 0, 0.14);
    transform: translateY(-1px);
}

@keyframes voteFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vote__meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.vote__meta span:first-child {
    color: var(--orange);
}

.vote__meta strong {
    font-size: inherit;
    font-weight: 900;
}

.vote__question-group {
    display: grid;
    gap: 22px;
}

.vote__question-group[hidden] {
    display: none;
}

.vote__question {
    margin: 0;
    padding: 0;
    border: 0;
}

.vote__question-title {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.24;
    font-weight: 900;
    letter-spacing: 0;
}

.vote__question-description {
    max-width: 560px;
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.vote__required {
    margin-left: 4px;
    color: var(--orange);
}

.vote__answers {
    display: grid;
    gap: 8px;
}

.vote__choice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.035);
    cursor: pointer;
    transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.vote__choice:hover {
    border-color: rgba(255, 106, 0, 0.38);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
    transform: translateY(-1px);
}

.vote__choice input {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.vote__choice input:checked {
    border: 6px solid #fff;
    box-shadow: 0 0 0 2px #fff;
}

.vote__choice:has(input:checked),
.vote__choice.vote__choice--checked {
    border-color: var(--orange);
    color: #fff;
    background: linear-gradient(180deg, #ff7a1a 0%, var(--orange) 100%);
    box-shadow: 0 18px 38px rgba(255, 106, 0, 0.28);
}

.vote__field {
    display: grid;
    gap: 8px;
    color: var(--text);
}

.vote__field input,
.vote__field textarea,
.vote__select {
    width: 100%;
    min-height: 62px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text);
    background: #fff;
    font-size: 16px;
}

.vote__field textarea {
    min-height: 124px;
    resize: vertical;
}

.vote__visual {
    position: relative;
    align-self: stretch;
    min-height: 480px;
}

.vote__visual::before {
    content: "";
    position: absolute;
    top: 42px;
    right: -22px;
    width: min(520px, 96%);
    height: 280px;
    border: 1px solid rgba(255, 106, 0, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(255, 255, 255, 0) 68%);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.vote__shape {
    position: absolute;
    right: -96px;
    bottom: -118px;
    width: 68%;
    height: 50%;
    border-radius: 0 0 24px 0;
    background: linear-gradient(136deg, transparent 0 49%, rgba(255, 106, 0, 0.96) 49% 100%);
}

.vote__shape::before {
    content: none;
}

.vote__visual img {
    position: absolute;
    top: 22px;
    right: -24px;
    bottom: auto;
    z-index: 2;
    width: min(540px, 100%);
    max-width: none;
    height: auto;
    filter: drop-shadow(0 28px 35px rgba(31, 41, 55, 0.18));
}

.vote__actions {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin-top: 12px;
}

.vote__submit,
.vote__nav-button,
.vote__results-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.vote__submit,
.vote__nav-button--primary {
    min-width: 204px;
    border: 1px solid var(--orange);
    color: #fff;
    background: linear-gradient(180deg, #ff7a1a 0%, var(--orange) 100%);
    box-shadow: 0 18px 34px rgba(255, 106, 0, 0.24);
}

.vote__submit::after,
.vote__nav-button--primary::after {
    content: "→";
    margin-left: 36px;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.vote__nav-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
}

.vote__submit:hover,
.vote__nav-button--primary:hover {
    background: linear-gradient(180deg, #ff8730 0%, var(--orange-dark) 100%);
    box-shadow: 0 22px 44px rgba(255, 106, 0, 0.31);
    transform: translateY(-1px);
}

.vote__nav-button:hover,
.vote__results-link:hover {
    border-color: rgba(255, 106, 0, 0.52);
    color: var(--orange);
}

.vote__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.vote__results-link {
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
}

.vote__message {
    min-height: 22px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.vote__message[data-type="success"] {
    color: var(--orange);
}

.vote__message[data-type="error"],
.vote__alert {
    color: #b42318;
}

.vote__alert {
    padding: 18px;
    border: 1px solid #f2b8b5;
    border-radius: 10px;
    background: #fff5f5;
}

.vote-results {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.vote--results {
    padding: 28px 0 48px;
}

.vote-results__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    gap: 28px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.vote-results__side {
    grid-column: 2;
    grid-row: 1;
}

.vote-results__layout > .vote-results {
    grid-column: 1;
    grid-row: 1;
}

.vote-results__qr {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 188px;
    padding: 14px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.07);
}

.vote-results__qr-code {
    display: block;
    width: 140px;
    height: 140px;
}

.vote-results__qr-code canvas,
.vote-results__qr-code img {
    display: block;
    width: 100%;
    height: 100%;
}

.vote-results__qr a {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

.vote-results__qr a:hover {
    color: var(--orange);
}

.vote-results__summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 14px 18px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.06);
}

.vote-results__summary strong {
    color: var(--orange);
    font-size: 26px;
    line-height: 1;
}

.vote-results__question {
    position: relative;
    overflow: hidden;
    padding: 30px 28px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(31, 41, 55, 0.08);
}

.vote-results__question::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--orange);
}

.vote-results__question + .vote-results__question {
    margin-top: 16px;
}

.vote-results__question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.vote-results__question-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 900;
}

.vote-results__question-head span {
    min-width: 46px;
    height: 34px;
    padding: 6px 11px;
    border-radius: 17px;
    color: var(--orange);
    background: rgba(255, 106, 0, 0.08);
    text-align: center;
    font-weight: 900;
}

.vote-results__bars {
    display: grid;
    gap: 16px;
}

.vote-results__bar-row {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(200px, 1fr) 96px;
    align-items: center;
    gap: 16px;
}

.vote-results__bar-label {
    color: var(--text);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vote-results__bar-track {
    position: relative;
    height: 14px;
    overflow: hidden;
    border-radius: 7px;
    background: #eef0f3;
}

.vote-results__bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7a1a, var(--orange));
    transition: width 260ms ease;
}

.vote-results__bar-value {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    color: var(--muted);
    white-space: nowrap;
}

.vote-results__bar-value strong {
    color: var(--text);
}

.vote-results__empty {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
}

@media (max-width: 1100px) {
    .vote__form {
        padding: 36px 34px 44px;
    }

    .vote__layout {
        grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
    }

    .vote__question-title {
        font-size: 23px;
    }
}

@media (max-width: 820px) {
    .vote {
        padding: 18px;
        background: #f8f9fb;
    }

    .vote__form {
        min-height: 0;
        padding: 72px 36px 42px;
        border-radius: 28px;
    }

    .vote__top {
        min-height: 0;
    }

    .vote__brand,
    .vote__step-list {
        display: none;
    }

    .vote__counter {
        position: absolute;
        top: 70px;
        right: 0;
        font-size: 21px;
    }

    .vote__counter span:first-child {
        font-size: 44px;
    }

    .vote__progress {
        top: 44px;
        left: 36px;
        right: 36px;
        height: 6px;
        border-radius: 6px;
        overflow: hidden;
    }

    .vote__progress span {
        border-radius: inherit;
    }

    .vote__layout {
        display: flex;
        flex-direction: column;
        gap: 36px;
        min-height: 0;
    }

    .vote__content {
        max-width: none;
        width: 100%;
        padding-top: 54px;
    }

    .vote__thanks {
        width: 100%;
        padding-top: 54px;
    }

    .vote__thanks h2 {
        font-size: 44px;
    }

    .vote__meta {
        margin-bottom: 28px;
        font-size: 22px;
    }

    .vote__question-group {
        gap: 24px;
    }

    .vote__question-title {
        margin-bottom: 16px;
        font-size: 26px;
        line-height: 1.24;
    }

    .vote__question-description {
        margin-top: -6px;
        font-size: 16px;
    }

    .vote__answers {
        gap: 10px;
    }

    .vote__choice {
        min-height: 62px;
        padding: 15px 18px;
        border-radius: 10px;
        font-size: 18px;
    }

    .vote__choice input {
        width: 28px;
        height: 28px;
        border-width: 3px;
    }

    .vote__choice input:checked {
        border-width: 8px;
    }

    .vote__visual {
        width: 100%;
        min-height: 520px;
        margin-top: 8px;
    }

    .vote__visual::before {
        content: none;
    }

    .vote__shape {
        right: -36px;
        bottom: -42px;
        width: 72%;
        height: 58%;
        border-radius: 0 0 24px 0;
    }

    .vote__visual img {
        top: auto;
        right: -8px;
        bottom: 24px;
        width: 104%;
    }

    .vote__actions {
        display: flex;
        flex-direction: column;
        gap: 14px;
        max-width: none;
        margin-top: 18px;
    }

    .vote__submit,
    .vote__nav-button,
    .vote__results-link {
        width: 100%;
        min-height: 104px;
        border-radius: 12px;
        font-size: 31px;
    }

    .vote__submit::after,
    .vote__nav-button--primary::after {
        margin-left: auto;
        font-size: 44px;
    }

    .vote-results__bar-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vote-results__bar-value {
        justify-content: flex-start;
    }

    .vote-results__layout {
        grid-template-columns: 1fr;
    }

    .vote-results__side,
    .vote-results__layout > .vote-results {
        grid-column: 1;
    }

    .vote-results__side {
        grid-row: 2;
        justify-self: center;
    }

    .vote-results__layout > .vote-results {
        grid-row: 1;
    }
}

@media (max-width: 560px) {
    .vote {
        padding: 10px;
    }

    .vote__form {
        padding: 62px 18px 28px;
        border-radius: 22px;
    }

    .vote__counter {
        top: 58px;
        font-size: 15px;
    }

    .vote__counter span:first-child {
        font-size: 30px;
    }

    .vote__progress {
        top: 34px;
        left: 18px;
        right: 18px;
        height: 4px;
    }

    .vote__content {
        padding-top: 38px;
    }

    .vote__meta {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .vote__question-group {
        gap: 18px;
    }

    .vote__question-title {
        margin-bottom: 12px;
        font-size: 21px;
    }

    .vote__question-description {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .vote__choice {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 15px;
    }

    .vote__choice input {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }

    .vote__choice input:checked {
        border-width: 7px;
    }

    .vote__visual {
        min-height: 330px;
    }

    .vote__submit,
    .vote__nav-button,
    .vote__results-link {
        min-height: 66px;
        font-size: 20px;
    }

    .vote-results__qr {
        width: 160px;
        padding: 12px;
    }

    .vote-results__qr-code {
        width: 118px;
        height: 118px;
    }
}
