/*
Theme Name: Perpetuum
Theme URI: http://perpetuum.ru/
Description: ГђВђГђВґГђВІГђВѕГђВєГђВ°Г‘В‚Г‘ВЃГђВєГђВѕГђВµ ГђВ±Г‘ВЋГ‘ВЂГђВѕ Г‚В«PerpetuumГ‚В»
Version: 1
*/

* {
	margin:  0;
	padding: 0;
	border:  0;
	outline: 0;
}

.c {clear: both;}

html,
body,
table.wrap {height: 100%;}

body {
	background-color: #f3f3f2;
	font-size:        0.9em;
}

table.wrap {overflow: hidden;}

header {
	padding-bottom:      103px;
	background-color:    #fefefd;
	background-image:    url('/assets/img/theme/shadow0.png');
	background-repeat:   repeat-x;
	background-position: 0 100%;
}

header .banner {
	height:           100px;
	background-color: #3a3b3b;
}

header .line,
header .stripe {height: 54px;}

header .line {
	border-top:          1px solid #af6f16;
	background-image:    url('/assets/img/theme/line.png');
	background-repeat:   repeat-x;
	background-position: center 0;
}

header .stripe {
	width:             1063px;
	margin:            0 auto;
	background-image:  url('/assets/img/theme/bg.jpg');
	background-repeat: no-repeat
}

header a.logo {
	display:          block;
	width:            148px;
	height:           99px;
	margin-top:       27px;
	margin-left:      37px;
	background-image: url('/assets/img/theme/logo.png');
}

header .info {
	position: relative;
	z-index:  2;
	width:    1063px;
	margin:   0 auto;
}

.illustration {
	position:      absolute;
	width:         95%;
	margin-right: 5%;
        bottom:      -6px;
}

.illustration img {
	display:    block;
	margin:     0 auto;
	margin-top: 22px;
}

header nav.menu,
header aside {
	position: relative;
	z-index:  1;
}

header nav.menu {float: left;}

header ul {
	list-style-type: square;
	width:           180px;
	margin:          30px 0 30px 54px;
	color:           #596c6a;
	font-family:     Georgia;
	font-size:       18px;
	font-style:      italic;
}

header li {
	margin:       8px 0;
	padding-left: 8px;
}

a:link,
a:visited {color: #596c6a;}
a:hover,
a:active {color: #7f1319;}
header ul li.current_page_item a {color: #7f1319;}

header aside {
	float:      right;
	width:      200px;
	margin-top: 100px;
	text-align: right;
}

header aside h2 {
	line-height:   28px;
	margin-left: 16px;
	padding:       16px;
	padding-right: 48px;
	border-left:   1px solid #581010;
	color:         #581010;
	text-align:    left;
	font-size:     20px;
	font-weight:   normal;
}

.caption {margin-bottom: 40px;}

aside .mail,
aside .phone {
	margin-bottom: 26px;
	text-align:    center;
	font-size:     14px;
	font-style:    italic;
}
aside .callback {
	position: relative;
	margin-bottom: 26px;
	text-align:    center;
	font-size:     14px;
	font-style:    italic;
}

aside .max-contact {
	margin-bottom: 26px;
	display:       flex;
	justify-content: center;
	text-align:    center;
	font-size:     14px;
	font-style:    italic;
}

.max-contact-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-decoration: none;
	vertical-align: middle;
}

.max-contact-copy {
	display: block;
	line-height: 1.1;
	color: #000;
	font-family: Georgia;
	font-size: 14px;
	font-style: italic;
}

.max-contact-logo {
	display: block;
	width: auto;
	height: 21px;
	flex: 0 0 auto;
	border-radius: 0;
	object-fit: contain;
}

.max-contact-link:link,
.max-contact-link:visited {color: #000;}

.max-contact-link:hover .max-contact-copy,
.max-contact-link:active .max-contact-copy {color: #7f1319;}

.mail a,
.phone span {
	font-family: 'Arial';
	font-style:  normal;
}

.mail a,
.page h1 a {text-decoration: none;}

.mail a {font-weight: bold;}

.mail a:link,
.mail a:visited,
.page h1 a:link,
.page h1 a:visited {color: #7f1319;}

.mail a:hover,
.mail a:active,
.page h1 a:hover,
.page h1 a:active  {color: #596c6a;}

.phone span {
	color:       #7f1319;
	font-size:   18px;
}

.bubble {
	display:           inline-block;
	width:             238px;
	height:            84px;
	line-height:       84px;
	margin-top:        -8px;
	background-image:  url('/assets/img/theme/bubble.png');
	background-repeat: no-repeat;
	text-align:        center;
	font-family:       Arial;
}

.bubble span {color: #581010;}
.bubble a {text-decoration: none;}
.bubble a:link,
.bubble a:visited {color: #7f1319;}
.bubble a:hover,
.bubble a:active {color: #596c6a;}

table.wrap {width: 100%;}
table.wrap  td {padding-bottom: 188px;}

.page {
	position:          relative;
	width:             870px;
	min-height:        304px;
	margin:            -108px auto 0;
	background-color:  #f3f3f2;
	background-image:  url('/assets/img/theme/page.png');
	background-repeat: repeat-x;
}

.page .lc,
.page .rc {
	position:          absolute;
	top:               0;
	width:             207px;
	height:            304px;
	background-image:  url('/assets/img/theme/corner.png');
	background-repeat: no-repeat;
}

.page .lc {
	left:                -207px;
	background-position: -207px 0;
}

.page .rc {right: -207px;}

.page article {
	line-height:       1.4em;
	padding:           54px 51px 24px;
	background-image:  url('/assets/img/theme/article.png');
	background-repeat: repeat-x;
	font-family:       'Arial';
}

.page h1 {
	line-height:   normal;
	margin-bottom: 0.5em;
	color:         #7f1319;
	font-family:   'Georgia';
	font-size:     30px;
	font-weight:   normal;
}

.page h2 {
	line-height:   normal;
	margin-bottom: 1em;
	color:         #7f1319;
	font-family:   'Georgia';
	font-size:     18px;
	font-style:    italic;
	font-weight:   normal;
}

.page blockquote {
	margin-left:   40px;
	margin-bottom: 2em;
}

.page p,
.page ul,
.page ol {margin-bottom: 1em;}
.page ul {margin-left: 1em;}
.page ol {margin-left: 1.8em;}

.page article img[class*="wp-image-"],
.page article .alignnone {
	max-width: 100%;
	height:     auto;
}

.page em {font-family: 'Georgia';}

.page em {color: #727272;}
.page em strong {color: #000;}
/*********Related-posts********/

.page .related-posts {
    margin: 30px 50px;
}
.page .related-posts a {
    text-decoration: none;
}
.page .related-posts .post {
    border-radius: 10px;
    width: 240px;
    height: 100px;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.8);
    text-align: left;
    vertical-align: middle;
    transition: 0.3s;
    padding: 20px 30px 0 30px;
    position: relative;
}
.page .related-posts .post:hover {
    background-color: rgba(123,21,32,0.8);
}
.page .related-posts .post:hover p {
    color: #ffffff;
    transition: 0.3s;
}
.page .related-posts .post-outer {
    float: left;
    margin:0 25px 25px 0;
}
.page .related-posts .post-outer img {
    position: absolute;
    width: 240px;
    height: 100px;
    border-radius: 10px;
}
.page .related-posts .post-outer:nth-child(3n) {
    margin-right: 0;
}
.page .related-posts .post p {
    color: #7b1520;
    font-size: 15px;
    font-family: 'Arial';
}
/******************************/

.label {color: #7a232c;}

.regards {line-height: 21px;}

.person {
	font-size:     15px;
	margin-bottom: 40px;
}

.person em {
	display:     inline-block;
	margin:      0 30px 24px;
	margin-left: 0;
	font-size:   19px;
}

.person em {color: #000;}

.person h2 {font-size: 22px;}

.person p {margin: 0;}

.person img {
	display:      block;
	float:        left;
	width:        220px;
	max-width:    42%;
	height:       auto;
	aspect-ratio: 368 / 475;
	margin:       0 30px 18px 0;
}

.person img + h2 {
	margin-top: 0;
	padding-top: 0;
}

.page .services {
	list-style-type: none;
	margin:          0;
	margin-bottom:   2em;
}

.services li {margin: 4px 0;}

.services a {
	display:             inline-block;
	padding-left:        1.2em;
	background-repeat:   no-repeat;
	background-position: 0 0.6em;
	text-decoration:     none;
	font-family:         'Georgia';
	font-size:           17px;
}

.services a:link,
.services a:visited {background-image: url('/assets/img/theme/dash_grey.gif');}

.services a:hover,
.services a:active {background-image: url('/assets/img/theme/dash_red.gif');}

.services li.current_page_item a {
	background-image: url('/assets/img/theme/dash_red.gif');
	color:            #000;
}

footer {
	height:            161px;
	margin-top:        -162px;
	border-top:        1px solid #fff;
	background-image:  url('/assets/img/theme/footer.png');
	background-repeat: repeat-x;
}

footer nav {
	width:  1063px;
	margin: 45px auto 0;
}

footer ul {
	float:           left;
	list-style-type: none;
	width:           149px;
	border-left:     1px solid #2a2a2a;
	color:           #a6a7a7;
	font-family:     Georgia;
	font-style:      italic;
}

footer li {
	border-left:  1px solid #626465;
	height:       35px;
	line-height:  35px;
	padding-left: 16px;
}

footer li.privacy-policy-link {
	height:      auto;
	min-height:  35px;
	line-height: 17px;
	padding-top: 1px;
	font-size:   13px;
}

footer ul a:link,
footer ul a:visited {color: #a6a7a7;}
footer ul a:hover,
footer ul a:active {color: #fff;}

footer a.logo {
	float:            right;
	width:            125px;
	height:           82px;
	background-image: url('/assets/img/theme/logo_.png');
}

.cookie-notice {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(760px, calc(100% - 48px));
	box-sizing: border-box;
	padding: 18px 20px;
	border: 1px solid rgba(127, 19, 25, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
	color: #222;
	font-family: Arial, sans-serif;
}

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice__text {
	margin: 0;
	line-height: 1.45;
	font-size: 14px;
}

.cookie-notice__text a {
	color: #7f1319;
	text-decoration: underline;
}

.cookie-notice__button {
	min-width: 72px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: #7f1319;
	color: #fff;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus {
	background: #5f0f14;
}

.yandex-map {
    width: 726px; 
    height: 400px; 
    padding: 20px; 
    border-radius: 20px; 
    border: 1px dashed #000;
}






/* Auto-width version overrides */
header .stripe,
header .info,
footer nav {
    width: calc(100% - 48px);
    max-width: 1320px;
    box-sizing: border-box;
}

.illustration img {
    max-width: 100%;
    height: auto;
}

.page {
    width: calc(100% - 96px);
    max-width: 1180px;
    box-sizing: border-box;
}

.page article {
    font-size: 16px;
}

.yandex-map {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.yandex-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    box-sizing: border-box;
}

@media screen and (max-width: 1280px) {
    .page {
        width: calc(100% - 48px);
    }

    .page .lc,
    .page .rc {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    header .stripe,
    header .info,
    footer nav,
    .page {
        width: calc(100% - 32px);
    }
}

/* Responsive layout fixes */
@media (max-width: 1100px) {
	body {
		overflow-x: hidden;
	}

	header {
		padding-bottom: 32px;
	}

	header .info,
	footer nav {
		width: calc(100% - 32px);
		max-width: 1063px;
		box-sizing: border-box;
	}

	header .info {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	header nav.menu,
	header aside {
		float: none;
		width: 100%;
	}

	header nav.menu {
		order: 1;
	}

	header a.logo {
		margin: 24px auto 0;
	}

	header ul {
		width: auto;
		max-width: 320px;
		margin: 24px auto 0;
	}

	.illustration {
		order: 2;
		position: static;
		width: 100%;
		max-width: 520px;
		margin: 20px auto 0;
	}

	.illustration img {
		max-width: 100%;
		height: auto;
		margin-top: 0;
	}

	header aside {
		order: 3;
		margin-top: 24px;
		text-align: center;
	}

	.caption {
		max-width: 100%;
		margin: 0 auto 24px;
	}

	.page {
		width: calc(100% - 32px);
		max-width: 870px;
		box-sizing: border-box;
		margin-top: 24px;
	}

	.page .lc,
	.page .rc {
		display: none;
	}
}

@media (max-width: 700px) {
	header ul {
		max-width: 260px;
		font-size: 17px;
	}

	header aside {
		max-width: 280px;
	}

	.page h1 {
		font-size: 26px;
		line-height: 1.2;
	}

	.page h2 {
		font-size: 22px;
		line-height: 1.25;
	}

	.page article {
		padding: 32px 20px 24px;
		overflow-wrap: break-word;
	}

	.page article img,
	.page article table,
	.page article iframe {
		max-width: 100%;
		height: auto;
		box-sizing: border-box;
	}

	.page article table {
		display: block;
		overflow-x: auto;
		white-space: normal;
	}

	.page .related-posts {
		margin-left: 0;
		margin-right: 0;
	}

	.page .related-posts .post-outer {
		float: none;
		margin: 0 0 16px;
	}

	.page .related-posts .post,
	.page .related-posts .post-outer img {
		width: 100%;
		max-width: 100%;
	}

	.page .related-posts .post {
		height: auto;
		min-height: 100px;
		padding-right: 20px;
	}

	.person img {
		float: none;
		display: block;
		width: min(100%, 260px);
		max-width: 100%;
		height: auto;
		margin: 0 auto 20px;
	}

	.footer,
	footer {
		overflow-x: hidden;
	}

	footer nav {
		width: calc(100% - 32px);
	}

	footer ul,
	footer a.logo {
		float: none;
	}

	footer ul {
		width: auto;
		max-width: 320px;
		margin: 0 auto 14px;
	}

	footer li {
		height: auto;
		line-height: 1.4;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	footer a.logo {
		display: block;
		margin: 24px auto 0;
	}

	.cookie-notice {
		display: none !important;
	}

	.yandex-map {
		width: 100%;
		height: 320px;
		padding: 10px;
		box-sizing: border-box;
	}

	.yandex-map > div,
	.yandex-map iframe,
	.yandex-map ymaps {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
	}
}




