/* Новогодний венок вокруг логотипа */
.home-hero__logo {
    overflow: visible;
    pointer-events: none;
}

.home-hero__logo::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: url("../images/newyear-wreath.png") center / contain no-repeat;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-width: 961px) {
    #masthead #header-menu-row {
        position: relative;
        overflow: visible;
    }

    #masthead #header-menu-row::before {
        content: "";
        position: absolute;
        z-index: 5;
        top: -45px;
        left: -35px;
        right: -35px;
        height: 90px;
        background: url("../images/newyear-menu-garland-v2.png?v=3") center / 100% auto no-repeat;
        pointer-events: none;
    }
}

/* Шапка на правом верхнем углу фотографии клиники */
.home-advantages .advantages__part--right {
    position: relative;
    overflow: visible;
}

.home-advantages .advantages__part--right::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -70px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: url("../images/newyear-blue-hat.png") center / contain no-repeat;
    transform: rotate(22deg);
    pointer-events: none;
}

@media (max-width: 767px) {
    .home-advantages .advantages__part--right::after {
        width: 80px;
        height: 80px;
        top: -50px;
        right: -4px;
    }
}

/* BEGIN: Milar Clinic — новогодний сертификат.
 * Добавить в конец css/newyear.css. PHP и основной CSS не менять.
 * Изображение: images/newyear-certificate-corner-v2.png.
 * Для возврата оформления удалить только этот блок.
 */
.certificate-offer .certificate-offer__inner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
    min-height: 260px;
    padding: 46px 48px 46px 60px;
    overflow: hidden;
    border: 1px solid rgba(196, 226, 255, .25);
    border-radius: 28px;
    background:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22300%22%20viewBox%3D%220%200%20600%20300%22%3E%3Cdefs%3E%3Cg%20id%3D%22s%22%20fill%3D%22none%22%20stroke%3D%22%23d8ecff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-12V12M-10.4%20-6L10.4%206M-10.4%206L10.4%20-6M-3%20-8L0%20-5L3%20-8M-3%208L0%205L3%208M-8.4%20-1L-4.3%20-2.5L-5.4%20-6.2M8.4%201L4.3%202.5L5.4%206.2M-8.4%201L-4.3%202.5L-5.4%206.2M8.4%20-1L4.3%20-2.5L5.4%20-6.2%22%2F%3E%3C%2Fg%3E%3C%2Fdefs%3E%3Cg%20opacity%3D%22.18%22%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28290%2030%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28480%2065%29%20scale%28.8%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28355%20270%29%20scale%281.3%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28575%20220%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28110%20230%29%20scale%28.7%29%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23e7f4ff%22%20opacity%3D%22.32%22%3E%3Ccircle%20cx%3D%22220%22%20cy%3D%2255%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%22400%22%20cy%3D%2224%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22540%22%20cy%3D%22130%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22220%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22185%22%20cy%3D%22285%22%20r%3D%221.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 600px 300px repeat,
        radial-gradient(circle at 27% 100%, rgba(119, 180, 234, .25), transparent 42%),
        radial-gradient(circle at 92% 0%, rgba(61, 125, 186, .22), transparent 40%),
        linear-gradient(115deg, #123c65 0%, #082b50 48%, #071e3c 100%);
    box-shadow: 0 18px 40px rgba(7, 37, 69, .14);
    color: #fff;
}

.certificate-offer .certificate-offer__decor {
    display: none;
}

.certificate-offer .certificate-offer__inner::before,
.certificate-offer .certificate-offer__inner::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 310px;
    height: 310px;
    background: url("../images/newyear-certificate-corner-v2.png") center / contain no-repeat;
    pointer-events: none;
}

.certificate-offer .certificate-offer__inner::before {
    top: 0;
    left: 0;
}

.certificate-offer .certificate-offer__inner::after {
    top: auto;
    right: -10px;
    bottom: -10px;

    background-image:
        url("../images/newyear-certificate-bottom-right.png");

    transform: none;
}

.certificate-offer .certificate-offer__badge,
.certificate-offer .certificate-offer__content,
.certificate-offer .certificate-offer__button {
    position: relative;
    z-index: 1;
    min-width: 0;
    box-sizing: border-box;
}

.certificate-offer .certificate-offer__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 170px;
    height: 136px;
    padding: 20px 12px;
    margin: 18px 0 0;
    border: 1px solid rgba(226, 243, 255, .8);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(225, 241, 255, .42), rgba(175, 211, 246, .24));
    box-shadow: inset 0 0 18px rgba(221, 243, 255, .18), 0 9px 22px rgba(0, 10, 32, .2);
    transform: rotate(-6deg);
    text-align: center;
    color: #fff;
}

.certificate-offer .certificate-offer__badge-label {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #eef7ff;
}

.certificate-offer .certificate-offer__badge-value {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.certificate-offer .certificate-offer__content {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.certificate-offer .certificate-offer__eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d6e9fa;
}

.certificate-offer .certificate-offer__title {
    margin: 0 0 14px;
    font-size: clamp(28px, 2.3vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
}

.certificate-offer .certificate-offer__text {
    max-width: 640px;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #e0edf8;
}

.certificate-offer .certificate-offer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: auto;
    max-width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 17px 26px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(0, 14, 43, .15);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    color: #014a8d;
    cursor: pointer;
    transition: background .4s ease, box-shadow .4s ease;
}

@media (hover: hover) {
    .certificate-offer .certificate-offer__button:hover {
        background: #e8f3ff;
        color: #014a8d;
        box-shadow: 0 9px 26px rgba(0, 14, 43, .25);
    }
}

.certificate-offer .certificate-offer__button:focus-visible {
    outline: 3px solid #c0e4ff;
    outline-offset: 5px;
}

@media (max-width: 1199px) {
    .certificate-offer .certificate-offer__inner {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 28px;
        padding: 42px 36px;
    }

    .certificate-offer .certificate-offer__badge {
        width: 160px;
        height: 130px;
    }

    .certificate-offer .certificate-offer__button {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
    }

    .certificate-offer .certificate-offer__title {
        font-size: 30px;
    }

    .certificate-offer .certificate-offer__inner::before,
    .certificate-offer .certificate-offer__inner::after {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .certificate-offer .certificate-offer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 34px 24px 30px;
        border-radius: 24px;
    }

    .certificate-offer .certificate-offer__badge {
        justify-self: center;
        width: 152px;
        height: 118px;
        margin: 24px 0 12px;
        gap: 10px;
    }

    .certificate-offer .certificate-offer__badge-value {
        font-size: 32px;
    }

    .certificate-offer .certificate-offer__eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .certificate-offer .certificate-offer__title {
        font-size: clamp(25px, 6.4vw, 32px);
        line-height: 1.18;
    }

    .certificate-offer .certificate-offer__text {
        font-size: 16px;
        line-height: 1.5;
    }

    .certificate-offer .certificate-offer__button {
        min-height: 56px;
        padding: 15px 16px;
        font-size: 15px;
    }

    .certificate-offer .certificate-offer__inner::before {
        width: 210px;
        height: 210px;
        top: 0;
        left: 0;
    }

    .certificate-offer .certificate-offer__inner::after {
        width: 155px;
        height: 155px;
        top: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .certificate-offer .certificate-offer__button {
        transition: none;
    }
}
/* END: Milar Clinic — новогодний сертификат. */



/* BEGIN: новогоднее оформление промослайдера Milar Clinic.
 * Добавить в конец css/newyear.css. Разметку и исходные стили сохранить.
 * Используются уже загруженные images/newyear-certificate-corner-v2.png
 * и images/newyear-certificate-bottom-right.png.
 */
.home-promo .home-promo__card {
    --ny-promo-snow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22300%22%20viewBox%3D%220%200%20600%20300%22%3E%3Cdefs%3E%3Cg%20id%3D%22s%22%20fill%3D%22none%22%20stroke%3D%22%23d8ecff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-12V12M-10.4%20-6L10.4%206M-10.4%206L10.4%20-6M-3%20-8L0%20-5L3%20-8M-3%208L0%205L3%208M-8.4%20-1L-4.3%20-2.5L-5.4%20-6.2M8.4%201L4.3%202.5L5.4%206.2M-8.4%201L-4.3%202.5L-5.4%206.2M8.4%20-1L4.3%20-2.5L5.4%20-6.2%22%2F%3E%3C%2Fg%3E%3C%2Fdefs%3E%3Cg%20opacity%3D%22.18%22%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28290%2030%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28480%2065%29%20scale%28.8%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28355%20270%29%20scale%281.3%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28575%20220%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28110%20230%29%20scale%28.7%29%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23e7f4ff%22%20opacity%3D%22.32%22%3E%3Ccircle%20cx%3D%22220%22%20cy%3D%2255%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%22400%22%20cy%3D%2224%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22540%22%20cy%3D%22130%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22220%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22185%22%20cy%3D%22285%22%20r%3D%221.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --ny-promo-snow-light: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22300%22%20viewBox%3D%220%200%20600%20300%22%3E%3Cdefs%3E%3Cg%20id%3D%22s%22%20fill%3D%22none%22%20stroke%3D%22%237aa2c4%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%20-12V12M-10.4%20-6L10.4%206M-10.4%206L10.4%20-6M-3%20-8L0%20-5L3%20-8M-3%208L0%205L3%208M-8.4%20-1L-4.3%20-2.5L-5.4%20-6.2M8.4%201L4.3%202.5L5.4%206.2M-8.4%201L-4.3%202.5L-5.4%206.2M8.4%20-1L4.3%20-2.5L5.4%20-6.2%22%2F%3E%3C%2Fg%3E%3C%2Fdefs%3E%3Cg%20opacity%3D%22.48%22%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28290%2030%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28480%2065%29%20scale%28.8%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28355%20270%29%20scale%281.3%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28575%20220%29%22%2F%3E%3Cuse%20href%3D%22%23s%22%20transform%3D%22translate%28110%20230%29%20scale%28.7%29%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%2380aacb%22%20opacity%3D%22.45%22%3E%3Ccircle%20cx%3D%22220%22%20cy%3D%2255%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%22400%22%20cy%3D%2224%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22540%22%20cy%3D%22130%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22220%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22185%22%20cy%3D%22285%22%20r%3D%221.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.home-promo .home-promo__decor {
    display: none;
}

/* Программа лояльности: снег и мягкие огоньки. */
.home-promo .home-promo__card--blue {
    background:
        var(--ny-promo-snow) center / 600px 300px repeat,
        radial-gradient(circle at 2% 88%, rgba(255, 219, 159, .65) 0 3px, rgba(255, 219, 159, .17) 7px, transparent 17px),
        radial-gradient(circle at 7% 95%, rgba(255, 238, 203, .55) 0 4px, rgba(255, 219, 159, .12) 10px, transparent 22px),
        radial-gradient(circle at 96% 7%, rgba(255, 237, 192, .60) 0 3px, rgba(255, 219, 159, .14) 8px, transparent 19px),
        radial-gradient(circle at 99% 17%, rgba(255, 233, 189, .5) 0 5px, rgba(255, 219, 159, .12) 11px, transparent 24px),
        linear-gradient(115deg, #064879 0%, #0868a8 52%, #72acd5 100%);
}

.home-promo .home-promo__card--blue .home-promo__feature-icon {
    color: #fff;
    border-color: rgba(232, 246, 255, .75);
    background: rgba(0, 58, 112, .38);
}

.home-promo .home-promo__card--blue .home-promo__qr {
    background: #fff;
}

/* Верхний правый угол лояльности. Декор ниже контента и QR. */
.home-promo .home-promo__card--blue::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 170px;
    height: 170px;
    background: url("../images/newyear-certificate-corner-v2.png") center / contain no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
}

/* Сертификаты: ледяной фон и хвоя за исходным изображением. */
.home-promo .home-promo__card--cream {
    background:
        url("../images/newyear-certificate-bottom-right.png") right 0 bottom -36px / 270px 270px no-repeat,
        radial-gradient(circle at 58% 8%, #fff 0 2px, rgba(255,255,255,.25) 8px, transparent 18px),
        radial-gradient(circle at 8% 92%, #fff 0 3px, rgba(255,255,255,.35) 10px, transparent 23px),
        var(--ny-promo-snow-light) center / 600px 300px repeat,
        linear-gradient(115deg, #f8fcff 0%, #e9f3fb 52%, #dcebf6 100%);
    box-shadow: inset 0 0 0 1px rgba(1, 74, 141, .10);
}

.home-promo .home-promo__card--cream .home-promo__eyebrow,
.home-promo .home-promo__card--cream .home-promo__title {
    color: #014a8d;
}

.home-promo .home-promo__card--cream .home-promo__text {
    color: #263d50;
}

.home-promo .home-promo__card--cream .home-promo__picture {
    background: transparent;
}

.home-promo .home-promo__card--cream .home-promo__picture img {
    filter: drop-shadow(0 12px 15px rgba(16, 58, 93, .12));
}

.home-promo .home-promo__card--cream .home-promo__button {
    background: #014a8d;
    color: #fff !important;
}

.home-promo .home-promo__card--cream .home-promo__button:hover {
    background: #003b72;
}

/* Мужской слайд: лёгкие снежинки только под текстовой частью.
 * Фотография и существующее плавное соединение фонов сохранены.
 */
.home-promo .home-promo__card--photo .home-promo__content {
    background: var(--ny-promo-snow-light) left top / 540px 270px repeat;
}

.home-promo .home-promo__card--photo .home-promo__eyebrow {
    color: #014a8d;
}

/* Сетка, высота карточек, фото и порядок элементов остаются исходными. */
@media (max-width: 767px) {
    .home-promo .home-promo__card--blue::after {
        width: 92px;
        height: 92px;
        top: -12px;
        right: -18px;
    }

    .home-promo .home-promo__card--blue {
        background-size:
            460px 230px, auto, auto, auto, auto, auto;
    }

    .home-promo .home-promo__card--cream {
        background:
            url("../images/newyear-certificate-bottom-right.png") right 0 bottom -20px / 155px 155px no-repeat,
            url("../images/newyear-certificate-corner-v2.png") left top / 100px 100px no-repeat,
            var(--ny-promo-snow-light) center / 460px 230px repeat,
            linear-gradient(155deg, #f8fcff 0%, #eaf4fc 56%, #dcebf6 100%);
    }

    .home-promo .home-promo__card--photo .home-promo__content {
        background-size: 460px 230px;
    }
}
/* END: новогоднее оформление промослайдера. */



/* BEGIN: новогодний декор главных баннеров.
 * Добавить в конец css/newyear.css.
 * Новая картинка: images/newyear-hero-corner.png.
 * Гирлянда использует уже загруженный newyear-menu-garland-v2.png.
 */

/* Внешние нижние углы: ПК, планшет и телефон. */
.home-hero .home-hero__item::before {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: -10px;
    width: 175px;
    height: 175px;
    background: url("../images/newyear-hero-corner.png") center / contain no-repeat;
    pointer-events: none;
}

.home-hero .home-hero__item--cosmetology::before {
    left: -10px;
    right: auto;
    transform: scaleX(-1);
}

.home-hero .home-hero__item--dentistry::before {
    right: -10px;
    left: auto;
    transform: none;
}

/* Гирлянда в обычном потоке: отдельная полоса над баннерами.
 * Более точный селектор защищает от padding-top в стилях страницы.
 * Телефон — мобильная картинка; планшет — более тонкая широкая.
 */
@media (max-width: 960px) {
    .home-hero.home-hero {
        display: block;
        position: relative;
        margin-top: 0;
        padding-top: 0;
    }

    .home-hero.home-hero::before {
        content: "";
        display: block;
        position: static;
        width: 100%;
        height: 56px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background: url("../images/newyear-menu-garland-v2.png?v=3") center / 100% auto no-repeat;
        transform: none;
        pointer-events: none;
    }
}

@media (max-width: 960px) {
    .home-hero.home-hero::before {
        height: 100px;
        background-image: url("../images/newyear-mobile-garland.png");
    }
}

@media (max-width: 575px) {
    .home-hero.home-hero::before {
        height: 55px;
        background-image: url("../images/newyear-mobile-garland.png");
    }
}

@media (max-width: 767px) {
    .home-hero .home-hero__item::before {
        width: 120px;
        height: 120px;
        bottom: -12px;
    }

    .home-hero .home-hero__item--cosmetology::before {
        left: -8px;
    }

    .home-hero .home-hero__item--dentistry::before {
        right: -8px;
    }
}
/* END: новогодний декор главных баннеров. */

