/*
 * pages.css — общие стили для лендинговых страниц dix.su
 * Цвет акцента задаётся через CSS-переменную в <style> каждой страницы:
 *   :root { --accent:#16a34a; --accent-hover:#15803d; --accent-bg:#f0fdf4; }
 */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.page-hero {
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #1a1a2e;
    margin-bottom: 1.1rem;
}
.page-hero p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-large {
    padding: .7rem 1.6rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary {
    background: var(--accent, #2563eb);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover, #1d4ed8);
    color: #fff;
}
.btn-outline {
    border: 1.5px solid #d1d5db;
    color: #374151;
    background: transparent;
}
.btn-outline:hover {
    border-color: #9ca3af;
    color: #111827;
}

/* ── Service badge ────────────────────────────────────────────────────── */
.svc-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent, #2563eb);
    background: var(--accent-bg, #eff6ff);
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

/* ── Section headers ──────────────────────────────────────────────────── */
.section-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent, #2563eb);
    margin-bottom: .5rem;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #1a1a2e;
    margin-bottom: .4rem;
}
.section-sub {
    color: #6b7280;
    margin-bottom: 2.5rem;
    font-size: .95rem;
}

/* ── Features grid ────────────────────────────────────────────────────── */
.features {
    padding: 4rem 2rem;
}
.features .container {
    max-width: 960px;
    margin: 0 auto;
}
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.feat {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.feat-icon {
    font-size: 1.5rem;
    margin-bottom: .6rem;
}
.feat h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .35rem;
    color: #1a1a2e;
}
.feat p {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.55;
}
.feat code {
    font-size: .82rem;
    background: #e5e7eb;
    padding: .1em .35em;
    border-radius: 3px;
}

/* ── Numbered steps ───────────────────────────────────────────────────── */
.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.75rem;
}
.steps li {
    counter-increment: step;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.steps li::before {
    content: counter(step);
    background: var(--accent, #2563eb);
    color: #fff;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-content h4 {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .25rem;
    color: #1a1a2e;
}
.step-content p {
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: .4rem;
}
.step-content code {
    font-size: .82rem;
    background: #e5e7eb;
    padding: .1em .35em;
    border-radius: 3px;
}

/* ── "Также доступно" карточки ────────────────────────────────────────── */
.also {
    padding: 4rem 2rem;
    border-top: 1px solid #e5e7eb;
}
.also .container {
    max-width: 960px;
    margin: 0 auto;
}
.also-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.also-card {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: box-shadow .15s;
}
.also-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.also-icon  { font-size: 1.4rem; }
.also-name  { font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.also-desc  { font-size: .85rem; color: #6b7280; line-height: 1.5; }
.also-link  { font-size: .82rem; font-weight: 600; color: var(--accent, #2563eb); margin-top: auto; }

/* ── code inline ──────────────────────────────────────────────────────── */
code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: .1rem .3rem;
    font-size: .82rem;
    color: var(--accent, #2563eb);
    font-family: monospace;
}
pre.cmd, pre.inline {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: .83rem;
    line-height: 1.7;
    overflow-x: auto;
    margin-top: 1.25rem;
    text-align: left;
}
pre.inline {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .82rem;
    margin-top: .5rem;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .page-hero          { padding: 3rem 1.25rem 2.5rem; }
    .page-hero h1       { font-size: 2rem; }
    .features, .also    { padding: 3rem 1.25rem; }
}

/* ── Mobile: hero-cta buttons stack full-width ───────────────────────── */
@media (max-width: 540px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn-large {
        width: 100%;
        text-align: center;
    }
}
