/* ============================================
   B2B landing (/dlya-biznesa/)
   ============================================ */

/* ---------- форма брифа ---------- */
/* крошки на этой странице — блочные и по левому краю, как весь контент */
.b2b-brief-page .breadcrumbs { display: block; }
.breadcrumbs { display: block; }

.b2b-brief { padding: 64px 0 72px; }
.b2b-brief__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.b2b-brief__text .section-title { margin-bottom: 14px; }
.b2b-brief__text .section-subtitle { margin-bottom: 26px; }

.b2b-list { list-style: none; padding: 0; margin: 0 0 22px; }
.b2b-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    color: var(--text-light);
    line-height: 1.65;
    font-size: 15.5px;
}
.b2b-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.b2b-list li strong { color: var(--text); }
.b2b-list--tight li { margin-bottom: 9px; font-size: 15px; }

.b2b-note {
    font-size: 14px;
    color: #8fa0b3;
    line-height: 1.6;
    border-left: 2px solid var(--border-strong);
    padding-left: 14px;
}

.b2b-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.b2b-form__row { display: flex; flex-direction: column; gap: 7px; }
.b2b-form__row--full { grid-column: 1 / -1; }
.b2b-form__row label {
    font-size: 13.5px;
    font-weight: 500;
    color: #b9c6d4;
    letter-spacing: 0.01em;
}
.b2b-form__row label span { color: var(--accent); margin-left: 3px; }
.b2b-form__row input[type="text"],
.b2b-form__row input[type="tel"],
.b2b-form__row input[type="email"],
.b2b-form__row textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
}
.b2b-form__row input:focus,
.b2b-form__row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}
.b2b-form__row textarea { resize: vertical; min-height: 88px; }
.b2b-form__row input::placeholder,
.b2b-form__row textarea::placeholder { color: var(--text-dim); }
.b2b-form__hint { font-size: 13px; color: #8fa0b3; line-height: 1.55; }

/* кастомная зона загрузки файла: нативный инпут спрятан, но доступен */
.b2b-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px dashed rgba(46, 224, 255, 0.34);
    border-radius: var(--radius-sm);
    background: rgba(46, 224, 255, 0.04);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.b2b-file:hover,
.b2b-file:focus-within {
    border-color: var(--accent);
    background: rgba(46, 224, 255, 0.08);
}
.b2b-file__icon {
    flex: 0 0 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(46, 224, 255, 0.12);
    color: var(--accent);
}
.b2b-file__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.b2b-file__title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
}
.b2b-file__name {
    font-size: 12.5px;
    color: #8fa0b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.b2b-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.b2b-file__input:focus-visible + .b2b-file__title { outline: 2px solid var(--accent); outline-offset: 3px; }

.b2b-form__row input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* чекбокс согласия */
.b2b-form__consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: initial;
    margin: 4px 0 0;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #8fa0b3;
    cursor: pointer;
}
.b2b-form__consent input[type="checkbox"] {
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
}
.b2b-form__consent input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.b2b-form__consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--accent-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.b2b-form__consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.b2b-form__consent span { color: #8fa0b3; }
.b2b-form__consent a { color: var(--accent); text-decoration: none; }
.b2b-form__consent a:hover { text-decoration: underline; }
.b2b-form__submit { grid-column: 1 / -1; width: 100%; }
.b2b-form__status {
    grid-column: 1 / -1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    min-height: 0;
}
.b2b-form__status.is-ok { color: #5fd6a0; }
.b2b-form__status.is-error { color: #ff7b72; }
.b2b-form__legal {
    grid-column: 1 / -1;
    font-size: 12.5px;
    color: #7d8ea1;
    line-height: 1.55;
    margin: 0;
}

/* ---------- документы и оплата ---------- */
.b2b-docs { padding: 72px 0; border-top: 1px solid var(--border); }
.b2b-docs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 34px 0 40px;
}
.b2b-docs__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
}
.b2b-docs__card h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--text);
}
.b2b-docs__card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 12px;
}
.b2b-docs__card p:last-child { margin-bottom: 0; }
.b2b-docs__note {
    font-size: 13.5px !important;
    color: #8fa0b3 !important;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 14px;
}
.b2b-docs__table { margin-top: 8px; }

/* ---------- сегменты ---------- */
.b2b-segments { padding: 72px 0; border-top: 1px solid var(--border); }
.b2b-segments__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}
.b2b-segment {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: border-color var(--transition), transform var(--transition);
}
.b2b-segment:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.b2b-segment__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(46, 224, 255, 0.09);
    border: 1px solid rgba(46, 224, 255, 0.22);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 16px;
}
.b2b-segment h3 { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
.b2b-segment > p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
}
.b2b-segment .b2b-list { margin-bottom: 18px; }
.b2b-segment .b2b-list li { font-size: 14px; margin-bottom: 7px; }
.b2b-segment__price {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: #8fa0b3 !important;
}
.b2b-segment__price strong { color: var(--text); font-size: 17px; }
.b2b-segment__price a { color: var(--accent); }

/* ---------- этапы ---------- */
.b2b-process { padding: 72px 0; border-top: 1px solid var(--border); }
.b2b-steps {
    list-style: none;
    padding: 0;
    margin: 34px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 40px;
}
.b2b-step { display: flex; gap: 16px; }
.b2b-step__num {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(46, 224, 255, 0.1);
    border: 1px solid rgba(46, 224, 255, 0.28);
    color: var(--accent);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
}
.b2b-step__body h3 { font-size: 16.5px; margin-bottom: 7px; }
.b2b-step__body p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}
.b2b-process__cta {
    margin-top: 40px;
    padding: 26px 28px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.b2b-process__cta p {
    margin: 0;
    font-size: 16px;
    color: var(--text);
    max-width: 60ch;
}

/* ---------- партнёрам ---------- */
.b2b-partners { padding: 72px 0; border-top: 1px solid var(--border); }
.b2b-partners__inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: start;
}
.b2b-partners__text .section-title { margin: 12px 0 14px; }
.b2b-partners__text .section-subtitle { margin-bottom: 24px; }
.b2b-partners__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.b2b-partners__stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.b2b-partners__stat-value {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.b2b-partners__stat-label {
    font-size: 12.5px;
    color: #8fa0b3;
    line-height: 1.45;
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
    .b2b-brief__grid { grid-template-columns: 1fr; gap: 36px; }
    .b2b-docs__grid { grid-template-columns: 1fr; }
    .b2b-segments__grid { grid-template-columns: 1fr; }
    .b2b-partners__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .b2b-brief, .b2b-docs, .b2b-segments, .b2b-process, .b2b-partners { padding: 48px 0; }
    .b2b-form { grid-template-columns: 1fr; padding: 20px; }
    .b2b-steps { grid-template-columns: 1fr; }
    .b2b-process__cta { flex-direction: column; align-items: flex-start; }
    .b2b-process__cta .btn { width: 100%; text-align: center; }
    .b2b-partners__side { grid-template-columns: 1fr 1fr; }
    .b2b-docs__card { padding: 20px; }
    .b2b-segment { padding: 20px; }

    /* таблица на мобильных: узкие отступы и перенос вместо обрезки справа */
    .b2b-docs__table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .b2b-docs__table th,
    .b2b-docs__table td { padding: 10px 8px; font-size: 12.5px; white-space: normal; }
    .b2b-docs__table td:last-child,
    .b2b-docs__table th:last-child { white-space: nowrap; text-align: right; }
}
