/*
Theme Name: MedicoN
Author: Ruslan Ratych
Version: 1.0
*/

#wpadminbar { position: fixed;}
.admin-bar .header { top:32px;}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield;}

.wp-block-embed.is-type-video { display: inline-block; width: 48%; margin-left:calc(1% - 2px); margin-right:calc(1% - 2px);}
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper { position: relative;}
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before, .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper:before { content:''; display: block; padding-top: 56.25%;}
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe, .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper iframe { position: absolute; top:0; left:0; width: 100%; height: 100%;}
.wp-block-column .wp-block-embed.is-type-video { display: block; width:100%; margin-left: 0; margin-right: 0;}

.grecaptcha-badge { opacity: 0; margin-right: -100px;}

.header { z-index:9997;}

.lang-menu ul li.current-lang a { color: #047CC4; border-color: #047CC4;}
.dropdown-menu .sub-menu li a:hover { color:#047CC4;}
@media screen and (min-width: 1001px) {
    .dropdown-menu > li.current-menu-item > a .show-sub-menu:before, .dropdown-menu > li.current-menu-item > a .show-sub-menu:after { background: #FFB571;}    
}

.services__item .service { background-repeat: no-repeat; background-position: center; background-size: cover;}
.step__desc a { color: #047CC4;}
.service-page__gallery { padding-top: 5rem;}

.entry-content iframe { max-width: 100%;}
.entry-content p + ul, .entry-content p + ol { padding-top: 0;}
.entry-content #ez-toc-container { display: block; border:none; border-radius: 0; box-shadow: none;}
.entry-content .ez-toc-toggle { background: none; border:none; margin: 0;}
.entry-content .ez-toc-toggle i.ez-toc-glyphicon { display: none;}
.entry-content hr { background: #047CC4;}
.entry-content #system-readmore { display: none;}
.wp-caption { border:none; padding:0 0.5rem;}
.wp-caption img { display: block; max-width: 100%; border-radius: 0.6rem;}
.wp-caption p.wp-caption-text { font-size: 1.5rem; line-height: 2.2rem; color: #6D7377; margin: 1rem 0 0; padding:0;}

.post__body { padding-top: 2rem;}
.post__date { text-transform: lowercase;transform: translateY(0); margin-bottom: 1rem;}
.post__thumb + .post__body { padding-top: 0;}
.post__thumb + .post__body .post__date { transform: translateY(-50%); margin-bottom: 0.3rem;}

.post-ratings-loading { vertical-align: top; text-align: right;}
.post-ratings-loading img { vertical-align: top; margin-top: 2px; margin-right: 5px;}

.ngg-galleryoverview { overflow: visible;}
.ngg-caption-view-wrapper { width: 100%;}
.entry-content .ngg-gallery-thumbnail-box a { padding-bottom: 75%;}
.entry-content.gallery-verticals .ngg-gallery-thumbnail-box a { padding-bottom: 136%;}
.entry-content .ngg-gallery-thumbnail-box a img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;}
.entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail img { box-shadow:0px 30px 100px rgba(53, 80, 96, 0.1);}
.entry-content .ngg-navigation .prev, .entry-content .ngg-navigation .next, .entry-content .ngg-navigation span, .entry-content .ngg-navigation .page-numbers { text-decoration: none;}
.ngg-album-desc .js-shave { display: block !important;}
.ngg-album-desc .js-shave-char { display: none !important;}

.wp-pagenavi { padding-top: 1rem; padding-bottom: 3.4rem; display: flex; justify-content: center; flex-wrap: wrap;}
.wp-pagenavi a, .wp-pagenavi span { margin: 0 0.5rem 0.5rem; padding: 0; width: 4rem; height: 4rem; display: flex; justify-content: center; align-items: center; border: 1px solid #047CC4; border-radius: 0.3rem; color: #047CC4; font-size: 1.5rem;}
.wp-pagenavi a svg { width: 1.1rem; height: 1.1rem;}
.wp-pagenavi .previouspostslink { transform: scale(-1, 1); order:-1;}
.wp-pagenavi .nextpostslink { order:1;}
.wp-pagenavi span.current { background: #047CC4; color: #fff; border: 1px solid #047CC4;}
@media (hover: hover) {
  .wp-pagenavi a:hover { color: #fff; background: #047CC4; border: 1px solid #047CC4;}
}
.post__share .ya-share2__list { margin:0 -0.5rem}
.post__share .ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item { margin:0 0.5rem}
.post__share .ya-share2__link { width: 4rem; height: 4rem;}
.post__share .ya-share2__item .ya-share2__badge, .post__share .ya-share2__item .ya-share2__mobile-popup-badge { border-radius: 50%;}
.post__share .ya-share2__container .ya-share2__badge .ya-share2__icon { height:4rem; width: 4rem; background-size: 3.2rem 3.2rem; background-position: center center;}

.entry-content .wpcf7 { max-width: 78rem;}
.input-list__item .icon-input { position: absolute; left: 2rem; top: 1.1rem; font-size: 2.4rem; color: #758DA0; transition: 0.3s; pointer-events: none;}
.wpcf7 .input-list__item_submit .ajax-loader { position: absolute; left:0; top:2.8rem; margin: 0 1.4rem;}
.feedback__form .wpcf7 .input-list__item_submit .ajax-loader { top:1.3rem;}
.wpcf7-form-control-wrap { display: block;}
.check-privacy .wpcf7-list-item { margin: 0;}
.check-privacy .wpcf7-list-item-label { display: block; position: relative; padding-left: 3.3rem; font-size: 1.5rem; line-height: 1.47; cursor: pointer; user-select: none;}
.check-privacy input { position: absolute; left:-9999px; opacity: 0;}
.check-privacy .wpcf7-list-item-label:before { content:''; display: block; position: absolute; left:0; top:0.1rem; border: 1px solid #FFFFFF; min-width: 1.8rem; width: 1.8rem; height: 1.8rem; border-radius: 2px;}
.check-privacy input:checked + .wpcf7-list-item-label:before { background: #fff url(images/icons/check_white.svg) center no-repeat; background-size: 80%;}
.check-privacy.check-style_gray { color: #758DA0;}
.check-privacy.check-style_gray .wpcf7-list-item-label:before { border-color: #758DA0;}
.check-privacy.check-style_dark { color: #031C30;}
.check-privacy.check-style_dark .wpcf7-list-item-label:before { border-color: #031C30;}
.check-privacy a { color: inherit; text-decoration: underline;}
@media (hover: hover) {
  .check-privacy a:hover { text-decoration: none;}
}
.wpcf7-checkbox+.wpcf7-not-valid-tip { display: none !important;}
.wpcf7-checkbox.wpcf7-not-valid .wpcf7-list-item-label:before { border-color:red;}
.wpcf7 form .wpcf7-response-output { margin: 1em 0 0; font-size: 1.4rem;}
.form__blue { padding: 2rem 4rem 1.2rem 5.2rem; background: #047CC4;}
.form__blue .form__row { padding: 0;}
.form__blue .wpcf7-response-output { color: #fff;}
.wpcf7 .form__submit { position: relative;}
.wpcf7 .form__submit .ajax-loader { position: absolute; right:-3.2rem; top:1.3rem; margin: 0;}
@media screen and (min-width: 1001px) {
    .form__privacy { width: 34%;}
}

.entry-content .gallery { margin: 0 -1.7rem; display: flex; flex-wrap:wrap;}
.entry-content .gallery br { display: none;}
.entry-content .gallery-item { width: calc(25% - 3.4rem) !important; margin: 0 1.7rem 3.4rem !important; flex-grow: 0;}
.entry-content .gallery-item a { display: block; overflow: hidden; position: relative;}
.entry-content .gallery-item a img { width: 100%; height: 100%; border-radius: 1rem; border:none !important; flex: 1; object-fit: cover;}
.entry-content .gallery-item a:after { content: ""; position: absolute; z-index: 1; font-family: "icomoon" !important; width: 6rem; height: 6rem; display: flex; justify-content: center; align-items: center; color: #031C30; font-size: 2.2rem; background: #FFB571; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; transition: 0.3s;}
@media (hover: hover) {
    .entry-content .gallery-item a:hover:after { transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

.footer { margin-top: 4.6rem;}
.seo-text+.footer { margin-top: 0;}
.footer-widget { margin: 0;}
.to-top { text-decoration: none;}

@media screen and (max-width: 1000px) {
    .wp-block-embed.is-type-video { display: block; width: 100%; margin-left:0; margin-right:0;}
    
    .admin-bar .header__nav { top:32px; height: calc(100% - 32px);}
    
    .entry-content .gallery-item { width: calc(33.3333% - 3.4rem) !important;}
}

@media screen and (max-width: 782px) {
    .admin-bar .header { top:46px;}
    .admin-bar .header__nav { top:46px; height: calc(100% - 46px);}
}

@media screen and (max-width: 767px) {
    .admin-bar .header { top:auto;}
    .admin-bar .header__top { top:46px;}
    
    .header { z-index:auto;}
    .header__top { z-index: 9997;}
    .header__nav { z-index: 9999;}
    .nav-bg { z-index: 9998;}
    
    .offer { background:#fff;}
    .offer-item__thumb:before { content:''; display: block; position: absolute; top:4.5rem; left:0; z-index: 1; background:linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%); width: 100%; height: calc(35% - 1.5rem);}
}
@media screen and (max-width: 640px) {
    .entry-content .gallery { margin: 0 -10px;}
    .entry-content .gallery-item { width: calc(50% - 20px) !important; margin: 0 10px 20px !important;}
    
    .post__share .ya-share2__list { margin:0 -0.25rem}
    .post__share .ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item { margin:0 0.25rem}
}
@media screen and (max-width: 410px) {
    .form__blue { padding-left: 2rem; padding-right: 2rem;}
    .wpcf7 .form__submit .ajax-loader { right:0; margin: 0 1.4rem;}
}