:root {
    --bg: #0a0a0a;
    --bg-2: #131313;
    --bg-3: #1a1a1a;
    --text: #e8e8e8;
    --text-dim: #9a9a9a;
    --text-muted: #6a6a6a;
    --border: #2a2a2a;
    --accent: #00d4aa;
    --accent-hover: #00b894;
    --accent-dim: #00d4aa1a;
    --warn: #ff6b35;
    --code-bg: #0d0d0d;
    --max-w: 720px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 720px) {
    html, body { font-size: 18px; }
}

main, header, footer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding-top: 32px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

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

nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color .15s;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); }

h1 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 24px 0 16px;
    font-weight: 700;
}
@media (min-width: 720px) { h1 { font-size: 44px; } }

h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 48px 0 16px;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    margin: 24px 0 8px;
    font-weight: 600;
}

p { margin: 12px 0; color: var(--text); }

.lead {
    font-size: 19px;
    color: var(--text-dim);
    margin: 0 0 32px;
    line-height: 1.5;
}
@media (min-width: 720px) { .lead { font-size: 20px; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; margin: 12px 0; }
li { margin: 6px 0; }

code, kbd, pre {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}
code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--accent);
}
pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.45;
}
pre code { background: none; border: none; padding: 0; color: var(--text); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* CTA */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #001f17;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: background .15s, transform .05s;
    margin: 16px 0;
}
.cta:hover { background: var(--accent-hover); text-decoration: none; }
.cta:active { transform: translateY(1px); }
.cta svg { width: 18px; height: 18px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; }
.cta-note {
    color: var(--text-muted);
    font-size: 14px;
}

/* Карточки */
.cards {
    display: grid;
    gap: 12px;
    margin: 16px 0 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
}
.card h3 { margin-top: 0; font-size: 16px; }
.card p { margin-bottom: 0; color: var(--text-dim); font-size: 15px; }

/* Tag-list */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    padding: 0;
    list-style: none;
}
.tags li {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    margin: 0;
}

/* Цена */
.pricebox {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}
.pricebox .price {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.pricebox .price small { font-size: 18px; color: var(--text-dim); font-weight: 400; }
.pricebox .sub {
    margin: 8px 0 16px;
    color: var(--text-dim);
    font-size: 15px;
}
.pricebox .tiers {
    margin: 16px auto 20px;
    width: 100%;
    max-width: 360px;
    border-collapse: collapse;
    font-size: 16px;
}
.pricebox .tiers tr { border-top: 1px solid var(--border); }
.pricebox .tiers tr:first-child { border-top: none; }
.pricebox .tiers td {
    padding: 10px 4px;
    text-align: left;
}
.pricebox .tiers td.amt {
    text-align: right;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.pricebox .tiers td.dis {
    text-align: right;
    color: var(--accent);
    font-size: 13px;
    width: 56px;
    white-space: nowrap;
}

/* FAQ */
.faq details {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 8px 0;
}
.faq summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    color: var(--text);
    padding-right: 20px;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 4px 0; color: var(--text-dim); font-size: 15px; }

/* Steps */
.steps { counter-reset: step; padding: 0; list-style: none; margin: 16px 0 24px; }
.steps li {
    counter-increment: step;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 14px 16px 14px 56px;
    border-radius: 10px;
    margin: 8px 0;
    position: relative;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--text-dim); font-size: 15px; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    margin-top: 64px;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}
footer a { color: var(--text-dim); }
footer .row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* CSS-эмуляция чата с ботом */
.chat {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.4;
}
.chat .header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.chat .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #001f17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.chat .name { font-weight: 600; color: var(--text); font-size: 14px; }
.chat .status { color: var(--text-muted); font-size: 12px; }
.chat .msg {
    background: var(--bg-3);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 6px 0;
    color: var(--text-dim);
    max-width: 85%;
}
.chat .msg.in {
    background: var(--bg-3);
    margin-right: auto;
    border-top-left-radius: 2px;
}
.chat .msg.out {
    background: var(--accent);
    color: #001f17;
    margin-left: auto;
    border-top-right-radius: 2px;
}
.chat .key {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 12px;
    word-break: break-all;
    background: var(--code-bg);
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--accent);
    border: 1px solid var(--border);
    margin-top: 4px;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}
