/*
Theme Name: IMS Basic
Description: IMS Basic WordPress Theme
Version: 4.8
Author: IMS DESIGN
Author URI: //ims-design.ru/
*/

/*---Normalize--------------------------------------------------------------------------- */

body, html {
    height: 100%;
}

body {
    margin: 0;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

article, footer, header, main, nav, section, div, input, textarea {
    display: block;
}

a, a:active, a:focus, button, button:focus, button:active, .btn, .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn.focus:active, .btn.active.focus {
    outline: none !important;
    outline: 0 !important;
}

input::-moz-focus-inner {
    border: 0 !important;
}

*, *:after, *:before {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

a:hover, a:active, button:focus, button:hover, button:active, input:focus, input:hover, input:active {
    outline: 0 !important;
}

a:focus {
    outline: 0 !important;
}

b, strong {
    font-weight: bold;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

button, input {
    line-height: normal;
}

button, select {
    text-transform: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
	height: auto;
	border: 0;
    display: block;
}

.logo img, .loop-post img, .cat-post img {
    width: 100%;
}

/*---Basic-Structure--------------------------------------------------------------------- */

body {
    font-family: 'Montserrat', sans-serif;
    color: #2b2b2b;
    font-size: 16px;
    line-height: 1.5;
    background: #f4f6f8;
}

main {
	max-width: 1920px;
	min-height: 100vh;
	overflow: hidden;
	padding-top: 136px;
	margin: 0 auto;
}

section, .section, .awesome, .relative {
    position: relative;
}

.wrapper {
    width: 100%;
    height: 100%;
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.awesome:before, .main-nav ul:not(.sub-menu) > li.menu-item-has-children > a span:before {
	content: '';
	font-family: 'Font Awesome 5 Free';
	position: absolute;
	top: 0;
	height: 100%;
	font-weight: 900;
    color: currentColor;
}

.awesome:before {
    left: 0;
}

.main-nav ul:not(.sub-menu) > li.menu-item-has-children > a span:before {
	right: 0;
}

.scrolltop {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: #67a2ac;
    font-size: 32px;
    z-index: 9;
    transition: color .5s;
    cursor: pointer;
    display: none;
}

.scrolltop:hover {
    color: #006373;
}

/*---Flexbox----------------------------------------------------------------------------- */

.flex-around, .flex-between, .main-nav > ul, .flex-center, .btn, .fab, .main-nav ul a, .awesome:before, .main-nav ul:not(.sub-menu) > li.menu-item-has-children > a span:before, .main-nav > ul li ul.sub-menu, .flex-start, .flex-end, .header-flex, .lang-nav ul, .lang-nav a {
    display: flex;
    align-items: center;
}

.flex-around {
    justify-content: space-around;
}

.flex-between, .main-nav > ul, .lang-nav ul {
    justify-content: space-between;
}

.flex-center, .btn, .fab, .main-nav ul a, .awesome:before, .main-nav ul:not(.sub-menu) > li.menu-item-has-children > a span:before, .main-nav > ul li ul.sub-menu, .lang-nav a {
    justify-content: center;
}

.flex-start, .main-nav > ul li ul.sub-menu {
    justify-content: flex-start;
}

.flex-end, .header-flex {
    justify-content: flex-end;
}

.wrap {
    flex-wrap: wrap;
}

.stretch {
	align-items: stretch;
}

.gap-10 {
    gap: 10px;
}

.gap-20, .header-flex {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.x2 {
    width: 50%;
}

.x3 {
    width: calc(100% / 3);
}

.x4 {
    width: 25%;
}

.gap-10 .x2 {
    width: calc(50% - 5px);
}

.gap-10 .x3 {
    width: calc((100% - 20px) / 3);
}

.gap-10 .x4 {
    width: calc((100% - 30px) / 4);
}

.gap-20 .x2 {
    width: calc(50% - 10px);
}

.gap-20 .x3 {
    width: calc((100% - 40px) / 3);
}

.gap-20 .x4 {
    width: calc((100% - 60px) / 4);
}

.gap-30 .x2 {
    width: calc(50% - 15px);
}

.gap-30 .x3 {
    width: calc((100% - 60px) / 3);
}

.gap-30 .x4 {
    width: calc((100% - 90px) / 4);
}

/*---Kadence-Blocks---------------------------------------------------------------------- */

.wp-block-kadence-accordion .kt-accordion-header-wrap .kt-blocks-accordion-header {
	cursor: pointer;
}

.kt-testimonial-item-wrap {
    position: relative;
}

.kt-testimonial-rating-wrap {
	position: absolute;
	background: #267a88;
	top: -5px;
	left: -5px;
    width: 128px;
}

.kt-testimonial-rating-wrap .kt-svg-testimonial-rating-icon {
    color: #fff !important;
}

.kt-blocks-carousel .kt-blocks-testimonial-carousel-item {
    padding: 5px !important;
}

.kt-testimonial-content {
	margin-bottom: 30px !important;
}

.kb-splide .splide__arrow {
	background: #9a436a !important;
    border-radius: 0 !important;
}

.kb-splide .splide__pagination__page {
	background: #267a88 !important;
	height: 15px !important;
	width: 15px !important;
    border-radius: 0 !important;
}

.wp-block-kadence-testimonials {
	margin-bottom: 20px;
}

.wp-block-kadence-advancedgallery .kt-blocks-carousel-init[data-slider-dots="true"] {
	margin-bottom: 55px !important;
}

.wp-block-kadence-advancedgallery .kb-splide .splide__pagination {
	bottom: -55px !important;
}

.kt-row-layout-bottom-sep {
    z-index: 2 !important;
}

.wp-block-kadence-pane {
	box-shadow: 0 0 7px rgba(0,0,0,.05);
}

/*---Basic-Typography-------------------------------------------------------------------- */

h1, h2, h3, h4, .popup-title {
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.page-title {
    margin: 20px 0 70px;
    font-size: 3.2em
}

.popup-title {
    font-size: 1.5em;
    margin: 0 0 30px;
    text-align: center;
}

a {
    position: relative;
    transition: all .3s;
    color: #006373;
}

p, label {
    margin: 0;
}

/*---Header------------------------------------------------------------------------------ */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: #fff;
    transition: none;
    z-index: 11;
}

header.animate {
    top: -100px;
    transition: all .3s;
}

.logo {
    width: 200px; height: 100%;
    margin-bottom: 6px;
}

.logo a {
    width: 100%;
}

.header-flex {
    width: calc(100% - 200px);
}

.header-title {
    margin: 0 auto 0 20px;
}

header .kb-svg-icon-wrap {
  border-radius: 2px !important;
}

/*---Navigation-------------------------------------------------------------------------- */

.main-nav {
	position: fixed;
	left: 0;
	top: 100px;
	width: 100%;
	z-index: 12;
	background: rgba(0, 99, 115,.85);
	color: #fff;
    backdrop-filter: blur(10px);
    transition: none;
}

.main-nav.animate {
    top: 0;
    transition: all .3s;
}

.main-nav ul, .main-nav > ul li ul.sub-menu, .lang-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul:not(.sub-menu) {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
    gap: 2px;
}

.main-nav > ul > li {
    flex-grow: 1;
    position: relative;
}

.main-nav ul a {
    color: currentColor;
    height: 40px;
    margin: -2px 0;
}

.main-nav ul:not(.sub-menu) > li > a:hover, .main-nav ul li.current-menu-item > a, .main-nav ul li.current-post-parent > a {
    background: #006373;
}

.main-nav ul:not(.sub-menu) > li.menu-item-has-children > a span {
    position: relative;
    padding-right: 15px;
}

.main-nav ul:not(.sub-menu) > li.menu-item-has-children > a span:before {
 	content: '\f078';
    font-size: 12px;
    padding-top: 2px;
}

.main-nav > ul li ul.sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	width: auto;
	flex-direction: column;
	transition: all .3s;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    background: #fff;
    border: 1px solid #ececec;
}

.main-nav > ul li:hover ul.sub-menu {
    opacity: 1;
    pointer-events: auto;
}

.main-nav > ul li ul.sub-menu li {
    width: 100%;
    border-bottom: 1px solid #ececec;
}

.main-nav > ul li ul.sub-menu li:last-of-type {
    border-bottom: 0;
}

.main-nav > ul li ul.sub-menu li a {
	width: 100%;
	justify-content: flex-start;
	text-align: left;
	padding: 10px 20px;
    color: #404756;
    border-left: 3px solid transparent;
}

.main-nav > ul li ul.sub-menu li a:hover {
    background: #fafafa;
}

.menu-toggle, .menu-close {
    display: none !important;
}

.lang-nav ul {
    gap: 5px;
}

.lang-nav a {
	color: #2b2b2b;
	font-size: 14px;
	background: rgba(0, 99, 115,.1);
	width: 34px;
	height: 34px;
	border-radius: 100%;
}

.lang-nav a:hover {
	background: rgba(0, 99, 115,.3);
}

/*---Custom-CSS-------------------------------------------------------------------------- */

.wp-block-kadence-advancedheading.number {
	display: block;
	width: fit-content;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	position: absolute;
    left: -5px;
    top: -5px;
}

.wp-block-kadence-advancedheading.number::after, .wp-block-kadence-advancedheading.item-title::after, .wp-block-kadence-advancedheading.item-title::before, .kt-testimonial-rating-wrap::after {
	display: block;
	position: absolute;
    content: '';
    background: #267a88;
    top: 0;
    bottom: 0;
    width: 30px;
    right: -5px;
    transform: skewx(-10deg);
}

.angle {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 50px;
	overflow: hidden;
    pointer-events: none;
}

.angle::after {
	position: absolute;
	content: '';
	background: #9a436a;
	top: 0;
	bottom: 0;
	width: 38px;
	right: -16px;
	transform: skewx(-10deg);
}

.angle::before {
	position: absolute;
	content: '';
	background: #9a436a;
	top: 0;
	bottom: 0;
	width: 42px;
	right: -10px;
	transform: skewx(-10deg);
    opacity: .3;
}

.wp-block-kadence-advancedheading.item-title {
    position: relative;
	display: block;
	width: fit-content;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
}

.wp-block-kadence-advancedheading.item-title::before {
    right: -25px;
    opacity: .5;
    background: #9a436a;
    transition: all .3s;
}

.item:hover .wp-block-kadence-advancedheading.item-title::before {
    right: -35px;
}

.icon-text p {
    display: block;
    max-width: calc(100% - 68px);
}

.icon-text .wp-block-image {
    width: 58px;
}

.wp-block-image.person {
	position: absolute;
	bottom: 0;
	left: -120px;
	width: 260px;
}

.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figure .kb-gallery-image-contain {
	background: #fff !important;
}

.icon-wrapper {
    position: relative;
    width: 100%;
}

.icon-wrapper::after {
	content: '';
	position: absolute;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 0 35px 10px 35px;
	border-color: transparent transparent #267a88 transparent;
	transform: rotate(180deg);
	bottom: -10px;
}

.cat-item {
	background: #267a88;
	color: #fff;
	width: 220px;
	height: 44px;
    transition: all .3s;
    cursor: pointer;
}

.cat-item:hover {
	background: #006373;
}

.cat-wrapper {
    flex-wrap: wrap;
}

.cat-post {
    position: relative;
	background: #fff;
	box-shadow: 0 0 7px rgba(0,0,0,.05);
	text-align: center;
}

.cat-post h3 {
    padding: 10px 0;
    color: #267a88;
}

.info {
	margin: 0;
	padding: 20px;
	list-style: none;
	text-align: left;
	border-top: 1px solid #eee;
}

.info li:not(:last-child) {
    margin-bottom: 5px;
}

.info a {
    color: #2b2b2b !important;
    text-decoration: underline !important;
}

.info svg {
	display: inline-block;
	width: 16px;
	margin-right: 5px;
	color: #9a436a;
	transform: translatey(3px);
}

/*---Footer------------------------------------------------------------------------------ */

footer {
    position: relative;
}

.footer-nav ul {
	padding-left: 15px !important;
	margin: 30px 0 0;
}

/*---Pages------------------------------------------------------------------------------- */

.breadcrumbs {
    margin: 10px auto 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: #9a436a;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: #a92f4a;
}

.sec-page {
    height: 100%;
    padding-top: 0;
    padding-bottom: 60px;
}

.sec-404 {
    min-height: calc(100vh - 70px);
    text-align: center;
}

/*---Loop-------------------------------------------------------------------------------- */

.loop-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.loop-post {
	width: 100%;
    color: #2b2b2b !important;
    background: #fff;
    box-shadow: 0 0 7px rgba(0,0,0,.05);
    align-items: stretch;
}

.loop-post:hover {
    box-shadow: 0 0 12px rgba(0,0,0,.15);
}

.loop-post .content {
	position: relative;
	width: 100%;
	max-width: calc(100% - 320px);
    padding: 20px 30px;
}

.loop-post img {
    max-width: 320px;
}

.loop-post time {
	color: #fff;
	background: #267a88;
	display: block;
	width: fit-content;
	padding: 3px 18px;
	position: absolute !important;
	top: -5px;
	right: -5px;
    z-index: 2;
}

.loop-post time::after {
	display: block;
	position: absolute;
	content: '';
	background: #267a88;
	top: 0;
	bottom: 0;
	width: 30px;
	left: -5px;
	transform: skewx(10deg);
    z-index: -1;
}

.loop-post h3 {
	color: #9a436a;
	margin-bottom: 20px;
	font-size: 1.25em;
}

.wp-pagenavi {
    width: 100%;
    margin-top: 30px;
}

.wp-pagenavi span, .wp-pagenavi a {
	height: 42px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #ececec;
	min-width: 42px;
	padding: 0 6px;
	margin: 0 3px 0 0;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
	background: #f5f5f5;
	border: 1px solid #d9d9d9;
}

.wp-pagenavi span.pages {
    display: none;
}

/*---Posts------------------------------------------------------------------------------- */
/*---Editor-Styles----------------------------------------------------------------------- */

article a {
    text-decoration: underline !important;
}

article :is(a.btn, a.kb-gallery-item-link, .kt-tabs-title-list li a) {
    text-decoration: none !important;
}

article .kt-tabs-title-list li a {
    text-decoration: none !important;
}

article .wp-block-separator {
	border: 0;
	border-top: 1px solid #ececec;
}

article :is(p, h2, h3, h4, .wp-block-image, .wp-block-table, .wp-block-kadence-iconlist, .wp-block-kadence-tabs, .wp-block-kadence-accordion) {
    margin: 0 0 20px !important;
}

article > ul, article > ol {
    margin: 0 0 20px !important;
}

.wp-block-table tr {
    transition: all .3s;
}

.wp-block-table tr th, .wp-block-table tr td {
    border: 1px solid #ececec;
    padding: 10px;
}

article > *:last-child, .wp-block-image, article .wp-block-separator, article .btn p {
    margin: 0 !important;
}

h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background {
	padding: 10px 20px !important;
}

.wp-block-embed {
    width: 100%;
}

/*---Popup------------------------------------------------------------------------------- */

.btn {
    width: 100%;
    max-width: 220px;
    height: 48px;
    color: #fff;
    background: #9a436a;
    cursor: pointer;
    transition: all .3s;
    margin: 0 auto;
}

.btn:hover {
    background: #a92f4a;
}

.btn.align-left {
    margin-left: 0;
}

.btn.align-right {
    margin-right: 0;
}

.btn.no-margin {
    margin-right: 0;
    margin-left: 0;
}

.btn.wide {
    max-width: 100%;
}

.btn.price {
	width: calc(100% + 20px);
	max-width: calc(100% + 20px);
	margin: 0 -10px -5px;
}

.backdrop {
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(0,0,0,.75);
    opacity: 0;
    z-index: 13;
    pointer-events: none;
    transition: opacity .3s;
}

.backdrop.animate {
    opacity: 1;
    pointer-events: auto;
}

.ims-popup {
	position: fixed;
	left: 50%; top: 50%;
	transform: translatex(-50%) translatey(-50%) scale3d(1.1, 1.1, 1);
	width: 100%;
 	max-width: 768px;
	background: rgba(0, 99, 115,.95);
    color: #fff;
	z-index: 14;
	padding: 50px 10px;
    opacity: 0;
    transition: all .3s;
    flex-direction: column;
    border-radius: 2px;
}

.ims-popup.animate {
	opacity: 1;
    pointer-events: auto;
 	transform: translatex(-50%) translatey(-50%) scale3d(1, 1, 1);
}

.ims-popup, .ims-popup * {
    pointer-events: none !important;
}

.ims-popup.animate, .ims-popup.animate * {
    pointer-events: auto !important;
}

.popup-close {
	position: absolute;
	right: -5px; top: -5px;
	height: 36px; width: 36px;
 	cursor: pointer;
    z-index: 20;
    background: #267a88;
}

.popup-close::before {
	display: flex;
	justify-content: center;
 	align-items: center;
	position: absolute;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	color: #fff;
    font-family: 'Font Awesome 5 Free';
	font-weight: 900;
    font-size: 20px;
    content: '\f00d';
    transition: all .3s ease;
}

.popup-close:hover::before {
	transform: rotatez(180deg);
}

/*---Forminator-------------------------------------------------------------------------- */

.forminator-custom-form {
	max-width: 480px;
    margin: 0 auto !important;
}

.forminator-button.forminator-button-submit {
	padding: 0 !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	height: 42px !important;
	width: 100% !important;
	box-shadow: none !important;
    font-size: 1rem !important;
    transition: all .3s !important;
}

.forminator-response-message {
	border-radius: 0 !important;
	padding: 10px 16px !important;
}

.forminator-response-message .screen-reader-only, .forminator-edit-module {
    display: none !important;
}

.forminator-ui.forminator-custom-form[data-design="flat"] .forminator-checkbox__wrapper {
	align-items: center !important;
}

.forminator-checkbox__label p {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

/*---Slick-Slider------------------------------------------------------------------------ */

.slick-track {
    display: flex !important;
}

.slick-slide {
    height: inherit !important;
}

/*---Adaptive-Design--------------------------------------------------------------------- */

@media only screen and (max-width: 1280px) {

}

@media only screen and (max-width: 1170px) {
body {
    font-size: 14px;
}
}

@media only screen and (max-width: 1024px) {
body {
    font-size: 16px;
}

.header-title {
    display: none;
}

.lang-nav {
	position: absolute;
	top: 104px;
}

.lang-nav a {
	color: #fff;
	background: rgba(255, 255, 255,.2);
}

.menu-toggle, .menu-close {
	display: flex !important;
    justify-content: center;
    align-items: center;
	cursor: pointer;
}

.menu-toggle {
	font-size: 20px;
	width: 42px;
	height: 42px;
    transition: all .3s;
}

.menu-close {
	position: absolute;
	right: 0;
	top: 0;
	width: 36px;
	height: 36px;
	z-index: 10;
}

.main-nav {
    backdrop-filter: unset
}

.main-nav.active {
    z-index: 14;
}

.main-nav ul {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	flex-direction: column;
    justify-content: center;
	align-items: center;
	padding: 0;
	background: rgba(0, 99, 115,.95);
	z-index: 2;
    transition: all .3s;
    opacity: 0;
    pointer-events: none;
}

.main-nav.active ul {
    opacity: 1;
    pointer-events: auto;
}

.main-nav ul li {
    flex-grow: 0;
}

.main-nav ul a {
	margin: 3px 0;
	padding: 0 10px;
	font-size: 1.2em;
}

.page-title {
    font-size: 2.8em
}

.cat-post {
    width: calc(50% - 10px) !important;
}

.person {
    display: none;
}

header {
	z-index: 13;
}
}

@media only screen and (max-width: 768px) {
.ims-popup {
	left: 2%; right: 2%;
	transform: translatex(0) translatey(-50%) scale3d(1.1, 1.1, 1);
	width: auto;
}

.ims-popup.animate {
	transform: translatex(0) translatey(-50%) scale3d(1, 1, 1);
}

.page-title {
    font-size: 2.3em
	margin: 20px 0 50px;
}

.cat-post {
    width: 100% !important;
}

.wrapper {
	padding: 0 10px;
}

header .wp-block-kadence-icon.kt-svg-icons {
	position: absolute !important;
	top: 100px;
	right: 100px;
}

header .kb-svg-icon-wrap {
	background: rgba(255, 255, 255,.2) !important;
	padding-top: 10px !important;
	padding-right: 10px !important;
	padding-bottom: 10px !important;
	padding-left: 10px !important;
}

header .btn {
    position: relative;
	width: 42px;
    height: 42px;
	font-size: 0;
    border-radius: 2px;
}

header .btn:before {
    content: '\f095';
 	font-family: 'Font Awesome 5 Free';
	position: absolute;
	left: 0; top: 0;
	width: 100%; height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
 	font-size: 18px;
	font-weight: 900;
	color: currentColor;
}

.loop-post {
	flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
}

.loop-post .content {
	position: unset;
	max-width: 100%;
	padding: 20px;
}

.loop-post img {
	max-width: 100%;
}
}

@media only screen and (max-width: 640px) {
body {
    font-size: 14px;
}

.wp-block-kadence-testimonials .kt-blocks-carousel .kt-blocks-carousel-init:not(.kt-carousel-arrowstyle-none):not(.tns-slider) {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.logo {
	width: 120px;
}

.header-flex {
	width: calc(100% - 120px);
}
}

@media only screen and (max-width: 480px) {
br {
    display: none;
}
}

@media only screen and (max-width: 360px) {

}
