/* Быстрый старт (/quickstart.html).
   Пошаговый онбординг: липкое оглавление слева, шаги справа.
   Цвета — через currentColor и акцент сайта, чтобы работали обе темы. */

.qs-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 18px 48px;
    text-align: left;
    line-height: 1.65;
}

/* Сброс глобального body * { margin: 0 auto }: внутри карточек
   auto-поля гасят stretch и ужимают содержимое по центру. */
.qs-page * {
    margin-left: 0;
    margin-right: 0;
}

.qs-hero {
    padding: 8px 0 20px;
    border-bottom: 1px solid rgba(137, 0, 255, 0.28);
    margin-bottom: 22px;
}

.qs-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.2;
    text-align: left;
}

.qs-lead {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: 1.03rem;
    opacity: 0.88;
}

.qs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.qs-btn {
    display: inline-block;
    padding: 0.62rem 1.15rem;
    border-radius: 10px;
    background: #8900ff;
    border: 1px solid #8900ff;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
    transition: filter 0.15s, background 0.15s;
}

.qs-btn:hover {
    filter: brightness(1.12);
}

.qs-btn.ghost {
    background: transparent;
    border-color: rgba(137, 0, 255, 0.75);
    color: inherit !important;
}

.qs-btn.ghost:hover {
    background: rgba(137, 0, 255, 0.12);
}

/* Двухколоночная раскладка: оглавление + контент. */
.qs-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.qs-toc {
    position: sticky;
    top: 14px;
    padding: 14px 14px 10px;
    border: 1px solid rgba(128, 128, 140, 0.35);
    border-radius: 14px;
    background: rgba(137, 0, 255, 0.04);
}

.qs-toc h2 {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: left;
}

.qs-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: qs-toc;
}

.qs-toc li {
    counter-increment: qs-toc;
    margin: 0 0 2px;
}

.qs-toc a {
    display: block;
    padding: 4px 6px;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.qs-toc a::before {
    content: counter(qs-toc) ". ";
    color: #8900ff;
    font-weight: 700;
}

.qs-toc a:hover,
.qs-toc a:focus-visible {
    background: rgba(137, 0, 255, 0.14);
}

.qs-content {
    min-width: 0;
}

.qs-step {
    padding: 20px 0 8px;
    border-bottom: 1px solid rgba(128, 128, 140, 0.22);
    scroll-margin-top: 16px;
}

.qs-step:last-child {
    border-bottom: 0;
}

.qs-step h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.25;
    text-align: left;
}

.qs-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #8900ff;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.qs-step h3 {
    margin: 16px 0 6px;
    font-size: 1.03rem;
    text-align: left;
}

.qs-step p,
.qs-step li {
    font-size: 0.98rem;
}

.qs-step ol,
.qs-step ul {
    padding-left: 1.35em;
    margin: 8px 0 10px;
}

.qs-step li {
    margin-bottom: 6px;
}

.qs-step a {
    color: #a970ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qs-step a:hover {
    color: #8900ff;
}

.qs-tip,
.qs-warn {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid #8900ff;
    background: rgba(137, 0, 255, 0.07);
    font-size: 0.94rem;
}

.qs-tip strong,
.qs-warn strong {
    display: inline-block;
    margin-right: 4px;
}

.qs-warn {
    border-left-color: #d97706;
    background: rgba(217, 119, 6, 0.10);
}

.qs-note {
    font-size: 0.88rem;
    opacity: 0.78;
}

/* Скриншот: не растягиваем выше разумного, подпись снизу. */
.qs-shot {
    margin: 14px 0 6px;
    padding: 6px;
    border: 1px solid rgba(128, 128, 140, 0.35);
    border-radius: 12px;
    background: rgba(128, 128, 140, 0.05);
}

.qs-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qs-shot figcaption {
    margin-top: 6px;
    font-size: 0.84rem;
    opacity: 0.75;
    text-align: center;
}

/* Карточки-схема «настройки → карта → расчёт». */
.qs-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.qs-card {
    padding: 12px 14px;
    border: 1px solid rgba(128, 128, 140, 0.35);
    border-radius: 12px;
    background: rgba(137, 0, 255, 0.05);
}

.qs-card h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
}

.qs-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Чек-лист первого дня. */
.qs-check {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.qs-check li {
    position: relative;
    padding-left: 26px;
    font-size: 0.94rem;
}

.qs-check li::before {
    content: "☐";
    position: absolute;
    left: 2px;
    top: -1px;
    color: #8900ff;
    font-size: 1.05rem;
}

/* Таблица «симптом → что делать». */
.qs-table-wrap {
    margin: 14px 0;
    overflow-x: auto;
}

.qs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.qs-table th,
.qs-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(128, 128, 140, 0.28);
    text-align: left;
    vertical-align: top;
}

.qs-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.72;
}

/* Сравнение тарифов: на телефоне таблица прокручивается по горизонтали. */
.qs-compare {
    min-width: 640px;
}

.qs-compare th:first-child,
.qs-compare td:first-child {
    width: 40%;
}

.qs-compare th:not(:first-child),
.qs-compare td:not(:first-child) {
    text-align: center;
}

.qs-compare th:last-child,
.qs-compare td:last-child {
    background: rgba(137, 0, 255, 0.06);
}

.qs-compare .yes {
    color: #22c55e;
    font-weight: 700;
}

.qs-final {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid rgba(137, 0, 255, 0.45);
    border-radius: 14px;
    background: rgba(137, 0, 255, 0.08);
}

.qs-final h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.qs-final p {
    margin: 0 0 12px;
    font-size: 0.96rem;
}

@media (max-width: 860px) {
    .qs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .qs-toc {
        position: static;
    }

    .qs-toc ol {
        columns: 2;
        column-gap: 12px;
    }

    .qs-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .qs-page {
        padding: 12px 12px 34px;
    }

    .qs-toc ol {
        columns: 1;
    }

    .qs-check {
        grid-template-columns: minmax(0, 1fr);
    }

    .qs-btn {
        width: 100%;
        text-align: center;
    }

    /* Сравнение тарифов на телефоне — не таблица с прокруткой, а карточки:
       в каждой строке три подписи «Гость / Free / Pro». */
    .qs-compare {
        min-width: 0;
        display: block;
        font-size: 0.9rem;
    }

    .qs-compare thead {
        display: none;
    }

    .qs-compare tbody,
    .qs-compare tr,
    .qs-compare td {
        display: block;
        width: 100%;
    }

    .qs-compare tr {
        margin: 0 0 10px;
        padding: 8px 10px;
        border: 1px solid rgba(128, 128, 140, 0.35);
        border-radius: 10px;
        background: rgba(137, 0, 255, 0.04);
    }

    .qs-compare td {
        padding: 3px 0;
        border: 0;
        text-align: left;
    }

    .qs-compare td:first-child {
        width: auto;
        margin-bottom: 4px;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(128, 128, 140, 0.28);
        font-weight: 700;
    }

    .qs-compare td:not(:first-child) {
        text-align: left;
        background: transparent;
    }

    .qs-compare td:nth-child(2)::before {
        content: "Гость: ";
        opacity: 0.65;
    }

    .qs-compare td:nth-child(3)::before {
        content: "Free: ";
        opacity: 0.65;
    }

    .qs-compare td:nth-child(4)::before {
        content: "Pro: ";
        opacity: 0.65;
    }
}

@media print {
    .qs-toc,
    .qs-actions {
        display: none;
    }

    .qs-layout {
        display: block;
    }

    .qs-step {
        break-inside: avoid;
    }
}
