@media(min-width: 1024px){
    .mainpage__title {
        font-size: var(--title-top-desc);
    }
.section--articlesPage {
    margin-bottom: 60px;
}
.section.section--middleForm.section--blue { padding: 10px; padding-left: 30px; }
.section.section--middleForm.section--blue .container { padding: 0; }
.filters::after { bottom: -40px; }
        .form__agree {
            align-items: flex-start;
        }
/* main area */
.article__text ol li::before, .authorsAndSources ol li::before { background-color: var(--gray-color); }
.sources ol { display: flex; flex-direction: column; gap: 15px; padding-left: 30px; margin-block-start: 16px; margin-block-end: 16px; }
.article__text h2 { font-size: var(--title-second-desc); }
.article__text h3 { font-size: var(--title-third-desc); }
.section.section--article .container { display: flex; flex-direction: row; gap: 40px; align-items: flex-start; }
.article__text { width: 100%; }
.articleNavigation { width: 500px; min-width: 30%; }
.articleNavigation__list { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.section.section--article.section--gray { padding: 70px 0px; }
.otherServices { display: grid; grid-template-columns: repeat(3, 1fr); }
.otherServices__item { padding: 30px; min-height: 200px; }
.section.section--article { background-color: transparent; }
.section.section--article .container{ background-color: var(--gray-color); border-radius: 60px; padding: 60px; justify-content: space-between;}
.authorsAndSources { display: flex; flex-direction: row; align-items: flex-start; gap: 40px; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 30px;}
.article__text { max-width: calc(100% - 500px); width: 70%; }
.section.section--article.last-article-block .container { flex-direction: column; }
.howWork .rehubBanner__list .swiper-wrapper { display: flex; align-items: stretch; }
.howWork .rehubBanner__list .swiper-wrapper .swiper-slide { height: unset !important; }
.howWork .rehubBanner__bottom { margin-top: auto; }
.howWork { padding: 70px 0; }
.section.section--revs .swiper-navigation.swiper-navigation--panel { margin: auto; margin-top: 40px; }
/*.section.section--article .container { display: flex; flex-direction: column-reverse; gap: 30px; }*/
.articlesPage__filters.filters > * { flex-basis: 33%; }
.articlesPage__filters.filters { display: flex; flex-direction: row; align-items: stretch; width: 100%;}
.filter__panel { height: 60px; box-sizing: border-box; }
.filter__search { padding: 2px; background-color: var(--gray-color); border-radius: 10px; }
.articlesPage__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.section.section--article .container.container--reverse { flex-direction: row; }
.articlePage .mainpage__detailes { align-items: stretch; display: flex; flex-direction: row; padding-bottom: 80px; }
.articlePage .mainpage__authorblock { max-width: 450px; }
.articlesPage__date, .articlesPage__name, .articlesPage__description { padding: 0 30px; }
.articlesPage__item { gap: 20px; }
.articlesPage__item.hide { display: none; }
.articlesPage__item:hover .articlesPage__name { color: var(--accent-color); }
.articlesPage { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.articlesPage .btn.articlesPage__more { margin: auto; margin-top: 40px; width: fit-content; }

/* sidebar */
.sidebar { width: 500px; max-width: 30%; }
.sidebar__title { font-size: 24px; text-align: left; }
.sidebar__subtitle { text-align: left; }
.sidebar__item:first-child { gap: 20px; }
.mainPage .article__text.active { max-height: 2000px; }
.mainPage .article__text { max-height: 900px; overflow: hidden; transition: 0.7s ease-in-out; }
.article__more { position: absolute; bottom: 0; left: 50%; transform: translatex(-50%); }
.articlePage .mainpage__bottomblock { margin-top: auto; flex-direction: row; gap: 10px; justify-content: space-between; }
.articlePage .sidebar.sidebar--article, .articlePage  .sidebar.sidebar--aftertext, .articlePage .articleSidebar__item.articleNavigation { width: 100%; max-width: 100%; }
.articleSidebar { width: 500px; max-width: 30%; display: flex; flex-direction: column; gap: 20px; }
.alert { width: 40px; background-color: var(--gray-color); min-width: 40px; box-sizing: border-box; padding: 10px; display: flex; flex-direction: row; align-items: center; justify-content: center; border-radius: 20px; }
.articlePage .articleSidebar .sidebar.sidebar--aftertext { display: flex; flex-direction: row; align-items: stretch; gap: 20px; background-color: var(--white-color); padding: 20px; border-radius: 26px; box-sizing: border-box; }
.articlePage .articleSidebar .sidebar__aftertext { font-size: var(--small-text-desc); }
.articlePage .articleSidebar .articleSidebar__item:last-child { display: flex; flex-direction: column; gap: 20px; }
.articlePage .author__caption { width: fit-content; }

/* popup */
.popup__content { width: 600px; padding: 52px; }
.popup__title { font-size: var(--title-third-desc); }
.form__btn .btn { font-size: var(--low-text-desc); width: fit-content; padding: 5px 5px 5px 25px; }
.form__agree { align-items: center; }
.form-popup.popup.form-search .popup__content { width: 1000px; }
.popup__search-cityList.cityList { display: grid; grid-template-columns: repeat(3, 1fr); }
.popup__search-cityList.cityList > * { max-height: 380px; overflow: auto; }
.cityList__column::before { display: none; }
.cityList__column { border-image: linear-gradient(180deg, rgba(0, 5, 8, 0) 0%, rgba(60, 143, 206, 0.26) 49%, rgba(60, 143, 206, 0) 100%); border-image-slice: 1; border-right: 1px white solid; }
.cityList__column::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cityList__litera { font-size: var(--title-third-desc); }
.cityList__column.cityList__column--regions { gap: 30px; }
.findCities { height: auto; box-shadow: 0px 0px 5px #85858591; border-radius: 26px; padding: 40px; }
.findCities__item:hover span { color: var(--accent-color); }
.popular__index { display: flex; font-size: var(--small-text); font-family: 'RFDewi'; color: var(--font-color-light); }
.popular__item-bottom { display: flex; flex-direction: row; align-items: flex-end; gap: 20px; justify-content: space-between; width: 100%; }
.popular__item { flex-direction: column; min-height: 150px; padding: 30px; }
.popular__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.popular__item-title { font-size: var(--title-third); }
.findCities.active .findCities__inner { display: flex; flex-direction: column; gap: 10px; padding: 20px; overflow: auto; max-height: 40vh; box-sizing: border-box; height: unset; }
.popup__search-result.search-result.active { max-height: 40vh; overflow: auto; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.popup__search-result.search-result.active > * { width: 100%; }
.noneresult__pic { display: flex; flex-direction: row; align-items: center; justify-content: center; }
.cityList__region-citylist.active { display: flex; flex-direction: column; }
.cityList__region-citylist { display: none; }
[data-target="popup-response"] .popup__content { max-width: 400px; }

.endForm__title { font-size: var(--title-top); text-transform: uppercase; font-family: RFDewi; text-align: left; color: var(--white-color); }
.endForm__subtitle { color: var(--white-color); }
.endForm__bage { display: flex; flex-direction: row; align-items: center; gap: 10px; background-color: var(--transparent); border-radius: 42px; padding: 5px 16px 5px 5px; width: fit-content; color: var(--white-color); }
.endForm__bages { display: flex; flex-direction: column; gap: 8px; }
.endForm { display: flex; flex-direction: column; gap: 20px; }
.endForm__form.form, .endForm__form.form .form__wrapper { display: flex; flex-direction: column; gap: 10px; }
form.endForm__form.form input.form__field::placeholder { color: var(--white-color); }
form.endForm__form.form input.form__field { background-color: var(--transparent); }
.form__agree p { color: var(--white-color); }
.endForm__socials::before { content: ""; background: linear-gradient(90deg, rgba(0, 5, 8, 0) 0%, rgb(255 255 255 / 26%) 49%, rgb(255 255 255 / 0%) 100%); width: 100%; height: 1px; position: absolute; top: -15px; left: 0; }
.endForm__socials { display: flex; flex-direction: column; gap: 10px; position: relative; margin-top: 30px; }

/* contactPage and block*/
.contactPage { position: relative; }
.contactPage__list { position: absolute; bottom: 49px; left: 100px; z-index: 3; max-width: 500px; max-height: 400px; overflow: auto; }
.contactPage__list::-webkit-scrollbar { width: 0; height: 0; display: none; }
#contactsPageMap::after { content: ""; position: absolute; bottom: -26px; left: 50%; width: 200%; height: 116px; background-color: #ffffff; filter: blur(20px); transform: translatex(-50%); }
div#map { width: 100%; height: 600px; display: block; }
.contacts { flex-direction: row; gap: 20px; background-color: transparent; align-items: flex-start; }
.contacts__inner { position: relative; width: 50%; align-items: flex-start; justify-content: flex-start; display: flex; flex-direction: column; }
.contacts__detailes, .contacts__item { width: 100%; box-sizing: border-box; }
.contacts__address { font-size: var(--title-third-desc); }
#contactsPageMap { width: 100%; height: 800px; }

/* aboutPage */
.history { flex-direction: row; align-items: stretch; }
.history__doctor { position: relative; }
.history__picture img { object-fit: cover; object-position: top; width: 74%; }
.history__picture { max-height: 400px; }
.history__decor.desctop { position: absolute; display: flex; flex-direction: row; align-items: center; width: 200%; top: 0; left: 69%; transform: translatex(-50%); z-index: 1 !important; }
.history__decor svg:last-child { transform: rotate(158deg); }
.history__decor svg:first-child { transform: rotate(339deg); }
.history__doctor { position: relative; overflow: hidden; }
.history__doctor::after { content: ""; position: absolute; bottom: 0; width: 100%; left: 50%; transform: translatex(-50%); height: 30%; background-color: var(--back-color3); z-index: 1; border-radius: 0 0 30px 30px; }
.history__title { font-size: var(--title-third-desc); }
.history__caption-name { font-size: var(--title-third); }
.history__item { min-height: 49%; box-sizing: border-box; }
.history__quotes { z-index: 3; }
.history__picture { z-index: 2; }

/* mainLisences */
@media(min-width: 1250px) {.mainLisences__docs { display: grid; grid-template-columns: repeat(2, 1fr); }}
.mainLisences__doc.doc { display: grid; grid-template-areas: "text text" "img icon"; padding: 20px; border-radius: 30px; align-items: flex-end; }
.mainLisences__info { display: flex; flex-direction: row; align-items: flex-end; padding-bottom: 0; }
.mainLisences__infotext { padding-bottom: 30px; }
.section.section--mainLisences .btn { position: relative; margin-top: auto; }
.section.section--mainLisences .container.container--row { display: flex; flex-direction: row; align-items: stretch; gap: 60px;}
.doc_img { grid-area: img; }
.doc__text { grid-area: text; }
.doc svg { grid-area: icon; }
.mainLisences__infopic.desctop img { display: none; }
@media(min-width: 1450px) { .mainLisences__infopic.desctop img { display: block; } }
@media(max-width: 1250px) { .form__agree p { font-size: 14px; } }

/* endform */
.endForm { max-width: 50%; padding: 60px 0; }
.endForm__title { font-size: var(--title-top-desc); }
.endForm__bages { display: flex; flex-direction: row; flex-wrap: wrap; }
.form__bottom { flex-direction: row; gap: 20px; }
.endForm__socials .socials { justify-content: flex-end; }
.endForm__socials { flex-direction: row; align-items: center; justify-content: space-between; }
@media(max-width: 1250px) { .form__agree p { font-size: 14px; } }
form.endForm__form.form { gap: 25px; }
.form__agree { align-items: flex-start; }
.endForm__bage { font-size: var(--small-text); }
@media(min-width: 1250px){ .btn.btn--arrow span { white-space: nowrap; } }
@media(max-width: 1250px){ .endForm__bage { font-size: var(--small-text); } }

/* revs */
.section__separator { position: relative; width: 100%; margin: 40px 0; }
.textRevs.swiper { display: flex; flex-direction: column; gap: 30px; }
.textRevs.swiper .swiper-navigation.swiper-navigation--panel { margin: auto; }
.audioRevs__slider.swiper { display: flex; flex-direction: column; gap: 30px; }
.section.section--revs .swiper { overflow: visible; }
.revsPage__filters.filters { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.revsPage__list { display: grid; grid-template-columns: repeat(2, 1fr); }
@media(min-width: 1250px){ .revsPage__list {display: grid; grid-template-columns: repeat(2, 1fr); }}
@media(min-width: 1450px){ .revsPage__list {display: grid; grid-template-columns: repeat(3, 1fr); }}
.revsPage__main .btn { width: fit-content; margin: auto; }
.rev__head { flex-direction: row; align-items: center; gap: 20px; justify-content: space-between; }
.rev__author { flex-direction: column; align-items: flex-start; gap: 0; }
.rev__authorname { font-size: var(--small-title-desc); }
.rev__place { justify-content: flex-start; width: max-content; gap: 20px; }
.rev__caption { display: block; width: 100%; }
.rev__score { align-items: flex-start; justify-content: flex-start; gap: 2px; width: fit-content; flex-wrap: wrap; }
.revsPage .rev__placeimg svg { width: 60px; height: 60px; }
.rev__head { padding: 30px; }
.rev__ratingScore { margin-right: 5px; }
.revsPage .rev__score {width: max-content;}

/* 404 */
.nonePage  .section.section--404 { padding-top: 550px; }
.nonePage  .section__fon.none__fon img { object-position: center; }
.nonePage  .none .section__subtitle { max-width: unset; }
.nonePage  .section__bannerbtns { flex-direction: row; align-items: center; justify-content: center; }
.nonePage  .section__bannerbtns .btn { width: fit-content; min-width: 210px; margin: 0; }

/* smiPage */
.smiPage .section__righttext {align-items: flex-end;display: flex;}

/* videoPage */
.section__title-wrap { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; gap: 20px; }
.section__dops { display: flex; flex-direction: row; align-items: center; gap: 5px; }
.section__dop:hover { background-color: var(--accent-color); }
.section__dop { white-space: nowrap; cursor: pointer; }
.videoPage .video { display: grid; grid-template-columns: repeat(3, 1fr); }
}
/* actionsPage */
.actionsPage__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.actionsPage__bottom { margin-top: auto; }

/* karta */
.kartaPage__list { display: grid; grid-template-columns: repeat(2, 1fr); }
@media(min-width: 1350px){.kartaPage__list { display: grid; grid-template-columns: repeat(3, 1fr); }}
@media(min-width: 1550px){.kartaPage__list { display: grid; grid-template-columns: repeat(4, 1fr); }}

/* footer */
@media(min-width: 1250px){
.footer { display: flex; align-items: center; width: 100%; justify-content: center; background-color: var(--gray-color); border-radius: 60px; padding: 60px 0; }
.footer__detailes { grid-template-areas:"logo contacts links" "pay contacts links" "btns socials documents" "services services services"; grid-template-columns: repeat(3, 1fr); gap: 60px;}
.footer__item-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.footer__item.footer__item--btns { display: flex; flex-direction: column; gap: 10px; }
.footer__item--contacts, .footer__item--logo, .footer__item--pay { max-width: 400px; }
.footer__item--socials .socials { display: flex; flex-direction: row; flex-wrap: wrap; }
.footer__item--btns, .footer__item--socials, .footer__item--documents { justify-content: flex-end; }
.fServices{ margin-top: 40px; position: relative;}
.footer__item-title.fServices__title { margin-bottom: 30px; }
.fServices .footer__item-list { max-height: unset; display: grid; grid-template-columns: repeat(3, 1fr); }
.fServices::before, .footer__copyrights::before { top: -40px; }
.fServices::before { content: ""; background: linear-gradient(90deg, rgba(0, 5, 8, 0) 0%, rgba(60, 143, 206, 0.26) 49%, rgba(60, 143, 206, 0) 100%); width: 100%; height: 1px; position: absolute; top: -25px; left: 0; }
.footer__item.footer__item--btns { max-width: 260px; }
.footer .footer__inner { padding: var(--cpvd); max-width: var(--cmwd); }
.footer__copyrights, .footer__item--services.fServices { margin-top: 60px; }
.footer__item.footer__item--btns .btn { margin: 0; }
}