/* Разрешаем анимировать высоту от нуля до auto — без этого раскрытие вопросов
   в разделе «Частые вопросы» происходит рывком. */
html {
    interpolate-size: allow-keywords;
}

/* ==============================
   КАК Я РАБОТАЮ + ЧАСТЫЕ ВОПРОСЫ
   ============================== */
.process-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 56px;
    align-items: start;
}

/* ── Шаги ── */
.process-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 20px;
    padding: 26px 0;
    position: relative;
}

/* Hairline между шагами — тонкая градиентная линия, не жирная рамка */
.process-step + .process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--border), rgba(158, 98, 71, 0.04));
}

.process-num {
    font-family: var(--num);
    font-variant-numeric: tabular-nums;
    font-size: 26px;
    line-height: 1;
    color: var(--gold);
    padding-top: 2px;
}

.process-step h3 {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.65;
}

/* ── Карточка про стоимость ── */
.price-card {
    position: sticky;
    top: 108px;
    padding: 34px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(158, 98, 71, 0.05);
}

.price-card p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* Ниже правила .price-card p — иначе оно перебивает цвет заголовка */
.price-card .price-lead {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.25;
    color: var(--cream);
    margin: 12px 0 14px;
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.price-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.55;
}

.price-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 11px;
    height: 1.5px;
    background: var(--gold);
    opacity: 0.75;
}

.price-note {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}

.price-card .btn-primary {
    width: 100%;
}

/* ==============================
   ЧАСТЫЕ ВОПРОСЫ
   ============================== */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

/* Свой раскрывающийся блок: браузерный маркер убран полностью */
.faq-q {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    min-height: 44px;
    cursor: pointer;
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 21px);
    color: var(--cream);
    transition: color 0.25s var(--ease-out);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover {
    color: var(--gold-light);
}

.faq-q:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 8px;
}

.faq-sign {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--gold);
}

/* Плюс поворачивается в крестик, когда вопрос открыт. Крутим сам штрих, а не всё
   поле значка: иначе вместе с ним поехала бы и галочка «прочитано». */
.faq-sign-plus,
.faq-sign-check {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s var(--ease-out), opacity 0.25s var(--ease-out);
}

.faq-item[open] .faq-sign-plus {
    transform: rotate(45deg);
}

/* Галочка появляется только на закрытом вопросе, который уже открывали:
   открытый и без неё понятно, что читают прямо сейчас. */
.faq-sign-check {
    opacity: 0;
    transform: scale(0.7);
}

.faq-item.faq-read:not([open]) .faq-sign-plus {
    opacity: 0;
    transform: scale(0.7);
}

.faq-item.faq-read:not([open]) .faq-sign-check {
    opacity: 1;
    transform: scale(1);
}

.faq-item.faq-read:not([open]) .faq-sign {
    color: var(--gold-light, var(--gold));
    opacity: 0.75;
}

/* Плавное раскрытие. Работает в браузерах, которые умеют анимировать содержимое
   <details>; в остальных вопрос просто открывается сразу — как и раньше. */
@supports selector(::details-content) {
    .faq-item::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.32s var(--ease-out), content-visibility 0.32s allow-discrete;
    }

    .faq-item[open]::details-content {
        block-size: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-sign-plus,
    .faq-sign-check,
    .faq-item::details-content {
        transition: none;
    }
}

/* Открытый вопрос выделен всегда, а не только пока на нём курсор */
.faq-item[open] .faq-q {
    color: var(--gold);
}

.faq-a {
    padding: 0 4px 24px;
    max-width: 720px;
}

.faq-a p {
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.7;
}

.faq-a p + p {
    margin-top: 10px;
}

.faq-foot {
    max-width: 860px;
    margin: 34px auto 0;
    text-align: center;
    color: var(--text-mute);
    font-size: 15px;
}

.faq-foot a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(158, 98, 71, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .faq-sign {
        transition: none;
    }
}

/* ── Адаптив ── */
@media (max-width: 1023px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .price-card {
        position: static;
    }
}

@media (max-width: 500px) {
    .process-step {
        grid-template-columns: 42px 1fr;
        gap: 14px;
        padding: 22px 0;
    }

    .process-num {
        font-size: 21px;
    }

    .process-step h3 {
        font-size: 20px;
    }

    .price-card {
        padding: 26px 22px;
    }
}
