/* Кнопка акции в hero */
.btn-hero-promo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, #fff 100%);
    color: #1a1a1a;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-hero-promo:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.22);
}

.btn-hero-promo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.btn-hero-promo__icon svg {
    width: 18px;
    height: 18px;
}

.btn-hero-promo__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-align: left;
    line-height: 1.2;
}

.btn-hero-promo__text strong {
    font-size: 14px;
    font-weight: 800;
    color: #b91c1c;
    letter-spacing: 0.02em;
}

.btn-hero-promo__text em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* Модальное окно акции */
.promo-modal-box {
    max-width: 440px;
    text-align: left;
    padding: 32px 28px 28px;
}

.promo-modal-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.promo-modal-title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.promo-modal-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-modal-list li {
    position: relative;
    padding: 10px 12px 10px 28px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
}

.promo-modal-list li::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 10px;
    color: #27ae60;
    font-weight: 800;
    font-size: 13px;
}

.promo-modal-price {
    color: #dc2626;
    font-weight: 800;
}

.promo-modal-list s {
    color: #94a3b8;
    font-size: 13px;
}

.promo-modal-note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.promo-modal-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.promo-modal-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.promo-success-step {
    text-align: center;
}

.promo-success-step p {
    margin: 0 0 20px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

/* Правая часть hero — карточки цен */
.hero-side-visual {
    position: relative;
    width: 100%;
    max-width: 360px;
    min-height: 360px;
    margin: 0 auto;
}

.hero-side-card {
    position: absolute;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.hero-side-card--main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    padding: 22px 20px;
    text-align: center;
    z-index: 2;
}

.hero-side-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-side-price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.hero-side-name {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.hero-side-old {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.hero-side-card--float {
    padding: 12px 14px;
    font-size: 12px;
    color: #64748b;
    z-index: 1;
}

.hero-side-card--float strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #0f172a;
}

.hero-side-card--viz {
    top: 12%;
    right: 0;
    animation: sideCardFloat 4.5s ease-in-out infinite;
}

.hero-side-card--shop {
    bottom: 10%;
    left: 0;
    animation: sideCardFloat 4.5s ease-in-out infinite 1.2s;
}

.hero-side-discount {
    position: absolute;
    top: 8%;
    left: 4%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
    animation: sideDiscountFloat 3.2s ease-in-out infinite;
    z-index: 3;
}

@keyframes sideCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sideDiscountFloat {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-6px) rotate(6deg); }
}

/* Модальное окно квиза */
.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quiz-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quiz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quiz-modal-panel {
    position: relative;
    width: 100%;
    max-width: 1104px;
    max-height: min(94vh, 816px);
    overflow-y: auto;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-modal.is-open .quiz-modal-panel {
    transform: translateY(0) scale(1);
}

.quiz-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.quiz-modal-close svg {
    width: 18px;
    height: 18px;
}

.quiz-modal-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

body.quiz-modal-open {
    overflow: hidden;
}

.hero-quiz {
    position: relative;
    width: 100%;
    padding: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    color: #0f172a;
}

.hero-quiz::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: rgba(39, 174, 96, 0.08);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-quiz::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: 0;
    width: min(420px, 48vw);
    height: min(300px, 70%);
    background: url('/assets/img/ls-demo-wireframe.svg') no-repeat right bottom / contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(115deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 58%);
    -webkit-mask-image: linear-gradient(115deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 58%);
}

.hero-quiz-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(288px, 408px) 1fr;
    min-height: 624px;
}

.hero-quiz-visual {
    position: relative;
    background: transparent;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid #eef2f7;
}

.hero-quiz-visual-img-wrap {
    position: relative;
    flex: 1;
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1c20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hq-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hq-visual-img.is-active {
    opacity: 1;
    transform: scale(1);
}

.hq-visual-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    border-radius: 18px;
}

.hq-visual-promo {
    padding: 18px 16px 28px;
    background: linear-gradient(180deg, rgba(10, 11, 13, 0.94) 0%, rgba(10, 11, 13, 0.72) 55%, transparent 100%);
}

.hq-visual-promo-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.28);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hq-visual-promo-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hq-visual-progress {
    padding: 28px 16px 16px;
    background: linear-gradient(0deg, rgba(10, 11, 13, 0.92) 0%, transparent 100%);
}

.hq-visual-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hq-visual-progress-label strong {
    font-size: 14px;
    font-weight: 800;
    color: #6ee7a0;
    letter-spacing: 0;
    text-transform: none;
}

.hq-visual-progress-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hq-visual-progress-bar {
    width: 25%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1e8449 0%, #27ae60 45%, #6ee7a0 100%);
    box-shadow: 0 0 12px rgba(39, 174, 96, 0.45);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-quiz-bonus-card {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hero-quiz-bonus-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.hero-quiz-bonus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.12) 0%, rgba(254, 242, 242, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.hero-quiz-bonus-icon svg {
    width: 20px;
    height: 20px;
}

.hero-quiz-bonus-card strong {
    display: block;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.2;
}

.hero-quiz-bonus-card > p {
    margin: 6px 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.hero-quiz-bonus-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-quiz-bonus-list li {
    position: relative;
    padding: 8px 10px 8px 30px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-quiz-bonus-list li::before {
    content: '🔒';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
}

.hero-quiz-bonus-list li.is-unlocked {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.25);
    color: #1e8449;
}

.hero-quiz-bonus-list li.is-unlocked::before {
    content: '✓';
    color: #27ae60;
}

.hero-quiz-main {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-quiz-header h3 {
    margin: 10px 0 8px;
    padding-right: 36px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.hero-quiz-header p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.hero-quiz-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-quiz-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 22px;
}

.hq-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 56px;
}

.hq-step i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.hq-step em {
    font-style: normal;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hq-step.is-active i,
.hq-step.is-done i {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}

.hq-step.is-active em,
.hq-step.is-done em {
    color: #334155;
}

.hq-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px 18px;
    border-radius: 999px;
}

.hq-panel {
    display: none;
    animation: hqFadeIn 0.35s ease;
}

.hq-panel.is-active {
    display: block;
}

@keyframes hqFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hq-q {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.hq-q-hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.hq-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hq-options--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: min(340px, 42vh);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(39, 174, 96, 0.45) #eef2f7;
}

.hq-options--compact::-webkit-scrollbar {
    width: 5px;
}

.hq-options--compact::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.45);
}

.hq-options--compact .hq-option {
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 11px;
}

.hq-options--compact .hq-option input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
}

.hq-options--compact .hq-option-body strong {
    font-size: 12px;
    line-height: 1.3;
}

.hq-options--compact .hq-option-body small {
    font-size: 10px;
    margin-top: 2px;
    line-height: 1.3;
    color: #94a3b8;
}

.hq-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hq-option:hover {
    border-color: rgba(39, 174, 96, 0.45);
    background: #f8fafc;
}

.hq-option:has(input:checked) {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.06);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.1);
}

.hq-option input {
    accent-color: #27ae60;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.hq-option-body strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.hq-option-body small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.hq-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hq-fields input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hq-fields input::placeholder {
    color: #94a3b8;
}

.hq-fields input:focus {
    outline: none;
    border-color: #27ae60;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
}

.hero-quiz-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hq-back {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hq-back:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.hq-next,
.hq-submit,
.quiz-done-close {
    flex: 1;
    justify-content: center;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.hq-next[disabled],
.hq-submit[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.hero-quiz-done {
    text-align: center;
    padding: 8px 0 4px;
}

.hero-quiz-done-gift {
    line-height: 1;
    margin-bottom: 12px;
    animation: promoIconFloat 2.5s ease-in-out infinite;
}

@keyframes promoIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-quiz-done-gift img {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

.hero-quiz-done-bonus {
    margin: 0 auto 16px;
    max-width: 380px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(39, 174, 96, 0.25);
    text-align: left;
}

.hero-quiz-done-bonus p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #0f172a;
}

.hero-quiz-done-bonus ul {
    margin: 0;
    padding: 0 0 0 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.hero-quiz-done-note {
    margin: 0 0 18px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
}

.hero-quiz-done-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-quiz-done h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #0f172a;
}

.hero-quiz-done p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
}

.hq-error {
    margin-top: 10px;
    font-size: 13px;
    color: #dc2626;
}

.btn-quiz-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-quiz-pulse svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-quiz-pulse::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    border: 2px solid rgba(239, 68, 68, 0.45);
    animation: quizBtnPulse 2s ease-out infinite;
    pointer-events: none;
}

.btn-quiz-pulse:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.48);
}

@keyframes quizBtnPulse {
    0% { transform: scale(0.94); opacity: 0.85; }
    100% { transform: scale(1.18); opacity: 0; }
}

/* Плавающая кнопка квиза — над кнопкой связи слева внизу */
.quiz-fab-wrap {
    position: fixed;
    left: 20px;
    bottom: 104px;
    z-index: 99989;
}

.quiz-fab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-fab svg {
    width: 26px;
    height: 26px;
}

.quiz-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.45);
    animation: quizBtnPulse 2s ease-out infinite;
    pointer-events: none;
}

.quiz-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.48);
}

.quiz-fab-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    min-width: 200px;
    max-width: 240px;
    padding: 10px 32px 10px 14px;
    border-radius: 14px;
    background: #fff;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.94);
    transform-origin: left bottom;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s;
    pointer-events: none;
}

.quiz-fab-tooltip-text {
    display: block;
}

.quiz-fab-tooltip-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.quiz-fab-tooltip-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.quiz-fab-tooltip::after {
    content: '';
    position: absolute;
    left: 22px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 6px rgba(15, 23, 42, 0.06);
}

.quiz-fab-wrap.is-tooltip-visible .quiz-fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hq-submit.btn-quiz-pulse {
    flex: 1;
}

.hq-back[hidden],
.hq-next[hidden],
.hq-submit[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .btn-hero-promo {
        width: 100%;
        justify-content: center;
    }

    .btn-hero-promo__text {
        align-items: center;
        text-align: center;
    }

    .hero-quiz-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-quiz-visual {
        padding: 18px 16px 0;
        border-right: none;
        border-bottom: 1px solid #eef2f7;
    }

    .hero-quiz-visual-img-wrap {
        min-height: 180px;
    }

    .hq-visual-promo-title {
        font-size: 14px;
    }

    .hero-quiz-bonus-card {
        margin-bottom: 4px;
    }

    .hero-quiz-main {
        padding: 20px 18px 18px;
    }

    .hq-options {
        grid-template-columns: 1fr;
    }

    .hq-options--compact {
        grid-template-columns: 1fr 1fr;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .quiz-fab-wrap {
        left: 14px;
        bottom: 94px;
    }

    .quiz-fab {
        width: 54px;
        height: 54px;
    }

    .quiz-fab svg {
        width: 24px;
        height: 24px;
    }

    .hero-side-visual {
        max-width: 300px;
        min-height: 210px;
        margin: 0 auto;
    }

    .hero-side-card--main {
        width: 190px;
        padding: 18px 16px;
    }

    .hero-side-card--viz {
        top: 6%;
    }

    .hero-side-card--shop {
        bottom: 4%;
    }

    .hero-side-discount {
        width: 54px;
        height: 54px;
        font-size: 13px;
        top: 4%;
    }
}

@media (max-width: 768px) {
    .quiz-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .quiz-modal-panel {
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        max-height: none;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        transform: translateY(12px);
    }

    .quiz-modal.is-open .quiz-modal-panel {
        transform: translateY(0) scale(1);
    }

    .hero-quiz {
        flex: 1;
        min-height: 0;
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .hero-quiz-layout {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero-quiz-visual {
        flex-shrink: 0;
        padding: max(44px, calc(env(safe-area-inset-top, 0px) + 34px)) 12px 0;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid #eef2f7;
    }

    .hero-quiz-visual-img-wrap {
        min-height: 0;
        height: 72px;
        max-height: 72px;
        flex: none;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.1);
        background: #1a1c20;
    }

    .hq-visual-promo {
        padding: 8px 10px 10px;
    }

    .hq-visual-promo-tag {
        margin-bottom: 4px;
        padding: 2px 7px;
        font-size: 8px;
    }

    .hq-visual-promo-title {
        font-size: 12px;
        line-height: 1.25;
    }

    .hq-visual-promo-title br {
        display: none;
    }

    .hq-visual-progress {
        display: none;
    }

    .hero-quiz-bonus-card {
        margin-bottom: 0;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .hero-quiz-bonus-head {
        margin-bottom: 4px;
        gap: 8px;
    }

    .hero-quiz-bonus-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .hero-quiz-bonus-icon svg {
        width: 14px;
        height: 14px;
    }

    .hero-quiz-bonus-card strong {
        font-size: 12px;
    }

    .hero-quiz-bonus-card > p {
        display: none;
    }

    .hero-quiz-bonus-list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .hero-quiz-bonus-list::-webkit-scrollbar {
        display: none;
    }

    .hero-quiz-bonus-list li {
        flex: 0 0 auto;
        padding: 5px 8px 5px 24px;
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
        max-width: 148px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-quiz-bonus-list li::before {
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
    }

    .hero-quiz-main {
        flex: none;
        min-height: auto;
        overflow: visible;
        padding: 12px 12px max(20px, env(safe-area-inset-bottom, 0px));
    }

    .hero-quiz-header h3 {
        font-size: 1.1rem;
        padding-right: 36px;
        margin: 6px 0;
    }

    .hero-quiz-header p {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.4;
    }

    .hero-quiz-tag {
        font-size: 9px;
        padding: 3px 8px;
    }

    .hero-quiz-progress {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-bottom: 14px;
    }

    .quiz-modal-close {
        top: max(10px, env(safe-area-inset-top, 0px));
        right: max(10px, env(safe-area-inset-right, 0px));
        background: rgba(255, 255, 255, 0.92);
        color: #64748b;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
    }

    body.quiz-modal-open .quiz-fab-wrap,
    body.quiz-modal-open .itpanda-lead-fab,
    body.quiz-modal-open .scroll-top {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-side-card--viz,
    .hero-side-card--shop,
    .hero-side-discount,
    .btn-quiz-pulse::before,
    .hero-quiz-done-gift {
        animation: none;
    }
}
