/* ─────────────────────────────────────────────────────
   Features page — стили для страницы «Возможности».
   Использует CSS-переменные из globals.css (:root).
───────────────────────────────────────────────────── */

/* ─── HERO ─────────────────────────────────────────── */
/* Локальные маркетинговые токены — см. ui-guide раздел 3 */
.features-hero {
    --text-hero:    clamp(2rem, 4vw, 3rem);
    --text-display: clamp(1.25rem, 2vw, 1.5rem);

    background: #0f172a;
    padding: 72px 32px 68px;
    text-align: center;
}

.features-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.features-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.features-hero-eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.features-hero-title {
    font-size: var(--text-hero);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0;
}

.features-hero-divider {
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    margin: 22px auto;
}

.features-hero-subtitle {
    font-size: var(--text-display);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
}

.features-hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.features-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 13px;
    border-radius: 100px;
}

.features-hero-badge svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.features-hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Переопределяем цвета стандартных tms-btn для тёмного фона */
.features-hero .tms-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.features-hero .tms-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── ANCHOR NAV ──────────────────────────────────── */
.features-anchor-nav {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 24px 0 8px;
    position: sticky;
    top: 62px;
    z-index: 10;
    background: var(--bg);
}

.features-anchor {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 100px;
    color: var(--muted);
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    transition: all 0.15s ease;
}

.features-anchor:hover {
    color: var(--text);
    border-color: var(--border-interactive);
}

.features-anchor.is-active {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

/* ─── WRAP ─────────────────────────────────────────── */
.features-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── SECTIONS ─────────────────────────────────────── */
.features-section {
    padding: 56px 0;
}

.features-section + .features-section {
    border-top: 1px solid var(--border);
}

/* ─── SECTION HEADER ──────────────────────────────── */
.features-section-header {
    margin-bottom: 36px;
}

.features-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.features-tag.is-base {
    background: var(--neutral-bg);
    color: var(--neutral-text);
    border: 1px solid var(--neutral-border);
}

.features-tag.is-mod {
    background: var(--hover-active);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.features-tag.is-fin {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.features-tag.is-contr {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

.features-tag.is-fuel {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.features-section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.features-section-desc {
    font-size: var(--text-base);
    color: var(--muted);
    max-width: 640px;
}

.features-section-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.features-price-val {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
}

.features-price-per {
    font-size: var(--text-sm);
    color: var(--muted);
}

.features-price-cta {
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--primary);
    color: var(--surface);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.features-price-cta:hover {
    background: var(--primary-hover);
    color: var(--surface);
}

/* ─── FEATURE GRID ────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.features-grid.is-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* ─── FEATURE CARD ────────────────────────────────── */
.fc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.fc-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.fc-icon.is-base { background: var(--neutral-bg); }
.fc-icon.is-mod { background: var(--hover-active); }
.fc-icon.is-fin { background: var(--success-bg); }
.fc-icon.is-contr { background: var(--info-bg); }
.fc-icon.is-fuel { background: var(--warning-bg); }
.fc-icon svg { width: 18px; height: 18px; }

.fc-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.fc-desc {
    font-size: var(--text-sm);
    color: var(--muted);
    line-height: 1.6;
}

/* ─── HIGHLIGHT CARD (full-width with mini table) ── */
.fc-highlight {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.fc-highlight-text {
    padding: 4px 24px 24px 4px;
}

.fc-highlight-text .fc-icon {
    margin-bottom: 14px;
}

.fc-highlight-text .fc-title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 8px;
}

.fc-highlight-text .fc-desc {
    font-size: var(--text-sm);
    color: var(--muted);
    max-width: 400px;
}

.fc-highlight-accent {
    color: var(--danger);
    font-weight: 600;
}

.fc-highlight-accent-fin {
    color: var(--success-text);
    font-weight: 600;
}

.fc-highlight--fin {
    grid-column: span 3;
}

/* ─── MINI TABLE MOCKUP ──────────────────────────── */
.mini-table-wrap {
    border-left: 1px solid var(--border);
    padding: 16px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mini-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
    background: var(--surface);
    font-size: var(--text-xs);
}

.mt-head {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    background: var(--neutral-bg);
    border-bottom: 1px solid var(--border);
    padding: 6px 10px;
    gap: 8px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.mt-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    padding: 7px 10px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    color: var(--text);
}

.mt-row:last-child {
    border-bottom: none;
}

.mt-row.is-danger {
    background: var(--error-bg);
}

.mt-row.is-danger .mt-client {
    color: var(--danger);
    font-weight: 600;
}

.mt-status {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.mt-status.is-ok { background: var(--success-bg); color: var(--success-text); }
.mt-status.is-warn { background: var(--warning-bg); color: var(--warning-text); }
.mt-status.is-danger { background: var(--error-bg); color: var(--danger); }

/* ─── MODULE 2-COL LAYOUT ────────────────────────── */
.features-mod-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.features-mod-sidebar {
    position: sticky;
    top: 72px;
}

.features-mod-sidebar .features-section-header {
    margin-bottom: 0;
}

/* ─── OSAGO CARD ──────────────────────────────────── */
.features-osago-card {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}

.features-osago-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--warning-text);
    margin-bottom: 2px;
}

.features-osago-sub {
    font-size: var(--text-xs);
    color: var(--warning-text);
    opacity: 0.8;
}

/* ─── ADDON STRIP ─────────────────────────────────── */
.features-addon-strip {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--neutral-bg);
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.features-addon-text {
    font-size: var(--text-sm);
    color: var(--muted);
}

.features-addon-text strong {
    color: var(--text);
    font-weight: 600;
}

.features-addon-price {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

/* ─── TRUST BAR (под hero) ────────────────────────── */
.features-trust {
    /* Локальный токен — var(--primary-bg) не объявлен в глобальном :root */
    --primary-bg: #eff6ff;

    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.features-trust-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.features-trust-item {
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-right: 1px solid var(--border);
}

.features-trust-item:last-child {
    border-right: none;
}

.features-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 1px;
}

.features-trust-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.features-trust-desc {
    font-size: var(--text-xs);
    color: var(--muted);
    line-height: 1.5;
}

/* ─── PROBLEM → SOLUTION ──────────────────────────── */
.features-ps {
    /* Локальные оттенки — не в глобальном :root, нужны только здесь */
    --ps-body-text:        #374151;
    --ps-head-icon-danger: #fee2e2;
    --ps-head-icon-ok:     #dcfce7;
    --ps-highlight-text:   #166534;
    --ps-highlight-strong: #14532d;

    background: var(--bg);
    padding: 72px 32px;
}

.features-ps-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.features-ps-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-ps-tag {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    background: var(--neutral-bg);
    border: 1px solid var(--neutral-border);
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.features-ps-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.features-ps-sub {
    font-size: var(--text-base);
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto;
}

.features-ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.features-ps-col {
    border-radius: var(--radius);
    overflow: hidden;
}

.features-ps-head {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-ps-head--before {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.features-ps-head--after {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.features-ps-head-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-ps-head-icon--before {
    background: var(--ps-head-icon-danger);
    color: var(--error-text);
}

.features-ps-head-icon--after {
    background: var(--ps-head-icon-ok);
    color: var(--success-text);
}

.features-ps-head-label {
    font-size: var(--text-sm);
    font-weight: 600;
}

.features-ps-head-label--before { color: var(--error-text); }
.features-ps-head-label--after  { color: var(--success-text); }

.features-ps-body {
    background: var(--surface);
}

.features-ps-body--before {
    border: 1px solid var(--error-border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.features-ps-body--after {
    border: 1px solid var(--success-border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.features-ps-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hover);
}

.features-ps-row:last-child {
    border-bottom: none;
}

.features-ps-row--highlight {
    background: var(--success-bg);
}

.features-ps-row--highlight .features-ps-row-text {
    color: var(--ps-highlight-text);
}

.features-ps-row--highlight .features-ps-row-text strong {
    color: var(--ps-highlight-strong);
}

.features-ps-row-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.features-ps-row-icon--before {
    background: var(--error-bg);
    color: var(--error-text);
}

.features-ps-row-icon--after {
    background: var(--success-bg);
    color: var(--success-text);
}

.features-ps-row-text {
    font-size: var(--text-sm);
    color: var(--ps-body-text);
    line-height: 1.6;
    margin: 0;
}

.features-ps-row-text strong {
    font-weight: 600;
    color: var(--text);
}

/* ─── CORE FEATURES ───────────────────────────────── */
.features-cf {
    /* Локальные токены — не в глобальном :root */
    --primary-bg:     #eff6ff;
    --primary-border: #bfdbfe;
    --cf-bullet-text: #374151;

    background: var(--surface);
    padding: 80px 32px;
}

.features-cf-wrap {
    max-width: var(--container);
    margin: 0 auto;
}

.features-cf-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-cf-tag {
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    background: var(--neutral-bg);
    border: 1px solid var(--neutral-border);
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.features-cf-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.features-cf-desc {
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.features-cf-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.features-cf-bullet {
    position: relative;
    padding-left: 28px;
    font-size: var(--text-sm);
    color: var(--cf-bullet-text);
    line-height: 1.55;
}

.features-cf-bullet strong {
    font-weight: 600;
    color: var(--text);
}

.features-cf-bullet-icon {
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--success-bg);
    color: var(--success-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-cf-demo {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cf-demo-toolbar {
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cf-demo-search {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: var(--text-xs);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-demo-search svg {
    stroke: var(--border-interactive);
    flex-shrink: 0;
}

.cf-demo-filters {
    display: flex;
    gap: 6px;
}

.cf-demo-filter {
    font-size: var(--text-xs);
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    white-space: nowrap;
}

.cf-demo-filter--active {
    background: var(--primary-bg);
    border-color: var(--primary-border);
    color: var(--primary);
}

.cf-demo-table-wrap {
    overflow-x: auto;
}

.cf-demo-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cf-demo-table thead tr {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.cf-demo-table th {
    padding: 8px 14px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cf-demo-table tbody tr {
    border-bottom: 1px solid var(--hover);
    transition: background 0.1s ease;
}

.cf-demo-table tbody tr:last-child {
    border-bottom: none;
}

.cf-demo-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

.cf-demo-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.cf-demo-client {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text);
}

.cf-demo-route {
    font-size: var(--text-xs);
    color: var(--muted);
    white-space: nowrap;
}

.cf-demo-amount {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.cf-demo-status {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.cf-demo-status--done {
    background: var(--success-bg);
    color: var(--success-text);
}

.cf-demo-status--work {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.cf-demo-status--new {
    background: var(--info-bg);
    color: var(--info-text);
}

.cf-demo-footer {
    padding: 10px 14px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cf-demo-count {
    font-size: var(--text-xs);
    color: var(--muted);
}

.cf-demo-copy {
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-bg);
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: default;
    opacity: 0.65;
}

/* Реверс колонок: демо слева, текст справа */
.features-cf-block--reverse {
    direction: rtl;
}

.features-cf-block--reverse > * {
    direction: ltr;
}

/* Альтернативная секция на всю ширину с серым фоном */
.features-cf--alt {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── ДЕМО: подсказки адресов ── */
.features-cf-demo--address {
    /* Локальный оттенок для фона успешного поля */
    --cf-addr-done-text: #166534;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
}

.cf-addr-wrap {
    padding: 24px;
}

.cf-addr-form-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cf-addr-field {
    margin-bottom: 16px;
    position: relative;
}

.cf-addr-label {
    font-size: var(--text-xs);
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.cf-addr-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: var(--text-sm);
    color: var(--text);
    font-family: inherit;
    min-height: 36px;
    display: flex;
    align-items: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cf-addr-input--focused {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.cf-addr-input--empty {
    color: var(--muted);
}

.cf-addr-input--done {
    border-color: var(--success-border);
    background: var(--success-bg);
    color: var(--cf-addr-done-text);
}

.cf-addr-cursor {
    display: inline-block;
    width: 1.5px;
    height: 13px;
    background: var(--text);
    margin-left: 1px;
    vertical-align: middle;
}

.cf-addr-cursor--blink {
    animation: cf-addr-blink 0.85s step-end infinite;
}

@keyframes cf-addr-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.cf-addr-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: var(--z-inline-dropdown);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.cf-addr-dropdown--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cf-addr-dd-item {
    padding: 9px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--hover);
    transition: background 0.1s ease;
}

.cf-addr-dd-item:last-child {
    border-bottom: none;
}

.cf-addr-dd-item--selected {
    background: var(--primary-bg);
}

.cf-addr-dd-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--neutral-bg);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cf-addr-dd-main {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text);
}

.cf-addr-dd-match {
    color: var(--primary);
}

.cf-addr-dd-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}

.cf-addr-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--success-text);
    margin-top: 4px;
}

.cf-addr-replay {
    font-family: inherit;
    font-size: var(--text-xs);
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    transition: color 0.15s ease;
}

.cf-addr-replay:hover {
    color: var(--text);
}

/* ── ДЕМО: автозаполнение по ИНН ── */
.features-cf-demo--inn {
    /* Локальный светло-синий для loading-состояния кнопки */
    --cf-inn-btn-loading: #93c5fd;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cf-inn-wrap {
    padding: 24px;
}

.cf-inn-form-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cf-inn-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.cf-inn-field {
    flex: 1;
    min-width: 0;
}

.cf-inn-label {
    font-size: var(--text-xs);
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.cf-inn-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: var(--text-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text);
    min-height: 34px;
    display: flex;
    align-items: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf-inn-input--focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.cf-inn-cursor {
    display: inline-block;
    width: 1.5px;
    height: 12px;
    background: var(--text);
    margin-left: 1px;
    vertical-align: middle;
}

.cf-inn-cursor--blink {
    animation: cf-inn-blink 0.85s step-end infinite;
}

@keyframes cf-inn-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.cf-inn-btn {
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--primary);
    color: var(--surface);
    border: none;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.cf-inn-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cf-inn-btn--loading {
    background: var(--cf-inn-btn-loading);
    cursor: default;
    pointer-events: none;
}

.cf-inn-btn--loading svg {
    animation: cf-inn-spin 0.7s linear infinite;
}

@keyframes cf-inn-spin {
    to { transform: rotate(360deg); }
}

.cf-inn-btn--done {
    background: var(--success-text);
}

.cf-inn-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 16px;
}

.cf-inn-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cf-inn-result-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cf-inn-result-field--full {
    grid-column: span 2;
}

.cf-inn-result-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cf-inn-result-value {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--hover);
    border-radius: 7px;
    padding: 6px 10px;
    min-height: 28px;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cf-inn-result-value--filled {
    color: var(--text);
    border-color: var(--border);
}

.cf-inn-result-value--success {
    color: var(--success-text);
    border-color: var(--success-border);
    background: var(--success-bg);
}

.cf-inn-replay {
    font-family: inherit;
    font-size: var(--text-xs);
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    transition: color 0.15s ease;
}

.cf-inn-replay:hover {
    color: var(--text);
}

/* ─── BOTTOM CTA ──────────────────────────────────── */
.features-cta-bottom {
    text-align: center;
    padding: 52px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 48px 0;
    box-shadow: var(--shadow);
}

.features-cta-bottom h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.features-cta-bottom p {
    font-size: var(--text-base);
    color: var(--muted);
    margin: 0 0 24px;
}

.features-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.features-cta-primary {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--primary);
    color: var(--surface);
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.features-cta-primary:hover {
    background: var(--primary-hover);
    color: var(--surface);
}

.features-cta-secondary {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--surface);
    color: var(--text);
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-interactive);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.features-cta-secondary:hover {
    background: var(--hover);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 980px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-highlight,
    .fc-highlight--fin {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .fc-highlight-text {
        padding: 4px 4px 20px;
    }

    .mini-table-wrap {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 16px 0 0;
    }

    .features-mod-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .features-mod-sidebar {
        position: static;
    }

    .features-trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-trust-item:nth-child(2) {
        border-right: none;
    }

    .features-trust-item:nth-child(1),
    .features-trust-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .features-cf-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-cf-block--reverse {
        direction: ltr;
    }
}

@media (max-width: 720px) {
    .features-ps {
        padding: 48px 16px;
    }

    .features-ps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .features-hero {
        padding: 48px 16px 52px;
    }

    .features-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .features-hero-ctas .tms-btn {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .features-hero {
        padding: 40px 16px 36px;
    }

    .features-cf {
        padding: 48px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid.is-2col {
        grid-template-columns: 1fr;
    }

    .fc-highlight,
    .fc-highlight--fin {
        grid-column: span 1;
    }

    .mt-head,
    .mt-row {
        grid-template-columns: 2fr 1fr;
    }

    .mt-head span:nth-child(n+3),
    .mt-row span:nth-child(n+3) {
        display: none;
    }

    .features-wrap {
        padding: 0 16px;
    }

    .features-anchor-nav {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .features-anchor {
        padding: 6px 14px;
        font-size: var(--text-xs);
    }

    .features-trust-inner {
        grid-template-columns: 1fr;
    }

    .features-trust-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 18px 20px;
    }

    .features-trust-item:last-child {
        border-bottom: none;
    }
}
