/* spot_business.css — страница «Для бизнеса» (/business), пакет Codex, шаг 1 (14.10.2026).
   Хаб по аудиториям: первый экран с одной сценой, шесть карточек-переходов, инструменты кабинета, шаги подключения, техосмотр.
   Только токены spot_ui.css (тёмная тема — через них, см. spot_dark.css). Телефон первичен, без hover-зависимостей:
   карточка целиком — ссылка, действие подписано текстом. Картинки 3:2 (1000×667), текст и цены — только в HTML. */

.spot-biz {
    padding-bottom: 40px;
}

.spot-biz-eyebrow {
    margin: 12px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--spot-red-fg);
}

.spot-biz-h1 {
    padding-top: 6px;
}

.spot-biz-lead {
    margin: 0 0 16px;
    max-width: 44ch;
    font-size: 16px;
    line-height: 24px;
    color: var(--spot-ink-2);
}

.spot-biz-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spot-biz-cta .spot-pg-btn {
    min-width: 0;
}

/* первый экран: телефон — текст, затем сцена; десктоп — две колонки */
.spot-biz-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 -15px;
    padding: 4px 16px 20px;
    background: var(--spot-surface);
    border-bottom: 1px solid var(--spot-line);
}

.spot-biz-hero-img img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

/* секции */
.spot-biz-sec {
    padding: 24px 0 0;
}

.spot-biz-h2 {
    margin: 0 0 14px;
    font-family: var(--spot-font);
    font-size: 21px;
    font-weight: 800;
    line-height: 26px;
    letter-spacing: -0.2px;
    color: var(--spot-ink);
    text-wrap: balance;
}

/* карточки аудиторий: телефон — одна колонка, планшет — две, десктоп — три */
.spot-biz-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.spot-biz-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius-l);
    background: var(--spot-surface);
    color: var(--spot-ink);
    text-decoration: none;
}

.spot-biz-card:focus-visible {
    outline: 3px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-biz-card-img {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 0 6px;
}

.spot-biz-card-img img {
    display: block;
    width: 100%;
    height: auto;
}

.spot-biz-card-t {
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
}

.spot-biz-card-d {
    font-size: 14px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-biz-card-a {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--spot-red-fg);
}

/* инструменты кабинета: маленькая сцена слева, текст справа */
.spot-biz-tool-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.spot-biz-tool {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
}

.spot-biz-tool-img img {
    display: block;
    width: 88px;
    height: auto;
}

.spot-biz-tool-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--spot-ink-2);
}

.spot-biz-tool-txt b {
    font-size: 15px;
    color: var(--spot-ink);
}

.spot-biz-note {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: var(--spot-mut);
}

.spot-biz-note a {
    color: var(--spot-red-fg);
    font-weight: 600;
}

/* шаги подключения */
.spot-biz-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: spot-biz-step;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.spot-biz-step-list li {
    counter-increment: spot-biz-step;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 16px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    font-size: 14px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-biz-step-list li::before {
    content: counter(spot-biz-step);
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--spot-red);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 16px;
}

.spot-biz-step-list li b {
    font-size: 15px;
    color: var(--spot-ink);
}

/* техосмотр */
.spot-biz-pti {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius-l);
    background: var(--spot-surface);
}

.spot-biz-pti-img img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
}

.spot-biz-pti-txt p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-biz-final {
    padding: 32px 0 0;
    text-align: center;
}

.spot-biz-final .spot-biz-cta {
    justify-content: center;
}

@media (min-width: 768px) {
    .spot-biz-cards,
    .spot-biz-tool-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .spot-biz-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: center;
        gap: 32px;
        margin: 16px 0 0;
        padding: 28px 40px;
        border: 1px solid var(--spot-line);
        border-radius: var(--spot-radius-l);
    }
    .spot-biz-hero-img img {
        max-width: 100%;
    }
    .spot-biz-lead {
        font-size: 18px;
        line-height: 27px;
    }
    .spot-biz-sec {
        padding-top: 36px;
    }
    .spot-biz-h2 {
        font-size: 26px;
        line-height: 32px;
    }
    .spot-biz-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    .spot-biz-card {
        padding: 18px 20px 20px;
    }
    .spot-biz-step-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .spot-biz-pti {
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: center;
        gap: 24px;
        padding: 20px 28px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .spot-biz-card {
        transition: border-color 0.15s ease;
    }
}

@media (hover: hover) {
    .spot-biz-card:hover {
        border-color: var(--spot-field-border);
    }
}

/* ---- страницы аудиторий /business/<slug> (шаг 3) ---- */
.spot-biz-tabs {
    display: flex;
    gap: 8px;
    margin: 8px -15px 0;
    padding: 4px 15px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.spot-biz-tabs::-webkit-scrollbar {
    display: none;
}

.spot-biz-tab {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--spot-line);
    border-radius: 999px;
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.spot-biz-tab.is-cur {
    background: var(--spot-inv);
    border-color: var(--spot-inv);
    color: var(--spot-on-inv);
}

.spot-biz-tab:focus-visible,
.spot-biz-chip:focus-visible {
    outline: 3px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-biz-sub .spot-biz-hero {
    margin-top: 8px;
}

.spot-biz-feat-img {
    max-width: 200px;
}

.spot-biz-feat {
    cursor: default;
}

a.spot-biz-feat {
    cursor: pointer;
}

/* «как это выглядит»: сцена + чек-лист */
.spot-biz-look {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
    margin-top: 24px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius-l);
    background: var(--spot-surface);
}

.spot-biz-look-img img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
}

.spot-biz-check {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 22px;
    color: var(--spot-ink);
}

.spot-biz-check li {
    position: relative;
    padding-right: 28px;
}

.spot-biz-check li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--spot-red-soft);
    box-shadow: inset 0 0 0 1px var(--spot-red);
}

.spot-biz-check li::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 7px;
    width: 6px;
    height: 9px;
    border: solid var(--spot-red);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

/* таблица условий */
.spot-biz-tbl {
    overflow-x: auto;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
}

.spot-biz-tbl table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 20px;
}

.spot-biz-tbl th,
.spot-biz-tbl td {
    padding: 10px 14px;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid var(--spot-line);
    color: var(--spot-ink);
}

.spot-biz-tbl th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--spot-mut);
    background: var(--spot-field);
}

.spot-biz-tbl tr:last-child td {
    border-bottom: 0;
}

.spot-biz-tbl td:nth-child(2) {
    font-weight: 600;
    white-space: nowrap;
}

/* c5: на телефоне таблица условий — список строк без горизонтальной прокрутки (кроме таблицы форматов рекламы) */
@media (max-width: 767.98px) {
    .spot-biz-tbl--stack {
        overflow: visible;
    }
    .spot-biz-tbl--stack table {
        min-width: 0;
    }
    .spot-biz-tbl--stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .spot-biz-tbl--stack tbody tr {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid var(--spot-line);
    }
    .spot-biz-tbl--stack tbody tr:last-child {
        border-bottom: 0;
    }
    .spot-biz-tbl--stack td {
        display: block;
        padding: 0;
        border: 0;
    }
    .spot-biz-tbl--stack td:first-child {
        font-weight: 600;
    }
    .spot-biz-tbl--stack td:nth-child(2) {
        display: inline-block;
        margin-top: 6px;
        padding: 2px 10px;
        border-radius: 999px;
        background: var(--spot-field);
        font-size: 13px;
        line-height: 20px;
        white-space: normal;
    }
    .spot-biz-tbl--stack td:nth-child(3) {
        margin-top: 4px;
        color: var(--spot-mut);
    }
}

/* вопросы */
.spot-biz-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spot-biz-faq-item {
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
}

.spot-biz-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--spot-ink);
}

.spot-biz-faq-item summary::-webkit-details-marker {
    display: none;
}

.spot-biz-faq-item summary svg {
    flex: 0 0 auto;
    color: var(--spot-mut);
    transition: transform 0.15s ease;
}

.spot-biz-faq-item[open] summary svg {
    transform: rotate(-180deg);
}

.spot-biz-faq-item p {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 14px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-biz-final-p {
    margin: 8px auto 16px;
}

/* соседние страницы */
.spot-biz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-biz-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--spot-line);
    border-radius: 999px;
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 992px) {
    .spot-biz-tabs {
        margin: 12px 0 0;
        padding: 0 0 4px;
    }
    .spot-biz-look {
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: center;
        gap: 32px;
        padding: 24px 32px;
    }
    .spot-biz-feat-img {
        max-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spot-biz-faq-item summary svg {
        transition: none;
    }
}

/* RTL: стрелка «→» в подписях карточек смотрит по направлению чтения (как в spot_about.css) */
html[dir="rtl"] .spot-biz-card-a > span[aria-hidden="true"] {
    display: inline-block;
    transform: scaleX(-1);
}
