:root {
    --orange: #ff8800;
    --orange-2: #ffa733;
    --violet: #9600fa;
    --violet-2: #b54dff;
    --black: #050208;
    --ink: #160d1d;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.13);
    --border-strong: rgba(255, 255, 255, 0.26);
    --text: #ffffff;
    --muted: #cfc2d8;
    --soft: #8f8299;
    --good: #41e88b;
    --warn: #ffd36c;
    --danger: #ff5f7d;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --radius: 12px;
    --radius-s: 9px;
    --font-display: "Unbounded", "Segoe UI", Arial, sans-serif;
    --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 136, 0, 0.2), transparent 30vw),
        radial-gradient(circle at 82% 8%, rgba(150, 0, 250, 0.26), transparent 32vw),
        linear-gradient(135deg, #09050d 0%, #12091a 48%, #050208 100%);
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 88%);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

#smoke-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.38;
    pointer-events: none;
}

/* ---------- Появление контента ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ---------- Верхняя панель ---------- */
.topbar {
    position: fixed;
    top: 10px;
    right: 14px;
    left: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(10, 4, 14, 0.78);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(22px);
}

.brand {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 76px;
    max-height: 42px;
    height: auto;
    object-fit: contain;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.quick-actions a,
.controls button,
.hero-actions a,
.deck-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-actions a:first-child,
.hero-actions a:first-child,
.deck-button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    box-shadow: 0 14px 34px rgba(255, 136, 0, 0.22);
}

.quick-actions a:hover,
.controls button:hover,
.hero-actions a:hover,
.deck-button:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.13);
}

.quick-actions a:first-child:hover,
.hero-actions a:first-child:hover,
.deck-button--primary:hover {
    background: linear-gradient(135deg, #ff9d23, #a720ff);
    box-shadow: 0 16px 40px rgba(255, 136, 0, 0.3);
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#manager-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.05);
    color: var(--soft);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

#manager-toggle:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

body.manager-mode #manager-toggle {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), var(--violet));
}

.progress {
    display: grid;
    gap: 5px;
    width: 150px;
}

.progress span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.progress__track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.progress__track i {
    display: block;
    width: 5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), #fff, var(--violet));
    transition: width 200ms ease;
}

/* ---------- Боковая навигация ---------- */
.slide-rail {
    position: fixed;
    top: 76px;
    bottom: 78px;
    left: 18px;
    z-index: 15;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 232px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(9, 4, 13, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.slide-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.slide-rail__head span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.slide-rail__head strong {
    color: var(--soft);
    font-size: 12px;
    font-weight: 600;
}

.slide-nav {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 9px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.slide-nav__act {
    margin: 10px 6px 4px;
    color: var(--soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.slide-nav__act:first-child {
    margin-top: 2px;
}

.slide-nav a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-s);
    color: var(--muted);
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
}

.slide-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.slide-nav a span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--soft);
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.slide-nav a b {
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide-nav a.active {
    border-color: rgba(255, 136, 0, 0.42);
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.16), rgba(150, 0, 250, 0.18));
    color: #fff;
}

.slide-nav a.active span {
    background: linear-gradient(135deg, var(--orange), var(--violet));
    color: #fff;
}

/* ---------- Полотно слайдов ---------- */
.deck {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(1520px, calc(100% - 300px));
    margin: 0 18px 0 auto;
    padding: 76px 0 78px;
}

.slide {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: calc(100vh - 94px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(10, 4, 14, 0.7);
    box-shadow: var(--shadow);
    scroll-margin-top: 72px;
}

.slide::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at var(--mx, 82%) var(--my, 16%), rgba(255, 136, 0, 0.18), transparent 26vw),
        radial-gradient(circle at 9% 82%, rgba(150, 0, 250, 0.15), transparent 28vw);
}

.slide__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    min-width: 0;
    padding: clamp(26px, 3vw, 50px);
}

.slide__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.slide__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.act-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.act-badge--0 { border-color: rgba(255, 136, 0, 0.4); color: var(--orange-2); }
.act-badge--1 { border-color: rgba(255, 211, 108, 0.35); color: var(--warn); }
.act-badge--2 { border-color: rgba(181, 77, 255, 0.4); color: var(--violet-2); }
.act-badge--3 { border-color: rgba(65, 232, 139, 0.35); color: var(--good); }

.slide__kicker {
    margin: 0;
    color: var(--orange);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.slide h1,
.slide h2 {
    max-width: 1150px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.01em;
}

.slide h2 {
    font-size: clamp(24px, 2.6vw, 42px);
    font-weight: 700;
}

.slide__lead {
    max-width: 940px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 19px);
    font-weight: 500;
    line-height: 1.55;
}

.slide__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.slide__body {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
}

/* ---------- Сетки и базовые карточки ---------- */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 13px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack {
    display: grid;
    gap: 13px;
    align-content: start;
}

.split-60 {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(16px, 2.4vw, 36px);
    align-items: stretch;
}

.split-50 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    align-items: stretch;
}

.card,
.metric-card,
.step-card,
.asset-card,
.date-card,
.format-card,
.aside-panel,
.proof-panel,
.list-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(18px);
    transition: border-color 200ms ease, transform 200ms ease;
}

.card,
.metric-card,
.step-card,
.date-card,
.aside-panel,
.proof-panel,
.list-panel {
    padding: clamp(16px, 1.5vw, 24px);
}

.card:hover,
.metric-card:hover,
.date-card:hover,
.format-card:hover {
    border-color: var(--border-strong);
}

.card h3,
.step-card h3,
.date-card h3,
.format-card h3,
.list-panel h3,
.aside-panel h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.15vw, 19px);
    font-weight: 700;
    line-height: 1.2;
}

.card p,
.step-card p,
.date-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

/* Боль */
.card--pain {
    position: relative;
    border-color: rgba(255, 95, 125, 0.22);
}

.card--pain:hover {
    border-color: rgba(255, 95, 125, 0.45);
}

.pain-num {
    display: block;
    margin-bottom: 10px;
    color: var(--danger);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    opacity: 0.85;
}

/* Метрики */
.metric-card strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.3vw, 40px);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.01em;
}

.metric-card span {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Hero ---------- */
.layout-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    display: grid;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.proof-chip {
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.proof-chip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.proof-chip span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.hero-media,
.media-card {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.14), rgba(150, 0, 250, 0.12));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.hero-media img,
.media-card img,
.asset-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after,
.media-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(5, 2, 8, 0.88));
}

.media-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: #fff;
}

.media-caption strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
}

.media-caption span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Таймлайн + панель ---------- */
.timeline {
    display: grid;
    gap: 10px;
    align-content: center;
}

.timeline__item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.timeline__year {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
}

.timeline__copy {
    min-width: 0;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.timeline__copy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
}

.timeline__copy span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.aside-panel {
    align-self: center;
    display: grid;
    gap: 12px;
    align-content: start;
}

.aside-row {
    display: grid;
    gap: 4px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--border);
}

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

.aside-row b {
    font-size: 14.5px;
    font-weight: 750;
}

.aside-row span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* ---------- Окно рынка: даты ---------- */
.date-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.date-card {
    position: relative;
    overflow: hidden;
}

.date-card::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--orange), var(--violet));
}

.date-card__date {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 800;
    background: linear-gradient(90deg, var(--orange-2), var(--violet-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Таблицы ---------- */
.legal-table,
.comparison-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.legal-table table,
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.legal-table th,
.legal-table td,
.comparison-table th,
.comparison-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-table tr:last-child td,
.comparison-table tr:last-child td {
    border-bottom: 0;
}

.legal-table th,
.comparison-table th {
    color: var(--soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

.legal-table td,
.comparison-table td {
    color: var(--muted);
    line-height: 1.5;
}

.legal-table td strong,
.comparison-table td strong {
    color: #fff;
    font-weight: 750;
}

.comparison-table .hero-row td {
    border-top: 1px solid rgba(255, 136, 0, 0.45);
    background: linear-gradient(90deg, rgba(255, 136, 0, 0.14), rgba(150, 0, 250, 0.12));
    color: #fff;
    font-weight: 700;
}

.good-text { color: var(--good); }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger); }
.orange-text { color: var(--orange); }
.muted-text { color: var(--soft); }

.edge-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: clamp(16px, 1.6vw, 22px);
    border: 1px solid rgba(255, 136, 0, 0.4);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.16), rgba(150, 0, 250, 0.12));
}

.edge-note__badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.edge-note strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 700;
}

.edge-note p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Карта системы ---------- */
.sysmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.sys-node {
    display: block;
    padding: clamp(16px, 1.5vw, 24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.sys-node:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 136, 0, 0.5);
    background: var(--surface-strong);
}

.sys-node__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.sys-node h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
}

.sys-node p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* ---------- Продукт ---------- */
.bar-list {
    display: grid;
    gap: 13px;
    align-content: center;
}

.bar-row {
    display: grid;
    gap: 7px;
}

.bar-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.bar-row__meta strong {
    font-family: var(--font-display);
    font-size: 15px;
    color: #fff;
}

.bar-row__track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.bar-row__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), #fff, var(--violet));
}

.proof-panel {
    align-self: center;
}

.proof-panel strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.25vw, 19px);
    font-weight: 700;
    line-height: 1.25;
}

.proof-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.proof-panel--honesty {
    border-color: rgba(65, 232, 139, 0.32);
    background: linear-gradient(135deg, rgba(65, 232, 139, 0.08), rgba(255, 255, 255, 0.04));
}

/* ---------- Форматы ---------- */
.format-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.format-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.format-card__img {
    position: relative;
    height: clamp(120px, 14vw, 190px);
    overflow: hidden;
}

.format-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format-card__img span {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(5, 2, 8, 0.75);
    backdrop-filter: blur(8px);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-2);
}

.format-card h3 {
    margin: 0;
    padding: 16px 18px 6px;
}

.format-card__rows {
    display: grid;
    gap: 0;
    padding: 4px 18px 18px;
    align-content: start;
}

.fr {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13.5px;
}

.fr:last-child {
    border-bottom: 0;
}

.fr b {
    color: var(--soft);
    font-weight: 700;
}

.fr span {
    color: var(--muted);
    line-height: 1.4;
}

/* ---------- Локация ---------- */
.list-panel h3 {
    margin-bottom: 12px;
}

.list-panel--good {
    border-color: rgba(65, 232, 139, 0.26);
}

.list-panel--bad {
    border-color: rgba(255, 95, 125, 0.24);
}

.list-panel ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-panel li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.list-panel--good li::before,
.list-panel--bad li::before {
    position: absolute;
    top: 1px;
    left: 0;
    font-size: 13px;
    font-weight: 800;
}

.list-panel--good li::before {
    content: "+";
    color: var(--good);
}

.list-panel--bad li::before {
    content: "–";
    color: var(--danger);
}

/* ---------- Процесс ---------- */
.process {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.step-card {
    min-height: 200px;
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.step-card p {
    font-size: 13px;
}

/* ---------- Команда ---------- */
.exam-grid {
    align-content: start;
}

/* ---------- Бренд ---------- */
.swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.swatch {
    min-height: 92px;
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.swatch b,
.swatch span {
    display: block;
}

.swatch b {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.swatch span {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    opacity: 0.75;
}

.swatch--orange { background: #ff8800; color: #160d1d; }
.swatch--violet { background: #9600fa; color: #fff; }
.swatch--black { background: #000; color: #fff; }
.swatch--white { background: #fff; color: #160d1d; }

/* ---------- Контроль ---------- */
.day-track {
    display: grid;
    gap: 8px;
}

.day-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.day-row b {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--orange-2);
}

.day-row span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* ---------- Дорожная карта ---------- */
.roadmap {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.road-step {
    position: relative;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.road-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.road-step b {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
}

.road-step p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.special-panel {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 1.8vw, 26px);
    border: 1px solid rgba(255, 211, 108, 0.3);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 211, 108, 0.07), rgba(255, 255, 255, 0.04));
}

.special-panel__head strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 700;
}

.special-panel__head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.special-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sp-item {
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.04);
}

.sp-item b {
    display: block;
    font-size: 13.5px;
    font-weight: 750;
}

.sp-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
}

/* ---------- Финал ---------- */
.final-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(255, 136, 0, 0.42);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 136, 0, 0.18), rgba(150, 0, 250, 0.15)),
        rgba(255, 255, 255, 0.05);
}

.final-strip .hero-actions {
    margin: 0;
}

.final-contacts {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.fc strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 800;
}

.fc span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- Активы бренда ---------- */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.asset-card {
    display: grid;
    grid-template-rows: minmax(150px, 1fr) auto;
    overflow: hidden;
}

.asset-card img {
    min-height: 150px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 300ms ease;
}

.asset-card:hover img {
    transform: scale(1.04);
}

.asset-card figcaption {
    padding: 11px 13px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}

/* ---------- Callout ---------- */
.callout {
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(255, 136, 0, 0.4);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 136, 0, 0.17), rgba(150, 0, 250, 0.13)),
        rgba(255, 255, 255, 0.05);
}

.callout strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(17px, 1.7vw, 26px);
    font-weight: 700;
    line-height: 1.15;
}

.callout p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.callout .hero-actions {
    margin-top: 16px;
}

/* ---------- Подсказки менеджеру ---------- */
.manager-notes {
    display: none;
    margin-top: 6px;
    border: 1px dashed rgba(255, 211, 108, 0.45);
    border-radius: var(--radius);
    background: rgba(255, 211, 108, 0.05);
    overflow: hidden;
}

body.manager-mode .manager-notes {
    display: block;
}

.manager-notes__head {
    padding: 12px 18px;
    border-bottom: 1px dashed rgba(255, 211, 108, 0.3);
    color: var(--warn);
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.45;
}

.manager-notes__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.mn-item {
    padding: 13px 18px;
    border-right: 1px dashed rgba(255, 211, 108, 0.2);
}

.mn-item:last-child {
    border-right: 0;
}

.mn-item b {
    display: block;
    margin-bottom: 6px;
    color: var(--warn);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mn-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Управление ---------- */
.controls {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 232px;
}

.controls button {
    min-width: 0;
    cursor: pointer;
}

.source-note {
    margin-top: 4px;
    color: var(--soft);
    font-size: 12px;
    line-height: 1.45;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
    .topbar {
        grid-template-columns: 88px minmax(0, 1fr) auto;
    }

    .brand img {
        width: 70px;
    }

    .quick-actions a {
        padding: 0 10px;
        font-size: 12px;
    }

    .slide-rail,
    .controls {
        display: none;
    }

    .deck {
        width: calc(100% - 36px);
        margin: 0 auto;
    }

    .sysmap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process,
    .roadmap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 74px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .quick-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .progress {
        width: 110px;
    }

    .deck {
        padding-top: 182px;
    }

    .slide {
        min-height: calc(100vh - 200px);
        scroll-margin-top: 176px;
    }

    .slide__top {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .slide__number {
        width: 48px;
        height: 40px;
    }

    .layout-hero,
    .split-60,
    .split-50,
    .grid-2,
    .grid-3,
    .grid-4,
    .date-cards,
    .format-cards {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .media-card {
        min-height: 300px;
    }

    .hero-proof,
    .process,
    .asset-grid,
    .swatches,
    .roadmap,
    .special-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manager-notes__grid {
        grid-template-columns: 1fr;
    }

    .mn-item {
        border-right: 0;
        border-bottom: 1px dashed rgba(255, 211, 108, 0.2);
    }

    .mn-item:last-child {
        border-bottom: 0;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    .topbar {
        top: 8px;
        right: 10px;
        left: 10px;
        position: absolute;
        min-height: 86px;
        padding: 6px;
    }

    .quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .quick-actions a {
        min-height: 38px;
        padding: 0 6px;
        font-size: 11px;
        line-height: 1.12;
        white-space: normal;
        text-align: center;
    }

    .brand img {
        width: 64px;
        max-height: 36px;
    }

    .deck {
        width: calc(100% - 20px);
        padding-top: 178px;
    }

    .slide {
        min-height: auto;
        scroll-margin-top: 14px;
    }

    .slide__inner {
        padding: 20px;
    }

    .slide h1,
    .slide h2 {
        font-size: 24px;
        line-height: 1.12;
    }

    .slide__lead {
        font-size: 15px;
    }

    .slide__meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-proof,
    .asset-grid,
    .swatches,
    .sysmap,
    .process,
    .roadmap,
    .special-panel__grid {
        grid-template-columns: 1fr;
    }

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

    .timeline__year {
        min-height: 48px;
    }

    .day-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .edge-note {
        grid-template-columns: 1fr;
    }

    .final-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .final-contacts {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
