/* =============================================
   SECTIONS — Чародейки
   ============================================= */

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: background var(--transition-normal), padding var(--transition-normal);
}

.site-header.scrolled {
    /* NOTE: backdrop-filter is intentionally NOT used here.
       It would create a CSS stacking context that traps position:fixed
       children (the mobile nav-menu), breaking the full-screen overlay. */
    background: rgba(10, 4, 26, 0.97);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.site-logo img {
    height: 50px;
    width: auto;
    border-radius: var(--radius-circle);
    transition: transform var(--transition-normal);
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-logo span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-white);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu a {
    color: var(--color-lavender);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-pink-glow);
    transition: width var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--color-white);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-normal);
    display: block;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(13, 5, 32, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.4rem;
    }
}


/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 130%;
    top: 0;
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%);
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero__bg {
        height: 100%;
    }
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.9;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 5, 32, 0.1) 0%,
            rgba(20, 5, 40, 0.6) 70%,
            #2a1245 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero__text {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Background glow for better text readability against stars */
.hero__text::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(42, 18, 69, 0.95) 0%, rgba(20, 10, 35, 0.6) 50%, transparent 80%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(25px);
    pointer-events: none;
}

.hero__logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-circle);
    margin-bottom: var(--space-md);
    box-shadow: var(--glow-pink);
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 80, 192, 0.2);
}

.hero__title em {
    font-style: normal;
    color: transparent;
    background: linear-gradient(135deg, #fff 0%, #f0c0d8 50%, #e8a0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(200, 80, 192, 0.5));
}

.hero__subtitle {
    font-size: var(--fs-body);
    color: var(--color-lavender);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.hero__subtitle p {
    margin-bottom: var(--space-xs);
}

.hero__subtitle p:last-child {
    margin-bottom: 0;
}

.hero__cta {
    --hero-cta-gap: var(--space-sm);
    --hero-cta-button-height: 82px;
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(220px, 240px);
    gap: var(--hero-cta-gap);
    align-items: stretch;
}

.hero__cta-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--hero-cta-gap);
    min-width: 0;
}

.hero__cta-stack .btn {
    width: 100%;
    min-height: var(--hero-cta-button-height);
    height: 100%;
    padding-inline: 28px;
    text-align: center;
    line-height: 1.2;
    text-wrap: balance;
}

.hero__messengers {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--hero-cta-gap);
    min-width: 0;
}

.hero__messenger {
    position: relative;
    width: 100%;
    min-height: var(--hero-cta-button-height);
    height: 100%;
    padding: 14px 16px;
    border-radius: 24px;
    border: 1px solid rgba(232, 160, 192, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(90, 39, 132, 0.96), rgba(43, 20, 75, 0.96));
    box-shadow:
        0 16px 34px rgba(20, 6, 40, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 24px rgba(114, 214, 255, 0.18);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    align-self: stretch;
}

.hero__messenger::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(120, 219, 255, 0.15), rgba(255, 255, 255, 0));
    opacity: 0.75;
    z-index: -1;
}

.hero__messenger:hover {
    transform: translateY(-2px) scale(1.01);
    color: var(--color-white);
    border-color: rgba(132, 223, 255, 0.75);
    box-shadow:
        0 20px 40px rgba(20, 6, 40, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 28px rgba(114, 214, 255, 0.28);
}

.hero__messenger--max {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(125, 55, 132, 0.96), rgba(62, 24, 87, 0.96));
    box-shadow:
        0 16px 34px rgba(20, 6, 40, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 24px rgba(247, 175, 222, 0.18);
}

.hero__messenger-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(114, 214, 255, 0.28), rgba(114, 214, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.hero__messenger-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero__messenger-icon--max {
    background: linear-gradient(145deg, rgba(255, 170, 210, 0.28), rgba(255, 170, 210, 0.08));
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero__messenger-title {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-wrap: balance;
}

.hero__image--photo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero__image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.hero__quote {
    max-width: 500px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-lavender);
    font-weight: 400;
    font-style: italic;
    position: relative;
    padding-top: var(--space-md);
    padding-left: var(--space-md);
    z-index: 1;
}

/* Background glow for quote readability */
.hero__quote::before {
    content: '';
    position: absolute;
    inset: -80px;
    background: radial-gradient(ellipse at center, rgba(42, 18, 69, 1) 0%, rgba(30, 12, 55, 0.9) 50%, rgba(20, 10, 35, 0.6) 70%, transparent 90%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(18px);
    pointer-events: none;
}

.hero__quote::after {
    content: none;
}

@media (max-width: 768px) {
    .hero__quote {
        font-size: 0.9rem;
        line-height: 1.55;
        padding-top: var(--space-sm);
        padding-left: var(--space-sm);
    }

    .hero__quote::before {
        inset: -30px;
        filter: blur(12px);
    }
}

.hero__photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    animation: heroFloat 6s ease-in-out infinite;
}

/* Glassmorphism base ring */
.hero__photo-wrapper::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(20, 10, 35, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 160, 192, 0.15);
    z-index: 0;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Magic Particles (Sparkles) */
.hero__sparkle {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px var(--color-pink-soft);
    animation: heroTwinkle 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes heroTwinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.6);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Staggered load animation base */
.hero-stagger {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Внешнее свечение-ореол */
.hero__photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 80, 192, 0.35) 0%, rgba(140, 60, 180, 0.15) 50%, transparent 70%);
    animation: hero-photo-pulse 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Тонкая декоративная дуга-рамка */
.hero__photo-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        linear-gradient(135deg, rgba(212, 165, 116, 0.6), rgba(200, 80, 192, 0.5), rgba(212, 165, 116, 0.6)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: hero-photo-spin 12s linear infinite;
}

.hero__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 3px rgba(200, 80, 192, 0.25),
        0 0 40px rgba(180, 60, 210, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero__photo:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 0 3px rgba(212, 165, 116, 0.5),
        0 0 60px rgba(200, 80, 192, 0.45),
        0 24px 70px rgba(0, 0, 0, 0.6);
}

@keyframes hero-photo-pulse {
    from {
        opacity: 0.7;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes hero-photo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__cta {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero__cta-stack {
        width: 100%;
        min-width: 0;
        display: grid;
    }

    .hero__messengers {
        width: 100%;
        display: grid;
    }

    .hero__messenger {
        width: 100%;
        min-height: var(--hero-cta-button-height);
    }

    .hero__logo {
        margin: 0 auto var(--space-md);
    }

    .hero__image {
        order: -1;
        margin-bottom: var(--space-lg);
    }

    .hero__photo-wrapper {
        max-width: 280px;
    }
}




.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl) var(--space-md);
}

.service-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
    border: 2px solid;
    border-image: var(--gradient-gold-border) 1;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(50, 25, 75, 0.85);
    box-shadow:
        0 0 20px 5px rgba(212, 165, 116, 0.5),
        0 0 60px 15px rgba(226, 194, 117, 0.18),
        0 22px 55px rgba(0, 0, 0, 0.45);
}

.service-card:hover .card__icon {
    filter: drop-shadow(0 0 20px rgba(226, 194, 117, 1));
    color: #f7df96;
}

.service-card .card__icon {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--color-gold);
    filter: drop-shadow(0 0 10px rgba(226, 194, 117, 0.5));
}

.service-card .card__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card .card__title {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.service-card p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.65;
    flex-grow: 1;
    text-align: center;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}



/* ===== BENEFITS (Цель, Польза, Формат) ===== */
.benefits {
    position: relative;
    overflow: hidden;
}

.benefits .container {
    position: relative;
    z-index: 2;
}

/* Шахматные строки: карточка + фото */
.benefit__row {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.benefit__row>.card.benefit-card,
.benefit__row>.benefit__image {
    flex: 1;
}

.benefit__row--reverse {
    flex-direction: row-reverse;
}

.benefit__image img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    max-height: 480px;
    display: block;
    box-shadow:
        0 0 0 2px rgba(212, 165, 116, 0.5),
        0 0 30px rgba(212, 165, 116, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.benefit__image img:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 0 2px rgba(212, 165, 116, 0.8),
        0 0 40px rgba(212, 165, 116, 0.35),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {

    .benefit__row,
    .benefit__row--reverse {
        flex-direction: column-reverse;
    }
}

.benefit-card {
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Золотая рамка как у карточек курсов и услуг */
    border-radius: 0;
    border: 2px solid;
    border-image: var(--gradient-gold-border) 1;
}

.benefit-card .card__icon {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--color-gold);
    filter: drop-shadow(0 0 12px rgba(226, 194, 117, 0.6));
}

.benefit-card .card__icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card .card__title {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    font-size: var(--fs-small);
    color: var(--color-lavender);
    line-height: 1.8;
    text-align: center;
}

/* Золотые маркеры списка */
.benefit-card .card__list {
    text-align: left;
    width: 100%;
}

.benefit-card .card__list li {
    position: relative;
    padding-left: 1.4em;
    font-size: var(--fs-small);
    color: var(--color-lavender);
    line-height: 1.7;
    margin-bottom: 0.4em;
}

.benefit-card .card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5em;
    height: 0.5em;
    background: var(--color-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 4px rgba(226, 194, 117, 0.6));
}

.benefits__summary {
    text-align: center;
    font-size: var(--fs-body);
    color: var(--color-pink-soft);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.about__intro {
    text-align: center;
    font-size: var(--fs-body);
    color: var(--color-lavender);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Шахматный макет: блок текст + фото */
.about__row {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.about__row>.about__text,
.about__row>.about__image {
    flex: 1;
}

.about__text {
    position: relative;
    z-index: 1;
}

.about__text::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(42, 18, 69, 0.95) 0%, rgba(20, 10, 35, 0.6) 50%, transparent 80%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(25px);
    pointer-events: none;
}

/* Обратный порядок: текст справа, фото слева */
.about__row--reverse {
    flex-direction: row-reverse;
}

.about__image img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    max-height: 420px;
    display: block;
    filter: brightness(0.92) saturate(1.1);
    border: 2px solid var(--color-gold);
    box-shadow:
        0 0 20px rgba(212, 165, 116, 0.3),
        0 0 40px rgba(212, 165, 116, 0.15);
}

/* === Слайдер фото === */
.carousel--photos {
    margin-top: var(--space-xl);
}

.carousel--photos .carousel__slide--nobg {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}

.carousel--photos .carousel__slide--nobg::before,
.carousel--photos .carousel__slide--nobg::after {
    display: none;
}

.about-carousel-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    color: var(--color-gold);
    margin-bottom: 0.3em;
    filter: drop-shadow(0 0 8px rgba(226, 194, 117, 0.4));
}

.about__role {
    font-size: var(--fs-small);
    color: var(--color-pink-soft);
    font-style: italic;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.about__text p {
    font-size: var(--fs-small);
    color: var(--color-lavender);
    line-height: 1.85;
    margin-bottom: var(--space-sm);
}

.about__closing {
    color: var(--color-pink-soft) !important;
    font-style: italic;
}

@media (max-width: 768px) {

    .about__row,
    .about__row--reverse {
        flex-direction: column-reverse;
    }

    .about__image img {
        height: auto;
        aspect-ratio: 3 / 4;
        max-height: none;
    }
}


/* ===== COURSES (Курсы) ===== */
.courses {
    position: relative;
    overflow: hidden;
}

.courses .container {
    position: relative;
    z-index: 2;
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 1060px;
    margin: 0 auto;
}

.course-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* Inner glow at card top */
.course-card::before {
    top: 0 !important;
    left: 0 !important;
    right: 0;
    transform: none !important;
    width: 100% !important;
    height: 120px !important;
    content: '' !important;
    position: absolute;
    background: radial-gradient(ellipse at center top, rgba(200, 80, 192, 0.12) 0%, transparent 70%) !important;
    font-size: 0 !important;
    color: transparent !important;
    pointer-events: none;
    z-index: 0;
}

.course-card .card__icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(200, 80, 192, 0.4));
}

.course-card--karma-intensive .card__image-wrap img {
    object-position: center center;
}

.course-card .card__for {
    margin-top: auto;
}

.course-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Left-align list items inside centered card */
.course-card .card__list {
    display: inline-block;
    text-align: left;
    margin: var(--space-xs) auto;
}

.course-card__content {
    text-align: left;
    margin: var(--space-sm) 0;
}

.course-card__content p,
.course-card__content ul,
.course-card__content ol {
    font-size: 0.9rem;
    color: var(--color-lavender);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.course-card__content p,
.course-card__content li {
    text-align: left;
    text-align-last: auto;
}

.course-card__content .has-text-align-left,
.course-card__content p.has-text-align-left,
.course-card__content li.has-text-align-left {
    text-align: left;
    text-align-last: auto;
}

.course-card__content .has-text-align-center,
.course-card__content p.has-text-align-center,
.course-card__content li.has-text-align-center {
    text-align: center;
    text-align-last: center;
}

.course-card__content .has-text-align-right,
.course-card__content p.has-text-align-right,
.course-card__content li.has-text-align-right {
    text-align: right;
    text-align-last: right;
}

.course-card__content .has-text-align-justify,
.course-card__content .has-text-align-justify li,
.course-card__content p.has-text-align-justify,
.course-card__content li.has-text-align-justify {
    text-align: justify;
    text-align-last: auto;
}

.course-card__content ul,
.course-card__content ol {
    padding-left: 1.2rem;
}

.course-card__content li {
    margin-bottom: 6px;
}

/* Premium price badge */
.course-card .card__price {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(232, 200, 158, 0.08));
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(212, 165, 116, 0.3);
}

/* meta centered */
.course-card .card__meta {
    justify-content: center;
}

.course-card .card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
}

.course-card .card__price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
}

.card__desc {
    font-size: 0.85rem;
    color: var(--color-lavender);
    line-height: 1.6;
    margin-bottom: var(--space-xs);
}

.card--gold:hover {
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card__for {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: var(--space-xs) 0;
    padding: var(--space-xs) var(--space-sm);
    border-left: 2px solid var(--color-gold);
    text-align: left;
}

.blog-card__full {
    font-size: var(--fs-small);
    color: var(--color-lavender);
    line-height: 1.8;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(200, 80, 192, 0.2);
}

@media (max-width: 700px) {
    .courses__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}




/* ===== VIDEO REVIEWS ===== */
.reviews__subtitle {
    text-align: center;
    font-size: var(--fs-body);
    color: var(--color-lavender);
    margin-bottom: var(--space-2xl);
    font-style: italic;
}

.video-reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 760px;
    margin: 0 auto;
}

/* Card */
.video-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Thumbnail / clickable area */
.video-card__thumb {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #1a0835;
    border: 2px solid var(--color-gold);
    box-shadow:
        0 0 0 1px rgba(212, 165, 116, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.video-card__thumb:hover,
.video-card__thumb:focus {
    border-color: var(--color-gold);
    box-shadow:
        0 0 0 1px rgba(212, 165, 116, 0.4),
        0 0 40px rgba(212, 165, 116, 0.25),
        0 24px 64px rgba(0, 0, 0, 0.55);
    transform: translateY(-4px);
    outline: none;
}

.video-card__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-card__thumb:hover .video-card__poster {
    transform: none;
}

/* Dark gradient overlay */
.video-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 3, 25, 0.75) 0%,
            rgba(10, 3, 25, 0.2) 40%,
            transparent 70%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.video-card__thumb:hover .video-card__overlay {
    background: linear-gradient(to top,
            rgba(10, 3, 25, 0.65) 0%,
            rgba(60, 10, 80, 0.3) 40%,
            rgba(60, 10, 80, 0.1) 70%);
}

/* Play button */
.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.18);
    border: 2px solid rgba(212, 165, 116, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(212, 165, 116, 0.3);
}

.video-card__play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.video-card__thumb:hover .video-card__play {
    transform: translate(-50%, -50%) scale(1.12);
    background: rgba(212, 165, 116, 0.32);
    border-color: var(--color-gold);
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.55);
}

/* Badge at bottom */
.video-card__badge {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-gold);
    font-size: 0.78rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-card__thumb:hover .video-card__badge {
    opacity: 1;
}

/* Card info below thumbnail */
.video-card__info {
    text-align: center;
    padding: var(--space-xs) 0;
}

.video-card__stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.5));
}

.video-card__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    color: var(--color-white);
}

@media (max-width: 640px) {
    .video-reviews {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .video-card__thumb {
        max-height: 55vh;
    }

    .video-card__play {
        width: 60px;
        height: 60px;
    }

    .video-card__badge {
        opacity: 1;
    }
}

/* ===== VIDEO LIGHTBOX ===== */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 0, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.video-lightbox__container {
    position: relative;
    z-index: 1;
    /* portrait 9:16 video: width = 85vh * (9/16) ≈ 85vh * 0.5625, capped at 90vw */
    width: min(calc(85vh * 0.5625), 90vw);
    max-width: 640px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-lightbox.is-open .video-lightbox__container {
    transform: scale(1);
}

.video-lightbox__video {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
    border: 2px solid rgba(212, 165, 116, 0.5);
    box-shadow:
        0 0 0 1px rgba(212, 165, 116, 0.2),
        0 30px 80px rgba(0, 0, 0, 0.7);
    background: #000;
    max-height: 85vh;
    height: 85vh;
    object-fit: contain;
}

.video-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--color-white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-lightbox__close:hover {
    background: rgba(212, 165, 116, 0.3);
    transform: scale(1.1) rotate(90deg);
}

@media (max-width: 520px) {
    .video-lightbox__container {
        width: 95vw;
        max-width: 100%;
    }

    .video-lightbox__close {
        top: 12px;
        right: 12px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}


/* ===== BLOG ===== */
.blog-preview {
    position: relative;
    overflow: hidden;
}

.blog-preview .container {
    position: relative;
    z-index: 2;
}

/* Список блога: каждая статья — отдельная строка */
.blog__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: 0 auto var(--space-lg);
    max-width: 900px;
}

.blog-row {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    overflow: visible;
    /* Чтобы алмазы не обрезались */
    border: 2px solid;
    border-image: var(--gradient-gold-border) 1;
    border-radius: 0;
    padding: var(--space-lg);
    background: rgba(20, 10, 35, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.blog-row::before,
.blog-row::after {
    content: '✦';
    position: absolute;
    color: var(--color-gold);
    font-size: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
}

.blog-row::before {
    top: -12px;
}

.blog-row::after {
    bottom: -12px;
}

.blog-row__image {
    flex: 0 0 360px;
    width: 360px;
}

.blog-row__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.15);
    transition: transform 0.3s ease;
}

.blog-row:hover .blog-row__image img {
    transform: none;
}

.blog-row__body {
    flex: 1;
}

.blog-card__title {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-gold);
}

.blog-row__text {
    font-size: var(--fs-small);
    color: var(--color-lavender);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.blog-row__text p {
    margin-bottom: var(--space-sm);
}

/* Свёрнутый текст — показываем только начало */
.blog-row__excerpt {
    max-height: 9em;
    overflow: hidden;
    position: relative;
}

.blog-row__excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(to bottom, transparent, rgba(50, 20, 70, 0.95));
}

.blog__cta {
    text-align: center;
}

@media (max-width: 768px) {

    /* ---- Blog (все страницы): базовая адаптивность ---- */
    .blog-row {
        flex-direction: column;
    }

    .blog-row__image {
        flex: none;
        width: 100%;
    }

    .blog-row__image img {
        height: 200px;
    }

    /* ---- Blog (front-page only): горизонтальный свайп-слайдер ---- */

    .blog-preview .blog__list {
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding-bottom: var(--space-sm);
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 5vw;
        padding-right: 5vw;
        scroll-padding-left: 5vw;
    }

    /* Контейнер блога на мобиле: без padding и c overflow:hidden */
    .blog-preview .container {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: var(--space-lg);
        overflow: hidden;
    }

    .blog-preview .blog__list::-webkit-scrollbar {
        display: none;
    }

    .blog-preview .blog-row {
        flex: 0 0 90vw;
        min-width: 90vw;
        flex-direction: column;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .blog-preview .blog-row__image {
        flex: none;
        width: 100%;
    }

    .blog-preview .blog-row__image img {
        height: 200px;
    }

    .blog-preview .blog__cta {
        display: block;
        width: 100%;
        flex-shrink: 0;
        margin-top: var(--space-lg);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        text-align: center;
    }

    /* Центрирование кнопки "Читать статью" в карточках блога на главной */
    .blog-preview .blog-row__body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .blog-preview .blog-row__body .blog-card__title,
    .blog-preview .blog-row__body .blog-row__text {
        width: 100%;
    }
}

/* Пагинация блог-слайдера (мобиль, JS) */
.blog-slider-dots {
    display: none;
}

@media (max-width: 768px) {
    .blog-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: var(--space-md);
    }

    .blog-slider-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(212, 165, 116, 0.3);
        border: none;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
        padding: 0;
    }

    .blog-slider-dots .dot.active {
        background: var(--color-gold);
        transform: scale(1.35);
    }
}


/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 8rem 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Тёмный overlay поверх фото */
.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 5, 30, 0.78) 0%,
            rgba(60, 10, 80, 0.65) 50%,
            rgba(15, 5, 30, 0.78) 100%);
    pointer-events: none;
}

/* Мерцающая кромка сверху и снизу */
.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    pointer-events: none;
}

.cta-section::before {
    top: 0;
}

.cta-section::after {
    bottom: 0;
}

/* Надпись-тег над заголовком */
.cta-section__eyebrow {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.6));
}

/* Золотой заголовок */
.cta-section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.4));
    line-height: 1.2;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: var(--fs-body);
    color: rgba(232, 213, 196, 0.9);
    line-height: 1.8;
}

/* Золотая кнопка — в стиле outline как остальные кнопки сайта */
.btn--gold {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.3);
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn--gold:hover {
    background: rgba(212, 165, 116, 0.15);
    border-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.55);
}




/* ===== CONTACTS ===== */
.contacts {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contacts .container {
    position: relative;
    z-index: 2;
}

.contacts__phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
}

.contacts__phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
}

.contacts__phone span {
    font-size: 0.95rem;
    color: var(--color-lavender);
    margin-left: 4px;
}

.contacts__note {
    margin-top: var(--space-lg);
    color: var(--color-text-muted);
    font-size: var(--fs-small);
    text-align: center;
}


/* ===== FOOTER ===== */
.site-footer {
    background: rgba(13, 5, 32, 0.95);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(200, 80, 192, 0.15);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer__copy {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.footer__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__policy {
    color: var(--color-lavender);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

.footer__policy:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer__meta {
        align-items: center;
    }
}




.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92) saturate(1.1);
    box-shadow:
        0 0 0 2px rgba(212, 165, 116, 0.5),
        0 0 30px rgba(212, 165, 116, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease;
}

.about__image img:hover {
    box-shadow:
        0 0 0 2px rgba(212, 165, 116, 0.8),
        0 0 40px rgba(212, 165, 116, 0.35),
        0 20px 50px rgba(0, 0, 0, 0.5);
}

.about__text h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-gold);
}

.about__text h3+p+h3 {
    margin-top: var(--space-lg);
}

.about__text p {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
    }
}
