/*
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 {
    width: 100%;
}

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

body {
    font-family: "Cormorant Garamond", serif;
    color: #000;
    font-size: 20px;
    line-height: 1.3;
}

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

section, .section, .wp-block-group, .wrapper {
    position: relative;
}

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

.overlay {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
}

.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: rgba(0,0,0,.6);
    font-size: 32px;
    z-index: 9;
    transition: color .5s;
    cursor: pointer;
    display: none;
}

.scrolltop:hover {
    color: rgba(0,0,0,.9);
}

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

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

.flex-between, .main-nav > ul, .buttons {
    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 {
    justify-content: center;
}

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

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

.wrap {
    flex-wrap: wrap;
}

.stretch {
	align-items: stretch;
}

.gap-10 {
    gap: 10px;
}

.gap-20, .buttons {
    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;
}

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

p, label {
    margin: 0;
}

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

header {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 0;
    transition: all .3s;
    z-index: 5;
}

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

.main-nav {
	padding: 5px 20px;
	background-color: rgba(218, 202, 185, 0.75);
	box-shadow: 0px 0px 20px 24px rgba(218, 202, 185, 0.75);
	border-radius: 24px;
	margin-top: 20px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

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

.main-nav ul a {
	color: currentColor;
	font-size: 1.2em;
	letter-spacing: .45em;
	padding: 9px 18px;
	line-height: 1;
    min-width: 270px;
    text-shadow: 2px 2px 4px rgba(0,0,0,.4);
}

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

.main-nav ul.sub-menu li.current-menu-item {
    background: transparent;
    color: #000;
    text-decoration: underline !important;
}

.main-nav .books-toggle:hover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.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: 100%;
	flex-direction: column;
	transition: all .3s;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    background: #E1D3C1;
    color: #000 !important;
    border-bottom-left-radius: 21px;
    border-bottom-right-radius: 21px;
    border-bottom: 3px solid #4c2d1d;
    font-size: 10px;
    letter-spacing: .2em;
    gap: 0;
    padding: 10px 0;
}

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

.main-nav > ul li ul.sub-menu li {
    width: 100%;
}

.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: center;
	text-align: center;
    text-transform: uppercase;
    padding-left: 0;
    padding-right: 0;
}

.main-nav > ul li ul.sub-menu li a:hover {
    text-decoration: underline !important;
}

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

.books-toggle {
    cursor: pointer;
}

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

.page-01 {
    position: relative;
}

.page-01::before, .page-01::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
}

.page-01::before {
	background: url('/wp-content/uploads/photo-01.png');
	left: 0;
	width: 246px;
	height: 344px;
	z-index: 2;
	opacity: .8;
}

.page-01::after {
	background: url('/wp-content/uploads/photo-02.png');
	right: 0;
	width: 337px;
	height: 402px;
	z-index: 2;
	opacity: .8;
}

.select-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.select-list ul a {
    color: #000;
}

.select-list ul a:hover {
    text-decoration: underline !important;
}

.buttons {
	width: fit-content;
	margin: 40px auto 0;
}

.buttons .btn {
    min-width: 220px;
	width: 220px;
    height: 56px;
    border-radius: 28px;
    text-transform: uppercase;
    letter-spacing: .3em;
}

.buttons .btn.read-btn {
    background: #4C2D1D;
    color: #DACAB9;
}

.buttons .btn.select-toggle {
    background: #DACAB9;
    color: #4C2D1D;
    border-bottom: 3px solid #4C2D1D;
    cursor: pointer;
    transition: all .3s;
}

.buttons .select-wrapper:hover .btn.select-toggle {
    border-bottom: 3px solid #DACAB9;
}

.buttons .select-wrapper {
    position: relative;
}

.select-list {
	position: absolute;
	width: 220px;
	background: #DACAB9;
	padding: 38px 20px 10px;
	margin-top: -28px;
	z-index: -1;
	border-bottom: 3px solid #4C2D1D;
	border-bottom-left-radius: 14px;
	border-bottom-right-radius: 14px;
	opacity: 0;
	pointer-events: none;
    transition: all .3s;
}

.buttons .select-wrapper:hover .select-list {
    opacity: 1;
	pointer-events: auto;
}

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

footer {
    position: relative;
}

.footer-img {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

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

.breadcrumbs {
    margin: 0 auto;
    font-size: 0.813em;
    opacity: .9;
}

.breadcrumbs a {
    color: currentColor;
}

.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: #444 !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%;
}

/*---Contact-Form-7---------------------------------------------------------------------- */

.wpcf7 {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.wpcf7-form {
    position: relative;
    padding-bottom: 32px;
}

.wpcf7-form-control-wrap, .submit-wrapper {
    position: relative;
	margin: 0 0 20px;
}

.wpcf7-form-control-wrap {
	border: 1px solid #000;
	background: #E1D3C1;
    overflow: hidden;
    display: block;
    border-radius: 8px;
}

.wpcf7-form-control-wrap.focus {
	box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
}

.wpcf7-form-control-wrap .wpcf7-text {
	border: 0;
	background: transparent;
 	height: 50px; width: 100%;
    font-size: 16px;
}

.wpcf7-form-control-wrap .wpcf7-text, .wpcf7-form-control-wrap .wpcf7-textarea {
	padding: 20px 15px 0;
}

.wpcf7-form-control-wrap.your-textarea textarea {
	width: 100%;
	border: 0;
    outline: 0;
    background: transparent;
}

.wpcf7-form-control-wrap.your-textarea .placeholder {
	height: 28px;
	bottom: auto;
}

.wpcf7-form-control-wrap.your-acceptance {
	background: transparent;
	border: 0;
	height: auto;
	margin: 5px 0 15px;
	text-align: left;
    border-radius: 0;
    font-size: 13px;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-list-item input[type="checkbox"] {
  accent-color: #54181a;
}

.wpcf7-form-control-wrap.your-acceptance .wpcf7-list-item label {
 	display: flex;
	justify-content: flex-start;
	width: 100%;
	gap: 10px;
	font-size: 15px;
    line-height: 1.2;
    color: #333;
}

.wpcf7-form-control-wrap.your-acceptance .wpcf7-list-item-label a {
    text-decoration: underline !important;
    color: currentColor;
}

.submit-wrapper {
    position: relative;
    background: #4C2D1D;
    transition: all .4s;
    border-radius: 25px;
}

.submit-wrapper .wpcf7-submit {
	background: transparent;
	border: 0;
	width: 100%;
	height: 50px;
 	cursor: pointer;
    font-size: 1em;
    color: #fff;
}

.ims-popup .submit-wrapper .wpcf7-submit {
    color: #000;
}

.submit-wrapper:hover {

}

.ims-popup .submit-wrapper:hover, .contacts-02 .submit-wrapper:hover {
	background: #feec44;
    box-shadow: 0 0 16px 2px rgba(255,250,209,.3);
}

.wpcf7-form-control-wrap span.wpcf7-not-valid-tip, div.wpcf7 .submit-wrapper .ajax-loader {
 	display: none;
    pointer-events: none;
}

.wpcf7-form-control-wrap .wpcf7-not-valid {
    background: rgba(255,40,0,.15);
}

.wpcf7-form-control-wrap .placeholder {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    text-align: left;
    padding-left: 15px;
    color: #444;
    font-size: 14px;
    transition: all .3s ease;
    pointer-events: none !important;
}

.wpcf7-form-control-wrap.your-textarea .placeholder {
    left: 0; top: 10px; bottom: unset;
}

.wpcf7-form-control-wrap .placeholder.scaled {
	transform: translatey(-15px);
	font-size: 13px;
	color: #000;
	padding-left: 15px;
}

.wpcf7-form-control-wrap.your-textarea .placeholder.scaled {
	transform: translatey(-15px);
}

.wpcf7 form div.wpcf7-response-output {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 3px 0;
    border: 1px solid #323232;
    text-align: center;
    font-size: 14px;
    border-radius: 13px;
}

.wpcf7 form div.wpcf7-display-none {
    display: none;
    pointer-events: none;
}

.wpcf7 form div.wpcf7-validation-errors, .wpcf7-form div.wpcf7-acceptance-missing {
    border: 1px solid #ff2800;    
}

.wpcf7 form div.wpcf7-mail-sent-ok {
   display: none;
}

.wpcf7-form-control-wrap.your-file {
    cursor: pointer;
}

.wpcf7-form-control-wrap .wpcf7-file {
	height: 42px;
	opacity: 0;
}

.wpcf7-form-control-wrap.your-file:before {
	content: 'Прикрепить файл';
	position: absolute;
	top: 0;
	left: 0;
	background: #c54b43;
    color: #fff;
	height: 42px;
	width: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 1px 1px 1px rgba(0,0,0,.05);
	transition: all .3s;
	pointer-events: none;
	font-size: 14px;
    cursor: pointer;
}

.wpcf7-form-control-wrap.your-file:hover:before {
	background: #d13c36;
}

.wpcf7-form-control-wrap.your-file label {
	position: absolute;
	left: 160px;
	top: 50%;
	transform: translatey(-50%);
	margin: 0;
	color: #b3b3b3;
	font-size: .92em;
	pointer-events: none;
    width: calc(100% - 160px);
    justify-content: flex-start;
}

.wpcf7-spinner {
    display: none !important;
}

.wpcf7-form-control-wrap.your-hidden {
	height: 0;
	border: 0;
	opacity: 0;
	margin: 10px;
}

.wpcf7-form-control-wrap.your-radio {
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 15px;
	font-size: 14px;
}

.wpcf7-form-control-wrap.your-radio, .wpcf7-form-control-wrap.your-radio .wpcf7-list-item-label, .wpcf7-form-control-wrap.your-radio label {
	cursor: pointer;
}

.your-radio .fas.fa-chevron-down {
	margin: 3px 0 0 auto;
	transition: all .3s;
	color: #a31e23;
}

.select-wrapper.animate .your-radio .fas.fa-chevron-down {
	transform: rotatex(180deg);
}

.select-wrapper {
	z-index: 0;
	position: relative;
	width: 100%;
	display: block;
}

.your-dropdown {
    border-top: 0 !important;
    position: absolute;
    left: 0;
    top: 50px;
    margin-bottom: 0 !important;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.select-wrapper.animate {
    z-index: 2;
}

.select-wrapper.animate .your-dropdown {
    opacity: 1;
    pointer-events: auto;
}

.your-dropdown input {
    display: none;
}

.your-dropdown .wpcf7-form-control {
	display: flex;
	flex-direction: column;
}

.your-dropdown .wpcf7-form-control .wpcf7-list-item {
    padding: 5px 15px;
    cursor: pointer;
    transition: all .3s;
}

.your-dropdown .wpcf7-form-control .wpcf7-list-item:hover {
    background: #f8f2f2;
}

.your-dropdown .wpcf7-form-control .wpcf7-list-item.active {
    background: #54181a;
    color: #fff;
}

.your-date input {
	border: 0;
	padding: 15px;
	width: 100%;
}

.wpcf7-form-control-wrap.your-checkbox {
	border: 1px dashed #54181a;
	background: transparent;
	padding: 10px;
}

.wpcf7-form-control-wrap.your-checkbox input {
	margin-top: 3px;
}

.wpcf7-form-control-wrap.your-checkbox label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.wpcf7-form-control-wrap.your-upload {
	border: 0;
	background: transparent;
}

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

@media only screen and (max-width: 1280px) {
.page-01::before, .page-01::after, .page-02::before, .page-02::after, .page-03::before, .page-03::after {
    display: none;
}

.footer-img {
	width: 80px;
    height: 80px;
}
}

@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: 48px;
	height: 48px;
	color: #e1d2c0;
    background: #4C2D1D;
    border-radius: 24px; 
    transition: all .3s;
}

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

.main-nav {
	padding: 5px 0;
	background-color: transparent;
	box-shadow: none;
	border-radius: 0;
}

.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: #e1d2c0;
	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;
}

.main-nav > ul li ul.sub-menu {
	position: static;
	margin: 24px 0 0;
	opacity: 1;
	pointer-events: inherit;
	background: transparent;
	border-bottom: 0;
	font-size: 14px;
}
}

@media only screen and (max-width: 720px) {
.buttons {
	flex-direction: column;
}
}

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

.footer-img {
	width: 40px;
    height: 40px;
    bottom: 10px;
    right: 10px;
}
}

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

}

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

}
