* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #6366f1; color: #333; line-height: 1.4; min-height: 100vh; }
.header { display: flex; align-items: center; padding: 12px 15px; background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.1); }
.logo { width: 28px; height: 28px; margin-right: 10px; color: #2d3748; }
.brand-title { font-size: 16px; font-weight: 700; color: #2d3748; flex: 1; }
.rating { display: flex; align-items: center; font-size: 11px; }
.rating-stars { margin-right: 5px; color: #fbbf24; }
.rating span:last-child { color: #2d3748; font-weight: 600; }

/* Исправленные стили для логотипов авиакомпаний */
.secondary-header { display: flex; padding: 10px 12px; background: rgba(255,255,255,0.1); }
.airline-brands { display: flex; gap: 8px; width: 100%; justify-content: center; }
.airline-btn {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 16px;
    padding: 8px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}
.airline-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.airline-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
}
.airline-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.airline-placeholder img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}
.airline-placeholder span {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    margin-top: 2px;
}

.page { display: none; padding-bottom: 80px; }
.page.active { display: block; }
.hero { background: #fff; margin: 15px 12px; padding: 20px 15px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.input-group { margin-bottom: 14px; }
.input-label { color: #374151; font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.input-wrap { position: relative; }
.input-field { width: 100%; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 16px; }
.input-field:focus { outline: none; border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,0.1); }
input[type="date"].input-field { text-align: center; cursor: pointer; }
input[type="date"].input-field::-webkit-calendar-picker-indicator { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: auto; height: auto; color: transparent; background: transparent; cursor: pointer; }
.date-wrap { position: relative; }
.date-wrap .calendar-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #6b7280; }
.date-wrap .calendar-icon svg { width: 20px; height: 20px; }
.swap-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 1px solid #e5e7eb; background: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #4a6cf7; z-index: 5; }
.swap-btn:hover { border-color: #4a6cf7; background: #f0f4ff; }
.swap-btn svg { width: 18px; height: 18px; }
.dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 12px 12px; max-height: 200px; overflow-y: auto; z-index: 100; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.dropdown.show { display: block; }
.dropdown-item { padding: 12px 16px; cursor: pointer; display: flex; flex-direction: column; border-bottom: 1px solid #f3f4f6; }
.dropdown-item:hover { background: #f0f4ff; }
.city-name { font-weight: 500; color: #1f2937; }
.city-info { font-size: 12px; color: #6b7280; margin-top: 2px; }
.btn-primary { width: 100%; padding: 16px; background: #10b981; color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }
.btn-primary:hover { background: #059669; transform: translateY(-2px); }
.btn-secondary { background: none; border: none; color: #6b7280; font-size: 14px; cursor: pointer; padding: 8px; }
.benefits { padding: 25px 15px; }
.benefits h3 { color: #fff; font-size: 16px; margin-bottom: 15px; text-align: center; }
.benefit { display: flex; align-items: center; background: rgba(255,255,255,0.95); padding: 16px; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.benefit-icon { width: 28px; height: 28px; margin-right: 14px; color: #4a6cf7; flex-shrink: 0; }
.benefit-text { color: #1f2937; font-size: 13px; font-weight: 500; line-height: 1.4; }
.reviews-section { padding: 20px 15px; }
.reviews-header { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 20px; text-align: center; line-height: 1.4; }
.review { background: rgba(255,255,255,0.95); border-radius: 14px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 25px rgba(0,0,0,0.1); position: relative; }
.review::before { content: '"'; position: absolute; top: -5px; left: 15px; font-size: 50px; color: rgba(74,108,247,0.2); font-family: serif; }
.review-header { display: flex; align-items: center; margin-bottom: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; background: linear-gradient(135deg, #4a6cf7, #6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; object-fit: cover; overflow: hidden; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-info h4 { font-size: 14px; margin-bottom: 2px; font-weight: 600; color: #1f2937; }
.review-location { font-size: 11px; color: #6b7280; }
.review-stars { color: #fbbf24; font-size: 12px; margin-left: auto; }
.review-text { font-size: 12px; color: #374151; line-height: 1.5; font-style: italic; position: relative; z-index: 1; }
.faq { padding: 10px 15px 30px; }
.faq h3 { color: #fff; font-size: 16px; margin-bottom: 15px; text-align: center; }
.faq-item { background: rgba(255,255,255,0.95); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.faq-q { padding: 12px 15px; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #1f2937; }
.faq-a { padding: 0 15px; max-height: 0; overflow: hidden; transition: all 0.3s; color: #6b7280; font-size: 12px; line-height: 1.5; }
.faq-a.open { max-height: 150px; padding: 0 15px 12px; }
.phone-page { padding: 15px; }
.success-msg { background: linear-gradient(135deg, #10b981, #059669); color: #fff; padding: 12px 20px; margin-bottom: 15px; font-size: 13px; font-weight: 600; text-align: center; border-radius: 25px; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }
.phone-form { background: #fff; border-radius: 16px; padding: 20px 15px; margin-bottom: 15px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.phone-form h2 { font-size: 16px; margin-bottom: 15px; color: #1f2937; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0; }
.trust-item { text-align: center; padding: 12px 5px; background: rgba(74,108,247,0.08); border-radius: 10px; border: 1px solid rgba(74,108,247,0.2); }
.trust-item svg { width: 22px; height: 22px; color: #4a6cf7; margin-bottom: 6px; }
.trust-item .t-title { display: block; font-size: 10px; font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.trust-item .t-sub { display: block; font-size: 8px; color: #6b7280; }
.consent-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; font-size: 10px; margin: 15px 0; line-height: 1.4; }
.consent-box label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.consent-box input { margin-top: 2px; flex-shrink: 0; }
.chart-box { background: #fff; border-radius: 16px; padding: 20px 15px; margin: 15px 0; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.chart-title { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 6px; text-align: center; }
.chart-sub { font-size: 11px; color: #6b7280; margin-bottom: 15px; text-align: center; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-label { min-width: 75px; font-size: 11px; font-weight: 500; color: #1f2937; }
.bar-bg { flex: 1; height: 22px; background: #f3f4f6; border-radius: 11px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 11px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; transition: width 1s; }
.bar-fill span { font-size: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.b1 { background: linear-gradient(135deg, #4a6cf7, #6366f1); }
.b2 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.b3 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.b4 { background: linear-gradient(135deg, #10b981, #34d399); }
.b5 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.b6 { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.verify-page { padding: 15px; }
.verify-form { background: #fff; border-radius: 16px; padding: 20px 15px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.verify-form h2 { font-size: 16px; margin-bottom: 10px; color: #1f2937; text-align: center; }
.verify-form>p { color: #6b7280; margin-bottom: 15px; font-size: 13px; text-align: center; }
.code-input { width: 100%; padding: 16px; font-size: 24px; text-align: center; letter-spacing: 10px; border: 2px solid #e5e7eb; border-radius: 12px; margin-bottom: 15px; font-family: monospace; }
.code-input:focus { outline: none; border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,0.1); }
.code-input::placeholder { letter-spacing: 5px; }
.timer { font-size: 12px; color: #6b7280; text-align: center; margin-bottom: 12px; }
.btn-resend { width: 100%; padding: 12px; background: #fff; color: #4a6cf7; border: 2px solid #4a6cf7; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 12px; display: none; }
.footer-legal { background: #fff; color: #6b7280; padding: 15px; font-size: 9px; line-height: 1.5; margin-top: 20px; border-radius: 8px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 15px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 380px; padding: 20px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.modal-header h2 { font-size: 18px; color: #1f2937; }
.modal-close { background: none; border: none; font-size: 24px; color: #6b7280; cursor: pointer; }
.modal p { font-size: 14px; color: #1f2937; margin-bottom: 6px; }
.modal .sub { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.modal-input { width: 100%; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 16px; text-align: center; margin-bottom: 14px; }
.modal-input:focus { outline: none; border-color: #4a6cf7; }
.modal-card { width: 90px; height: 70px; margin: 16px auto 0; background: #f9fafb; border: 2px dashed #d1d5db; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.modal-card svg { width: 22px; height: 22px; fill: #9ca3af; }
.modal-card span { font-size: 11px; color: #6b7280; font-weight: 600; }
.loader-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 1000; }
.loader-overlay.show { display: flex; }
.loader { text-align: center; color: #fff; }
.loader-box { width: 120px; height: 120px; margin: 0 auto 25px; position: relative; }
.loader-plane { width: 50px; height: 50px; fill: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: fly 2s ease-in-out infinite; }
@keyframes fly { 0%,100% { transform: translate(-50%,-50%) rotate(-5deg); } 50% { transform: translate(-50%,-60%) rotate(5deg); } }
.radar { position: absolute; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: expand 2s ease-out infinite; }
.radar:nth-child(2) { animation-delay: 0.6s; }
.radar:nth-child(3) { animation-delay: 1.2s; }
@keyframes expand { 0% { width: 20px; height: 20px; opacity: 1; } 100% { width: 120px; height: 120px; opacity: 0; } }
.loader p { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.loader span { font-size: 14px; opacity: 0.8; }
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.98); border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); transform: translateY(100%); transition: transform 0.3s; z-index: 100; }
.sticky-cta.visible { transform: translateY(0); }

body.card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.premium-card {
    background: white;
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

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

.premium-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}

.premium-icon svg {
    width: 24px;
    height: 24px;
}

.premium-title {
    font-size: 24px;
    font-weight: 700;
    color: #7c3aed;
}

.premium-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-item {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid #7c3aed;
}

.feature-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #7c3aed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-check svg {
    width: 16px;
    height: 16px;
}

.feature-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.payment-section {
    text-align: center;
    margin-bottom: 16px;
}

.payment-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.payment-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.5);
}

.payment-btn svg {
    width: 22px;
    height: 22px;
}

.consent-section {
    margin-top: 16px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.consent-checkbox label {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

.consent-checkbox label a {
    color: #3b82f6;
    text-decoration: none;
}

.consent-checkbox label a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .premium-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .premium-title {
        font-size: 22px;
    }

    .feature-item {
        padding: 14px 16px;
    }

    .feature-text {
        font-size: 14px;
    }

    .payment-title {
        font-size: 20px;
    }

    .payment-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
}
@media (min-width: 1028px) {
    body {
        max-width: 1028px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}
.modal-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.error-message {
    color: #e53e3e;
    margin-top: 5px;
    display: none;
    text-align: center;
}