/* ============================================================
   СТРАНИЦА: КОНСУЛЬТАЦИЯ ЭНДОКРИНОЛОГА
   ============================================================ */

/* ----- БЛОК 1: HERO ----- */
.consult-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    background: #e7d3df;
    overflow: hidden;
}

.consult-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.consult-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.consult-hero__mandala {
    position: absolute;
    z-index: 1;
    width: 140%;
    height: 140%;
    top: -30%;
    left: 4%;
    transform: translate(-60%, -60%);
    animation: consult-spin 30s linear infinite;
    pointer-events: none;
}

.consult-hero__mandala img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.5;
}

.consult-hero__image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.consult-hero__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.consult-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consult-hero__back {
    color: #ae634c;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.consult-hero__back:hover {
    color: #8a4f3b;
}

.consult-hero__badge {
    display: inline-block;
    background: #ae634c;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.consult-hero__title {
    font-size: 52px;
    font-weight: 300;
    color: #4a3a35;
    line-height: 1.1;
    margin: 0;
}

.consult-hero__subtitle {
    font-size: 18px;
    color: #4a3a35;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.consult-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ----- КНОПКИ ----- */
.btn-large {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 50px;
}

.btn-primary {
    background: #ae634c;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #8a4f3b;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(174, 99, 76, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: #ae634c;
    border: 2px solid #d2c1bc;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #ae634c;
    color: #ffffff;
    border-color: #ae634c;
}

/* ----- ОБЩИЙ РАЗДЕЛИТЕЛЬ ----- */
.consult__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.consult__divider-line {
    flex: 1;
    height: 1.5px;
    background: #ae634c;
    opacity: 0.3;
}

.consult__divider-mandala {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    animation: consult-spin 20s linear infinite;
}

.consult__divider-mandala img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes consult-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----- БЛОК 2: ДЛЯ КОГО ----- */
.consult-for {
    padding: 60px 20px;
    background: #ffffff;
}

.consult-for__container {
    max-width: 1000px;
    margin: 0 auto;
}

.consult-for__title {
    font-size: 38px;
    font-weight: 300;
    color: #ae634c;
    text-align: center;
    margin-bottom: 40px;
}

.consult-for__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.consult-for__item {
    display: flex;
    gap: 16px;
    background: #f9f6f4;
    padding: 20px 24px;
    border-radius: 16px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.consult-for__item.visible {
    opacity: 1;
    transform: translateX(0);
}

.consult-for__item:nth-child(even) {
    transform: translateX(30px);
}
.consult-for__item:nth-child(even).visible {
    transform: translateX(0);
}

.consult-for__icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.consult-for__info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ae634c;
    margin: 0 0 4px 0;
}

.consult-for__info p {
    font-size: 15px;
    color: #4a3a35;
    line-height: 1.5;
    margin: 0;
}

/* ----- БЛОК 3: ЧТО ПОЛУЧИТЕ ----- */
.consult-benefits {
    padding: 60px 20px;
    background: #f5edea;
}

.consult-benefits__container {
    max-width: 900px;
    margin: 0 auto;
}

.consult-benefits__title {
    font-size: 38px;
    font-weight: 300;
    color: #ae634c;
    text-align: center;
    margin-bottom: 40px;
}

.consult-benefits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.consult-benefits__item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.consult-benefits__item.visible {
    opacity: 1;
    transform: translateY(0);
}

.consult-benefits__check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consult-benefits__check svg {
    width: 28px;
    height: 28px;
    display: block;
}

.consult-benefits__item h3 {
    font-size: 17px;
    font-weight: 600;
    color: #4a3a35;
    margin: 0 0 2px 0;
}

.consult-benefits__item p {
    font-size: 15px;
    color: #6a5a50;
    line-height: 1.4;
    margin: 0;
}

/* ----- БЛОК 4: ФОРМАТЫ ----- */
.consult-formats {
    padding: 60px 20px;
    background: #ffffff;
}

.consult-formats__container {
    max-width: 1000px;
    margin: 0 auto;
}

.consult-formats__title {
    font-size: 38px;
    font-weight: 300;
    color: #ae634c;
    text-align: center;
    margin-bottom: 40px;
}

.consult-formats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.consult-formats__card {
    background: #f9f6f4;
    padding: 30px 24px;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
    border: 1px solid transparent;
}

.consult-formats__card.visible {
    opacity: 1;
    transform: scale(1);
}

.consult-formats__card:hover {
    border-color: #d2c1bc;
    transform: translateY(-4px);
}

.consult-formats__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.consult-formats__card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ae634c;
    margin: 0 0 6px 0;
}

.consult-formats__card p {
    font-size: 15px;
    color: #4a3a35;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.consult-formats__price {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #ae634c;
    margin-bottom: 4px;
}

.consult-formats__duration {
    font-size: 14px;
    color: #8a7a70;
}

/* ----- БЛОК 5: ЦИТАТА + ФОТО ----- */
.consult-quote-photo {
    padding: 60px 20px;
    background: #f5edea;
}

.consult-quote-photo__container {
    max-width: 1100px;
    margin: 0 auto;
}

.consult-quote-photo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.consult-quote-photo__image {
    order: 1;
}

.consult-quote-photo__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transform: scaleX(-1);
}

.consult-quote-photo__quote {
    order: 2;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-style: italic;
    color: #4a3a35;
    line-height: 1.4;
    margin: 0;
    padding: 20px 30px;
    border-left: 5px solid #ae634c;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 20px 20px 0;
}

/* ----- БЛОК 6: ЗАПИСЬ ----- */
.consult-cta {
    padding: 60px 20px 80px;
    background: #ffffff;
}

.consult-cta__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.consult-cta__title {
    font-size: 38px;
    font-weight: 300;
    color: #ae634c;
    margin: 0 0 8px 0;
}

.consult-cta__subtitle {
    font-size: 18px;
    color: #4a3a35;
    margin: 0 0 30px 0;
}

.consult-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 992px) {
    .consult-hero__title { font-size: 42px; }
    .consult-for__grid { grid-template-columns: 1fr; }
    .consult-benefits__grid { grid-template-columns: 1fr; }
    .consult-formats__grid { grid-template-columns: 1fr 1fr; }
    .consult-quote-photo__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .consult-quote-photo__image { order: 1; }
    .consult-quote-photo__quote {
        order: 2;
        font-size: 28px;
        text-align: center;
        border-left: none;
        border-top: 4px solid #ae634c;
        padding: 20px 0;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .consult-hero {
        min-height: auto;
        padding: 40px 16px;
    }
    .consult-hero__container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .consult-hero__visual {
        order: -1;
        max-width: 320px;
    }
    .consult-hero__mandala {
        width: 130%;
        height: 130%;
    }
    .consult-hero__image {
        max-width: 320px;
    }
    .consult-hero__content {
        order: 2;
        align-items: center;
    }
    .consult-hero__badge { margin: 0 auto; }
    .consult-hero__back { margin: 0 auto; }
    .consult-hero__title { font-size: 34px; }
    .consult-hero__subtitle {
        font-size: 17px;
        max-width: 100%;
    }
    .consult-hero__actions { justify-content: center; }
    .btn-large { padding: 14px 28px; font-size: 16px; }
    
    .consult-for__title,
    .consult-benefits__title,
    .consult-formats__title,
    .consult-cta__title { font-size: 30px; }
    
    .consult-formats__grid { grid-template-columns: 1fr; }
    .consult-cta__buttons { flex-direction: column; align-items: center; }
    .consult-cta__buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
    .consult__divider-mandala { width: 30px; height: 30px; }
    .consult__divider { gap: 12px; }
    .consult-quote-photo__quote { font-size: 24px; }
}
/* ----- ДЛЯ ВЕДАПУЛЬС: 2 СТОЛБИКА В ФОРМАТАХ ----- */
.consult-formats__grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .consult-formats__grid--two {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ============================================================
   ОТКЛЮЧАЕМ ВРАЩЕНИЕ ДЛЯ СЕРДЦА (переопределение)
   ============================================================ */

/* Вариант: отключаем вращение для родителя с сердцем */
.consult__divider-mandala:has(.heart-ekg) {
    animation: none !important;
}

/* Включаем пульсацию для самого сердца */
.heart-ekg {
    animation: heartbeat-ekg 1.5s ease-in-out infinite !important;
}

/* ============================================================
   МОЛНИЯ ДЛЯ ЭНЕРГОТЕРАПИИ (отключаем вращение, включаем пульсацию)
   ============================================================ */

/* Отключаем вращение для родителя с молнией */
.consult__divider-mandala:has(.lightning) {
    animation: none !important;
}

/* Включаем пульсацию для самой молнии */
.lightning {
    animation: lightning-pulse 1.8s ease-in-out infinite !important;
    transform-origin: center;
}



@keyframes lightning-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    30% {
        transform: scale(1.15);
        opacity: 1;
    }
    60% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .consult-hero__visual {
        max-width: 260px;
    }
    .consult-hero__mandala {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    .consult-hero__image {
        max-width: 260px;
    }
    .consult-hero__title { font-size: 28px; }
    .consult-hero__subtitle { font-size: 15px; }
    .consult-for__item { padding: 16px; }
    .consult-formats__card { padding: 20px; }
    .consult-quote-photo__quote { font-size: 20px; }
    
}
/* ============================================================
   СЕРДЦЕ ДЛЯ ВЕДАПУЛЬС (без вращения, с ЭКГ)
   ============================================================ */

/* Отключаем вращение для сердца */
.consult__divider-mandala .heart-ekg {
    animation: heartbeat-ekg 1.5s ease-in-out infinite;
}

/* Пульсация сердца */
@keyframes heartbeat-ekg {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.15); }
    20% { transform: scale(1); }
    30% { transform: scale(1.08); }
    40% { transform: scale(1); }
}

/* Анимация для ЭКГ-линии */
.heart-ekg .ekg-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-ekg 2s ease-in-out infinite;
}

@keyframes draw-ekg {
    0% { stroke-dashoffset: 100; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -100; opacity: 0.3; }
}

/* ============================================================
   КНОПКА С ПЕРЕЛИВОМ (для консультации)
   ============================================================ */

.btn-primary.btn-large {
    position: relative;
    overflow: hidden;
    background: #e8436e; /* ярко-розовый */
    color: #ffffff;
    border: none;
    z-index: 1;
}

.btn-primary.btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: btn-shine 3s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.btn-primary.btn-large:hover::before {
    animation-duration: 1.5s; /* ускоряем при наведении */
}

@keyframes btn-shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Текст поверх анимации */
.btn-primary.btn-large .btn__text {
    position: relative;
    z-index: 3;
}

.btn-primary.btn-large svg {
    position: relative;
    z-index: 3;
    fill: #ffffff;
}

/* ============================================================
   ЙОГА: 4 составляющие (финальная версия)
   ============================================================ */
.yoga-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.yoga-pillar {
    background: #f9f6f4;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(174, 99, 76, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); /* лёгкая тень */
}

.yoga-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(174, 99, 76, 0.08); /* тень при наведении */
}

.yoga-pillar__icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.yoga-pillar__title {
    font-size: 16px;
    font-weight: 600;
    color: #ae634c;
    margin: 0 0 4px 0;
}

.yoga-pillar__desc {
    font-size: 14px;
    color: #4a3a35;
    line-height: 1.4;
    margin: 0;
}

/* ---------- ПЛАНШЕТЫ (до 768px) ---------- */
@media (max-width: 768px) {
    .yoga-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    .yoga-pillar {
        padding: 16px 12px;
    }
    .yoga-pillar__icon {
        font-size: 28px;
    }
    .yoga-pillar__title {
        font-size: 14px;
    }
    .yoga-pillar__desc {
        font-size: 13px;
    }
}

/* ---------- ТЕЛЕФОНЫ (до 480px) ---------- */
@media (max-width: 480px) {
    .yoga-pillars {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 12px;
        max-width: 100%;
    }
    .yoga-pillar {
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 16px; /* увеличил расстояние между иконкой и текстом */
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    .yoga-pillar__icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
        min-width: 36px;
    }
    .yoga-pillar__title {
        font-size: 15px;
        margin: 0 0 2px 0;
    }
    .yoga-pillar__desc {
        font-size: 13px;
        margin: 0;
    }
}

/* ---------- ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 380px) ---------- */
@media (max-width: 380px) {
    .yoga-pillars {
        padding: 0 6px;
        gap: 8px;
    }
    .yoga-pillar {
        padding: 12px 12px;
        gap: 12px;
    }
    .yoga-pillar__icon {
        font-size: 24px;
        min-width: 30px;
    }
    .yoga-pillar__title {
        font-size: 14px;
    }
    .yoga-pillar__desc {
        font-size: 12px;
    }
}

/* ============================================================
   ЙОГА: ПРАВИЛА ЗАМОРОЗКИ (адаптив)
   ============================================================ */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.rules-item {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rules-item--full {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4px;
    }
    .rules-item {
        padding: 20px 16px;
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .rules-item h3 {
        font-size: 17px;
    }
    .rules-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .rules-item {
        padding: 16px 12px;
    }
    .rules-item h3 {
        font-size: 15px;
    }
    .rules-item p {
        font-size: 13px;
    }
}
/* ============================================================
   ОМ ДЛЯ ЙОГИ (вращение)
   ============================================================ */

/* Отключаем стандартную анимацию вращения для родителя с Ом */
.consult__divider-mandala:has(.om-symbol) {
    animation: none !important;
}

/* Включаем вращение для самого Ом */
.om-symbol {
    width: 70px;
    height: 70px;
    display: block;
    object-fit: contain;
    animation: om-spin 12s linear infinite;
}

@keyframes om-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}