/**
 * Hero redesign — главная страница
 * Шрифт Vela Sans подключается в css/redesign/vela-sans.css
 */
:root {
    --hero-color-white: #ffffff;
    --Text-Text-0: #ffffff;
    --hero-color-brand: #b04481;
    --hero-color-brand-light: #f5e8ef;
    --hero-overlay: rgba(0, 0, 0, 0.24);
    --hero-slide-overlay: rgba(0, 0, 0, 0.24);
    --hero-container: 1500px;
    --hero-gutter: 16px;
    --hero-height: 920px;
    --hero-radius: 48px;
    --hero-font: 'Vela Sans', 'Onest', system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Hero section                                                        */
/* ------------------------------------------------------------------ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: var(--hero-height);
    min-height: var(--hero-height);
    margin-bottom: 0;
    overflow: visible;
    isolation: isolate;
    color: var(--hero-color-white);
    font-family: var(--hero-font);
    margin-bottom: 80px;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
    overflow: hidden;
}

.hero__overlay {
    display: none;
}

.hero .banners-big .slides > li.box::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: var(--hero-slide-overlay);
    pointer-events: none;
}

.hero .banners-big .slides > li.box .maxwidth-theme {
    position: relative;
    z-index: 2;
}

.hero .banners-big .slides > li.box > .target {
    pointer-events: none;
}

.hero .banners-big.front .item:not(.wvideo) .overlay {
    display: none !important;
}

.hero__header {
    position: relative;
    z-index: 2;
    width: 100%;
    background: transparent !important;
    border: none !important;
    overflow: visible;
}

.hero__header-mobile {
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.hero__inner {
    width: 100%;
    max-width: var(--hero-container);
    margin: 0 auto;
    padding: 0 var(--hero-gutter);
    box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Header (desktop)                                                    */
/* ------------------------------------------------------------------ */

.hero-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px var(--hero-gutter);
    box-sizing: border-box;
}

@media (min-width: 1533px) {
    .hero-header {
        padding-left: 0;
        padding-right: 0;
    }
}

.hero-header__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: var(--hero-container);
    margin: 0 auto;
}

.hero-header__contacts-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-header__address,
.hero-header__schedule-item {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--hero-color-white);
}

.hero-header__address [id^='bx_incl_area'] {
    display: inline !important;
}

.hero-header__schedule {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-header__contacts-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.hero-header__email {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--hero-color-white);
    text-decoration: none;
    white-space: nowrap;
}

.hero-header__email:hover {
    color: var(--hero-color-white);
    opacity: 0.85;
}

.hero-header__contacts-right > .social-icons {
    display: none !important;
}

.hero-header__contacts-right .as-phone-drop__link,
.hero-header__contacts-right a.as-phone-drop__link,
.hero-header__contacts-right a[href^="tel:"].as-phone-drop__link {
    color: var(--Text-Text-0, #ffffff);
    font-family: 'Vela Sans', var(--hero-font), 'Onest', system-ui, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}

.hero-header__contacts-right .as-phone-drop__link:hover,
.hero-header__contacts-right .as-phone-drop__link:focus {
    color: var(--Text-Text-0, #ffffff);
    opacity: 0.85;
}

.hero-header__phone-block {
    display: none;
}

.hero-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hero-header__phone-link {
    color: var(--hero-color-white);
    font-family: var(--hero-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.hero-header__phone-link:hover {
    color: var(--hero-color-white);
    opacity: 0.85;
}

.hero-header__phone-chevron {
    display: inline-block;
    width: 24px;
    height: 24px;
    opacity: 0.6;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 10L12 14L16 10' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-header__phone .phone-block,
.hero-header__phone .svg,
.hero-header__phone svg {
    display: none !important;
}

.hero-header__nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: var(--hero-container);
    margin: 0 auto;
}

.hero-header__logo {
    flex: 0 0 auto;
}

.hero__menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}

.hero__menu-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    max-width: 100%;
    overflow: visible;
}

.hero__menu-item {
    flex: 0 0 auto;
}

.hero__menu-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-family: var(--hero-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    color: var(--hero-color-white);
    text-decoration: none;
    opacity: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.hero__menu-item:not(.is-active) > a {
    opacity: 0.85;
}

.hero__menu-item > a:hover,
.hero__menu-item.is-active > a {
    opacity: 1;
    color: var(--hero-color-white);
}

.hero-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--hero-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.hero-header__btn:hover {
    opacity: 0.9;
    color: #B04481;
    background: #F1DDE8;
    text-decoration: none;
}

.hero-header__btn--secondary {
    width: 200px;
    min-width: 200px;
    height: 48px;
    padding: 12px 24px;
    background: var(--hero-color-brand-light);
    color: var(--hero-color-brand);
}

.hero-header__btn--icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--hero-color-brand-light);
    color: var(--hero-color-brand);
}

.hero-header__btn--icon svg,
.hero-header__btn--icon .svg {
    width: 20px;
    height: 20px;
    fill: none;
}

.hero-header__btn--icon svg path {
    fill: none;
}

.hero-header__search-icon {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
}

.hero-header__search-icon path {
    fill: none;
}

.hero-header__btn--icon .title {
    display: none;
}

.hero-header__logo-link {
    display: inline-flex;
    align-items: center;
}

.hero-header__logo-link img {
    height: 66px;
    width: auto;
    display: block;
}

.hero-header ul,
.hero__menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-header ul li,
.hero__menu-item {
    margin: 0;
    list-style: none;
}

.hero-header ul li:before,
.hero__menu-list li:before,
.hero__menu-item:before {
    display: none !important;
    content: none !important;
}

.hero-header__actions .inline-search-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 12px;
    margin: 0;
    border: none;
    background: var(--hero-color-brand-light);
    border-radius: 8px;
}

.hero-header__actions .inline-search-show .title {
    display: none !important;
}

.hero-header__actions .inline-search-show .svg,
.hero-header__actions .inline-search-show .svg-search {
    display: block;
    margin: 0;
    opacity: 1 !important;
    background: none !important;
    width: 24px;
    height: 24px;
}

.hero-header__actions .inline-search-show .svg path,
.hero-header__actions .inline-search-show .svg-search path {
    fill: none;
}

/* Mobile header — см. mobile-header.css */

/* ------------------------------------------------------------------ */
/* Banner inside hero                                                  */
/* ------------------------------------------------------------------ */

.hero .banners-big {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding-bottom: 24px;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
    overflow: hidden;
}

.hero .banners-big .flexslider {
    border: 0;
    box-shadow: none;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0;
}

.hero .banners-big .flex-viewport {
    overflow: hidden !important;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    border-radius: 0;
}

.hero .banners-big .flex-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.hero .banners-big .flexslider .slides > li.box {
    margin-right: 0 !important;
}

.hero .banners-big .maxwidth-banner,
.hero .banners-big .flexslider,
.hero .banners-big .flexslider .slides,
.hero .banners-big .slides > li.box {
    height: var(--hero-height) !important;
    min-height: var(--hero-height);
}

.hero .banners-big,
.hero .banners-big .maxwidth-banner,
.hero .banners-big .flexslider,
.hero .banners-big .flexslider .slides {
    width: 100%;
    max-width: none !important;
    margin: 0;
}

body.fill_bg_y .hero .banners-big .maxwidth-banner {
    max-width: none !important;
    background: transparent;
}

.hero .banners-big .slides > li.box {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
    overflow: hidden;
}

.hero .banners-big .slides > li.box.hero-slide--has-mobile-bg {
    background-image: var(--hero-bg-desktop) !important;
    background-repeat: no-repeat !important;
}

.hero .banners-big .slides > li.box.hero-slide--has-video .hero-slide__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.hero .banners-big .slides > li.box.hero-slide--has-video .hero-slide__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
@media (max-width: 1199px) {
    .hero{
        margin-bottom: 60px;
    }
}
@media (min-width: 576px) {
    .hero .banners-big .slides > li.box.hero-slide--has-video {
        background-image: none !important;
    }

    .hero .banners-big .slides > li.box.hero-slide--has-video .hero-slide__video-wrap {
        display: block;
    }
}

@media (max-width: 575px) {
    .hero .banners-big .slides > li.box.hero-slide--has-video .hero-slide__video-wrap {
        display: none;
    }
    .hero{
        margin-bottom: 40px;
    }
}

.hero .banners-big .flexslider .slides {
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
}

.hero .banners-big .maxwidth-theme {
    position: relative;
    width: 100%;
    max-width: var(--hero-container);
    margin: 0 auto;
    padding: 0 var(--hero-gutter) 64px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (min-width: 1533px) {
    .hero .banners-big .maxwidth-theme {
        padding-left: 0;
        padding-right: 0;
    }
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 887px;
    padding-bottom: 48px;
}

.hero .banners-big .section {
    display: none !important;
}

.hero .banners-big .hero-slide__content .title {
    margin: 0 0 32px;
    font-family: var(--hero-font);
    font-size: 72px;
    font-weight: 600;
    line-height: 80px;
    color: var(--hero-color-white);
}

.hero .banners-big .hero-slide__content .text-block {
    max-width: 777px;
    margin: 0 0 48px;
    font-family: var(--hero-font);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    color: var(--hero-color-white);
    opacity: 0.9;
}

.hero .banners-big .hero-slide__content .buttons {
    margin: 0;
}

.hero .banners-big .slides .btn.hero-slide__btn,
.hero .banners-big .hero-slide__btn {
    position: relative;
    z-index: 3;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: 255px;
    max-width: 100%;
    height: 52px;
    margin: 0;
    padding: 14px 20px 14px 24px;
    border: none;
    border-radius: 10px;
    background: #b04481;
    font-family: var(--hero-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: normal;
    text-transform: none;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.hero .banners-big .hero-slide__btn-text {
    display: block;
    flex: none;
    font: inherit;
    line-height: 24px;
    color: inherit;
}

.hero .banners-big .hero-slide__btn-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 0;
    color: #ffffff;
}

.hero .banners-big .hero-slide__btn-icon svg {
    display: block;
    width: 9px;
    height: 9px;
}

.hero .banners-big .slides .btn.hero-slide__btn:hover,
.hero .banners-big .hero-slide__btn:hover {
    background: var(--redesign-color-brand-hover, #9a3a70);
    color: #ffffff;
}

.hero .banners-big .hero-slide__btn--secondary .hero-slide__btn-icon {
    display: none;
}

.hero .banners-big .flex-control-nav li:before {
    display: none !important;
    content: none !important;
}

.hero .banners-big .row {
    margin: 0;
}

.hero .banners-big .col-md-6.img,
.hero .banners-big .col-md-3:not(.text) {
    display: none;
}

.hero .banners-big .col-md-6.text,
.hero .banners-big .col-md-6:first-child.text {
    width: 100%;
    max-width: 887px;
    padding: 0;
    float: none;
}

.hero .banners-big .inner {
    padding: 0;
}

.hero .banners-big .title {
    margin: 0 0 32px;
    font-family: var(--hero-font);
    font-size: 72px;
    font-weight: 600;
    line-height: 80px;
    color: var(--hero-color-white);
}

.hero .banners-big .text-block {
    max-width: 777px;
    margin: 0 0 48px;
    font-family: var(--hero-font);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    color: var(--hero-color-white);
    opacity: 0.9;
}

.hero .banners-big .text-block p {
    margin: 0;
    color: inherit;
}

.hero .banners-big .buttons {
    margin: 0;
}

.hero .banners-big .nav-carousel {
    display: none;
}

.hero .banners-big .flex-control-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: var(--hero-container);
    margin: 0;
    padding: 0 var(--hero-gutter);
    box-sizing: border-box;
    transform: translateX(-50%);
}

@media (min-width: 1533px) {
    .hero .banners-big .flex-control-nav {
        padding-left: 0;
        padding-right: 0;
    }
}

.hero .banners-big .flex-control-nav li {
    margin: 0 !important;
    padding: 0;
}

.hero .banners-big .flex-control-paging li {
    margin: 0 !important;
}

.hero .banners-big .flex-control-paging li a {
    display: block;
    position: relative;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    background: #ffffff !important;
    opacity: 0.4;
    box-shadow: none;
    text-indent: -9999px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.hero .banners-big .flex-control-paging li a::before {
    display: none !important;
    content: none !important;
}

.hero .banners-big .flex-control-paging li a:hover {
    background: #ffffff !important;
    opacity: 0.4;
}

.hero .banners-big .flex-control-paging li a.flex-active,
.hero .banners-big .flex-control-paging li a.flex-active:hover {
    background: #ffffff !important;
    opacity: 1;
}

/* Index page: transparent header over banner (no clip artifacts) */
body.in_index .hero .hero__header,
body.in_index .hero .header_wrap,
body.in_index .hero header.hero-header,
body.in_index .hero .header-v12,
body.in_index .hero header:not(.sticky-header__bar) {
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.in_index .hero .logo_and_menu-row,
body.in_index .hero .menu-row {
    background: transparent !important;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1199px) {
    :root {
        --hero-height: 720px;
    }

    .hero .banners-big .title {
        font-size: 52px;
        line-height: 58px;
    }

    .hero .banners-big .text-block {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-header__nav-row {
        gap: 32px;
    }

    .hero__menu-item > a {
        font-size: 16px;
        padding: 0 10px;
    }
}

@media (max-width: 991px) {
    :root {
        --hero-height: 560px;
        --hero-radius: 32px;
    }

    .hero .banners-big .title {
        font-size: 36px;
        line-height: 42px;
        margin-bottom: 16px;
    }

    .hero .banners-big .text-block {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 24px;
    }

    .hero .banners-big .maxwidth-theme {
        padding-bottom: 48px;
    }

    .hero .banners-big .slides .btn.hero-slide__btn,
    .hero .banners-big .hero-slide__btn {
        width: auto;
        min-width: 0;
        height: 48px;
        font-size: 16px;
    }

    /* Баннер сразу под мобильной шапкой, высота слайда — var(--hero-height) */
    body.in_index .hero {
        display: grid;
        grid-template-rows: auto var(--hero-height);
        height: auto;
        min-height: 0;
    }

    body.in_index .hero .hero__header-mobile {
        grid-row: 1;
    }

    body.in_index .hero .hero__media {
        position: relative;
        grid-row: 2;
        inset: auto;
        height: var(--hero-height);
        min-height: var(--hero-height);
        z-index: 0;
    }

    body.in_index .hero .banners-big {
        inset: 0;
        height: 100%;
        min-height: 100%;
    }
}

.hero-header__btn.top-btn {
    background: var(--hero-color-brand-light);
    color: var(--hero-color-brand);
}

.hero-header__btn.top-btn .svg svg,
.hero-header__btn.top-btn svg {
    fill: none;
}

.hero-header__btn.top-btn svg path {
    fill: none;
}

body.in_index .hero .header_wrap {
    position: relative;
    z-index: 2;
}
