/* Раздел «Возможности»: /vozmozhnosti/ и страницы продукта.
   Основа: классы главной (index.css). Здесь только то, чего там нет:
   «экраны» кабинета в первом экране, полоса фактов, карточки хаба,
   статьи блога и перелинковка. Правила канона: без теней, без hover-сдвигов,
   без solid-рамок у карточек, иерархия заливкой фона. */

/* ── Общее ───────────────────────────────────────────────── */
/* В белом окне сайта белые карточки главной сливаются с фоном,
   поэтому внутри раздела они на ступень темнее */
.ft-page .feature-card,
.ft-page .pt-card:not(.pt-card--pro) { background: #F8FAFC; }

.ft-page .hero-title {
    font-size: clamp(30px, 3.2vw, 48px);
    letter-spacing: -0.03em;
}

.ft-page .hero-subtitle { margin-bottom: 28px; }

/* Ссылки внутри текстов раздела */
.ft-page .ps-desc a,
.ft-page .fc-desc a,
.ft-page .audience-card a,
.ft-page .split-lead a,
.ft-page .section-sub a {
    color: #2D5A66;
    text-decoration: underline;
    text-decoration-color: rgba(45, 90, 102, 0.35);
    text-underline-offset: 2px;
}

.ft-page .ps-desc a:hover,
.ft-page .fc-desc a:hover,
.ft-page .audience-card a:hover { text-decoration-color: currentColor; }

.ft-page .cta-sub a { color: #7FB3C4; }
.ft-page .cta-sub a:hover { color: #FFFFFF; }

/* Колонка «экрана» не шире 480px: на ноутбуке с меню слева тексту
   иначе остаётся узкая полоса */
.ft-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    align-items: start;
}

/* ── Полоса фактов под кнопками ──────────────────────────── */
.ft-facts {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px clamp(20px, 3vw, 40px);
}

.ft-fact { min-width: 0; max-width: 22ch; }

.ft-fact b {
    display: block;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0F172A;
}

.ft-fact span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #64748B;
}

/* ── «Экран» кабинета ────────────────────────────────────── */
.ft-screen {
    width: 100%;
    min-width: 0;
    margin: 0;
    background: #F1F5F9;
    border-radius: 24px;
    padding: clamp(14px, 2vw, 24px);
    container-type: inline-size;
}

/* Узкий «экран»: сетки макета в одну колонку */
@container (max-width: 400px) {
    .ft-ints,
    .ft-orders { grid-template-columns: 1fr; }
    .ft-li { grid-template-columns: 14px 28px minmax(0, 1fr) auto; }
    .ft-li-logos { display: none; }
    .ft-win-bar .ft-win-extra { display: none; }
}

.ft-win {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: #0F172A;
}

.ft-win-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 12px;
    color: #94A3B8;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    min-width: 0;
}

.ft-win-bar b { color: #0F172A; font-weight: 500; }
.ft-win-bar i { font-style: normal; color: #CBD5E1; }
.ft-win-bar .ft-win-extra { margin-left: auto; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ft-win-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ft-caption {
    margin: 12px 4px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748B;
}

/* Плитка внутри окна: как блоки карточки товара в кабинете */
.ft-tile {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ft-tile-cap {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94A3B8;
}

/* Строка «подпись ....... значение», как в карточке товара */
.ft-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ft-row-label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-row-label span { overflow: hidden; text-overflow: ellipsis; }

.ft-row-dots {
    flex: 1;
    min-width: 12px;
    height: 1px;
    border-bottom: 1px dotted #CBD5E1;
}

.ft-row-val {
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ft-sub {
    font-size: 11.5px;
    color: #64748B;
}

.ft-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.ft-logo--lg { width: 28px; height: 28px; }

/* Пилюли состояния */
.ft-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #EBF5EE;
    color: #1B6E3D;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ft-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ft-badge--err { background: #F6EAEA; color: #9C2727; }
.ft-badge--plain::before { display: none; }
.ft-badge--muted { background: #E2E8F0; color: #64748B; }

.ft-pro {
    display: inline-flex;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(74, 144, 164, 0.1);
    color: #2D5A66;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Тумблер: только картинка состояния */
.ft-toggle {
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: #1B6E3D;
    flex-shrink: 0;
}

.ft-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFFFFF;
}

.ft-toggle--off { background: #E2E8F0; }
.ft-toggle--off::after { left: 2px; }

/* Кнопки и вкладки кабинета */
.ft-btns { display: flex; flex-wrap: wrap; gap: 6px; }

.ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ft-btn--light { background: #F1F5F9; color: #0F172A; }
.ft-btn--block { align-self: flex-start; }

.ft-tabs { display: flex; flex-wrap: wrap; gap: 4px; }

.ft-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    white-space: nowrap;
}

.ft-tab.is-on { background: #F1F5F9; color: #0F172A; }

.ft-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: #E2E8F0;
    color: #64748B;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.ft-tab.is-on .ft-count { background: #0F172A; color: #FFFFFF; }

/* Сегмент режимов (Ценообразование) */
.ft-seg {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #F1F5F9;
}

.ft-seg span {
    padding: 6px 4px;
    border-radius: 7px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-seg span.is-on { background: #FFFFFF; color: #0F172A; }

.ft-formula {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(74, 144, 164, 0.08);
    color: #2D5A66;
    font-size: 11px;
    line-height: 1.5;
}

.ft-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ft-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ft-field label,
.ft-field > span:first-child {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-field b {
    padding: 7px 10px;
    border-radius: 8px;
    background: #F1F5F9;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ft-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F8FAFC;
    font-size: 12px;
    color: #475569;
}

.ft-preview b { font-size: 15px; color: #0F172A; font-variant-numeric: tabular-nums; }
.ft-preview i { font-style: normal; color: #94A3B8; }

/* Товар в окне */
.ft-prod { display: flex; align-items: center; gap: 10px; min-width: 0; }

.ft-thumb {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #E2E8F0;
    flex-shrink: 0;
}

.ft-thumb--sm { width: 28px; height: 28px; border-radius: 7px; }

.ft-prod-info { min-width: 0; }

.ft-prod-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Список товаров (вкладка «На маркетплейсах») */
.ft-list { display: flex; flex-direction: column; }

.ft-li {
    display: grid;
    grid-template-columns: 14px 28px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.ft-li:last-child { border-bottom: 0; }

.ft-check {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px #CBD5E1;
}

.ft-check.is-on { background: #0F172A; box-shadow: none; }

.ft-li-logos { display: flex; gap: 4px; }

.ft-li .ft-btn,
.ft-li .ft-badge { font-size: 11px; padding: 4px 9px; }

/* Окно отправки: готовы / не готовы */
.ft-reason {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #F6EAEA;
    color: #9C2727;
    font-size: 10.5px;
    font-weight: 500;
}

.ft-mp-chip {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(74, 144, 164, 0.1);
    color: #2D5A66;
    font-size: 10.5px;
    font-weight: 500;
}

/* Карточки интеграций */
.ft-ints {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ft-int {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Название магазина во всю ширину, пилюля состояния под ним */
.ft-int-head {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 6px 7px;
    min-width: 0;
}

.ft-int-head .ft-badge { grid-column: 1 / -1; justify-self: start; }

.ft-int-name {
    min-width: 0;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-int .ft-badge { font-size: 10px; padding: 2px 8px; }
.ft-int .ft-badge::before { width: 5px; height: 5px; }

.ft-int-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }

.ft-int-stats b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.ft-int-stats span { display: block; font-size: 10.5px; color: #64748B; }

/* Заказы */
.ft-orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ft-order {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ft-order-num {
    font-weight: 600;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-order .ft-row { font-size: 11.5px; }

/* ── Блок «Чего OneFill не делает» ───────────────────────── */
.ft-note {
    max-width: 860px;
    background: #F8FAFC;
    border-radius: 20px;
    padding: clamp(22px, 2.6vw, 32px);
}

.ft-note-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A90A4;
}

.ft-note p:last-child {
    margin: 0;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.6;
    color: #0F172A;
}

/* ── Статьи блога ────────────────────────────────────────── */
.ft-articles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 1100px;
}

.ft-article {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #F8FAFC;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ft-article:hover { background: #F1F5F9; text-decoration: none; }

.ft-article-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A90A4;
}

.ft-article-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: #0F172A;
}

/* ── Перелинковка раздела ────────────────────────────────── */
.ft-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 16px);
}

.ft-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(18px, 2vw, 24px);
    border-radius: 20px;
    background: #F8FAFC;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ft-link:hover { background: #F1F5F9; text-decoration: none; }

.ft-link-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0F172A;
}

.ft-link-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748B;
}

.ft-link-more {
    margin-top: auto;
    padding-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #4A90A4;
}

.ft-links-all {
    margin: 20px 0 0;
    font-size: 14px;
}

.ft-links-all a { color: #2D5A66; text-decoration: none; }
.ft-links-all a:hover { text-decoration: underline; }

/* ── Хаб ─────────────────────────────────────────────────── */
.ft-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 24px);
}

.ft-hub-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(24px, 2.6vw, 36px);
    border-radius: 20px;
    background: #F8FAFC;
}

.ft-hub-num {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #94A3B8;
    font-variant-numeric: tabular-nums;
}

.ft-hub-title {
    margin: 0;
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ft-hub-title a { color: #0F172A; text-decoration: none; }
.ft-hub-title a:hover { color: #2D5A66; }

.ft-hub-desc {
    margin: 0;
    font-size: clamp(14px, 1.05vw, 15px);
    line-height: 1.65;
    color: #475569;
}

.ft-hub-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft-hub-points li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #0F172A;
}

.ft-hub-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4A90A4;
}

.ft-hub-more {
    margin-top: auto;
    padding-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2D5A66;
    text-decoration: none;
}

.ft-hub-more:hover { text-decoration: underline; }

/* Каналы: подключаемые площадки и сервисы */
.ft-channels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ft-channels li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #F1F5F9;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    white-space: nowrap;
}

.ft-channels img { width: 18px; height: 18px; object-fit: contain; }

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ft-hero-grid { grid-template-columns: 1fr; }
    .ft-screen { max-width: 620px; }
    .ft-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ft-hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ft-articles,
    .ft-links { grid-template-columns: 1fr; }
    .ft-ints,
    .ft-orders { grid-template-columns: 1fr; }
    .ft-li { grid-template-columns: 14px 28px minmax(0, 1fr) auto; }
    .ft-li-logos { display: none; }
    .ft-win-bar .ft-win-extra { display: none; }
}

@media (max-width: 480px) {
    .ft-screen { padding: 10px; border-radius: 18px; }
    .ft-win-body { padding: 10px; }
    .ft-seg span { font-size: 10.5px; }
    .ft-facts { gap: 14px 22px; }
}
