:root {
    /* Цвета: #380606, #FFC909, #000000, #FFFFFF */
    /* --deep-red: #380606; */
    /* --deep-red: #440000; */
    --beige: #EDDED2;
    --gold-light: #FDE885;
    --gold-bright: #FFC909;
    --deep-red: #210202;
    --deepest-red: #110205;
    --black: #000000;
    --white: #FFFFFF;
    --extra-background: #0000006a;

    --ff-headings: 'Lora', Georgia, serif;
    --ff-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --faq-line: rgba(240, 220, 210, 0.85);
    --faq-text: #e7d1c8;
    --faq-accent: #f2e2d7;
    --fs-section-title: clamp(2rem, 1.4rem + 2vw, 2.8125rem);
    /* 32px → 45px */
    --fs-main-text: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    /* 16px → 20px */
    --fs-little-text: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    /* 14px → 16px */
    --fs-btn-text: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    /* 14px → 16px */
    --fs-card-text: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
    /* 20px → 30px */
    --fs-36-text: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    /* 24px → 36px */
    --fs-20-text: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    /* 16px → 20px */
    --fs-14-text: clamp(0.875rem, 0.8rem + 0.15vw, 0.875rem);
    /* 14px fixed */
    --card-border: 1px solid #edded2cf;
    --card-border-red: 1px solid rgba(75, 0, 8, 0.7);
    --item-height: 52px;
    --gold: #c9a84c;
    --gold-dim: rgba(201, 168, 76, 0.12);
    --gold-border: rgba(201, 168, 76, 0.35);
    --bg-dark: #804f13;
}

/* Hero */
.reading-hero {
    background-color: var(--deepest-red);
    width: 100%;
}

.reading-hero-grid {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    align-items: center;
}

.reading-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.reading-hero-badge {
    font-size: var(--fs-20-text);
}

.reading-hero-subtitle {
    font-size: var(--fs-20-text);
    max-width: 530px;
    opacity: 0.8;
    padding: 1em 0 2em 0;
    text-align: center;
}

.reading-hero-photo-wrap {
    display: flex;
    justify-content: center;
    width: 50%;
}

.reading-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}






.readings-switcher-section {
    background-color: var(--deepest-red);
}

/* ── SWITCHER SHELL ── */
.readings-switcher {
    position: relative;
    width: 250px;
    flex-shrink: 0;
    /* exactly 3 items tall: frame in middle, one item above, one below, plus button room */
    height: calc(var(--item-height) * 3 + 32px);
    user-select: none;
}

/* golden frame around the centre slot */
.highlight-band {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: var(--item-height);
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 4px;
    /* background: linear-gradient(to right,
            transparent,
            rgba(201, 168, 76, 0.10) 30%,
            rgba(201, 168, 76, 0.18) 50%,
            rgba(201, 168, 76, 0.10) 70%,
            transparent); */
    background: radial-gradient(ellipse at center,
            rgba(157, 116, 2, 0.28) 0%,
            rgba(201, 168, 76, 0.18) 30%,
            rgba(201, 168, 76, 0.08) 60%,
            transparent 100%);
    box-shadow:
        0 0 18px 8px rgba(201, 168, 76, 0.15),
        /* spreads all sides */
        0 0 40px 12px rgba(201, 168, 76, 0.08);
    /* wider outer glow */
    pointer-events: none;
    z-index: 2;
}

/* fade top/bottom edges */
.fade-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            var(--bg-dark) 0%,
            transparent 20%,
            transparent 80%,
            var(--bg-dark) 100%);
    background: linear-gradient(to bottom,
            transparent 0%,
            hsla(50, 97%, 76%, 0.01) 10%,
            hsla(50, 97%, 76%, 0.039) 20%,
            hsla(50, 97%, 76%, 0.068) 30%,
            hsla(50, 97%, 76%, 0.231) 40%,
            hsla(50, 97%, 76%, 0.402) 50%,
            hsla(50, 97%, 76%, 0.231) 60%,
            hsla(50, 97%, 76%, 0.068) 70%,
            hsla(50, 97%, 76%, 0.039) 80%,
            hsla(50, 97%, 76%, 0.01) 90%,
            transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.readings-roll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 0.75rem;
    z-index: 5;
    padding: 4px 16px;
    line-height: 1;
    transition: color 0.18s;
}

.readings-roll-btn[data-dir="up"] {
    top: 0;
}

.readings-roll-btn[data-dir="down"] {
    bottom: 0;
    /* turn the arrow    */
    transform: translateX(-50%) rotate(180deg);

}

.readings-roll-btn:hover {
    color: var(--gold);
}

.readings-roll-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* items are laid out linearly — no cylinder math needed for 3 visible slots */
.cylinder-viewport {
    position: absolute;
    left: 0;
    right: 0;
    /* sits between the two arrow buttons */
    top: 20px;
    bottom: 20px;
    overflow: hidden;
    z-index: 1;
}

.readings-roll-item {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--item-height);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 10px;
    will-change: transform, opacity;
    transition: color 0.22s, text-shadow 0.22s, font-size 0.18s;
    color: #7a6030;
    /* nearly invisible on dark background */
}

.readings-roll-item.is-active {
    color: #d4a830;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.65), 0 0 22px rgba(201, 168, 76, 0.25);
}

.readings-roll-item.prev,
.readings-roll-item.next {
    color: #7a6030;
    font-weight: 400;
    font-size: 0.82rem;
}

/* tablet/mobile: 1 visible */
@media (max-width: 768px) {
    .readings-carousel {
        padding: 1em;
        /* reduce padding on small screens */
    }

    .readings-all-section-wrap {
        flex-direction: column;
        gap: 1.5rem;
    }

    .readings-switcher {
        width: 100%;
        /* full width on mobile */
    }
}

/* ── PANELS ────────────────────────────────── */
.readings-all-section {
    background: var(--deep-red);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 2.5rem;
    width: 100%;
}

.readings-all-section-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 780px;
}

/* ── PANELS ── */
.readings-panels {
    flex: 1;
    min-width: 0;
    width: 100%;

}

.readings-panel {
    display: none;
}

.readings-panel.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.readings-panel-head {
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
    max-width: 720px;
}

.readings-panel-title {
    margin: 0 0 0.3rem;
    font-weight: 100;
    font-size: var(--fs-card-textt);
}

.readings-panel-subtitle {
    color: var(--beige);
    font-size: var(--fs-20-text);
    line-height: 1.5;
    margin: 1em 0 0.5rem;
    opacity: 0.8;
}

.readings-panel-category {
    font-size: var(--fs-card-text);
    font-family: var(--ff-headings);
    padding: 1em 0.8em 0.1em;
}

.readings-carousel {
    border-radius: 18px;
    padding: 2em;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    /* re-add this — clips the sliding track */
    box-sizing: border-box;
}

.reading-card {
    padding: 1.875em;
    scroll-snap-align: start;
    box-sizing: border-box;
    flex: 0 0 100%;
    /* was calc(50% - 12px) — now full width */
    max-width: 100%;
    /* was calc(50% - 12px) */
    text-align: left;
    /* was center */
    color: var(--beige);
    background-color: var(--deepest-red);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* was center */
    justify-content: space-between;
    border: var(--card-border-red);
}

.reading-detail-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.reading-detail-list li {
    font-size: 0.78rem;
    color: #8a7055;
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
}

.reading-detail-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* nav med-packs-carousel*/
.readings-carousel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.readings-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.readings-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--gold);
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-light);
    background-color: var(--deepest-red);
}

.readings-nav-btn span {
    color: var(--gold-light);
    font-size: 30px;

}

.readings-nav-btn:hover {
    background: rgba(255, 201, 9, 0.2);
    transform: scale(1.05);
}

.readings-nav-btn.is-disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
    background: transparent;
}

.readings-viewport {
    display: block;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.readings-track {
    display: flex;
    gap: 0;
    /* remove gap — with 100% cards, any gap pushes card 2 partially into view */
    transition: transform 0.3s ease;
    width: 100%;
}

.reading-card {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 1.875em;
    text-align: center;
    color: var(--beige);
    background-color: var(--deepest-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: var(--card-border-red);
}

.reading-title {
    font-size: var(--fs-36-text);
    color: var(--beige);
    margin: 0 0 0.4rem;
    font-weight: 300;
}

.reading-text {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-1-text);
    color: var(--beige);
    opacity: 0.8;
    line-height: 1.55;
    margin: 0 0 0.5rem;
}

.reading-questions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: start;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* remove the --hidden class entirely — open state is default OFF */
.reading-questions.is-open {
    max-height: 1200px;
    /* large enough for any list */
    opacity: 1;
    margin: 0 0 1rem;
}

.reading-questions li {
    font-size: var(--fs-14-text);
    color: var(--beige);
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
}

.reading-questions li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.reading-questions-accent {
    font-weight: 300;
    color: var(--gold-light) !important;
    list-style: none;
}

/* toggle button */
.reading-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0.4rem auto 0.6rem;
    width: 100%;
    transform: rotate(180deg);
}

.reading-toggle-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

/* rotated state */
.reading-toggle-btn.is-open .reading-toggle-icon {
    transform: rotate(180deg);
}


.reading-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.reading-price {
    font-size: var(--fs-36-text);
    color: var(--gold-light);
    font-family: var(--ff-headings);
    margin-bottom: 0.5em;
    text-align: center;
}

@media (max-width: 900px) {
    .readings-panel-subtitle {
        font-size: var(--fs-14-text);
    }

    .readings-panel-category {
        font-size: var(--fs-14-text);
        padding: 0.8em 0.6em 0.1em;
    }

    .reading-questions li {
        font-size: var(--fs-14-text);
    }
}

@media (max-width: 800px) {
    .reading-hero-grid {
        flex-direction: column;
        gap: 40px;
    }

    .reading-hero-content {
        width: 100%;
    }

    .reading-hero-subtitle {
        width: 100%;
        max-width: unset;
    }

    .reading-hero-photo-wrap {
        width: 100%;
        max-width: 400px;
    }

    .reading-card-title {
        text-align: center;
    }

    .reading-footer {
        flex-direction: column;
    }

}