/*
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, .wt-region-img {
    width: 100%;
}

/*---Basic-Structure--------------------------------------------------------------------- */

body {
    font-family: 'Open Sans', sans-serif;
    color: #000;
    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: 1000px !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: #274c1b;
    font-size: 28px;
    z-index: 9;
    transition: color .5s;
    cursor: pointer;
    display: none;
}

.scrolltop:hover {
    color: #61bc44;
}

.scrolltop.bottom {
	color: #44842f;
}

/*---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 {
	font-size: 24px;
	text-transform: uppercase;
    margin: 0 0 30px;
}

.popup-title, .page-title {
    text-align: center;
}

a {
    position: relative;
    transition: all .3s;
}

p, label {
    margin: 0;
}

/*---Header------------------------------------------------------------------------------ */

header {
    position: static;
    top: 0; left: 0; right: 0;
    height: 147px;
    padding-top: 32px;
    background: #fff;
    transition: all .3s;
    z-index: 5;
}

body.admin-bar .header {
    top: 32px;
}

.logo {
    width: 166px;
}

.header-flex {
	width: calc(100% - 166px);
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-left: 12px;
	margin: 0 auto 0 60px;
	border-left: 1px solid;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-contacts a.is-phone {
    font-size: 24px;
    color: #000;
    text-decoration: none;
}

.header-contacts a.is-mail {
	color: green;
	margin-bottom: 5px;
}

.header-contacts a:hover {
    background: #f99200;
    color: #000;
}

.header-btn {
	background: #f99200;
	max-width: 180px;
	height: 32px;
	color: #fff;
}

.header-btn:hover {
    background: #ffa82d;
}

/*---Main-Nav---------------------------------------------------------------------------- */

.main-nav {
	background: #274c1b;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
    z-index: 3;
}

.main-nav ul, .main-nav > ul li ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul:not(.sub-menu) {
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 20px;
}

.main-nav > ul > li {
    flex-grow: 1;
    position: relative;
    border-right: 3px solid #fff;
}

.main-nav > ul > li:last-of-type {
    border-right: 0;
}

.main-nav ul a {
    color: #fff;
    height: 32px;
    text-transform: uppercase;
    font-weight: 700;
}

.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: #3a7228;
}

.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-------------------------------------------------------------------------- */

#yandex-map {
	width: 100%;
	height: 400px;
}

.city-select-flex-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-family: sans-serif;
}

.city-select-title {
    color: #ffffff;
    font-size: 14px;
}

.custom-city-select {
    position: relative;
    width: 200px;
    user-select: none;
    font-weight: 600;
}

.city-select-trigger {
    background-color: #333;
    color: #fff;
    padding: 8px 35px 8px 12px;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-select-trigger::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #fff;
    transition: transform 0.2s ease;
}

.custom-city-select.opened .city-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-city-select .city-select-options {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 330px;
	background-color: #333;
	border: 1px solid #555;
	border-radius: 4px;
	margin-top: 4px;
	z-index: 999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	height: 495px;
    max-heigh: 60vh;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
}

.custom-city-select.opened .city-select-options {
    display: block;
}

.city-select-option {
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.city-select-option:hover {
    background-color: #444;
}

.city-select-options::-webkit-scrollbar {
    width: 8px;
}

.city-select-options::-webkit-scrollbar-track {
    background: #222;
    border-radius: 0 4px 4px 0;
}

.city-select-options::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.city-select-options::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.has-underline {
    text-decoration: underline !important;
}

.ul-style-none {
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-bottom-menu-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: center;
}

.city-menu-label {
    font-weight: bold;
    display: inline;
    margin-right: 5px;
}

.city-bottom-menu {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-bottom-menu li {
    display: inline;
}

.city-bottom-menu li:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: #333;
}

.city-bottom-menu li a {
    color: #44842f;
    text-decoration: none;
}

.city-bottom-menu li a:hover {
    text-decoration: underline !important;
}

.js-lazy-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.lazy-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.forminator-iti-input .iti__selected-dial-code {
	color: #000 !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: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.loop-post {
	width: 100%;
    color: #000 !important;
}

.loop-post h3 {
    color: currentColor;
}

.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%;
}

.wp-block-list {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/*---Popup------------------------------------------------------------------------------- */

.btn {
    width: 100%;
    cursor: pointer;
    transition: all .3s;
}

.btn.custom-btn-sc {
    background: #44842f;
    color: #fff;
    padding: 0 40px;
    border: none;
    text-decoration: none;
    width: max-content;
    min-width: 200px;
}

.btn.callback-toggle.custom-btn-sc:hover {
    background: #61bc44;
}

.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: 520px;
	background: rgba(255,255,255,.95);
	z-index: 11;
	padding: 40px 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;
}

.ims-popup a {
    color: #44842f;
}

.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: #f00;
    font-family: 'Font Awesome 5 Free';
	font-weight: 900;
    font-size: 20px;
    content: '\f00d';
    transition: all .3s ease;
}

/*---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-consent__label p {
	font-size: 12px !important;
	line-height: 1.3;
}

.forminator-checkbox__wrapper {
	align-items: center !important;
}

.forminator a {
    text-decoration: underline !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: 40px;
	height: 40px;
    transition: all .3s;
    color: #fff;
}

.menu-close {
	position: absolute;
	right: 0;
	top: 0;
	width: 36px;
	height: 36px;
	z-index: 10;
}

.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: #274c1b;
	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;
	border-right: 0;
	padding: 6px;
}

.header-title {
	gap: 12px;
	margin: 0 auto 0 20px;
	font-size: 20px;
}

.main-nav ul:not(.sub-menu)::after {
	content: "\f00d";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	top: 16px;
	right: 16px;
	color: red;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
}

@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);
}

body.admin-bar .header {
	top: 46px;
}

.header-title {
	display: none;
}

.popup-title {
	font-size: 18px;
}
}

@media only screen and (max-width: 640px) {

}

@media only screen and (max-width: 480px) {

}

@media only screen and (max-width: 360px) {

}
