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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #0f172a;
    color: #1f2937;
}

@media (max-width: 968px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        height: auto;
    }
    
    .main-container {
        min-height: 100vh;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
    }
}

/* Основной контейнер */
.main-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 968px) {
    .main-container {
        min-height: 100vh;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
        position: relative;
    }
    
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
}

/* Split фон */
.split-background {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
    background-image: url('banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 968px) {
    .split-background {
        position: relative;
        min-height: 100vh;
        background-position: left center;
    }
}

/* Баннер (левая часть 70%) */
.banner-section {
    flex: 0 0 70%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 1;
}

@media (max-width: 968px) {
    .banner-section {
        flex: 1;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        position: relative;
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 40px;
    max-width: 800px;
    margin-right: auto;
    margin-left: 10%;
    margin-top: -40px;
}

@media (max-width: 968px) {
    .banner-content {
        padding: 20px 16px;
        margin-left: 4%;
        margin-right: auto;
        text-align: left;
        margin-top: -15px;
    }
    
    .company-info {
        bottom: 15px;
        left: 16px;
        font-size: 10px;
    }
}


.banner-title {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
    line-height: 1.3;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
    letter-spacing: 1px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.banner-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    text-align: left;
    display: block;
}

.banner-list li {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.banner-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-size: 46px;
    font-weight: bold;
    line-height: 1;
}

.banner-description {
    font-size: 48px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 800px;
    margin: 35px auto 0;
    padding-top: 30px;
    border-top: 3px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Информация о компании */
.company-info {
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.company-info div {
    margin-bottom: 2px;
}

/* Форма с данными компании (только мобильная) */
.company-form-mobile {
    display: none;
}

@media (max-width: 640px) {
    .company-form-mobile {
        display: block;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(148, 163, 184, 0.3);
        padding: 20px 16px;
        margin-top: 20px;
    }
    
    .company-form-content {
        max-width: 100%;
    }
    
    .company-form-item {
        color: #ffffff;
        font-size: 11px;
        line-height: 1.6;
        margin-bottom: 6px;
    }
    
    .company-form-item strong {
        font-weight: 700;
        font-size: 12px;
    }
}

/* Правая часть (30%) */
.quiz-section {
    flex: 0 0 30%;
    position: relative;
    z-index: 1;
}

/* Карточка квиза поверх фона */
.quiz-card {
    position: absolute;
    right: clamp(16px, 5vw, 64px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: min(460px, 92vw);
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 968px) {
    .quiz-card {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin: 20px auto 0;
        padding: 32px 24px;
    }
}

/* Скрытие скроллбара для красоты */
.quiz-card::-webkit-scrollbar {
    width: 6px;
}

.quiz-card::-webkit-scrollbar-track {
    background: transparent;
}

.quiz-card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.quiz-card::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.quiz-step {
    animation: fadeIn 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.quiz-step.hidden {
    display: none;
}

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

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

/* Форма */
.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    box-shadow: 
        0 0 10px rgba(245, 158, 11, 0.15),
        inset 0 0 10px rgba(245, 158, 11, 0.05);
}

.form-group input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 
        0 0 0 3px rgba(245, 158, 11, 0.2),
        0 0 20px rgba(245, 158, 11, 0.3),
        inset 0 0 15px rgba(245, 158, 11, 0.1);
    background-color: rgba(30, 41, 59, 1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-hint {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 6px;
    font-weight: 400;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background-color: #f59e0b;
    color: #0f172a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Карточки типов коробок */
.transmission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.transmission-card:last-child {
    grid-column: 1 / -1;
}

.transmission-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.transmission-card:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.transmission-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Экран загрузки */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    flex: 1;
}

.loading-screen.hidden {
    display: none;
}

.loading-content {
    width: 100%;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.progress-bar {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 4px;
    width: 1%;
    transition: width 0.1s linear;
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 16px;
    color: #cbd5e1;
}

/* Экран результата и начальный экран */
.result-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.5s ease;
    min-height: 400px;
    padding: 20px 0;
    flex: 1;
}

.result-screen.hidden {
    display: none;
}

/* Начальный экран (step0) использует те же стили что и result-timer-wrapper */
#step0 {
    justify-content: center;
}

#step0 .result-timer-wrapper {
    flex: 1;
    justify-content: center;
}

#step4 {
    min-height: 0;
}

.result-timer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
}

@media (max-width: 968px) {
    .result-timer-wrapper {
        gap: 20px;
        padding: 0;
        justify-content: flex-start;
    }
}

.service-info {
    width: 100%;
    text-align: center;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.transmission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    display: inline-block;
}

.transmission-list li {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.transmission-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-size: 20px;
    font-weight: bold;
}

.delivery-text {
    font-size: 18px;
    font-weight: 600;
    color: #ef4444;
    margin: 20px 0 15px 0;
    line-height: 1.4;
}

.guarantee-text {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.result-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

.result-timer-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.result-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
    letter-spacing: -0.5px;
}

.result-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
    line-height: 1.5;
    text-align: center;
}

.result-timer-label-top {
    font-size: 18px;
    font-weight: 600;
    color: #f59e0b;
    margin: 0 0 16px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(245, 158, 11, 0.5);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.result-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.result-timer-value {
    font-size: 52px;
    font-weight: 800;
    color: #f59e0b;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.result-timer-label {
    font-size: 14px;
    color: #fbbf24;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-timer-separator {
    font-size: 48px;
    font-weight: 800;
    color: #f59e0b;
    margin: 0 4px;
    line-height: 1;
    opacity: 0.6;
}

.result-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

.btn-large {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-large:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}


/* Адаптивность */
@media (max-width: 1200px) {
    .banner-content {
        margin-top: -35px;
    }
    
    .banner-title {
        font-size: 60px;
    }
    
    .banner-subtitle {
        font-size: 48px;
    }
    
    .banner-list li {
        font-size: 36px;
    }
    
    .banner-description {
        font-size: 40px;
    }
    
    .company-info {
        left: 30px;
        bottom: 15px;
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    /* Мобильные: форма внутри баннера */
    .banner-section {
        position: relative;
        min-height: 100vh;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .banner-content {
        display: flex;
        flex-direction: column;
    }
    
    /* Порядок элементов на мобильных */
    .banner-title {
        order: 1;
    }
    
    .banner-subtitle {
        order: 2;
    }
    
    .banner-list {
        order: 3;
    }
    
    .banner-description {
        order: 4;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        border-top: none;
        position: relative;
        top: -30px;
    }
    
    .quiz-card.is-overlay-in-banner {
        order: 5;
        position: absolute;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        width: min(520px, 94vw);
        max-width: 520px;
        margin: 0;
        padding: 28px 20px;
        z-index: 10;
        max-height: calc(100vh - 80px - 24px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Убираем любые разделители над текстом "Доставляем по всей стране..." */
    .banner-description::before,
    .banner-description::after {
        display: none;
        content: none;
    }
}

@media (max-width: 968px) {
    .split-background {
        flex-direction: column;
        position: relative;
        flex: 1;
        min-height: 100vh;
        background-position: 40% center;
        padding-bottom: 0;
    }
    
    .banner-section {
        flex: 1;
        position: relative;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 0;
        padding-bottom: 0;
    }
    
    .quiz-section {
        display: none;
    }
    
    .banner-content {
        padding: 20px 16px;
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        z-index: 2;
        margin-left: 4%;
        margin-right: auto;
        text-align: left;
        margin-top: -15px;
    }
    
    .quiz-card:not(.is-overlay-in-banner) {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin: 2px auto 50px;
        padding: 32px 24px;
        z-index: 10;
    }
    
    /* Мобильные: форма внутри баннера */
    .banner-section {
        position: relative;
        min-height: 100vh;
        padding-bottom: 20px;
    }
    
    .quiz-card.is-overlay-in-banner {
        position: absolute;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        width: min(520px, 94vw);
        max-width: 520px;
        margin: 0;
        padding: 28px 20px;
        z-index: 10;
        max-height: calc(100vh - 80px - 24px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}
    
    .banner-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .banner-subtitle {
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .banner-list li {
        font-size: 26px;
        margin-bottom: 16px;
        padding-left: 32px;
    }
    
    .banner-list li::before {
        font-size: 30px;
    }
    
    .banner-description {
        font-size: 28px;
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-top: none;
        position: relative;
        top: -30px;
        order: 4;
    }
    
    .banner-content {
        display: flex;
        flex-direction: column;
    }
    
    .banner-title {
        order: 1;
    }
    
    .banner-subtitle {
        order: 2;
    }
    
    .banner-list {
        order: 3;
    }
    
    .banner-description::before,
    .banner-description::after {
        display: none;
        content: none;
    }
    
    .result-timer-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    /* Стили для планшетов - не трогаем десктоп */
    @media (max-width: 968px) and (min-width: 641px) {
        .result-title {
            font-size: 26px;
            margin-bottom: 10px;
        }
        
        .result-subtitle {
            font-size: 16px;
            margin-bottom: 20px;
        }
        
        .result-timer-label-top {
            font-size: 14px;
            margin-bottom: 14px;
        }
    }
    
    .result-timer-value {
        font-size: 42px;
    }
    
    .result-timer-label {
        font-size: 11px;
    }
    
    .result-timer-separator {
        font-size: 32px;
    }
    
    .result-timer-container {
        padding: 20px 15px;
        gap: 8px;
    }
    
    .btn-large {
        font-size: 16px;
        padding: 14px 24px;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #0f172a;
        border: none;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }
    
    .btn-primary {
        background-color: #f59e0b;
        color: #0f172a;
        border: none;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
    
    .result-timer-wrapper {
        gap: 20px;
        padding: 0;
    }
    
    /* Поднимаем блок с текстом и таймером вверх на мобильных (планшеты) */
    #step0 .result-timer-wrapper {
        margin-top: -15px;
        padding-top: 0;
        gap: 18px;
    }
    
    #step0 .result-title {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 32px;
        font-weight: 700;
    }
    
    #step0 .result-subtitle {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 18px;
        font-weight: 400;
    }
    
    #step0 .result-timer-label-top {
        margin-top: 0;
        margin-bottom: 14px;
        font-size: 16px;
        font-weight: 600;
    }
}

@media (max-width: 640px) {
    .split-background {
        background-position: 40% center;
    }
    
    .banner-content {
        padding: 16px 12px;
        margin-left: 4%;
        margin-right: auto;
        text-align: left;
        margin-top: -12px;
        display: flex;
        flex-direction: column;
    }
    
    .company-info {
        bottom: 10px;
        left: 12px;
        font-size: 9px;
    }
    
    .banner-section {
        position: relative;
        min-height: 100vh;
        padding-bottom: 80px;
    }
    
    .quiz-card.is-overlay-in-banner {
        position: absolute;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        width: min(520px, 94vw);
        max-width: 520px;
        margin: 0;
        padding: 24px 18px;
        z-index: 10;
        max-height: calc(100vh - 60px - 24px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .quiz-card:not(.is-overlay-in-banner) {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        margin: 2px auto 50px;
        padding: 20px 20px 28px 20px;
        z-index: 10;
    }
    
    /* Порядок элементов на маленьких мобильных экранах */
    .banner-content {
        display: flex;
        flex-direction: column;
    }
    
    .banner-title {
        order: 1;
    }
    
    .banner-subtitle {
        order: 2;
    }
    
    .banner-list {
        order: 3;
    }
    
    .banner-description {
        order: 4;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        border-top: none;
        position: relative;
        top: -30px;
    }
    
    .banner-description::before,
    .banner-description::after {
        display: none;
        content: none;
    }
}
    
    /* Поднимаем блок с текстом и таймером вверх на мобильных */
    #step0 .result-timer-wrapper {
        margin-top: -20px;
        padding-top: 0;
        gap: 20px;
    }
    
    #step0 .result-title {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 32px;
        font-weight: 700;
    }
    
    #step0 .result-subtitle {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 18px;
        font-weight: 400;
    }
    
    #step0 .result-timer-label-top {
        margin-top: 0;
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 600;
    }
    
    #step0 .result-timer-container {
        margin-top: 0;
    }
}
    
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-container {
        overflow-y: visible;
        overflow-x: hidden;
    }
    
    .banner-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .banner-subtitle {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .banner-list li {
        font-size: 22px;
        margin-bottom: 14px;
        padding-left: 28px;
    }
    
    .banner-list li::before {
        font-size: 26px;
    }
    
    .banner-description {
        font-size: 24px;
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-top: none;
        position: relative;
        top: -30px;
        order: 4;
    }
    
    .banner-description::before,
    .banner-description::after {
        display: none;
        content: none;
    }
    
    .result-timer-wrapper {
        gap: 16px;
    }
    
    .result-timer-text {
        font-size: 15px;
        margin-bottom: 16px;
        padding: 0 4px;
    }
    
    /* Стили только для мобильных (до 640px) */
    .result-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .result-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .result-timer-label-top {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .result-timer-container {
        padding: 16px 12px;
        gap: 6px;
    }
    
    .result-timer-item {
        min-width: 50px;
    }
    
    .result-timer-value {
        font-size: 32px;
    }
    
    .result-timer-label {
        font-size: 10px;
    }
    
    .result-timer-separator {
        font-size: 28px;
    }
    
    .btn-large {
        font-size: 15px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #0f172a;
        border: none;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }
    
    .btn-primary {
        background-color: #f59e0b;
        color: #0f172a;
        border: none;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
    
    .step-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .transmission-card {
        padding: 16px;
        min-height: 100px;
    }
    
    .transmission-card h4 {
        font-size: 16px;
    }
}

/* Оптимизация для iPhone (особенно с вырезом) */
@supports (padding: max(0px)) {
    @media (max-width: 640px) {
        .quiz-card {
            margin-top: 2px;
            margin-bottom: max(50px, env(safe-area-inset-bottom));
            padding-bottom: max(20px, calc(16px + env(safe-area-inset-bottom)));
        }
        
        .banner-content {
            padding-top: max(16px, env(safe-area-inset-top));
        }
        
        .main-container {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Отключение таймера скидки - удалить класс no-discount с body для включения */
body.no-discount .result-timer-label-top,
body.no-discount .result-timer-container {
    display: none !important;
}
