/*
Theme Name: IMS Basic
Description: IMS Basic WordPress Theme
Version: 4.10
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 {
    width: 100%;
}

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

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

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

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

.wrapper {
    width: 100%;
    height: 100%;
    max-width: 1280px !important;
    padding: 0 20px;
    margin: 0 auto;
    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: #8f75a1;
	font-size: 28px;
	z-index: 9;
	transition: color .5s;
	cursor: pointer;
	display: none;
	border: 0;
	background: transparent;
}

/*---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 {
    display: flex;
    align-items: center;
}

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

.flex-between, .main-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, .item .number {
    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;
}

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

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

.page-title {
    margin: 60px 0;
}

.popup-title {
    margin: 0 0 30px;
}

.popup-title, .page-title {
    text-align: center;
}

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

p, label {
    margin: 0;
}

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

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 90px;
    transition: all .3s;
    z-index: 5;
    color: #fff;
}

header a {
    color: #fff;
}

header.animate, header.header-page {
    background: #fff;
    color: #2b2b2b;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

header.animate a, header.header-page a {
    color: #2b2b2b;
}

header.popup-active {
    opacity: 0;
    pointer-events: none;
}

body.admin-bar .header {
    top: 32px;
}

.logo {
    width: 200px; height: 100%;
}

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

/*---Main-Nav---------------------------------------------------------------------------- */

.main-nav {
	flex-grow: 1;
	margin: 0 20px;
    max-width: 1280px;
}

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

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

.main-nav ul a {
    color: currentColor;
}

.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 {
    text-decoration: underline !important;
}

.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;
}

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

.line-after .kt-row-column-wrap::after {
	content: '';
	position: absolute;
	right: 20px;
	top: 20px;
	bottom: 20px;
	width: 12px;
	height: calc(100% - 40px);
	background: #8f75a1;
}

.is-vertical {
	writing-mode: vertical-rl;
    text-orientation: upright;
}

.kb-splide[data-slider-dots="true"] {
	margin-bottom: 45px !important;
}

.kb-slide-item .kb-gal-image-radius img {
	border: 1px solid #f4eaf2;
	padding: 10px !important;
}

.kb-splide .splide__arrow {
	background: #522f6a !important;
}

.kb-splide .splide__pagination__page {
	background: #522f6a !important;
    transition: all .3s !important;
    border-radius: 5px !important;
}

.kb-splide .splide__pagination__page.is-active {
	width: 30px !important;
}

.kb-splide .splide__pagination, .kb-splide ul.splide__pagination.splide__pagination {
	bottom: -40px !important;
}

.wp-block-kadence-advancedheading.calc-width {
	max-width: calc(100% - 64px);
}

.contacts-list .kt-svg-icon-list-text strong {
	font-weight: 400 !important;
	font-size: 1rem !important;
	color: #8f75a1 !important;
}

header.animate .contacts-list .kt-svg-icon-list-text strong {
	color: #522f6a !important;
}

.contacts-list .kt-svg-icon-list-text {
	padding-bottom: 6px;
}

.popup-prev, .popup-next {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.popup-prev::after, .popup-next::after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 28px;
	color: #fff;
}

.popup-prev::after {
	content: "\f053";
}

.popup-next::after {
	content: "\f054";
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.load-more-controls {
	margin-top: 40px;
}

.post-content {
    max-width: 480px;
    margin: 0 auto;
}

.post-content p {
	text-indent: 30px;
	margin: 0 !important;
	text-align: justify;
}

.post-content .wp-block-audio {
	margin-top: 40px !important;
}

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

footer {
    position: relative;
}

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

.breadcrumbs, .yoast-breadcrumbs {
    margin: 0 auto;
}

.breadcrumbs a, .yoast-breadcrumbs a {
    color: currentColor;
}

.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: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.loop-post {
	border: 1px solid #f4eaf2;
    border-radius: 10px;
    background: #fffafe;
    padding: 20px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

.loop-post.js-hidden {
    display: none !important;
}

.loop-post:focus {
    outline: 2px solid #8f75a1;
    outline-offset: 4px;
}

.loop-post img {
	height: 260px;
	object-fit: contain;
	display: block;
}

.loop-post .content {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
}

.loop-post .author {
	text-align: center;
	margin-bottom: 20px;
}

.loop-post .pretitle {
	margin-top: 20px;
	text-align: center;
	margin-bottom: 5px;
}

.loop-post .loop-title {
	text-align: center;
	margin-bottom: 30px;
    font-size: 1.1em;
    flex-grow: 1;
    text-transform: uppercase;
}

.loop-post .meta {
	font-size: 13px;
	margin: 0 -20px 20px;
	padding: 0 20px 10px;
	border-bottom: 1px solid #f4eaf2;
}

.loop-post .meta .age {
	font-weight: bold;
}

.popup-navigation {
	position: absolute;
	top: 50%;
	transform: translatey(-50%);
	left: -40px;
	right: -40px;
	z-index: -1;
}

.content-title {
	text-align: center;
	margin-bottom: 20px;
	font-size: 1.6em;
}

.ims-popup .content-title br {
	display: none;
}

.form-wrapper {
	background: #522f6a;
	color: #fff;
	margin: 0 -20px -30px;
	padding: 30px 20px 20px;
}

.form-title {
	text-align: center;
	font-weight: 700;
	font-size: 1.3em;
	margin-bottom: 20px;
}

.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: 320px;
    height: 50px;
    background: #8f75a1;
    color: #fff;
    cursor: pointer;
    transition: all .3s;
    margin: 0 auto;
    border-radius: 3px;
    font-size: 1.125em;
    border: 0;
}

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

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

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

.btn#js-load-more-btn {
	background: #522f6a;
}

.backdrop {
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(0,0,0,.75);
    opacity: 0;
    z-index: 10;
    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(255,255,255,.95);
	z-index: 11;
	padding: 30px 20px;
	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;
}

.ims-popup.video-popup {
    padding: 0;
}

.ims-popup.video-popup .popup-close {
	background: rgba(255,255,255,.5);
	border-radius: 100%;
	right: 3px;
	top: 3px;
}

.video-popup video {
    width: 768px;
    max-width: 100%;
}

.popup-close {
	position: absolute;
	right: 0; top: 0;
	height: 30px; width: 30px;
 	cursor: pointer;
    z-index: 20;
}

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

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

.forminator-button.forminator-button-submit {
	padding: 0 !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	height: 53px !important;
	width: 100% !important;
	box-shadow: none !important;
    font-size: 1rem !important;
    transition: all .3s !important;
    border-radius: 10px !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-input {
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	border-radius: 10px !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) {
}

@media only screen and (max-width: 1024px) {
.menu-toggle, .menu-close {
	display: flex !important;
    justify-content: center;
    align-items: center;
	cursor: pointer;
}

.menu-toggle {
	font-size: 20px;
	width: 42px;
	height: 42px;
	border: 1px solid #ececec;
    transition: all .3s;
}

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

.menu-toggle:hover {
    border: 1px solid #d9d9d9;
    background: #f5f5f5;
}

.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(255,255,255,.95);
	z-index: 2;
    transition: all .3s;
    opacity: 0;
    pointer-events: none;
}

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

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

.loop-post.x3 {
	width: calc(50% - 10px);
}

.contacts-list .kt-svg-icon-list-text strong {
	font-size: 13px !important;
}

.logo {
	width: 160px;
}
}

@media only screen and (max-width: 767px) {
.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);
}

body.admin-bar .header {
	top: 46px;
}

.is-vertical {
	writing-mode: unset;
	text-orientation: unset;
	text-align: center;
}

.hide-on-mobile {
    display: none !important;
}

.ims-popup {
	max-height: 96vh;
	overflow-y: auto;
}

.popup-navigation {
	display: none;
}
}

@media only screen and (max-width: 640px) {
.logo {
    width: 120px;
}

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

.scrolltop {
    color: #cbb1dd;
}

.post-content p {
	font-size: 14px;
}

.kb-button:not(.kb-btn-global-inherit) {
    font-size: 14px !important;
}

.loop-post.x3 {
	width: 100%;
}
}
