/* ═══════════════════════════════════════════════════════════════
   extra.css — дополнение к main.css из Bitrix
   ═══════════════════════════════════════════════════════════════ */

/* ══ 1. Воспитание и забота: картинки на всю карточку ══ */

/* На десктопе (≥576px) ссылка позиционируется relative + overflow:hidden
   но img не растягивается — фиксируем */
@media (min-width: 576px) {
    .index-categories-item__link {
        display: block !important;
        min-height: 220px !important;
    }

    /* Контейнер картинки занимает всё пространство */
    .index-categories-item__image-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .index-categories-item__image-container picture {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Картинка заполняет всю карточку */
    .index-categories-item__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
        max-width: none !important;
    }
}

@media (min-width: 768px) {
    .index-categories-item__link {
        min-height: 260px !important;
    }
}

@media (min-width: 992px) {
    .index-categories-item__link {
        min-height: 300px !important;
    }
}

/* ══ 2. Популярные услуги: правильная высота картинок ══ */
.service-item {
    display: block !important;
    position: relative !important;
    min-height: 177px !important;
}

.service-item__image {
    width: 100% !important;
    height: 100% !important;
    min-height: 177px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

/* ══ 3. О салоне — убираем лишний margin у картинки ══ */
.index-advantages__image {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 16px !important;
}

/* ══ 4. WordPress глобально добавляет margin к img — убираем в блоках ══ */
.index-categories-item__image,
.index-popular .service-item__image,
.index-advantages__image,
.index-top-picture__image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}



/* ══ Программа лояльности ══ */

/* Hero */
.lp-hero {
    padding: 48px 0 40px;
}
.lp-hero__title {
    font-size: 40px;
    font-weight: 700;
    margin: 16px 0 12px;
    color: #1a1a1a;
}
.lp-hero__subtitle {
    font-size: 17px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}
.lp-wallets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-wallet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d9d3cc;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-wallet:hover { border-color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.lp-wallet img { width: 22px; height: auto; }

/* Карточки условий */
.lp-conditions {
    padding: 0 0 56px;
}
.lp-conditions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .lp-conditions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .lp-conditions__grid { grid-template-columns: 1fr; }
    .lp-hero__title { font-size: 28px; }
}
.lp-card {
    border-radius: 16px;
    padding: 24px 20px;
}
.lp-card--yellow { background: #fff8dc; }
.lp-card--green  { background: #e8f5e9; }
.lp-card--pink   { background: #fce4ec; }
.lp-card--beige  { background: #f5f0e8; }
.lp-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}
.lp-card__text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}
.lp-card__list {
    padding-left: 18px;
    margin: 0;
}
.lp-card__list li {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Уровни кешбэка */
.lp-cashback {
    background: #fdf8ee;
    padding: 64px 0;
    text-align: center;
}
.lp-cashback__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 40px;
    color: #1a1a1a;
}
.lp-cashback__wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-levels {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
    margin-bottom: 0;
    position: relative;
}
/* Линия между уровнями */
.lp-levels::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #d9d3cc;
    z-index: 0;
}
.lp-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.lp-level__percent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #f0ebe0;
    border: 2px solid #d9d3cc;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.lp-level:first-child .lp-level__percent {
    background: #f5c842;
    border-color: #f5c842;
}
.lp-level__name { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.lp-level__from { font-size: 12px; color: #999; }
.lp-cashback__bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f5c842;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
    margin-left: 32px;
    flex-shrink: 0;
}
.lp-cashback__bonus strong { font-size: 15px; display: block; margin-bottom: 2px; }
@media (max-width: 800px) {
    .lp-levels { gap: 24px; }
    .lp-levels::before { display: none; }
    .lp-cashback__wrap { flex-wrap: wrap; gap: 24px; }
    .lp-cashback__bonus { margin-left: 0; }
}
@media (max-width: 500px) {
    .lp-levels { flex-wrap: wrap; gap: 16px; }
    .lp-level { width: calc(50% - 8px); }
}

/* FAQ аккордеон */
.lp-faq {
    padding: 56px 0;
}
.lp-accordion {
    border-top: 1px solid #e5e0d8;
    margin-bottom: 40px;
}
.lp-accordion__item {
    border-bottom: 1px solid #e5e0d8;
}
.lp-accordion__btn {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}
.lp-accordion__icon {
    font-size: 22px;
    font-weight: 300;
    color: #c8a97e;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}
.lp-accordion__body {
    display: none;
    padding: 0 0 20px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}
.lp-accordion__item.is-open .lp-accordion__body { display: block; }

.lp-contact-note {
    background: #faf7f0;
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
.lp-contact-note a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
}
.lp-contact-note a:hover { text-decoration: underline; }
/* ═══════════════════════════════════════════════════════════════
   extra.css — дополнение к main.css из Bitrix
   ═══════════════════════════════════════════════════════════════ */

/* ══ 1. Воспитание и забота: картинки на всю карточку ══ */

/* На десктопе (≥576px) ссылка позиционируется relative + overflow:hidden
   но img не растягивается — фиксируем */
@media (min-width: 576px) {
    .index-categories-item__link {
        display: block !important;
        min-height: 220px !important;
    }

    /* Контейнер картинки занимает всё пространство */
    .index-categories-item__image-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .index-categories-item__image-container picture {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Картинка заполняет всю карточку */
    .index-categories-item__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
        max-width: none !important;
    }
}

@media (min-width: 768px) {
    .index-categories-item__link {
        min-height: 260px !important;
    }
}

@media (min-width: 992px) {
    .index-categories-item__link {
        min-height: 300px !important;
    }
}

/* ══ 2. Популярные услуги: правильная высота картинок ══ */
.service-item {
    display: block !important;
    position: relative !important;
    min-height: 177px !important;
}

.service-item__image {
    width: 100% !important;
    height: 100% !important;
    min-height: 177px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

/* ══ 3. О салоне — убираем лишний margin у картинки ══ */
.index-advantages__image {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 16px !important;
}

/* ══ 4. WordPress глобально добавляет margin к img — убираем в блоках ══ */
.index-categories-item__image,
.index-popular .service-item__image,
.index-advantages__image,
.index-top-picture__image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}



/* ══ Программа лояльности ══ */

/* Hero */
.lp-hero {
    padding: 48px 0 40px;
}
.lp-hero__title {
    font-size: 40px;
    font-weight: 700;
    margin: 16px 0 12px;
    color: #1a1a1a;
}
.lp-hero__subtitle {
    font-size: 17px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}
.lp-wallets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-wallet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d9d3cc;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-wallet:hover { border-color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.lp-wallet img { width: 22px; height: auto; }

/* Карточки условий */
.lp-conditions {
    padding: 0 0 56px;
}
.lp-conditions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .lp-conditions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .lp-conditions__grid { grid-template-columns: 1fr; }
    .lp-hero__title { font-size: 28px; }
}
.lp-card {
    border-radius: 16px;
    padding: 24px 20px;
}
.lp-card--yellow { background: #fff8dc; }
.lp-card--green  { background: #e8f5e9; }
.lp-card--pink   { background: #fce4ec; }
.lp-card--beige  { background: #f5f0e8; }
.lp-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}
.lp-card__text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}
.lp-card__list {
    padding-left: 18px;
    margin: 0;
}
.lp-card__list li {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Уровни кешбэка */
.lp-cashback {
    background: #fdf8ee;
    padding: 64px 0;
    text-align: center;
}
.lp-cashback__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 40px;
    color: #1a1a1a;
}
.lp-cashback__wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-levels {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
    margin-bottom: 0;
    position: relative;
}
/* Линия между уровнями */
.lp-levels::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #d9d3cc;
    z-index: 0;
}
.lp-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.lp-level__percent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #f0ebe0;
    border: 2px solid #d9d3cc;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.lp-level:first-child .lp-level__percent {
    background: #f5c842;
    border-color: #f5c842;
}
.lp-level__name { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.lp-level__from { font-size: 12px; color: #999; }
.lp-cashback__bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f5c842;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
    margin-left: 32px;
    flex-shrink: 0;
}
.lp-cashback__bonus strong { font-size: 15px; display: block; margin-bottom: 2px; }
@media (max-width: 800px) {
    .lp-levels { gap: 24px; }
    .lp-levels::before { display: none; }
    .lp-cashback__wrap { flex-wrap: wrap; gap: 24px; }
    .lp-cashback__bonus { margin-left: 0; }
}
@media (max-width: 500px) {
    .lp-levels { flex-wrap: wrap; gap: 16px; }
    .lp-level { width: calc(50% - 8px); }
}

/* FAQ аккордеон */
.lp-faq {
    padding: 56px 0;
}
.lp-accordion {
    border-top: 1px solid #e5e0d8;
    margin-bottom: 40px;
}
.lp-accordion__item {
    border-bottom: 1px solid #e5e0d8;
}
.lp-accordion__btn {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}
.lp-accordion__icon {
    font-size: 22px;
    font-weight: 300;
    color: #c8a97e;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}
.lp-accordion__body {
    display: none;
    padding: 0 0 20px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}
.lp-accordion__item.is-open .lp-accordion__body { display: block; }

.lp-contact-note {
    background: #faf7f0;
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
.lp-contact-note a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
}
.lp-contact-note a:hover { text-decoration: underline; }


/* ══ Мобильное меню — финальная версия ══ */

/* Скрываем меню по умолчанию */
.header__menu-mobile {
    display: none !important;
}

/* Показываем header__bottom когда меню открыто */
@media (max-width: 767.98px) {
    .header.-menu-open .header__bottom {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #fff !important;
        z-index: 9998 !important;
        overflow-y: auto !important;
        padding: 0 !important;
    }

    /* Скрываем десктопное меню внутри bottom */
    .header.-menu-open .header__bottom .header__menu:not(.header__menu-mobile .header__menu) {
        display: none !important;
    }

    /* Скрываем всё внутри header__bottom кроме мобильного меню */
    .header.-menu-open .header__bottom > .container > *:not(.header__menu-mobile) {
        display: none !important;
    }

    /* Показываем мобильное меню */
    .header.-menu-open .header__menu-mobile {
        display: block !important;
        padding: 70px 20px 40px !important;
    }
}


/* ══ СПА — порядок колонок на мобильных ══ */
/* На десктопе: картинка слева (order:1), текст справа (order:2) */
@media (min-width: 992px) {
    .spa-order-1 { order: 1; }
    .spa-order-2 { order: 2; }
}
/* На мобильных: сбрасываем order — HTML порядок: текст → картинка */
@media (max-width: 991.98px) {
    .spa-order-1 { order: unset; }
    .spa-order-2 { order: unset; }
}
