/* Блок с iframe формы заказа */
.form-section {
    margin-bottom: 80px;
}

iframe#frameOne {
    display: block;
    width: 100%;
    border: 0;
    transition: height 0.2s ease;
    height: 600px;
}

/* Блок "Консультация врача" */
.vrachi_n {
    margin-top: 130px;
    position: relative;
}

.vrachi_n p {
    font-size: 20px;
}

.vrachi_n .title {
    margin-bottom: 3rem;
}

.vrachi_n .slider_vrachi {
    margin-top: 40px;
    position: relative;
}

/* Не ломаем расчеты Owl: только оформление */
.vrachi_n .slider_vrachi .owl-stage-outer {
    overflow: hidden;
}

.vrachi_n .slider_vrachi .owl-item {
    display: flex;
    justify-content: center;
}

.vrachi_n .item {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    align-items: center;
    margin: 0 auto;
}

.vrachi_n .item img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 280px;
    max-height: 350px;
    object-fit: contain;
}

.vrachi_n .item .name {
    margin-top: 32px;
    padding: 0 20px;
    text-align: center;
    font-size: 22px;
    line-height: 24px;
    font-weight: 700;
}

.vrachi_n .item .status {
    padding: 0 20px;
    text-align: center;
    margin-top: 16px;
    font-weight: 300;
    line-height: 18px;
}

/* Навигация */
.vrachi_n .slider_vrachi .owl-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 180px;
    height: 40px;
    z-index: 10;
    pointer-events: none;
}

.vrachi_n .slider_vrachi .owl-nav button.owl-prev,
.vrachi_n .slider_vrachi .owl-nav button.owl-next {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6f1e81 !important;
    background-image: url(/local/templates/main/img/arrow-white.svg) !important;
    background-position: center !important;
    background-size: 30% !important;
    background-repeat: no-repeat !important;
    border: none;
    cursor: pointer;
    pointer-events: all;
    outline: none;
}

.vrachi_n .slider_vrachi .owl-nav button:hover {
    opacity: 0.8;
}

.vrachi_n .slider_vrachi .owl-nav .owl-next {
    right: -60px;
    rotate: 180deg;
}

.vrachi_n .slider_vrachi .owl-nav .owl-prev {
    left: -60px;
}

@media screen and (max-width: 776px) {
    .vrachi_n {
        margin-left: -15px;
        margin-right: -15px;
    }

    .vrachi_n .item img {
        max-width: 240px;
        max-height: 300px;
    }

    .vrachi_n .slider_vrachi .owl-nav {
        position: relative;
        top: 0;
        left: auto;
        right: auto;
        transform: none;
        height: 40px;
        margin-top: 20px;
    }

    .vrachi_n .slider_vrachi .owl-nav .owl-prev {
        left: 0;
    }

    .vrachi_n .slider_vrachi .owl-nav .owl-next {
        right: 0;
    }
}

@media screen and (max-width: 576px) {
    .vrachi_n .item img {
        max-width: 100%;
        max-height: 300px;
    }
}

/* Поведение подменю как на исходном сайте: скрыто до наведения */
.mobile_menu .submenu_wrapp {
    position: relative;
}

.mobile_menu .submenu_wrapp > a {
    padding-bottom: 10px;
}

.mobile_menu .submenu_wrapp .submenu {
    display: none;
    position: absolute;
    top: 40px;
    left: -10px;
    width: 250px;
    background: #fff;
    z-index: 99;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.mobile_menu .submenu_wrapp .submenu a {
    display: block;
    padding: 10px 15px;
}

@media (min-width: 1201px) {
    .mobile_menu .submenu_wrapp:hover .submenu {
        display: block;
    }
}

/* Пагинация новостей */
.news-pagination .pagination {
    flex-wrap: wrap;
    gap: 4px;
}

.news-pagination .page-link {
    border-radius: 4px !important;
    border: 1px solid #6f1e81;
    color: #6f1e81;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 600;
    margin-left: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-pagination .page-link:hover {
    background-color: #6f1e81;
    color: #fff;
    border-color: #6f1e81;
    opacity: 1;
}

.news-pagination .page-item.active .page-link {
    background-color: #6f1e81;
    border-color: #6f1e81;
    color: #fff;
    z-index: 1;
}

.news-pagination .page-item.disabled .page-link {
    color: #b192bd;
    border-color: #ddd;
    background-color: #fff;
    pointer-events: none;
}

.news-pagination .page-item:first-child .page-link,
.news-pagination .page-item:last-child .page-link {
    border-radius: 4px !important;
}

/* Изображение в детальной новости */
.news-detail-hero {
    margin: 0 auto 32px;
    max-width: 50%;
}

.news-detail-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* Кнопка в блоке "Как сдать генетический тест" */
.easy-start .wrapper-btn .btn-order-a-test {
    background: #702283;
    border-color: #702283;
    border-radius: 0;
    line-height: 23px;
    font-weight: 400;
    box-shadow: none;
}

.easy-start .wrapper-btn .btn-order-a-test:hover,
.easy-start .wrapper-btn .btn-order-a-test:focus {
    background: #702283;
    border-color: #702283;
    opacity: .7;
    box-shadow: none;
}

/* SEO-текст перед блоком Мнение эксперта */
.esli_vi_n {
    margin-top: 80px;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: .6px;
}

.esli_vi_n .title {
    margin-bottom: 3rem;
    font-size: 40px;
    font-weight: 700;
    line-height: 60px;
}

.esli_vi_n .read_more_text p,
.esli_vi_n .read_more_text li,
.esli_vi_n .read_more_text ul {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: .6px;
}

.esli_vi_n .read_more_text .mb38 {
    margin-bottom: 38px;
}

.esli_vi_n .read_more_text ul {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

/* Верхний блок детальной продукции */
.offer_n {
    margin-top: 45px;
}

.offer_n .title {
    margin-bottom: 50px;
}

.offer_n p {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: .44px;
}

.offer_n .btn {
    padding: 25px 75px;
}

.offer_n .rht {
    text-align: right;
}

.offer_n .rht img {
    width: 100%;
    max-width: 523px;
}

.offer_n .rht img.only_mobile,
.offer_n .only_mobile {
    display: none;
}

/* Блок "Вам нужен генетический тест" */
.budet_n {
    margin-top: 136px;
}

.budet_n .title {
    font-size: 40px;
    font-weight: 700;
    line-height: 60px;
}

.budet_n .items {
    margin-top: 3rem;
    margin-bottom: 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.budet_n .items .item {
    width: 48%;
    max-width: 607px;
    padding: 30px 12px;
    margin-bottom: 30px;
    background: #f2e8f6;
    border-radius: 13px;
    display: flex;
    align-items: center;
}

.budet_n .items .item img {
    width: 52px;
    max-width: 52px;
    margin: 10px;
}

.budet_n .items .item .txt {
    margin-left: 15px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: .44px;
}

.budet_n .items .item .txt p {
    margin-top: 10px;
}

.budet_n .btn {
    padding: 25px 70px;
}

@media screen and (max-width: 776px) {
    .esli_vi_n {
        margin-top: 80px;
        font-size: 20px;
        line-height: 33px;
    }

    .esli_vi_n .title {
        font-size: 32px;
        line-height: 45px;
    }

    .budet_n {
        margin-top: 60px;
    }

    .budet_n .title {
        font-size: 32px;
        line-height: 45px;
    }

    .budet_n .items {
        margin-top: 74px;
        margin-bottom: 43px;
    }

    .budet_n .items .item {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .budet_n .items .item .txt {
        font-size: 20px;
    }

    .budet_n .btn {
        padding: 18px 55px;
    }

    .offer_n {
        margin-top: 45px;
    }

    .offer_n .title {
        margin-bottom: 50px;
    }

    .offer_n p {
        font-size: 20px;
        line-height: 25px;
    }

    .offer_n .rht {
        margin: 50px 0;
    }

    .offer_n .rht img {
        display: none;
    }

    .offer_n .rht img.only_mobile,
    .offer_n .only_mobile {
        display: block;
    }

    .offer_n .btn {
        display: inline-block;
        padding: 18px 75px;
        margin-top: 40px;
    }

    .offer_n .hide_mobile {
        display: none;
    }
}

/* Блок "Мнение эксперта" в стиле исходного сайта */
.mnenie_exp_n .title {
    margin-bottom: 40px;
}

.mnenie_exp_n .slider_wrap {
    position: relative;
    background: #f4f4f4;
    padding: 50px;
    margin-top: 3rem;
}

.mnenie_exp_n .slider_exp {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Стили для owl-carousel в слайдере экспертов */
.mnenie_exp_n .slider_exp.owl-carousel {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
}

.mnenie_exp_n .slider_exp.owl-loaded {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
}

.mnenie_exp_n .slider_exp .owl-stage-outer {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    justify-content: center !important;
}

.mnenie_exp_n .slider_exp .owl-stage {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    transform: translate3d(0, 0, 0) !important;
}

.mnenie_exp_n .item {
    display: flex !important;
    align-items: flex-start;
    gap: 40px;
    height: 100%;
}

.mnenie_exp_n .item .lft {
    width: 350px;
    flex: 0 0 350px;
}

.mnenie_exp_n .item .lft img {
    width: 100%;
    height: auto;
    display: block;
}

.mnenie_exp_n .item .rht {
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mnenie_exp_n .item .top_wrap .stl {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 25px;
}

.mnenie_exp_n .only_mobile {
    display: none;
}

.mnenie_exp_n .item .top_wrap p {
    font-size: 20px;
    line-height: 1.55;
}

.mnenie_exp_n .item .bot_wrap {
    margin-top: auto;
    padding-top: 24px;
}

.mnenie_exp_n .item .bot_wrap p {
    font-size: 20px;
    line-height: 1.45;
    margin: 0;
}

.mnenie_exp_n > .btn.btn-order-a-test {
    margin-top: 24px;
}

@media (max-width: 991px) {
    .mnenie_exp_n .slider_wrap {
        height: auto;
        padding: 24px;
        margin-top: 1.5rem;
    }

    .mnenie_exp_n .item {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .mnenie_exp_n .item .lft {
        width: 100%;
        flex-basis: auto;
    }

    .mnenie_exp_n .item .top_wrap .stl {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .mnenie_exp_n .only_mobile {
        display: block;
    }

    .mnenie_exp_n .item .bot_wrap {
        display: none;
    }

    .mnenie_exp_n .item .top_wrap p,
    .mnenie_exp_n .item .bot_wrap p {
        font-size: 18px;
    }
}

/* отключаем клики по меню содержащим разделы */
@media (max-width: 1200px) {
    .submenu_wrapp {
        padding: 15px;
    }

    .mobile_menu .submenu_wrapp .submenu {
        top: 45px !important;
    }

    .submenu_wrapp > a:only-child {
        pointer-events: auto;
    }

    .submenu_wrapp > a {
        pointer-events: none;
        cursor: pointer;
        position: relative;
    }

    /* Индикатор подменю */
    .submenu_wrapp > a::after {
        content: " ▼";
        font-size: 10px;
        margin-left: 5px;
    }

    /* Стили для открытого состояния */
    .submenu_wrapp.active > a::after {
        content: " ▲";
    }

    .submenu_wrapp.active .submenu {
        display: block !important;
    }


    .offer_n h1.title {
        font-size: 32px;
        line-height: 45px;
    }

    .news-detail-hero {
        max-width: 100%;
    }
}

/* Скрываем иконки редактирования Bitrix в подвале (бит-шрифт, символ "ы") */
.footer .bx-no-mouse,
.footer .bx-area-start,
.footer span[class*="bx-"],
.footer a[class*="bx-"] {
    display: none !important;
    font-size: 0 !important;
}
