/* Consult public shell — визуально как shop/index.php (navbar, hero, catalog, footer) */

:root {
    --gold:  #D4A76A;
    --choco: #3E2723;
    --linen: #FDF6E3;
}

.consult-body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--linen);
    color: var(--choco);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.consult-body .navbar {
    background: var(--choco);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.consult-body .navbar__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
}

.consult-body .navbar__logo img {
    height: 36px;
    width: auto;
    vertical-align: middle;
    display: block;
}

.consult-body .navbar__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.consult-body .navbar__drawer {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    background: transparent;
    border-top: 0;
    padding: 0;
}

.consult-body .navbar__links a {
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    opacity: .9;
    transition: opacity .15s, color .15s;
}

.consult-body .navbar__links a:hover,
.consult-body .navbar__links a[aria-current="page"] {
    opacity: 1;
    color: var(--gold);
}

.consult-body .navbar__burger {
    display: none;
    width: 34px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.consult-body .navbar__burger span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .22s ease, opacity .22s ease;
}

.consult-body .navbar__burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.consult-body .navbar__burger.open span:nth-child(2) {
    opacity: 0;
}

.consult-body .navbar__burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero (только главная consult): фон чуть выше центра кадра (~⅓ от середины к верху) */
.hero.hero--consult {
    color: #fff;
    text-align: center;
    padding: 6.75rem 1rem 5.25rem;
    min-height: clamp(420px, 52vh, 880px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2a1810;
    background-image:
        linear-gradient(to bottom, rgba(30, 10, 5, .55) 0%, rgba(62, 39, 35, .78) 100%),
        image-set(
            url('../images/consult-hero.webp') type('image/webp'),
            url('../images/consult-hero.jpg') type('image/jpeg')
        );
    background-size: auto, cover;
    /* смещение кадра вверх на ~⅓ от центра: 50% − (50%−0%)/3 */
    background-position: center, center 33.33%;
    background-repeat: no-repeat, no-repeat;
}

.hero.hero--consult .hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    /* видимость ~⅓: на ⅔ прозрачный */
    color: rgba(255, 255, 255, 0.34);
    margin-bottom: .5rem;
    margin-top: 0;
    font-family: Georgia, serif;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
    line-height: 1.15;
}

.hero.hero--consult .hero__slogan {
    font-size: 1rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: .75rem;
}

.hero.hero--consult .hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .88);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Контент под навбаром (без hero) */
.consult-main {
    flex: 1;
    padding: 2rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.consult-main--narrow {
    max-width: 960px;
}

.consult-main--checkout {
    max-width: 1000px;
}

.consult-distance-section {
    margin-bottom: 2.5rem;
}

.consult-distance-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--choco);
    border-left: 4px solid var(--gold);
    padding-left: .75rem;
    margin-bottom: 1rem;
}

/* Сетка карточек как в shop */
.consult-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.consult-plan-card {
    background: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.consult-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(62, 39, 35, .12);
}

.consult-plan-card__header {
    background: var(--choco);
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    min-height: 2.4rem;
}

.consult-plan-card__badge {
    display: inline-block;
    background: var(--gold);
    color: var(--choco);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 20px;
}

.consult-plan-card__body {
    padding: 1.25rem 1.25rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.consult-plan-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--choco);
    line-height: 1.4;
}

.consult-plan-card__goal {
    font-size: .9rem;
    color: #6b5044;
    line-height: 1.45;
    margin: 0;
}

.consult-plan-card__prices {
    font-size: .88rem;
    color: #6b5044;
    line-height: 1.45;
    margin: 0 0 1.35rem;
}

.consult-plan-card__footer {
    padding: 1.5rem 1.25rem 1.25rem;
    margin-top: auto;
}

.consult-btn-buy {
    display: block;
    width: 100%;
    background: var(--gold);
    color: var(--choco);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    transition: background .15s, opacity .15s;
    letter-spacing: .02em;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.consult-btn-buy:hover {
    background: #c4955a;
}

/* Подвал как shop */
.consult-footer {
    background: var(--choco);
    color: rgba(255, 255, 255, .55);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: .85rem;
    flex-shrink: 0;
}

.consult-footer a {
    color: var(--gold);
    text-decoration: none;
}

.consult-footer a:hover {
    text-decoration: underline;
}

/* Страницы статуса / редиректа */
.consult-status-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.consult-status-wrap .container {
    max-width: 560px;
    width: 100%;
}

.consult-payment-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(62, 39, 35, .1);
    border: 1px solid #e8dcc8;
}

.consult-page-title {
    font-family: Georgia, serif;
    font-size: 1.65rem;
    margin-bottom: 1rem;
    color: var(--choco);
}

.consult-back-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: .95rem;
    color: #8d6e63;
    text-decoration: none;
}

.consult-back-link:hover {
    text-decoration: underline;
    color: var(--choco);
}

.consult-faq {
    margin-top: 42px;
}

.consult-faq__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--choco);
    margin-bottom: 1rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #e8dcc8;
}

.consult-faq__lead {
    margin-bottom: 16px;
    max-width: 900px;
}

.consult-faq__list {
    display: block;
}

.consult-faq__item {
    border-bottom: 1px solid #e8dcc8;
    padding: 0;
}

.consult-faq__question {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    color: var(--choco);
    font-size: .97rem;
}

.consult-faq__question::-webkit-details-marker { display: none; }
.consult-faq__question::marker { content: ""; }

.consult-faq__question::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform .2s;
    flex-shrink: 0;
    line-height: 1;
}

.consult-faq__item[open] .consult-faq__question::after {
    transform: rotate(45deg);
}

.consult-faq__question:hover {
    color: #b8894f;
}

.consult-faq__answer {
    margin: 0;
    padding: 0 0 1rem;
    font-size: .95rem;
    color: #4a3330;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .consult-body .navbar__burger {
        display: inline-flex;
    }

    .consult-body .navbar__drawer {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 120;
        background: var(--choco);
        border-top: 1px solid rgba(255, 255, 255, .12);
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
        display: none;
        pointer-events: none;
    }

    .consult-body .navbar__drawer.open {
        display: flex;
        pointer-events: auto;
    }

    .consult-body .navbar__drawer li {
        width: auto;
    }

    .consult-body .navbar__drawer a {
        display: inline;
        padding: 0;
        font-size: .82rem;
    }
}

/* Центрирование страниц статуса / оплаты под навбаром */
.consult-main.consult-main--status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px - 5rem);
    padding: 2rem 1rem 4rem;
}
