/* ============================================================
   RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a2332;
    line-height: 1.5;
    overflow: hidden;
}

a {
    text-decoration: none;
}

/* ============================================================
   ДЕСКТОПНАЯ ШАПКА
   ============================================================ */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #eef2f7;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 32px;
    z-index: 100;
}

.top-header-left {
    display: flex;
    justify-content: flex-start;
}

.top-header-center {
    display: flex;
    justify-content: center;
}

.top-header-right {
    display: flex;
    justify-content: flex-end;
}

.header-logo {
    height: 36px;
    width: auto;
}

.btn-login {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-login-ru {
    background: transparent;
    color: #0b5e8a;
    border: 1px solid #0b5e8a;
}

.btn-login-ru:hover {
    background: #0b5e8a;
    color: #ffffff;
}

.btn-login-cn {
    background: transparent;
    color: #c41e24;
    border: 1px solid #c41e24;
}

.btn-login-cn:hover {
    background: #c41e24;
    color: #ffffff;
}

/* ============================================================
   МОБИЛЬНАЯ ШАПКА
   ============================================================ */
.mobile-header {
    display: none;
}

/* ============================================================
   SPLIT SCREEN (десктоп)
   ============================================================ */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    padding-top: 64px;
    overflow: hidden;
}

.split-half {
    height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 48px 80px 48px;
    /* scroll-behavior: smooth; — убрали для ускорения скролла */
}

.split-left {
    background: linear-gradient(180deg, #ffffff 0%, #f0f6fb 100%);
    color: #0b1a2b;
}

.split-right {
    background: linear-gradient(180deg, #ffffff 0%, #fef5f5 100%);
    color: #0b1a2b;
    border-left: 1px solid #eef2f7;
}

.split-half::-webkit-scrollbar {
    width: 6px;
}

.split-half::-webkit-scrollbar-thumb {
    background: #d0d8e4;
    border-radius: 3px;
}

/* ============================================================
   БЛОКИ
   ============================================================ */
.block {
    max-width: 540px;
    margin: 0 auto 56px auto;
}

.block-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.split-left .block-title {
    color: #0b5e8a;
}

.split-right .block-title {
    color: #c41e24;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    max-width: 540px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.split-left .hero h1 {
    color: #0b5e8a;
}

.split-right .hero h1 {
    color: #c41e24;
}

.hero p {
    font-size: 17px;
    color: #4a5a6e;
    line-height: 1.6;
}

/* ============================================================
   ИМИТАЦИЯ
   ============================================================ */
.demo {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(11, 94, 138, 0.08);
    border: 1px solid #eef2f7;
}

.split-right .demo {
    box-shadow: 0 4px 24px rgba(196, 30, 36, 0.08);
}

.demo-step {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp 0.5s ease forwards;
}

.demo-step:last-child {
    margin-bottom: 0;
}

.demo-step-1 { animation-delay: 0.3s; }
.demo-step-2 { animation-delay: 1.5s; }
.demo-step-3 { animation-delay: 2.7s; }
.demo-step-4 { animation-delay: 3.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9aa9bc;
    margin-bottom: 8px;
}

/* Поиск */
.search-box-demo {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-input-demo {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d0d8e4;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', monospace;
    background: #ffffff;
    color: #0b5e8a;
    font-weight: 600;
}

.btn-demo-search {
    padding: 10px 20px;
    background: #0b5e8a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: default;
}

.supplier-list-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supplier-item-demo {
    padding: 10px 14px;
    background: #f8faff;
    border-radius: 8px;
    font-size: 14px;
    color: #0b1a2b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supplier-item-demo .match {
    font-size: 12px;
    color: #00883a;
    font-weight: 600;
}

/* RFQ */
.rfq-card-demo {
    padding: 14px 16px;
    background: #f8faff;
    border-radius: 10px;
    border-left: 4px solid #0b5e8a;
}

.split-right .rfq-card-demo {
    background: #fef5f5;
    border-left-color: #c41e24;
}

.rfq-card-demo .rfq-num {
    font-size: 14px;
    font-weight: 700;
    color: #0b5e8a;
    margin-bottom: 6px;
}

.split-right .rfq-card-demo .rfq-num {
    color: #c41e24;
}

.rfq-card-demo .rfq-line {
    font-size: 13px;
    color: #4a5a6e;
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.rfq-card-demo .rfq-total {
    border-top: 1px solid #eef2f7;
    margin-top: 6px;
    padding-top: 6px;
    font-weight: 600;
    color: #0b1a2b;
}

/* Чат */
.chat-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg-demo {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.5;
}

.chat-msg-in {
    background: #f0f4f8;
    color: #1a2332;
    align-self: flex-start;
}

.chat-msg-out {
    background: #c41e24;
    color: #ffffff;
    align-self: flex-end;
}

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.step-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.split-left .step-num {
    background: #e8f0f7;
    color: #0b5e8a;
}

.split-right .step-num {
    background: #fde8e8;
    color: #c41e24;
}

.step-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2b;
    margin-bottom: 6px;
}

.step-card p {
    font-size: 13px;
    color: #6b7f94;
    line-height: 1.5;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.advantage-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}

.advantage-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.advantage-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2b;
    margin-bottom: 4px;
}

.advantage-card p {
    font-size: 12px;
    color: #6b7f94;
    line-height: 1.5;
}

/* ============================================================
   КАТЕГОРИИ
   ============================================================ */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.split-left .category-tag {
    background: #e8f0f7;
    color: #0b5e8a;
}

.split-right .category-tag {
    background: #fde8e8;
    color: #c41e24;
}

/* ============================================================
   СПОСОБЫ ОПЛАТЫ
   ============================================================ */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-item {
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-item .label {
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2b;
}

.payment-item .value {
    font-size: 13px;
    color: #c41e24;
    font-weight: 600;
}

/* ============================================================
   ПРАЙС (CN)
   ============================================================ */
.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 2px solid #c41e24;
    box-shadow: 0 4px 24px rgba(196, 30, 36, 0.1);
}

.pricing-amount {
    font-size: 42px;
    font-weight: 700;
    color: #c41e24;
    line-height: 1.1;
    margin-bottom: 12px;
}

.pricing-period {
    font-size: 18px;
    font-weight: 600;
    color: #6b7f94;
}

.pricing-note {
    font-size: 14px;
    color: #b76e00;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: #fff4e5;
    border-radius: 20px;
    display: inline-block;
}

.pricing-desc {
    font-size: 13px;
    color: #6b7f94;
    margin-top: 16px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #9aa9bc;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 18px;
    font-size: 13px;
    color: #6b7f94;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 14px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f7;
}

.cta h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.split-left .cta h3 {
    color: #0b5e8a;
}

.split-right .cta h3 {
    color: #c41e24;
}

.cta p {
    font-size: 14px;
    color: #6b7f94;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-cta-ru {
    background: #0b5e8a;
    color: #ffffff;
}

.btn-cta-ru:hover {
    background: #094a6e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 94, 138, 0.25);
}

.btn-cta-cn {
    background: #c41e24;
    color: #ffffff;
}

.btn-cta-cn:hover {
    background: #a0181d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 36, 0.25);
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================================ */
@media (max-width: 900px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .top-header {
        display: none;
    }

    .mobile-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
        height: 56px;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid #eef2f7;
    }

    .mobile-header-left {
        display: flex;
        justify-content: flex-start;
    }

    .mobile-header-center {
        display: flex;
        justify-content: center;
    }

    .mobile-header-right {
        display: flex;
        justify-content: flex-end;
    }

    .mobile-header .header-logo {
        height: 28px;
    }

    .lang-switch {
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid;
        background: transparent;
        text-decoration: none;
        display: inline-block;
    }

    .lang-switch-ru {
        color: #0b5e8a;
        border-color: #0b5e8a;
    }

    .lang-switch-ru.active {
        background: #0b5e8a;
        color: #ffffff;
    }

    .lang-switch-cn {
        color: #c41e24;
        border-color: #c41e24;
    }

    .lang-switch-cn.active {
        background: #c41e24;
        color: #ffffff;
    }

    .split-screen {
        display: block;
        height: auto;
        padding-top: 0;
        overflow: visible;
    }

    .split-half {
        height: auto;
        overflow: visible;
        padding: 32px 20px 48px 20px;
        border-left: none;
    }

    .split-half.hidden {
        display: none !important;
    }

    .split-left {
        border-top: 4px solid #0b5e8a;
    }

    .split-right {
        border-top: 4px solid #c41e24;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        margin-bottom: 40px;
    }

    .block {
        margin-bottom: 40px;
    }

    .demo {
        padding: 20px;
    }

    .steps-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .block-title {
        font-size: 20px;
    }

    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pricing-amount {
        font-size: 36px;
    }
}