/* ===================================================
   B2B PAGE — PREMIUM CORPORATE DESIGN
   Lifebook Shop — Для юридических лиц
   =================================================== */

/* ===== СБРОС ===== */
.b2b-hero, .b2b-advantages, .b2b-howto, .b2b-form-section, .b2b-faq, .b2b-cta,
.b2b-hero *, .b2b-advantages *, .b2b-howto *, .b2b-form-section *, .b2b-faq *, .b2b-cta * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --b2b-primary: #1e3a5f;
    --b2b-primary-light: #2c5282;
    --b2b-primary-lighter: #3b6fb5;
    --b2b-primary-bg: #edf2f9;
    --b2b-primary-bg2: #dbe4f0;

    --b2b-accent-gold: #d4a843;
    --b2b-accent-gold-light: #fdf6e3;

    --b2b-text: #1a202c;
    --b2b-text-secondary: #4a5568;
    --b2b-text-muted: #718096;

    --b2b-bg: #ffffff;
    --b2b-bg-light: #f7f8fb;
    --b2b-bg-section: #f0f2f5;

    --b2b-border: #d2d6dc;
    --b2b-border-light: #e8eaed;

    --b2b-success: #16a34a;
    --b2b-success-bg: #ecfdf5;
    --b2b-error: #dc2626;
    --b2b-error-bg: #fef2f2;

    --b2b-radius: 8px;
    --b2b-radius-lg: 14px;
    --b2b-radius-xl: 20px;
    --b2b-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --b2b-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --b2b-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --b2b-shadow-xl: 0 12px 40px rgba(0,0,0,0.12);
    --b2b-max-width: 1200px;
    --b2b-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --b2b-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.b2b-hero, .b2b-advantages, .b2b-howto, .b2b-form-section, .b2b-faq, .b2b-cta {
    padding: 80px 24px !important;
    font-family: var(--b2b-font) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--b2b-text) !important;
}

.b2b-hero__inner, .b2b-advantages__inner, .b2b-howto__inner,
.b2b-form-section__inner, .b2b-faq__inner, .b2b-cta__inner {
    max-width: var(--b2b-max-width);
    margin: 0 auto;
}

/* ===== Общий заголовок секций ===== */
.b2b-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.b2b-section-header__tag {
    display: inline-block;
    background: var(--b2b-primary-bg);
    color: var(--b2b-primary-light);
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.b2b-section-header__title {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: var(--b2b-text) !important;
    margin: 0 0 12px !important;
    letter-spacing: -0.02em;
}

.b2b-section-header__desc {
    font-size: 18px !important;
    color: var(--b2b-text-muted) !important;
    margin: 0 !important;
    max-width: 560px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===================================================
   HERO — Градиент с паттерном
   =================================================== */
.b2b-hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #1e3a5f 40%, #2c5282 100%) !important;
    color: #ffffff !important;
    text-align: center;
    padding: 100px 24px 90px !important;
    position: relative;
    overflow: hidden;
}

.b2b-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(44, 82, 130, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Тонкий геометрический паттерн */
.b2b-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.b2b-hero__inner {
    position: relative;
    z-index: 1;
}

.b2b-hero__badge {
    display: inline-block;
    background: var(--b2b-accent-gold);
    color: #1a202c;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em;
    padding: 6px 22px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.b2b-hero__title {
    font-size: 44px !important;
    font-weight: 800 !important;
    margin: 0 0 20px !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    line-height: 1.15 !important;
}

.b2b-hero__subtitle {
    font-size: 19px !important;
    max-width: 680px;
    margin: 0 auto 36px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

.b2b-hero__subtitle strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Hero кнопки */
.b2b-hero__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.b2b-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px !important;
    border-radius: var(--b2b-radius) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all var(--b2b-transition);
    cursor: pointer;
}

.b2b-hero__btn--primary {
    background: var(--b2b-accent-gold) !important;
    color: #1a202c !important;
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.35);
}

.b2b-hero__btn--primary:hover {
    background: #e0b84d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.45);
}

.b2b-hero__btn--ghost {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.b2b-hero__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Hero статистика */
.b2b-hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.b2b-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.b2b-hero__stat-number {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--b2b-accent-gold) !important;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

.b2b-hero__stat-label {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.b2b-hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ===================================================
   ПРЕИМУЩЕСТВА — Карточки с цветными полосами
   =================================================== */
.b2b-advantages {
    background: var(--b2b-bg-light) !important;
}

.b2b-advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b2b-advantages__card {
    background: var(--b2b-bg);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius-lg);
    padding: 36px 28px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--b2b-transition);
}

.b2b-advantages__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--b2b-shadow-lg);
    border-color: transparent;
}

/* Цветная полоска сверху */
.b2b-advantages__card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--b2b-radius-lg) var(--b2b-radius-lg) 0 0;
    transition: height var(--b2b-transition);
}

.b2b-advantages__card:hover .b2b-advantages__card-accent {
    height: 5px;
}

.b2b-advantages__card[data-accent="blue"] .b2b-advantages__card-accent { background: linear-gradient(90deg, #2c5282, #4299e1); }
.b2b-advantages__card[data-accent="green"] .b2b-advantages__card-accent { background: linear-gradient(90deg, #276749, #48bb78); }
.b2b-advantages__card[data-accent="purple"] .b2b-advantages__card-accent { background: linear-gradient(90deg, #553c9a, #805ad5); }
.b2b-advantages__card[data-accent="amber"] .b2b-advantages__card-accent { background: linear-gradient(90deg, #b7791f, #ecc94b); }
.b2b-advantages__card[data-accent="teal"] .b2b-advantages__card-accent { background: linear-gradient(90deg, #234e52, #38b2ac); }
.b2b-advantages__card[data-accent="red"] .b2b-advantages__card-accent { background: linear-gradient(90deg, #9b2c2c, #fc8181); }

/* Иконки */
.b2b-advantages__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform var(--b2b-transition);
}

.b2b-advantages__card:hover .b2b-advantages__icon {
    transform: scale(1.08);
}

.b2b-advantages__card[data-accent="blue"] .b2b-advantages__icon { background: #ebf4ff; color: #2c5282; }
.b2b-advantages__card[data-accent="green"] .b2b-advantages__icon { background: #f0fff4; color: #276749; }
.b2b-advantages__card[data-accent="purple"] .b2b-advantages__icon { background: #faf5ff; color: #553c9a; }
.b2b-advantages__card[data-accent="amber"] .b2b-advantages__icon { background: #fffff0; color: #975a16; }
.b2b-advantages__card[data-accent="teal"] .b2b-advantages__icon { background: #e6fffa; color: #234e52; }
.b2b-advantages__card[data-accent="red"] .b2b-advantages__icon { background: #fff5f5; color: #9b2c2c; }

.b2b-advantages__icon svg {
    width: 26px !important;
    height: 26px !important;
}

.b2b-advantages__card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    color: var(--b2b-text) !important;
}

.b2b-advantages__card-text {
    font-size: 15px !important;
    color: var(--b2b-text-secondary) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ===================================================
   КАК ОФОРМИТЬ — Табы + Timeline
   =================================================== */
.b2b-howto {
    background: var(--b2b-bg) !important;
}

/* Табы */
.b2b-howto__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    background: var(--b2b-bg-light);
    border-radius: var(--b2b-radius);
    padding: 5px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.b2b-howto__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--b2b-text-muted) !important;
    cursor: pointer;
    transition: all var(--b2b-transition);
    font-family: var(--b2b-font) !important;
    white-space: nowrap;
}

.b2b-howto__tab:hover {
    color: var(--b2b-text-secondary) !important;
}

.b2b-howto__tab.is-active {
    background: var(--b2b-bg) !important;
    color: var(--b2b-primary) !important;
    box-shadow: var(--b2b-shadow-sm);
}

.b2b-howto__tab svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

/* Контент табов */
.b2b-howto__panel {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

.b2b-howto__panel.is-active {
    display: block;
    animation: b2bFadeIn 0.4s ease;
}

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

/* Timeline */
.b2b-timeline {
    position: relative;
    padding-left: 44px;
}

.b2b-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--b2b-border-light);
}

.b2b-timeline__item {
    position: relative;
    padding-bottom: 32px;
    display: flex;
    align-items: flex-start;
}

.b2b-timeline__item:last-child {
    padding-bottom: 0;
}

.b2b-timeline__marker {
    position: absolute;
    left: -44px;
    width: 38px;
    height: 38px;
    background: var(--b2b-bg);
    border: 2px solid var(--b2b-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--b2b-primary-light);
    z-index: 1;
    transition: all var(--b2b-transition);
}

.b2b-timeline__item:last-child .b2b-timeline__marker {
    background: var(--b2b-primary);
    border-color: var(--b2b-primary);
    color: #fff;
}

.b2b-timeline__item:last-child .b2b-timeline__marker svg {
    stroke: #fff;
}

.b2b-timeline__content h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--b2b-text) !important;
    margin: 0 0 4px !important;
    line-height: 38px !important;
}

.b2b-timeline__item:hover .b2b-timeline__content h4 {
    color: var(--b2b-primary-light) !important;
}

.b2b-timeline__content p {
    font-size: 15px !important;
    color: var(--b2b-text-muted) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.b2b-timeline__content strong {
    color: var(--b2b-text) !important;
}

/* ===================================================
   ФОРМА
   =================================================== */
.b2b-form-section {
    background: var(--b2b-bg-section) !important;
}

/* Steps Indicator */
.b2b-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto 44px;
}

.b2b-steps-indicator__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.b2b-steps-indicator__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--b2b-bg);
    border: 2px solid var(--b2b-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--b2b-text-muted);
    transition: all var(--b2b-transition);
}

.b2b-steps-indicator__item.is-active .b2b-steps-indicator__circle {
    background: var(--b2b-primary);
    border-color: var(--b2b-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.25);
}

.b2b-steps-indicator__item.is-done .b2b-steps-indicator__circle {
    background: var(--b2b-success);
    border-color: var(--b2b-success);
    color: #fff;
}

.b2b-steps-indicator__item span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--b2b-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--b2b-transition);
}

.b2b-steps-indicator__item.is-active span {
    color: var(--b2b-primary);
}

.b2b-steps-indicator__item.is-done span {
    color: var(--b2b-success);
}

.b2b-steps-indicator__line {
    flex: 1;
    height: 2px;
    background: var(--b2b-border-light);
    margin: 0 12px;
    margin-bottom: 28px;
    transition: background var(--b2b-transition);
}

/* Форма */
.b2b-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--b2b-bg);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius-xl);
    padding: 48px;
    box-shadow: var(--b2b-shadow-lg);
}

.b2b-form__fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
}

/* Legend с иконкой */
.b2b-form__legend {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--b2b-text) !important;
    margin-bottom: 28px !important;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--b2b-bg-section);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.b2b-form__legend-icon {
    width: 40px;
    height: 40px;
    background: var(--b2b-primary-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b2b-primary-light);
    flex-shrink: 0;
}

.b2b-form__legend-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.b2b-form__row {
    display: flex;
    gap: 20px;
}

.b2b-form__group {
    margin-bottom: 22px;
    flex: 1;
}

.b2b-form__group--half { flex: 0 0 calc(50% - 10px); }
.b2b-form__group--third { flex: 0 0 calc(33.333% - 14px); }

.b2b-form__label {
    display: block;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--b2b-text) !important;
    margin-bottom: 8px !important;
}

.b2b-form__required {
    color: var(--b2b-error) !important;
}

.b2b-form__input,
.b2b-form__textarea {
    width: 100%;
    padding: 13px 16px !important;
    border: 1.5px solid var(--b2b-border) !important;
    border-radius: var(--b2b-radius) !important;
    font-size: 16px !important;
    color: var(--b2b-text) !important;
    transition: border-color var(--b2b-transition), box-shadow var(--b2b-transition);
    background: var(--b2b-bg) !important;
    font-family: var(--b2b-font) !important;
    line-height: 1.5 !important;
}

.b2b-form__input::placeholder,
.b2b-form__textarea::placeholder {
    color: #adb5bd !important;
    font-size: 14px !important;
}

.b2b-form__input:focus,
.b2b-form__textarea:focus {
    outline: none !important;
    border-color: var(--b2b-primary-light) !important;
    box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.1) !important;
}

.b2b-form__input.is-error,
.b2b-form__textarea.is-error {
    border-color: var(--b2b-error) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.b2b-form__hint {
    display: block;
    font-size: 13px !important;
    color: var(--b2b-text-muted) !important;
    margin-top: 6px;
}

.b2b-form__textarea {
    resize: vertical;
    min-height: 90px;
}

/* Toggle */
.b2b-form__toggle-wrap { margin-bottom: 24px; }

.b2b-form__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 14px 18px;
    background: var(--b2b-bg-light);
    border-radius: var(--b2b-radius);
    border: 1px solid var(--b2b-border-light);
    transition: all var(--b2b-transition);
}

.b2b-form__toggle:hover {
    border-color: var(--b2b-border);
}

.b2b-form__toggle input { display: none; }

.b2b-form__toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--b2b-border);
    border-radius: 13px;
    position: relative;
    transition: background var(--b2b-transition);
    flex-shrink: 0;
}

.b2b-form__toggle-slider::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform var(--b2b-transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.b2b-form__toggle input:checked + .b2b-form__toggle-slider {
    background: var(--b2b-primary-light);
}

.b2b-form__toggle input:checked + .b2b-form__toggle-slider::after {
    transform: translateX(22px);
}

.b2b-form__toggle-text {
    font-size: 15px !important;
    color: var(--b2b-text) !important;
    font-weight: 500 !important;
}

/* File upload */
.b2b-form__file-dropzone {
    border: 2px dashed var(--b2b-border) !important;
    border-radius: var(--b2b-radius-lg) !important;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--b2b-transition);
    background: var(--b2b-bg-light);
}

.b2b-form__file-dropzone:hover,
.b2b-form__file-dropzone.is-dragover {
    border-color: var(--b2b-primary-light) !important;
    background: var(--b2b-primary-bg);
}

.b2b-form__file-dropzone-icon {
    width: 60px;
    height: 60px;
    background: var(--b2b-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--b2b-primary-light);
}

.b2b-form__file-dropzone p {
    margin: 0 0 4px;
    font-size: 15px !important;
    color: var(--b2b-text-secondary) !important;
}

.b2b-form__file-dropzone small {
    font-size: 13px !important;
    color: var(--b2b-text-muted) !important;
}

.b2b-form__file-browse {
    color: var(--b2b-primary-light) !important;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.b2b-form__file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--b2b-primary-bg);
    border: 1px solid var(--b2b-primary-bg2);
    border-radius: var(--b2b-radius);
    font-size: 14px !important;
    color: var(--b2b-text) !important;
    margin-top: 10px;
}

.b2b-form__file-info svg {
    color: var(--b2b-primary-light);
    flex-shrink: 0;
}

.b2b-form__file-remove {
    background: none;
    border: none;
    font-size: 22px !important;
    color: var(--b2b-error);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity var(--b2b-transition);
}

.b2b-form__file-remove:hover { opacity: 1; }

/* Product selector */
.b2b-product-selector { position: relative; }

.b2b-product-selector__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 0;
}

.b2b-product-selector__tags:empty { margin-bottom: 0; }

.b2b-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--b2b-primary-bg);
    border: 1px solid var(--b2b-primary-bg2);
    color: var(--b2b-text);
    padding: 8px 10px 8px 14px;
    border-radius: var(--b2b-radius);
    font-size: 14px !important;
    line-height: 1.3;
    max-width: 100%;
    transition: all var(--b2b-transition);
}

.b2b-product-tag:hover {
    border-color: var(--b2b-primary-light);
    box-shadow: var(--b2b-shadow-sm);
}

.b2b-product-tag__code {
    font-weight: 700 !important;
    white-space: nowrap;
    color: var(--b2b-primary-light);
    font-size: 13px !important;
}

.b2b-product-tag__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    color: var(--b2b-text) !important;
    font-size: 14px !important;
}

.b2b-product-tag__article {
    font-size: 12px !important;
    color: var(--b2b-text-muted) !important;
    white-space: nowrap;
    padding-left: 6px;
    border-left: 1px solid var(--b2b-border);
}

.b2b-product-tag__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--b2b-text-muted);
    font-size: 18px !important;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.5;
    transition: all var(--b2b-transition);
    flex-shrink: 0;
}

.b2b-product-tag__remove:hover {
    opacity: 1;
    color: var(--b2b-error);
}

.b2b-product-selector__input-wrap { position: relative; }

.b2b-product-selector__spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.b2b-product-selector__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--b2b-bg);
    border: 1.5px solid var(--b2b-border);
    border-top: none;
    border-radius: 0 0 var(--b2b-radius) var(--b2b-radius);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--b2b-shadow-xl);
}

.b2b-product-selector__dropdown.is-visible { display: block; }

.b2b-product-selector__option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background var(--b2b-transition);
    border-bottom: 1px solid var(--b2b-border-light);
}

.b2b-product-selector__option:last-child { border-bottom: none; }
.b2b-product-selector__option:hover { background: var(--b2b-primary-bg); }

.b2b-product-selector__option-code {
    font-weight: 700 !important;
    color: var(--b2b-primary-light) !important;
    white-space: nowrap;
    min-width: 68px;
    font-size: 13px !important;
    background: var(--b2b-primary-bg);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--b2b-primary-bg2);
}

.b2b-product-selector__option-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b2b-product-selector__option-name {
    color: var(--b2b-text) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
}

.b2b-product-selector__option-article {
    font-size: 12px !important;
    color: var(--b2b-text-muted) !important;
}

.b2b-product-selector__option-price {
    margin-left: auto;
    color: var(--b2b-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.b2b-product-selector__option--disabled { opacity: 0.4; cursor: default; pointer-events: none; }

.b2b-product-selector__empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--b2b-text-muted) !important;
    font-size: 14px !important;
}

/* Checkbox */
.b2b-form__footer {
    padding-top: 28px;
    border-top: 2px solid var(--b2b-bg-section);
}

.b2b-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 28px;
    font-size: 14px !important;
    color: var(--b2b-text-secondary) !important;
    line-height: 1.6 !important;
    user-select: none;
}

.b2b-form__checkbox input { display: none; }

.b2b-form__checkbox-mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--b2b-border);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    margin-top: 1px;
    transition: all var(--b2b-transition);
}

.b2b-form__checkbox input:checked + .b2b-form__checkbox-mark {
    background: var(--b2b-primary-light);
    border-color: var(--b2b-primary-light);
}

.b2b-form__checkbox input:checked + .b2b-form__checkbox-mark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.b2b-form__checkbox a {
    color: var(--b2b-primary-light) !important;
    text-decoration: underline;
}

/* Submit button */
.b2b-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 36px !important;
    background: linear-gradient(135deg, var(--b2b-primary) 0%, var(--b2b-primary-light) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--b2b-radius) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all var(--b2b-transition);
    font-family: var(--b2b-font) !important;
    position: relative;
    overflow: hidden;
}

.b2b-form__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--b2b-transition);
}

.b2b-form__submit:hover::before { opacity: 1; }

.b2b-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3) !important;
}

.b2b-form__submit:active {
    transform: translateY(0);
}

.b2b-form__submit:disabled {
    background: var(--b2b-border) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.b2b-form__submit:disabled::before { display: none; }

.b2b-form__submit svg {
    flex-shrink: 0;
}

/* Messages */
.b2b-form__messages { margin-top: 20px; }

.b2b-form__message {
    padding: 18px 22px;
    border-radius: var(--b2b-radius-lg);
    font-size: 15px !important;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.b2b-form__message--success {
    background: var(--b2b-success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.b2b-form__message--error {
    background: var(--b2b-error-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===================================================
   FAQ
   =================================================== */
.b2b-faq {
    background: var(--b2b-bg-light) !important;
}

.b2b-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.b2b-faq__item {
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all var(--b2b-transition);
    background: var(--b2b-bg);
}

.b2b-faq__item:hover {
    border-color: var(--b2b-border);
}

.b2b-faq__item.is-open {
    border-color: var(--b2b-primary-bg2);
    box-shadow: var(--b2b-shadow);
}

.b2b-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--b2b-text) !important;
    text-align: left;
    line-height: 1.5 !important;
    transition: background var(--b2b-transition);
    font-family: var(--b2b-font) !important;
}

.b2b-faq__question:hover { background: var(--b2b-bg-light) !important; }

.b2b-faq__arrow {
    flex-shrink: 0;
    transition: transform var(--b2b-transition);
    color: var(--b2b-primary-light) !important;
    width: 20px !important;
    height: 20px !important;
}

.b2b-faq__item.is-open .b2b-faq__arrow { transform: rotate(180deg); }

.b2b-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.b2b-faq__item.is-open .b2b-faq__answer {
    max-height: 700px;
    padding: 0 24px 24px;
}

.b2b-faq__answer p {
    margin: 0 0 12px !important;
    font-size: 15px !important;
    color: var(--b2b-text-secondary) !important;
    line-height: 1.75 !important;
}

.b2b-faq__answer ul {
    margin: 0 0 12px !important;
    padding-left: 22px !important;
}

.b2b-faq__answer li {
    font-size: 15px !important;
    color: var(--b2b-text-secondary) !important;
    line-height: 1.75 !important;
    margin-bottom: 4px;
}

.b2b-faq__answer a { color: var(--b2b-primary-light) !important; }
.b2b-faq__answer strong { color: var(--b2b-text) !important; }

/* ===================================================
   CTA — Градиент
   =================================================== */
.b2b-cta {
    background: linear-gradient(135deg, #1a2a4a 0%, #1e3a5f 40%, #2c5282 100%) !important;
    color: #ffffff !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.b2b-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.b2b-cta__inner { position: relative; z-index: 1; }

.b2b-cta__title {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin: 0 0 14px !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.b2b-cta__text {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 auto 40px !important;
    max-width: 560px;
    line-height: 1.7 !important;
}

.b2b-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.b2b-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px !important;
    border-radius: var(--b2b-radius) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all var(--b2b-transition);
}

.b2b-cta__btn--primary {
    background: var(--b2b-accent-gold) !important;
    color: #1a202c !important;
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.3);
}

.b2b-cta__btn--primary:hover {
    background: #e0b84d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.45);
}

.b2b-cta__btn--secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.b2b-cta__btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.b2b-cta__btn svg {
    flex-shrink: 0;
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.b2b-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.b2b-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.b2b-advantages__card,
.b2b-timeline__item,
.b2b-faq__item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.b2b-advantages__card.is-visible,
.b2b-timeline__item.is-visible,
.b2b-faq__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   АДАПТИВ
   =================================================== */
@media (max-width: 1024px) {
    .b2b-advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .b2b-hero, .b2b-advantages, .b2b-howto, .b2b-form-section, .b2b-faq, .b2b-cta {
        padding: 56px 16px !important;
    }

    .b2b-hero { padding: 70px 16px 60px !important; }

    .b2b-hero__title { font-size: 30px !important; }
    .b2b-hero__subtitle { font-size: 16px !important; }

    .b2b-hero__stats { gap: 24px; }
    .b2b-hero__stat-number { font-size: 22px !important; }
    .b2b-hero__stat-divider { height: 30px; }

    .b2b-section-header__title { font-size: 26px !important; }
    .b2b-section-header__desc { font-size: 16px !important; }
    .b2b-section-header { margin-bottom: 36px; }

    .b2b-advantages__grid { grid-template-columns: 1fr; }

    .b2b-howto__tabs {
        max-width: 100%;
    }

    .b2b-howto__tab {
        font-size: 13px !important;
        padding: 10px 14px !important;
    }

    .b2b-steps-indicator__item span { font-size: 10px !important; }
    .b2b-steps-indicator__circle { width: 30px; height: 30px; font-size: 12px !important; }
    .b2b-steps-indicator__line { margin: 0 6px; margin-bottom: 22px; }

    .b2b-form { padding: 28px 20px; border-radius: var(--b2b-radius-lg); }

    .b2b-form__row {
        flex-direction: column;
        gap: 0;
    }

    .b2b-form__group--half,
    .b2b-form__group--third { flex: 0 0 100%; }

    .b2b-form__legend { font-size: 17px !important; }

    .b2b-product-tag__name { max-width: 140px; }
    .b2b-product-tag__article { display: none; }

    .b2b-faq__question { padding: 16px 18px !important; font-size: 15px !important; }

    .b2b-cta__title { font-size: 26px !important; }
}

@media (max-width: 480px) {
    .b2b-hero__title { font-size: 26px !important; }
    .b2b-hero__actions { flex-direction: column; align-items: center; }
    .b2b-hero__btn { width: 100%; justify-content: center; }

    .b2b-hero__stats { flex-direction: column; gap: 16px; }
    .b2b-hero__stat-divider { width: 40px; height: 1px; }

    .b2b-cta__buttons { flex-direction: column; align-items: center; }
    .b2b-cta__btn { width: 100%; justify-content: center; }

    .b2b-steps-indicator { flex-wrap: wrap; gap: 4px; }
    .b2b-steps-indicator__line { display: none; }
}