/* MAKPARK — сетка / брутальный стиль */

:root {
    --ink: #141310;
    --paper: #f0ece1;
    --paper-2: #e7e1d2;
    --accent: #ff5a1f;
    --muted: #6b665c;
    --line: 2px solid var(--ink);
    --pad-x: clamp(18px, 3.5vw, 40px);
    --pad-y: clamp(30px, 4vw, 52px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper-2);
    color: var(--ink);
    font-family: 'Golos Text', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0;
    font-family: 'Unbounded', 'Golos Text', sans-serif;
    letter-spacing: -0.03em;
}

/* ── ШАПКА ───────────────────────────────────────── */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: var(--paper);
    border-bottom: var(--line);
}

.topbar-logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.02em;
    padding: 16px 26px;
    border-right: var(--line);
    white-space: nowrap;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 26px;
    flex: 1;
    padding: 8px 26px;
    font-size: 15px;
    font-weight: 500;
}

.topbar-nav a {
    position: relative;
    padding: 2px 0;
    transition: color .15s ease;
}

.topbar-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .2s ease;
}

.topbar-nav a:hover::after {
    width: 100%;
}

.topbar-phone {
    display: flex;
    align-items: center;
    padding: 16px 26px;
    border-left: var(--line);
    background: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.topbar-phone:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ── ПОЛОТНО ─────────────────────────────────────── */

.sheet {
    width: min(1280px, 100% - 32px);
    margin: clamp(16px, 3vw, 40px) auto;
    background: var(--paper);
    border: var(--line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
    overflow: hidden;
}

.mono-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
}

/* ── ГЕРОЙ ───────────────────────────────────────── */

.hero-slider {
    position: relative;
    overflow: hidden;
    border-bottom: var(--line);
}

.hero-slider-track {
    display: flex;
    align-items: stretch;
    transition-property: transform;
    transition-duration: var(--hero-transition-duration, 700ms);
    transition-timing-function: cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

.hero-slider-track.is-resetting {
    transition: none;
}

.hero-slider-controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    gap: 7px;
}

.hero-slider-arrow {
    width: 38px;
    height: 38px;
    padding: 0;
    border: var(--line);
    background: var(--paper);
    color: var(--ink);
    font: 700 21px/1 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.hero-slider-arrow:hover {
    background: var(--ink);
    color: var(--paper);
}

.hero-slider-arrow:active {
    transform: translateY(2px);
}

.hero-slider-arrow:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.hero-slider .hero {
    flex: 0 0 100%;
    width: 100%;
    border-bottom: 0;
}

.hero-slider .stat:last-child {
    padding-right: 112px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    border-bottom: var(--line);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-track {
        transition-duration: 1ms;
    }
}

.hero-main {
    padding: clamp(32px, 4.5vw, 56px) var(--pad-x);
    border-right: var(--line);
}

.hero-main .mono-label {
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(38px, 6.4vw, 66px);
    line-height: 0.96;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.hero-lead {
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.55;
    margin: 0 0 30px;
    max-width: 520px;
    text-wrap: pretty;
}

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

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--muted);
}

.hero-contacts a {
    border-bottom: 1px solid transparent;
}

.hero-contacts a:hover {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.hero-contacts .dot {
    opacity: .5;
}

.hero-stats {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
}

.stat {
    padding: 26px 32px;
    border-bottom: var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.stat--accent {
    background: var(--accent);
}

.stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1;
}

.stat-caption {
    font-size: 14px;
    margin-top: 8px;
}

/* ── КНОПКИ ──────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 17px 28px;
    font-size: 17px;
    font-weight: 700;
    border: var(--line);
    transition: transform .12s ease, background .15s ease, color .15s ease;
}

.btn-solid {
    background: var(--ink);
    color: var(--paper);
}

.btn-solid:hover {
    background: var(--accent);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn:active {
    transform: translateY(2px);
}

.btn-block {
    display: block;
    text-align: center;
}

/* ── ИНВЕРТИРОВАННЫЙ БЛОК ────────────────────────── */

.invert {
    padding: var(--pad-y) var(--pad-x);
    background: var(--ink);
    color: var(--paper);
    border-bottom: var(--line);
}

.invert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.invert-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.invert-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #ded8ca;
    text-wrap: pretty;
}

.invert-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 2px solid #35322b;
    font-size: 16px;
    color: var(--accent);
}

/* ── СЕКЦИИ ──────────────────────────────────────── */

.strip {
    border-bottom: var(--line);
}

.strip-head {
    padding: 20px var(--pad-x);
    border-bottom: var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.strip-head--split {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    align-items: baseline;
}

.strip-head-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.strip-head-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--muted);
}

/* Как я работаю + Услуги */

.how-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.how-cell,
.service-cell {
    padding: 30px var(--pad-x);
    border-right: var(--line);
    border-bottom: var(--line);
    transition: background .15s ease;
}

.how-cell:hover,
.service-cell:hover {
    background: var(--paper-2);
}

.how-grid > *:last-child,
.service-grid > *:last-child {
    border-right: 0;
}

.how-num,
.service-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
}

.how-title,
.service-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.how-text,
.service-text {
    font-size: 15px;
    line-height: 1.55;
    color: #43403a;
}

/* Шаги настройки */

.step-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.5fr) minmax(200px, 1.2fr) minmax(240px, 2fr);
    border-bottom: var(--line);
}

.step-row:hover {
    background: var(--paper-2);
}

.step-num {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    padding: 22px var(--pad-x);
    border-right: var(--line);
    display: flex;
    align-items: center;
}

.step-title {
    padding: 24px 26px;
    font-size: 19px;
    font-weight: 700;
    border-right: var(--line);
    display: flex;
    align-items: center;
}

.step-text {
    padding: 24px 26px;
    font-size: 16px;
    line-height: 1.55;
    display: flex;
    align-items: center;
}

.steps-final {
    padding: 20px var(--pad-x);
    background: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

/* ── ТАРИФЫ ──────────────────────────────────────── */

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.tariff-cell {
    padding: 26px 24px;
    border-right: var(--line);
    border-bottom: var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tariff-grid > *:last-child {
    border-right: 0;
}

.tariff-cell--popular {
    background: var(--ink);
    color: var(--paper);
}

.tariff-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
}

.tariff-cap {
    font-size: 13px;
    color: var(--muted);
    min-height: 32px;
}

.tariff-cell--popular .tariff-cap {
    color: #b3ada1;
}

.tariff-price {
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tariff-cell--popular .tariff-price {
    color: var(--accent);
}

.tariff-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

.tariff-cell--popular .tariff-year {
    color: #b3ada1;
}

.tariff-limits {
    font-size: 14px;
    line-height: 1.55;
    border-top: var(--line);
    padding-top: 12px;
    margin-top: 6px;
}

.tariff-cell--popular .tariff-limits {
    border-top-color: #35322b;
}

.tariff-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--accent);
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
}

/* ── ТАБЛИЦА ─────────────────────────────────────── */

.table-head {
    padding: 18px var(--pad-x);
    border-bottom: var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* переключатель тарифов — только на мобильных */
.plan-switch {
    display: none;
    gap: 8px;
    padding: 14px var(--pad-x);
    border-bottom: var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.plan-switch button {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 9px 13px;
    border: var(--line);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}

.plan-switch button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}

.table-wrapper {
    overflow-x: auto;
    border-bottom: var(--line);
}

.pricing-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 15px;
}

.pricing-table th,
.pricing-table td {
    padding: 14px 16px;
    text-align: center;
    border-right: var(--line);
    border-bottom: var(--line);
}

.pricing-table tr > *:last-child {
    border-right: 0;
}

.pricing-table tbody tr:last-child > * {
    border-bottom: 0;
}

.pricing-table thead th {
    position: sticky;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 16px;
}

.pricing-table .feature-cell {
    text-align: left;
    font-weight: 500;
    min-width: 300px;
}

.pricing-table thead .feature-cell {
    text-transform: none;
    letter-spacing: 0.06em;
}

.plan-meta {
    display: inline-block;
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    color: #b3ada1;
}

.plan-price {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 17px;
}

.pricing-table thead .highlight-plan {
    background: var(--accent);
    color: var(--ink);
}

.pricing-table thead .highlight-plan .plan-meta {
    color: #4a2410;
}

.pricing-table tbody .highlight-plan {
    background: rgba(255, 90, 31, .14);
}

.pricing-table tbody tr:hover td {
    background: var(--paper-2);
}

.pricing-table tbody tr:hover .highlight-plan {
    background: rgba(255, 90, 31, .22);
}

.check {
    font-weight: 700;
}

.cross {
    color: #a29b8c;
}

.pricing-note {
    margin: 0;
    padding: 18px var(--pad-x);
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* ── ЦЕНА ────────────────────────────────────────── */

.price {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-bottom: var(--line);
}

.price-left {
    padding: var(--pad-y) var(--pad-x);
    border-right: var(--line);
}

.price-list {
    margin-top: 20px;
}

.price-item + .price-item {
    margin-top: 30px;
    padding-top: 30px;
    border-top: var(--line);
}

.price-item-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.25;
}

.price-value {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-top: 14px;
}

.price-split {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.price-chip {
    border: var(--line);
    padding: 13px 17px;
    font-size: 15px;
}

.price-info {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #43403a;
    max-width: 520px;
}

.price-right {
    padding: var(--pad-y) var(--pad-x);
    background: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.price-cta-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 800;
    line-height: 1.15;
}

.price-cta-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

/* ── ФУТЕР ───────────────────────────────────────── */

.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--pad-x);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-contacts a:hover {
    color: var(--accent);
}

/* ── АДАПТИВ ─────────────────────────────────────── */

@media (max-width: 900px) {
    .hero-main,
    .price-left {
        border-right: 0;
        border-bottom: var(--line);
    }

    .how-cell,
    .service-cell,
    .tariff-cell {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --pad-x: 16px;
        --pad-y: 26px;
    }

    body {
        font-size: 15px;
    }

    .sheet {
        width: 100%;
        margin: 0;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        box-shadow: none;
    }

    /* шапка */
    .topbar-logo {
        flex: 1;
        font-size: 16px;
        padding: 13px 16px;
        border-right: 0;
    }

    .topbar-phone {
        padding: 13px 16px;
        font-size: 13px;
        border-left: var(--line);
    }

    .topbar-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 18px;
        border-top: var(--line);
        padding: 10px 16px;
        font-size: 14px;
        scrollbar-width: none;
    }

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

    .topbar-nav a {
        white-space: nowrap;
    }

    /* герой */
    .hero-main {
        padding: 28px 16px 30px;
    }

    .mono-label {
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .hero-main .mono-label {
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: clamp(30px, 9.5vw, 40px);
        line-height: 1;
        margin-bottom: 18px;
    }

    .hero-lead {
        font-size: 15.5px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero-contacts {
        margin-top: 20px;
        font-size: 12px;
    }

    .stat {
        padding: 18px 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-caption {
        font-size: 13px;
        margin-top: 4px;
    }

    /* блоки */
    .invert {
        padding: 28px 16px;
    }

    .invert-grid {
        gap: 20px;
    }

    .invert-title {
        font-size: 24px;
    }

    .invert-text {
        font-size: 16px;
    }

    .invert-note {
        font-size: 15px;
    }

    .strip-head {
        padding: 15px 16px;
        font-size: 12px;
    }

    .strip-head-title {
        font-size: 19px;
    }

    .strip-head-note {
        font-size: 11px;
    }

    .how-cell,
    .service-cell {
        padding: 22px 16px;
    }

    .how-title,
    .service-title {
        font-size: 18px;
    }

    .how-text,
    .service-text {
        font-size: 14.5px;
    }

    /* шаги */
    .step-row {
        grid-template-columns: 58px 1fr;
    }

    .step-num {
        grid-row: span 2;
        font-size: 24px;
        padding: 0 0 0 16px;
        align-items: flex-start;
        padding-top: 18px;
    }

    .step-title {
        border-right: 0;
        font-size: 16.5px;
        padding: 16px 16px 6px;
    }

    .step-text {
        font-size: 14.5px;
        padding: 0 16px 18px;
    }

    .steps-final {
        padding: 16px;
        font-size: 14.5px;
    }

    /* тарифы */
    .tariff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tariff-cell {
        padding: 20px 16px;
    }

    /* вертикальный разделитель между двумя колонками карточек */
    .tariff-cell:nth-child(odd):not(:last-child) {
        border-right: var(--line);
    }

    .tariff-cell:last-child {
        grid-column: 1 / -1;
    }

    .tariff-name {
        font-size: 16px;
    }

    .tariff-cap {
        min-height: 0;
    }

    .tariff-price {
        font-size: 26px;
    }

    /* таблица: одна колонка тарифа за раз */
    .plan-switch {
        display: flex;
    }

    .table-head {
        padding: 14px 16px;
        font-size: 11px;
    }

    .table-wrapper {
        overflow-x: visible;
    }

    .pricing-table {
        min-width: 0;
        font-size: 13.5px;
        table-layout: fixed;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }

    .pricing-table thead th {
        font-size: 12px;
        padding: 12px;
    }

    .pricing-table .feature-cell {
        min-width: 0;
        width: 64%;
        line-height: 1.35;
    }

    .plan-meta {
        font-size: 10px;
        margin-top: 3px;
    }

    .plan-price {
        font-size: 15px;
    }

    /* скрываем все колонки тарифов, кроме выбранной */
    .pricing-table.is-switchable th:not(.feature-cell):not(.is-active),
    .pricing-table.is-switchable td:not(.feature-cell):not(.is-active) {
        display: none;
    }

    .pricing-note {
        padding: 14px 16px;
        font-size: 12px;
    }

    /* цена */
    .price-left,
    .price-right {
        padding: 26px 16px;
    }

    .price-value {
        font-size: clamp(38px, 12vw, 52px);
        margin-top: 12px;
    }

    .price-split {
        gap: 10px;
        margin-top: 18px;
    }

    .price-chip {
        font-size: 14px;
        padding: 11px 14px;
    }

    .price-info {
        font-size: 14px;
        margin-top: 18px;
    }

    .price-cta-title {
        font-size: 20px;
    }

    .price-cta-meta {
        font-size: 11px;
    }

    .footer {
        padding: 16px;
        font-size: 11px;
        gap: 8px 14px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 30px;
    }

    .pricing-table {
        font-size: 12.5px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 9px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
