@import url("cookies.css");

:root {
    --bg: #ffffff;
    --bg-soft: #f5f4f2;
    --bg-dark: #1a1a1a;
    --ink: #1a1a1a;
    --ink-muted: #6b6762;
    --ink-soft: #a8a39c;
    --accent: #f1361d;
    --accent-hover: #d12a13;
    --accent-soft: #fde8e4;
    --line: #e8e4de;
    --font: 'Manrope', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

button:focus {
    outline: none !important;
    box-shadow: none !important;
}

button:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ==================== HERO SWITCHER (only for preview) ==================== */
.hero-switcher {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 12px 0;
}

.hero-switcher-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-switcher-title {
    font-size: 12px;
    color: #a8a39c;
    letter-spacing: 0.04em;
}

.hero-switcher-btns {
    display: flex;
    gap: 4px;
    background: #2a2a2a;
    padding: 4px;
}

.hero-btn {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 500;
    color: #a8a39c;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.hero-btn:hover {
    color: #fff;
}

.hero-btn.active {
    background: var(--accent);
    color: #fff;
}

/* ==================== HEADER ==================== */
header {
    padding: 16px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo svg {
    height: 24px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.nav a:hover {
    color: var(--ink);
    background: var(--bg-soft);
}

.nav a.cta,
.nav button.cta {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
}

.nav a.cta:hover,
.nav button.cta:hover {
    background: var(--accent-hover);
    color: #fff;
}
}

.logo svg path {
    fill: var(--accent);
}

.logo-footer svg {
    height: 22px;
    width: auto;
    display: block;
}

.logo-footer svg path {
    fill: var(--ink-soft);
}

.cta-final-block .logo-footer svg {
    height: 40px;
}

.cta-final-block .logo-footer svg path {
    fill: #ffffff;
}

.nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav a {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--ink);
}

.nav a.cta {
    color: #fff;
    background: var(--ink);
    padding: 12px 22px;
    font-weight: 500;
}

.nav a.cta:hover {
    background: var(--accent);
}

@media (max-width: 900px) {
    .nav a:not(.cta) {
        display: none;
    }
}

/* ==================== SECTION STRUCTURE ==================== */
.section-label {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.block-head {
    max-width: 1000px;
    margin-bottom: 72px;
}

.block-head h2 {
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.block-head .lead {
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 62ch;
}

section.block {
    padding: 56px 0;
}

section.block.soft {
    background: var(--bg-soft);
}

section.block.dark {
    background: var(--bg-dark);
    color: #e8e4de;
}

section.block.dark .section-label {
    color: var(--accent);
}

section.block.dark .block-head h2 {
    color: #fff;
}

section.block.dark .block-head .lead {
    color: #a8a39c;
}

.direction-cta-row {
    padding: 28px 0 48px;
    text-align: center;
}

/* Якоря со смещением на высоту хедера */
[id] {
    scroll-margin-top: 64px;
}

/* Мобильное меню */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .nav {
        display: none;
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
        z-index: 99;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px 24px;
        border-radius: 0;
        font-size: 15px;
    }

    .nav a.cta {
        margin: 8px 24px 0;
        text-align: center;
        border-radius: 4px;
    }

    .nav-toggle {
        display: block;
    }
}

.hero-buh {
    background: #fff;
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--line);
}

.hero-buh-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hero-buh-h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0;
}

.hero-buh-desc {
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.4;
    color: var(--ink);
    font-weight: 500;
    margin: 0 0 32px;
}

/* ==================== ЗАДАЧИ ПЛАТФОРМЫ ==================== */
.hero-tasks {
    background: var(--bg-soft);
    padding: 48px 0 56px;
    position: relative;
}

.hero-tasks-title {
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-align: center;
    margin: 0 0 56px;
}

.hero-tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.hero-task-card {
    background: #fff;
    padding: 36px 32px;
}

.hero-task-card h3 {
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 16px;
}

.hero-task-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0;
}

.hero-tasks-cta {
    text-align: center;
}

@media (max-width: 960px) {
    .hero-buh-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-tasks-grid {
        grid-template-columns: 1fr;
    }
}

/* Фото-эксперты (разработчики законов) */
.linear-block-experts-photo {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}

.linear-expert-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
}

.linear-expert-photo img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--line);
}

.linear-expert-photo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    line-height: 1.3;
}

.linear-expert-photo-org {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

/* Скриншот отчета аттестации */
.linear-report-preview {
    margin-top: 28px;
}

.linear-report-img {
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.linear-report-caption {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Сетка консультантов */
.linear-consultants-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.linear-consultant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.linear-consultant img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--line);
}

.linear-consultant span {
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 1100px) {
    .linear-consultants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .linear-consultants-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .linear-report-preview {
        flex-direction: column;
    }

    .linear-report-img {
        width: 100%;
    }

    .linear-block-experts-photo {
        gap: 16px;
    }

    .linear-expert-photo {
        width: 80px;
    }
}

/* ==================== ЛИНЕЙНАЯ СТРУКТУРА НАПРАВЛЕНИЯ (dir3) ==================== */
.direction-linear {
    padding: 24px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.linear-block {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.linear-block:last-child {
    border-bottom: 1px solid var(--line);
}

.linear-block-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding-top: 4px;
}

.linear-block-icon {
    flex-shrink: 0;
    width: 36px;
    padding-top: 2px;
}

.linear-block-title {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 14px;
    line-height: 1.2;
}

.linear-block-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0 0 24px;
    max-width: 72ch;
}

.linear-block-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.linear-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-muted);
    background: var(--bg-soft);
}

/* Эксперты в линейном блоке */
.linear-block-experts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.linear-expert {
    display: flex;
    align-items: center;
    gap: 10px;
}

.linear-expert-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    flex-shrink: 0;
}

.linear-expert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.linear-expert-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

.linear-expert-org {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Статистика в линейном блоке */
.linear-block-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.linear-stat-num {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.linear-stat-text {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
    max-width: 24ch;
}

@media (max-width: 900px) {
    .linear-block {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .linear-block-stats {
        gap: 24px;
    }
}

/* ==================== КАРТОЧКА РЕЗУЛЬТАТОВ (сервис контрагентов) ==================== */
.panel-content-card--results {
    background: var(--bg-soft);
}

.panel-result-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.panel-result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panel-result-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    flex-shrink: 0;
    min-width: 56px;
}

.panel-result-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
    padding-top: 3px;
}

/* ==================== ПАНЕЛЬ: СЕТКА КОНТЕНТА ==================== */
/* ==================== ДВУХКОЛОНОЧНЫЙ LAYOUT ПАНЕЛИ ==================== */
/* Левая колонка — справочная+обучение, правая — эксперты */
.tab-panel .panel-content-grid {
    float: left;
    width: calc(50% - 12px);
    margin-right: 24px;
    margin-bottom: 0;
}

.tab-panel .panel-experts-strip {
    float: right;
    width: calc(50% - 12px);
    margin-top: 0;
    clear: none;
}

.tab-panel::after {
    content: '';
    display: table;
    clear: both;
}

/* Исключение: панель с результатами клиентов (Контрагенты) — обычный grid */
[data-panel="dir2-5"] .panel-content-grid {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* На мобильном — стопкой */
@media (max-width: 900px) {
    .tab-panel .panel-content-grid {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .tab-panel .panel-experts-strip {
        float: none;
        width: 100%;
        margin-top: 16px;
    }

    [data-panel="dir2-5"] .panel-content-grid {
        grid-template-columns: 1fr !important;
    }
}

.panel-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.panel-content-card {
    border: 1px solid var(--line);
    padding: 20px 20px;
}

.panel-content-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.panel-content-item {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.panel-content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panel-content-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 7px;
}

/* ==================== БЛОК ОПЫТОМ ДЕЛЯТСЯ ==================== */
.panel-experts-strip {
    margin-top: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 28px 28px 8px;
}

.panel-experts-strip-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.panel-experts-strip-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.panel-expert-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.panel-expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-muted);
}

.panel-expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.panel-expert-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
    padding-top: 2px;
}

.panel-expert-name {
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 0;
}

.panel-expert-company {
    color: var(--ink-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.panel-expert-method {
    display: block;
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* ==================== ВЫЗОВЫ 2026–2027 ==================== */
.challenges-block {
    background: var(--bg-dark);
    padding: 48px 0;
    border-top: none;
}

.challenges-header {
    margin-bottom: 36px;
}

.challenges-title {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    max-width: 36ch;
    margin: 0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-card {
    padding: 36px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background 0.2s;
    cursor: pointer;
}

.challenge-card:hover {
    background: rgba(255, 255, 255, 0.05);
}



.challenge-card:hover .challenge-arrow {
    color: var(--accent);
}

.challenge-icon {
    margin-bottom: 20px;
    opacity: 0.9;
}

.challenges-block .challenge-icon svg * {
    stroke: var(--accent) !important;
    fill: none;
}

.challenge-card h3 {
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 12px;
}

.challenge-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    flex: 1;
}

.challenge-arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    transition: color 0.2s;
    margin-top: auto;
}

@media (max-width: 1100px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HERO (старый, оставлен для совместимости) ==================== */
.hero {
    padding: 32px 0 64px;
    position: relative;
}

.hero-variant {
    display: none;
}

.hero-variant.active {
    display: block;
}

.hero-addressee {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--ink);
    padding: 6px 12px;
    margin-bottom: 24px;
}

.hero-triad {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 40px;
}

.hero-triad-word {
    font-size: clamp(48px, 7.5vw, 108px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.hero-triad-word:nth-child(1) {
    color: var(--accent);
}

.hero-triad-word .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    transform: translateY(-6px);
    flex-shrink: 0;
}

.hero-sub {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 64ch;
    margin-bottom: 36px;
    margin-top: 0;
}

.hero-sub strong {
    color: var(--ink);
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 65%, var(--accent-soft) 65%, var(--accent-soft) 95%, transparent 95%);
    padding: 0 2px;
}

.hero-v2-label {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-v2-h1 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 26ch;
    margin-bottom: 28px;
    color: var(--ink);
}

.cta-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
}

.cta-primary:focus,
.cta-primary:active {
    outline: none !important;
    box-shadow: none !important;
}

.cta-primary:hover {
    background: var(--accent-hover);
}

.cta-secondary {
    display: inline-block;
    margin-left: 12px;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.cta-secondary:hover {
    color: var(--accent);
}

.cta-secondary::after {
    content: '  →';
    color: var(--accent);
}

/* ==================== ШЕСТЬ ВОПРОСОВ (сетка 3×2) ==================== */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--line);
}

.q-card {
    padding: 40px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    transition: background 0.2s;
}

.q-card:hover {
    background: var(--bg-soft);
}

.q-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.q-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
}

@media (max-width: 960px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .questions-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ПЕРЕЛОМ ==================== */
.pivot-main {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    max-width: 26ch;
    color: #fff;
    margin: 44px 0;
}

.pivot-main .accent {
    color: var(--accent);
}

.pivot-conclusion {
    font-size: 18px;
    line-height: 1.6;
    color: #a8a39c;
    max-width: 58ch;
}

/* ==================== ТРИ ОПОРЫ (Эффективность / Безопасность / Темп) ==================== */
.pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pillar {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 40px 48px 36px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}

.pillar-head {
    border-right: 1px solid var(--line);
    padding-right: 40px;
}

.pillar-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.pillar-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 16px;
}

.pillar-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-muted);
}

.pillar-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.pillar-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.pillar-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pillar-task {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.pillar-answer {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-muted);
}

.pillar-answer strong {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 900px) {
    .pillar {
        grid-template-columns: 1fr;
        padding: 40px 32px;
        gap: 32px;
    }

    .pillar-head {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
        padding-bottom: 24px;
    }

    .pillar-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==================== ФОРА (обещание) ==================== */
.fora {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--ink);
    background: var(--bg);
}

.fora-side {
    padding: 60px 52px;
}

.fora-side.left {
    border-right: 1px solid var(--line);
}

.fora-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.fora-headline {
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--ink);
}

.fora-headline.red {
    color: var(--accent);
}

.fora-side p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 42ch;
}

@media (max-width: 768px) {
    .fora {
        grid-template-columns: 1fr;
    }

    .fora-side.left {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .fora-side {
        padding: 44px 24px;
    }
}

/* ==================== COMPOSITION ==================== */
.composition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.comp-list {
    list-style: none;
}

.comp-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.comp-list li:first-child {
    border-top: 1px solid var(--ink);
}

.comp-marker {
    flex-shrink: 0;
    width: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.comp-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
}

.comp-right h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.comp-right p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-bottom: 28px;
}

@media (max-width: 960px) {
    .composition {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==================== БУХГАЛТЕРИЯ (короткий блок) ==================== */
.buh {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.buh-left h3 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.buh-left p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 40ch;
}

.buh-right {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
}

.buh-right p {
    margin-bottom: 18px;
}

.buh-right p:last-child {
    margin-bottom: 0;
}

.buh-right strong {
    font-weight: 600;
}

@media (max-width: 960px) {
    .buh {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==================== ПАСПОРТ НАВЫКОВ ==================== */
.passport {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.passport-card {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 40px 32px;
    position: relative;
}

.passport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
}

.passport-who {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.passport-what {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 18px;
}

.passport-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-muted);
}

@media (max-width: 900px) {
    .passport {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==================== ОПЦИЯ БУХГАЛТЕРИЯ ==================== */
.option-addon {
    margin-top: 40px;
    padding: 32px 36px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.option-addon-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg);
    padding: 6px 12px;
    flex-shrink: 0;
}

.option-addon-text {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    flex: 1;
    min-width: 240px;
}

.option-addon-text strong {
    font-weight: 700;
}

/* ==================== FINAL CTA ==================== */
.cta-final-block h2 {
    font-size: clamp(34px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 20ch;
    margin: 16px 0 36px;
    color: #fff;
}

.cta-final-block p {
    font-size: 18px;
    line-height: 1.6;
    color: #c8c4be;
    max-width: 58ch;
    margin-bottom: 28px;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--bg);
    padding: 32px 0 28px;
    font-size: 13px;
    color: var(--ink-soft);
}

footer .f-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==================== TASKS GRID (блок 03) ==================== */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
}

.task-card {
    padding: 36px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    transition: background 0.2s;
}

.task-card:hover {
    background: var(--bg-soft);
}

.task-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.task-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 14px;
}

.task-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* ==================== UNIVERSITY TOPICS (блок 04) ==================== */
.university-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.topic-card {
    padding: 32px 28px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
}

.topic-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 14px;
}

.topic-card h4 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
}

/* ==================== PASSPORT DEMO (блок 05) ==================== */
.passport-demo {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .passport-demo {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.passport-demo-frame {
    background: #fff;
    border: 1px solid var(--line);
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.passport-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.passport-demo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.passport-demo-level {
    font-size: 14px;
    color: var(--ink-muted);
}

.passport-skill {
    margin-bottom: 24px;
}

.passport-skill:last-child {
    margin-bottom: 0;
}

.passport-skill-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.passport-skill-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

.passport-skill-score {
    font-size: 22px;
    font-weight: 700;
}

.passport-skill-score.good {
    color: #2a7f3f;
}

.passport-skill-score.bad {
    color: #c0392b;
}

.passport-skill-bar {
    height: 4px;
    background: var(--line);
    margin-bottom: 10px;
}

.passport-skill-fill {
    height: 100%;
}

.passport-skill-fill.good {
    background: #2a7f3f;
}

.passport-skill-fill.bad {
    background: #c0392b;
}

.passport-skill-sub {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.passport-improve {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.passport-improve:hover {
    text-decoration: underline;
}

.passport-notes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 12px;
}

.passport-note {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
}

.passport-note-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==================== ROLES GRID (блок 07) ==================== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.role-card {
    padding: 24px 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    text-align: center;
}

.role-card.accent {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.role-card.accent span {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-soft);
    display: block;
    margin-top: 6px;
}

/* ==================== CLIENTS GRID (блок 08) ==================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.client-logo {
    background: var(--bg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.client-logo img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

/* ==================== ROLE SWITCHER (финдир/главбух) ==================== */
.role-switcher {
    display: inline-flex;
    gap: 2px;
    margin-top: 32px;
    background: var(--line);
    padding: 4px;
    border-radius: 4px;
}

.role-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    font-family: inherit;
}

.role-btn:hover {
    color: var(--ink);
}

.role-btn.active {
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.role-switch-h {
    display: inline;
}


/* ==================== v12: ОБЩАЯ ПЛАНКА УПОМИНАНИЙ ==================== */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
    margin-top: 64px;
}

.platform-stat {
    padding: 32px 28px;
    border-right: 1px solid #2a2a2a;
}

.platform-stat:last-child {
    border-right: none;
}

.platform-stat-num {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 10px;
}

.platform-stat-label {
    font-size: 13px;
    line-height: 1.5;
    color: #a8a39c;
}

@media (max-width: 768px) {
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-stat {
        border-right: 1px solid #2a2a2a;
        border-bottom: 1px solid #2a2a2a;
    }

    .platform-stat:nth-child(2n) {
        border-right: none;
    }

    .platform-stat:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* ==================== НАПРАВЛЕНИЯ — ВЕРТИКАЛЬНАЯ КОМПОЗИЦИЯ ==================== */
.direction {
    padding: 44px 0 36px;
    border-bottom: 1px solid var(--line);
    position: relative;
    background: var(--bg);
}

.direction::before {
    display: none;
}



/* Чередование */
.direction.dark {
    background: var(--bg-soft);
    border-color: var(--line);
}

.direction.black {
    background: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.08);
}

.direction.black .direction-title,
.direction.black .direction-problem p,
.direction.black .direction-platform-title,
.direction.black .linear-block-title,
.direction.black .linear-block-desc {
    color: #fff;
}

.direction.black .direction-problem p {
    color: rgba(255, 255, 255, 0.75);
}

.direction.black .linear-block-desc {
    color: rgba(255, 255, 255, 0.7);
}

.direction.black .linear-block {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.direction.black .linear-block-num {
    color: var(--accent);
}

.direction.black .direction-bridge {
    border-top-color: var(--accent);
}

.direction.black .direction-tag {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.direction.black .linear-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-color: transparent;
}

/* === ШАПКА НАПРАВЛЕНИЯ (проблема) === */
.direction-head {
    margin-bottom: 40px;
}

.direction-title {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 32px;
    max-width: 28ch;
}

.direction-problem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.direction-problem p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-bottom: 0;
}

/* Облако тегов с запросами клиентов */
.direction-quotes {
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.direction-tag {
    display: inline-block;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 13px;
    color: var(--accent);
    line-height: 1.2;
    font-weight: 500;
}

.direction.dark .direction-tag {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 900px) {
    .direction-problem {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* === МОСТИК "ЧТО ДАЕТ ПЛАТФОРМА" === */
.direction-bridge {
    margin-top: 32px;
    padding: 24px 0 0;
    border-top: 3px solid var(--accent);
}

.direction-platform-title {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    margin: 16px 0 0;
    letter-spacing: -0.02em;
}

/* Выделение «Что дает платформа» */
.direction-bridge-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 6px 14px;
    border-radius: 2px;
}

.direction-bridge-arrow {
    display: none;
}

.direction.dark .direction-bridge {
    border-top-color: var(--accent);
}

/* === БЛОК ИНСТРУМЕНТОВ === */
.direction-tools-section {
    padding: 32px 0 0;
    margin-top: 0;
}

.direction-tools-section::after {
    content: "";
    display: table;
    clear: both;
}

.direction.dark .direction-tools-section {
    background: transparent;
}

.direction-tools-intro {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: baseline;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.direction-tools-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.direction-tools-headline {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 60ch;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tool-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.tool-row:last-child {
    border-bottom: 1px solid var(--line);
}

.tool-row.featured {
    background: linear-gradient(to right, var(--accent-soft) 0%, transparent 60%);
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
}

/* На soft-фоне featured даем чуть более плотную подсветку, чтобы выделение читалось */
.direction.dark .tool-row.featured {
    background: linear-gradient(to right, rgba(241, 54, 29, 0.16) 0%, transparent 60%);
}

.tool-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.tool-name-tag {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.tool-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.tool-desc strong {
    font-weight: 700;
    color: var(--ink);
}

.tool-meta {
    margin-top: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-soft);
}

.tool-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 900px) {
    .direction {
        padding: 44px 0;
    }

    .direction-head {
        margin-bottom: 40px;
    }

    .direction-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 24px;
    }

    .direction-tools-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .tool-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 0;
    }

    .tool-row.featured {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==================== КЕЙСЫ-ЦИТАТЫ ==================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.case-card {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-soft);
    font-family: Georgia, serif;
}

.case-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.case-quote {
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.case-quote em {
    font-style: normal;
    background: linear-gradient(to bottom, transparent 65%, var(--accent-soft) 65%, var(--accent-soft) 95%, transparent 95%);
    padding: 0 2px;
}

.case-author {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: center;
}

.case-author-avatar {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    background: var(--bg-soft);
    overflow: hidden;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.case-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.case-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.case-author-role {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.3;
    margin-top: 2px;
}

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

    .case-card {
        padding: 24px 20px;
    }
}

/* ==================== v12: ОТКАЗ ОТ ЗАТРАТ ==================== */
.savings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--ink);
}

.savings-item {
    padding: 36px 36px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: start;
}

.savings-item:nth-child(2n) {
    border-right: none;
}

.savings-cross {
    font-size: 28px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-top: 4px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.savings-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 8px;
}

.savings-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .savings {
        grid-template-columns: 1fr;
    }

    .savings-item:nth-child(2n) {
        border-right: 1px solid var(--line);
    }
}


/* ==================== ОТЗЫВЫ — КАРУСЕЛЬ ==================== */
.reviews-block {
    padding: 48px 0;
}

.reviews-carousel {
    position: relative;
    margin-top: 56px;
}

.reviews-track-viewport {
    overflow: hidden;
    margin: 0 -16px;
}

.reviews-track {
    display: flex;
    gap: 32px;
    padding: 0 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.review-card {
    flex: 0 0 calc((100% - 32px) / 2);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 44px 40px 36px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.review-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.review-quote {
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 28px;
    flex: 1;
}

.review-quote em {
    font-style: normal;
    background: linear-gradient(to bottom, transparent 65%, var(--accent-soft) 65%, var(--accent-soft) 95%, transparent 95%);
    padding: 0 2px;
}

.review-source {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    padding: 16px 20px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    margin-bottom: 24px;
}

.review-source strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.review-author {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
}

.review-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: -0.02em;
}

.review-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.review-author-role {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.3;
    margin-top: 2px;
}

/* Контрол: стрелки + точки */
.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding: 0 4px;
}

.reviews-arrows {
    display: flex;
    gap: 10px;
}

.reviews-arrow {
    width: 52px;
    height: 52px;
    border: 1px solid var(--ink);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--ink);
    font-size: 18px;
}

.reviews-arrow:hover:not(:disabled) {
    background: var(--ink);
    color: var(--bg);
}

.reviews-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.reviews-arrow svg {
    display: block;
}

.reviews-dots {
    display: flex;
    gap: 8px;
}

.reviews-dot {
    width: 28px;
    height: 3px;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.reviews-dot.active {
    background: var(--accent);
}

.reviews-counter {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

.reviews-counter span {
    color: var(--ink);
}




/* ==================== ФОРМАТЫ ПОДДЕРЖКИ ==================== */
.formats-block {
    padding: 48px 0 56px;
    background: var(--bg-dark);
    color: #e8e4de;
}

.formats-block .block-head h2 {
    color: #fff;
}

.formats-block .block-head .lead {
    color: #a8a39c;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.format-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.format-card.featured {
    background: linear-gradient(to bottom right, rgba(241, 54, 29, 0.18), rgba(241, 54, 29, 0.04));
    border-color: rgba(241, 54, 29, 0.3);
}

.format-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.format-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 18px;
}

.format-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #c4c0ba;
    margin-bottom: 24px;
    flex: 1;
}

.format-desc strong {
    color: #fff;
    font-weight: 700;
}

.format-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #a8a39c;
}

.format-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.format-meta-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 900px) {
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .format-card {
        padding: 32px 28px;
    }
}


/* ==================== КАРУСЕЛЬ ЭКСПЕРТОВ ==================== */
.experts-carousel {
    position: relative;
    margin-top: 36px;
}

.experts-track-viewport {
    overflow: hidden;
}

.experts-track {
    display: flex;
    gap: 32px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.experts-track .case-card {
    flex: 0 0 calc((100% - 32px) / 2);
    box-sizing: border-box;
    margin: 0;
}

.experts-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding: 0 4px;
}

.experts-arrows {
    display: flex;
    gap: 10px;
}

.experts-arrow {
    width: 52px;
    height: 52px;
    border: 1px solid var(--ink);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--ink);
}

.experts-arrow:hover:not(:disabled) {
    background: var(--ink);
    color: var(--bg);
}

.experts-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.experts-dots {
    display: flex;
    gap: 8px;
}

.experts-dot {
    width: 28px;
    height: 3px;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.experts-dot.active {
    background: var(--accent);
}

.experts-counter {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

.experts-counter span {
    color: var(--ink);
}

@media (max-width: 900px) {
    .experts-track .case-card {
        flex: 0 0 calc(100vw - 48px);
        max-width: 420px;
    }

    .experts-track {
        gap: 16px;
    }

    .experts-controls {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .case-author {
        grid-template-columns: 72px 1fr;
    }

    .case-author-avatar {
        width: 72px;
        height: 84px;
    }

    .case-quote {
        font-size: 15px;
    }
}

/* Фикс карусели отзывов — убираю отрицательный margin, который срезал левый край */
.reviews-track-viewport {
    margin: 0;
    overflow: hidden;
}

.reviews-track {
    padding: 0;
}

.reviews-track .review-card {
    flex: 0 0 calc((100% - 32px) / 2);
    box-sizing: border-box;
    margin: 0;
}

@media (max-width: 900px) {
    .reviews-track .review-card {
        flex: 0 0 calc(100vw - 48px) !important;
        width: calc(100vw - 48px) !important;
    }

    .review-card {
        padding: 24px 20px;
    }

    .reviews-track {
        gap: 16px;
    }

    .reviews-controls {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}


/* ==================== СВЕЖИЕ РЕШЕНИЯ ==================== */
.fresh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fresh-card {
    border: 1px solid var(--line);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}

.fresh-card:hover {
    border-color: var(--accent);
}

.fresh-card-topic {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.fresh-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.fresh-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

@media (max-width: 960px) {
    .fresh-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fresh-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ЛИСТАЛКА ИНСТРУМЕНТОВ ==================== */
.tools-tabs {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.direction.dark .tools-tabs {
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Горизонтальная навигация табов */
.tabs-list-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg-soft);
}

.tabs-list-horizontal::-webkit-scrollbar {
    display: none;
}

.tabs-list-horizontal .tab-item {
    padding: 16px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    border-left: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--ink-muted);
    flex-shrink: 0;
    width: auto;
    display: inline-block;
    transition: all 0.2s;
}

.tabs-list-horizontal .tab-item:hover {
    color: var(--ink);
    background: rgba(241, 54, 29, 0.04);
}

.tabs-list-horizontal .tab-item.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

.direction.dark .tabs-list-horizontal {
    background: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.direction.dark .tabs-list-horizontal .tab-item.active {
    background: transparent;
}

/* Старый вертикальный список (для других направлений) */
.tabs-list {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
}

.tabs-list.tabs-list-horizontal {
    flex-direction: row !important;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg-soft);
}

.tabs-list.tabs-list-horizontal::-webkit-scrollbar {
    display: none;
}

.direction.dark .tabs-list {
    border-right-color: rgba(0, 0, 0, 0.08);
}

/* Горизонтальные табы — переопределяем вертикальные стили */
.tabs-list.tabs-list-horizontal .tab-item {
    padding: 16px 24px !important;
    border-bottom: 3px solid transparent !important;
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    background: transparent !important;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--ink-muted);
    flex-shrink: 0;
    width: auto !important;
    display: inline-block !important;
    cursor: pointer;
    transition: all 0.2s;
}

.tabs-list.tabs-list-horizontal .tab-item:hover {
    color: var(--ink) !important;
    background: rgba(241, 54, 29, 0.04) !important;
}

.tabs-list.tabs-list-horizontal .tab-item.active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
    background: transparent !important;
    border-left: none !important;
}

.direction.dark .tabs-list.tabs-list-horizontal .tab-item.active {
    background: transparent !important;
}

/* Старый вертикальный таб-айтем — только внутри .tabs-list */
.tabs-list .tab-item {
    padding: 22px 28px 22px 24px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--ink-muted);
    display: block;
    width: 100%;
}

.direction.dark .tabs-list .tab-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.tabs-list .tab-item:last-child {
    border-bottom: none;
}

.tabs-list .tab-item:hover {
    background: rgba(241, 54, 29, 0.04);
    color: var(--ink);
}

.tabs-list .tab-item.active {
    background: var(--bg);
    border-left-color: var(--accent);
    color: var(--ink);
}

.direction.dark .tabs-list .tab-item.active {
    background: var(--bg);
}

.tab-item-tag {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.tabs-list .tab-item.active .tab-item-tag {
    color: var(--accent);
}

.tab-item-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Правая колонка — панели */
.tabs-panels {
    padding: 32px 36px;
    background: var(--bg);
    min-height: 200px;
    position: relative;
    border: 1px solid var(--line);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.tab-panel-name {
    font-size: clamp(22px, 1.8vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 20px;
}

.tab-panel-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.tab-panel-desc strong {
    font-weight: 700;
    color: var(--ink);
}

.tab-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.tab-panel-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 6px 12px;
    background: var(--bg-soft);
    border-radius: 4px;
}

.tab-panel-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

/* Мобильный — аккордеон */
@media (max-width: 900px) {
    .tools-tabs {
        display: block;
        border: 1px solid var(--line);
    }

    .tabs-list {
        border-right: none;
        display: contents;
    }

    .tabs-list .tab-item {
        border-left: none;
        border-top: 3px solid transparent;
    }

    .tabs-list .tab-item.active {
        border-left: none;
        border-top-color: var(--accent);
    }

    .tabs-panels {
        padding: 28px 24px;
        min-height: 0;
        border-bottom: 1px solid var(--line);
    }
}


/* ==================== СПИСОК ЭКСПЕРТОВ В ПАНЕЛИ ==================== */
.panel-experts-list {
    margin-top: 28px;
    padding: 24px 26px 20px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
}

.panel-expert-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.panel-expert-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.panel-expert-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.panel-expert-row:last-child {
    padding-bottom: 0;
}

.panel-expert-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: -0.02em;
}

.panel-expert-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
    padding-top: 8px;
}

.panel-expert-name {
    font-weight: 700;
    color: var(--ink);
}

.panel-expert-company {
    font-weight: 600;
    color: var(--ink);
}

.panel-expert-method {
    color: var(--ink-muted);
}


/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 40px 40px 36px;
    position: relative;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ink-muted);
    line-height: 0;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.modal-title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0 0 28px;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.modal-field input,
.modal-field select {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--line);
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}

.modal-field input:focus,
.modal-field select:focus {
    border-color: var(--accent);
}

.modal-field input::placeholder {
    color: var(--ink-muted);
}

.modal-submit {
    width: 100%;
    height: 52px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}

.modal-submit:hover {
    background: var(--accent-hover);
}

.modal-note {
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* Уведомление об успехе */
.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0 8px;
}

.modal-success.active {
    display: block;
}

.modal-form.hidden {
    display: none;
}

.modal-success-icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.modal-success-text {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

.modal-success-close {
    display: inline-block;
    padding: 12px 32px;
    background: var(--bg-soft);
    color: var(--ink);
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 600px) {
    .modal {
        padding: 28px 20px 24px;
    }
}