/* ================================================
   Service Detail Pages — Shared Styles
   (банкротство, взыскание долга; шаблоны templates/services/*.php)
   Редизайн по макету Figma: тёмный фон, Prata для заголовков,
   золотые акценты и тонкие разделители. Токены — --pe-* из style.css.
   Селекторы section.* — чтобы перебить общий отступ .quick-sample-page section.
   ================================================ */

/* --- Общие заголовки секций --- */
.service-detail-hero__title,
.bankruptcy-steps__title,
.bankruptcy-faq__title,
.bankruptcy-cta__title {
    width: 100%;
    color: var(--pe-color-light);
    font-family: var(--pe-font-heading);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

/* --- Hero Banner --- */
section.service-detail-hero {
    background: var(--pe-color-navy);
    padding: 40px 0 60px;
    text-align: left;
}

@media (min-width: 1200px) {
    section.service-detail-hero {
        padding: 70px 0 100px;
    }
}

.service-detail-hero__wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .service-detail-hero__wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .service-detail-hero__content {
        flex: 1 1 0;
    }

    .service-detail-hero__price-card {
        flex: 0 0 340px;
    }
}

.service-detail-hero__badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid var(--pe-color-gold);
    color: var(--pe-color-gold);
    font-family: var(--pe-font-text);
    font-size: 12px;
    line-height: 1;
    letter-spacing: var(--pe-letter-spacing-caps);
    text-transform: uppercase;
}

@media (min-width: 1200px) {
    .service-detail-hero__badge {
        font-size: 14px;
    }
}

.service-detail-hero__title {
    margin-bottom: 20px;
    font-size: 24px;
}

@media (min-width: 768px) {
    .service-detail-hero__title {
        font-size: 36px;
    }
}

@media (min-width: 1200px) {
    .service-detail-hero__title {
        font-size: 50px;
        margin-bottom: 30px;
    }
}

.service-detail-hero__accent {
    color: var(--pe-color-gold);
    font: inherit;
    letter-spacing: inherit;
}

.service-detail-hero__description {
    margin-bottom: 30px;
    color: var(--pe-color-light);
    font-family: var(--pe-font-text);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

@media (min-width: 1200px) {
    .service-detail-hero__description {
        font-size: 20px;
    }
}

.service-detail-hero__highlights {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    border-top: 1px solid rgba(188, 140, 92, 0.5);
}

.service-detail-hero__highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(188, 140, 92, 0.5);
}

.service-detail-hero__highlight-item span,
.service-detail-hero__highlight-item strong {
    color: var(--pe-color-light);
    font-family: var(--pe-font-text);
    font-size: 15px;
    line-height: 1.4;
}

.service-detail-hero__highlight-item strong {
    font-weight: 700;
}

@media (min-width: 1200px) {
    .service-detail-hero__highlight-item span,
    .service-detail-hero__highlight-item strong {
        font-size: 18px;
    }
}

.service-detail-hero__highlight-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--pe-color-gold);
}

/* --- Price Card --- */
.price-card {
    padding: 30px 24px;
    border: 1px solid var(--pe-color-gold);
    text-align: center;
}

@media (min-width: 1200px) {
    .price-card {
        padding: 40px 32px;
    }
}

.price-card__label {
    margin-bottom: 12px;
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 13px;
    letter-spacing: var(--pe-letter-spacing-caps);
    text-align: center;
    text-transform: uppercase;
}

.price-card__range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.price-card__from,
.price-card__currency {
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 16px;
}

.price-card__amount {
    color: var(--pe-color-gold);
    font-family: var(--pe-font-heading);
    font-size: 40px;
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .price-card__amount {
        font-size: 48px;
    }
}

.price-card__note,
.price-card__extra-note {
    margin-bottom: 0;
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.price-card__divider {
    height: 1px;
    margin: 20px 0;
    background: rgba(188, 140, 92, 0.5);
}

.price-card__extra-label {
    margin-bottom: 6px;
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 13px;
    text-align: center;
}

.price-card__extra-amount {
    margin-bottom: 8px;
    color: var(--pe-color-light);
    font-family: var(--pe-font-heading);
    font-size: 28px;
    line-height: 1;
}

.price-card__extra-amount span {
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 16px;
}

.price-card__extra-note {
    margin-bottom: 28px;
}

.price-card__cta {
    display: block;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Steps Section --- */
section.bankruptcy-steps {
    background: var(--pe-color-navy);
    padding: 20px 0 60px;
}

@media (min-width: 1200px) {
    section.bankruptcy-steps {
        padding: 30px 0 100px;
    }
}

.bankruptcy-steps__title {
    margin-bottom: 30px;
    font-size: 20px;
}

@media (min-width: 576px) {
    .bankruptcy-steps__title {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .bankruptcy-steps__title {
        font-size: 40px;
        margin-bottom: 50px;
    }
}

@media (min-width: 1200px) {
    .bankruptcy-steps__title {
        font-size: 50px;
        margin-bottom: 70px;
    }
}

.bankruptcy-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .bankruptcy-steps__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .bankruptcy-steps__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.bankruptcy-step-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    transition: border-color 0.3s ease;
}

.bankruptcy-step-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1200px) {
    .bankruptcy-step-card {
        padding: 35px;
    }
}

/* Номер шага — как «01 … 05» в блоке «Выгоды» макета */
.bankruptcy-step-card__number {
    margin-bottom: 16px;
    color: var(--pe-color-gold);
    font-family: var(--pe-font-text);
    font-size: 16px;
    line-height: 1;
}

.bankruptcy-step-card__title {
    margin-bottom: 10px;
    color: var(--pe-color-light);
    font-family: var(--pe-font-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

@media (min-width: 1200px) {
    .bankruptcy-step-card__title {
        font-size: 20px;
    }
}

.bankruptcy-step-card__text {
    margin-bottom: 0;
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

@media (min-width: 1200px) {
    .bankruptcy-step-card__text {
        font-size: 16px;
    }
}

/* --- FAQ Section (аккордеон Bootstrap collapse) --- */
section.bankruptcy-faq {
    background: var(--pe-color-navy);
    padding: 20px 0 60px;
}

@media (min-width: 1200px) {
    section.bankruptcy-faq {
        padding: 30px 0 100px;
    }
}

.bankruptcy-faq__title {
    margin-bottom: 30px;
    font-size: 20px;
}

@media (min-width: 576px) {
    .bankruptcy-faq__title {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .bankruptcy-faq__title {
        font-size: 40px;
        margin-bottom: 50px;
    }
}

@media (min-width: 1200px) {
    .bankruptcy-faq__title {
        font-size: 50px;
        margin-bottom: 70px;
    }
}

.bankruptcy-faq__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(188, 140, 92, 0.5);
}

.faq-item {
    border-bottom: 1px solid rgba(188, 140, 92, 0.5);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 20px 0;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--pe-color-light);
    font-family: var(--pe-font-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Текст вопроса в <span> — иначе глобальное правило span красит его в тёмный */
.faq-item__question span {
    color: inherit;
    font: inherit;
}

.faq-item__question:hover,
.faq-item__question[aria-expanded="true"] {
    color: var(--pe-color-gold);
}

.faq-item__question:focus-visible {
    outline: 2px solid var(--pe-color-gold);
    outline-offset: 4px;
}

@media (min-width: 1200px) {
    .faq-item__question {
        padding: 28px 0;
        font-size: 20px;
    }
}

.faq-item__icon {
    flex-shrink: 0;
    color: var(--pe-color-gold);
    transition: transform 0.25s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-width: 900px;
    padding: 0 0 24px;
    color: var(--pe-color-light-muted);
    font-family: var(--pe-font-text);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.faq-item__answer p,
.faq-item__answer li,
.faq-item__answer strong {
    color: inherit;
    font: inherit;
}

.faq-item__answer strong {
    color: var(--pe-color-light);
    font-weight: 700;
}

.faq-item__answer p {
    margin-bottom: 10px;
    text-align: left;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .faq-item__answer {
        font-size: 18px;
        padding-bottom: 30px;
    }
}

/* --- CTA Section: золотая плашка, как форма заявки --- */
section.bankruptcy-cta {
    background: var(--pe-color-gold-surface); /* белый текст 5.07:1 */
    padding: 50px 0;
}

@media (min-width: 1200px) {
    section.bankruptcy-cta {
        padding: 80px 0;
    }
}

.bankruptcy-cta__wrap {
    text-align: center;
}

.bankruptcy-cta__title {
    margin-bottom: 16px;
    font-size: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .bankruptcy-cta__title {
        font-size: 30px;
    }
}

@media (min-width: 1200px) {
    .bankruptcy-cta__title {
        font-size: 40px;
        margin-bottom: 20px;
    }
}

.bankruptcy-cta__text {
    max-width: 640px;
    margin: 0 auto 28px;
    color: var(--pe-color-light);
    font-family: var(--pe-font-text);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 1200px) {
    .bankruptcy-cta__text {
        font-size: 18px;
    }
}

.bankruptcy-cta__contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
    margin-bottom: 32px;
}

.bankruptcy-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pe-color-light);
    font-family: var(--pe-font-heading);
    font-size: 22px;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.bankruptcy-cta__phone:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

@media (min-width: 1200px) {
    .bankruptcy-cta__phone {
        font-size: 30px;
    }
}
