        @font-face {
            font-family: 'Gilroy';
            src: url('fonts/Gilroy-Light.woff') format('woff');
            font-weight: 300;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Gilroy';
            src: url('fonts/Gilroy-Regular.woff') format('woff');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Gilroy';
            src: url('fonts/Gilroy-Medium.woff') format('woff');
            font-weight: 500;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Gilroy';
            src: url('fonts/Gilroy-Bold.woff') format('woff');
            font-weight: 700;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Gilroy';
            src: url('fonts/Gilroy-Heavy.woff') format('woff');
            font-weight: 800;
            font-style: normal;
            font-display: swap;
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            height: 100%;
            font-family: 'Gilroy', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow: hidden;
        }

        /* ===== Page wrapper ===== */
        .page {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }

        /* ===== HERO SCREEN ===== */
        .hero {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            background: url('../images/background.webp') center / cover no-repeat;
            color: #fff;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
            z-index: 2;
        }

        .page.quiz-active .hero {
            transform: translateX(-100%);
            opacity: 0;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg,
                    rgba(15, 15, 20, 0.92) 0%,
                    rgba(15, 15, 20, 0.85) 35%,
                    rgba(15, 15, 20, 0.55) 55%,
                    rgba(15, 15, 20, 0.15) 75%,
                    transparent 90%);
            z-index: 1;
        }

        .hero-inner {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            flex: 1;
            width: 100%;
            padding: 28px 48px 24px;
        }

        .header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 40px;
        }

        .dc-logo {
            height: 85px;
            width: auto;
            object-fit: contain;
        }

        .content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            max-width: 600px;
        }

        .heading {
            font-size: 36px;
            font-weight: 400;
            line-height: 1.2;
            margin-bottom: 20px;
            letter-spacing: -0.01em;
        }

        .description {
            font-size: 15px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.75);
            margin-bottom: 32px;
            max-width: 520px;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 16px 32px;
            background: #696969;
            color: #fff;
            font-family: inherit;
            font-size: 16px;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            text-decoration: none;
            align-self: flex-start;
        }

        .cta-button:hover {
            background: #4f4f4f;
            transform: translateY(-1px);
        }

        .cta-button:active {
            transform: translateY(0);
        }

        .telegram-link {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 24px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
        }

        .telegram-link a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.2s;
        }

        .telegram-link a:hover {
            color: #fff;
        }

        .tg-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #F5960A;
            flex-shrink: 0;
        }

        .bonuses {
            margin-top: 32px;
        }

        .bonuses-title {
            font-size: 14px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.65);
            margin-bottom: 14px;
        }

        .bonus-cards {
            display: flex;
            gap: 12px;
        }

        .bonus-card {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 5px;
            padding: 14px 18px;
            backdrop-filter: blur(8px);
            min-width: 0;
        }

        .bonus-card-lock-badge {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 20px;
            height: 20px;
            fill: #fff;
        }

        .bonus-lock {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            object-fit: contain;
        }

        .bonus-text {
            font-size: 13px;
            font-weight: 500;
            line-height: 1.35;
            color: rgba(255, 255, 255, 0.8);
        }

        .footer {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            padding: 20px 48px 28px;
            width: 100%;
        }

        .footer-left {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .footer-phone {
            font-size: 14px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
        }

        .footer-phone:hover {
            color: #fff;
        }

        .footer-company {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.4);
        }

        /* ===== QUIZ SCREEN ===== */
        .quiz-screen {
            position: absolute;
            inset: 0;
            display: flex;
            background: #f8f8f8;
            color: #1a1a1a;
            z-index: 1;
            transform: translateX(30%);
            opacity: 0;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease 0.1s;
            pointer-events: none;
        }

        .page.quiz-active .quiz-screen {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }

        .quiz-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            background: #ffffff;
            margin: 20px;
            border-radius: 16px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            overflow: hidden;
        }

        .quiz-top-bar {
            padding: 24px 40px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 820px;
            width: 100%;
            margin: 0 auto;
        }

        .quiz-label {
            font-size: 14px;
            font-weight: 400;
            color: #999;
        }

        .quiz-close {
            width: 32px;
            height: 32px;
            border: none;
            background: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            color: #999;
            transition: background 0.15s, color 0.15s;
        }

        .quiz-close:hover {
            background: #f0f0f0;
            color: #333;
        }

        .quiz-close svg {
            width: 20px;
            height: 20px;
        }

        .quiz-body {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .quiz-step {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 32px 40px;
            max-width: 820px;
            width: 100%;
            margin: 0 auto;
            transform: translateX(100%);
            opacity: 0;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
            pointer-events: none;
        }

        .quiz-step.active {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }

        .quiz-step.past {
            transform: translateX(-100%);
            opacity: 0;
        }

        .quiz-question {
            font-size: 30px;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 10px;
            color: #1a1a1a;
        }

        .quiz-hint-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            background: #f0f0f0;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: #666;
            margin-bottom: 24px;
            align-self: flex-start;
        }

        .quiz-hint-badge::before {
            content: '◉';
            font-size: 10px;
            color: #999;
        }

        .quiz-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .quiz-option {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 30px 35px;
            border: 1.5px solid #e8e8e8;
            border-radius: 12px;
            cursor: pointer;
            transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
            background: #fff;
        }

        .quiz-option:hover {
            border-color: #c0c0c0;
            background: #fafafa;
        }

        .quiz-option.selected {
            border-color: #F5960A;
            background: #FFF9F0;
            box-shadow: 0 0 0 1px #F5960A;
        }

        .quiz-option-icon {
            width: 45px;
            height: 45px;
            flex-shrink: 0;
            object-fit: contain;
        }

        .quiz-pin-icon {
            width: 30px;
            height: 30px;
        }

        .quiz-option-text {
            font-size: 16px;
            font-weight: 500;
            color: #333;
        }

        .quiz-footer {
            padding: 0 40px 28px;
            display: flex;
            align-items: center;
            gap: 20px;
            max-width: 820px;
            width: 100%;
            margin: 0 auto;
        }

        .quiz-progress-section {
            flex: 1;
            min-width: 0;
        }

        .quiz-progress-label {
            font-size: 13px;
            color: #999;
            margin-bottom: 8px;
        }

        .quiz-progress-bar {
            width: 100%;
            height: 4px;
            background: #eee;
            border-radius: 2px;
            overflow: hidden;
        }

        .quiz-progress-fill {
            height: 100%;
            width: 0%;
            background: #F5960A;
            border-radius: 2px;
            transition: width 0.4s ease;
        }

        .quiz-nav {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .quiz-nav-back {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            border: 1.5px solid #e0e0e0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.2s, background 0.2s;
            color: #999;
        }

        .quiz-nav-back:hover {
            border-color: #bbb;
            background: #f7f7f7;
            color: #555;
        }

        .quiz-nav-back svg {
            width: 18px;
            height: 18px;
        }

        .quiz-nav-next {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            background: #333;
            color: #fff;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .quiz-nav-next:hover {
            background: #1a1a1a;
        }

        .quiz-nav-next.last-step {
            background: #d4d4d4;
            color: #666;
            pointer-events: none;
            transition: background 0.3s, color 0.3s, transform 0.15s;
        }

        .quiz-nav-next.last-step.ready {
            background: #F5960A;
            color: #fff;
            pointer-events: auto;
        }

        .quiz-nav-next.last-step.ready:hover {
            background: #e08800;
            transform: translateY(-1px);
        }

        .quiz-nav-next.redirecting {
            pointer-events: none;
            gap: 10px;
        }

        .quiz-nav-next svg {
            width: 16px;
            height: 16px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .redirect-spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            flex-shrink: 0;
        }

        .quiz-enter-hint {
            font-size: 12px;
            color: #bbb;
            text-align: center;
            margin-top: 4px;
        }

        /* --- Contact form step --- */
        .quiz-form-step {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .quiz-form-step .quiz-question {
            text-align: center;
        }

        .quiz-form-subtitle {
            font-size: 15px;
            color: #888;
            text-align: center;
            margin-bottom: 28px;
            line-height: 1.5;
        }

        .quiz-contact-form {
            width: 100%;
            max-width: 420px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .quiz-form-input {
            width: 100%;
            padding: 16px 20px;
            border: 1.5px solid #e0e0e0;
            border-radius: 12px;
            font-family: inherit;
            font-size: 16px;
            color: #333;
            background: #fff;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .quiz-form-input::placeholder {
            color: #bbb;
        }

        .quiz-form-input:focus {
            border-color: #F5960A;
            box-shadow: 0 0 0 3px rgba(245, 150, 10, 0.12);
        }

        .quiz-form-input.error {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
        }

        /* Подсказка под полями: появляется только когда есть что сказать. */
        .quiz-form-hint {
            display: none;
            margin: -4px 0 0;
            font-size: 13px;
            line-height: 1.35;
            color: #e74c3c;
        }

        .quiz-form-hint.visible {
            display: block;
        }

        .quiz-form-submit {
            width: 100%;
            padding: 16px 24px;
            background: #F5960A;
            color: #fff;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            margin-top: 6px;
            line-height: 1.4;
        }

        .quiz-form-submit:hover {
            background: #e08800;
            transform: translateY(-1px);
        }

        .quiz-form-submit:active {
            transform: translateY(0);
        }

        .quiz-form-submit.sending {
            pointer-events: none;
            opacity: 0.85;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .quiz-form-policy {
            font-size: 12px;
            color: #aaa;
            text-align: center;
            margin-top: 4px;
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .quiz-form-subtitle {
                font-size: 13px;
                margin-bottom: 20px;
            }

            .quiz-form-input {
                padding: 14px 16px;
                font-size: 15px;
            }

            .quiz-form-submit {
                padding: 14px 20px;
                font-size: 14px;
            }
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-8px);
            }

            40% {
                transform: translateX(8px);
            }

            60% {
                transform: translateX(-6px);
            }

            80% {
                transform: translateX(4px);
            }
        }

        .quiz-options.shake {
            animation: shake 0.5s ease;
        }

        .quiz-options.shake .quiz-option {
            border-color: #e74c3c;
        }

        .quiz-nav-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
        }

        /* --- Quiz sidebar --- */
        .quiz-sidebar {
            width: 16vw;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 24px 20px;
            margin: 20px 20px 20px 0;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            justify-content: flex-start;
        }

        .quiz-sidebar-card {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
            border-radius: 10px;
            background: linear-gradient(228deg, #4f4f4f, #b5b5b5);
            color: #fff;
            height: 10vh;
        }

        .quiz-sidebar-card:nth-child(2) {
            background: linear-gradient(228deg, #4f4f4f, #b5b5b5);
        }

        .quiz-sidebar-card-lock-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 18px;
            height: 18px;
            fill: #555;
            background: #fff;
            border-radius: 50%;
            padding: 3px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        }

        .quiz-sidebar-lock {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            object-fit: contain;
        }

        .quiz-sidebar-text {
            font-size: 16px;
            font-weight: 600;
            line-height: 1.35;
        }

        @media (max-width: 1440px) {
            .quiz-sidebar-text {
                font-size: 13px;
            }

            .quiz-sidebar-lock {
                width: 32px;
                height: 32px;
            }

            .quiz-sidebar-card {
                padding: 12px 14px;
                gap: 8px;
            }
        }

        /* ===== Hero responsive ===== */
        @media (max-width: 768px) {
            .hero::before {
                background: linear-gradient(180deg,
                        rgba(15, 15, 20, 0.88) 0%,
                        rgba(15, 15, 20, 0.75) 50%,
                        rgba(15, 15, 20, 0.5) 80%,
                        rgba(15, 15, 20, 0.7) 100%);
            }

            .hero-inner {
                padding: 16px 20px 10px;
            }

            .header {
                margin-bottom: 16px;
            }

            .dc-logo {
                height: 55px;
            }

            .content {
                justify-content: flex-start;
                padding-top: 2vh;
            }

            .heading {
                font-size: 22px;
                margin-bottom: 10px;
            }

            .description {
                font-size: 13px;
                margin-bottom: 16px;
                line-height: 1.5;
            }

            .cta-button {
                padding: 12px 20px;
                font-size: 14px;
                border-radius: 10px;
                width: 100%;
                justify-content: center;
            }

            .telegram-link {
                font-size: 12px;
                margin-top: 12px;
            }

            .bonuses {
                margin-top: 16px;
            }

            .bonuses-title {
                font-size: 12px;
                margin-bottom: 10px;
            }

            .bonus-cards {
                flex-direction: row;
                gap: 8px;
            }

            .bonus-card {
                padding: 10px 12px;
                border-radius: 10px;
                flex: 1;
                min-width: 0;
            }

            .bonus-lock {
                width: 24px;
                height: 24px;
            }

            .bonus-text {
                font-size: 11px;
                line-height: 1.3;
            }

            .footer {
                padding: 10px 20px 16px;
            }

            .footer-phone {
                font-size: 13px;
            }

            /* Quiz mobile */
            .quiz-screen {
                flex-direction: column;
            }

            .quiz-main {
                margin: 8px 8px 0;
                border-radius: 12px;
                flex: none;
                height: calc(100dvh - 90px);
                overflow: hidden;
            }

            .quiz-sidebar {
                width: auto;
                flex-direction: row;
                margin: 8px;
                padding: 10px 12px;
                border-radius: 12px;
                gap: 8px;
                flex-shrink: 0;
            }

            .quiz-sidebar-card {
                flex: 1;
                min-width: 0;
                padding: 8px 10px;
                height: auto;
            }

            .quiz-sidebar-lock {
                width: 28px;
                height: 28px;
            }

            .quiz-sidebar-text {
                font-size: 10px;
            }

            .quiz-top-bar {
                padding: 12px 16px 0;
            }

            .quiz-step {
                padding: 16px 16px;
            }

            .quiz-question {
                font-size: 18px;
                margin-bottom: 16px;
            }

            .quiz-hint-badge {
                margin-bottom: 14px;
                font-size: 12px;
                padding: 4px 12px;
            }

            .quiz-options {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .quiz-option {
                padding: 12px 14px;
            }

            .quiz-option-icon {
                width: 28px;
                height: 28px;
            }

            .quiz-option-text {
                font-size: 13px;
            }

            .quiz-footer {
                padding: 0 16px 12px;
                flex-wrap: wrap;
                gap: 10px;
            }

            .quiz-progress-section {
                width: 100%;
                flex: unset;
            }

            .quiz-nav {
                width: 100%;
                justify-content: flex-end;
            }
        }

        @media (max-width: 380px) {
            .heading {
                font-size: 20px;
            }

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

            .cta-button {
                padding: 11px 16px;
                font-size: 13px;
            }

            .bonus-text {
                font-size: 10px;
            }
        }