/*!
Theme Name: auto
Theme URI: http://underscores.me/
Author: Vetroff
Author URI: http://vetroff@zencode.us
Description: AutoSchool 2021
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: auto
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

auto is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

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

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #000000;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a, a:visited {
	color: #02cfaa;
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
	color: #B20020;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
.btn,
input[type="button"],
input[type="reset"],
input[type="submit"] {
height: 78px;
border-radius: 4px;
background-color: #02cfaa;
color: #ffffff;
font-size: 18px;
font-weight: 500;
line-height: 78px;
text-align: center;
border: 0;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background-color: #d60027;
}

button:active,
button:focus,
.btn:active,
.btn:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	background-color: #b20020;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
height: 60px;
border-radius: 2px;
border: 1px solid #bac2ca;
border-left: 4px solid #02cfaa;
background-color: #ffffff;
	padding: 0 10px 0 50px;
    color: #7e868e;
    max-width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

.btn {
    display: inline-block;
    color: #FFFFFF !important;
    height: 68px;
    line-height: 68px;
    padding: 0 60px;
}

.btn:hover, .btn:active{
    color: #FFFFFF;
}


/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(33, 68, 98, 0.2);
    background-color: rgba(33, 68, 98, 0.51);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 280px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	/*left: auto;*/
    left: 0;
}

.main-navigation li {
	position: relative;
    padding: 0 30px;
}

.main-navigation a {
	display: block;
	text-decoration: none;
    font-weight: 500;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.main-navigation a:hover, .main-navigation .current_page_item a {
color: #02cfaa;
text-shadow: 0px 0px 1px #02cfaa;
}

/* Small menu. */

.menu-toggle, .menu-toggle:active, .menu-toggle:hover {
    width: 100%;
height: 47px;
background: transparent url(img/bar.png) no-repeat right center;
    outline: none;
}

.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}

.main-navigation ul ul {
		display: block;
	}

#primary-menu > li > a {
    line-height: 84px;
}

.main-navigation li li {
    display: block;
    padding: 10px 30px;
}















}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}


.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}




/* ---- custom ---- */

#masthead {
background-color: rgba(33, 68, 98, 0.51);
}

.site-header {
min-height: 85px;
display: flex;
align-items: center;
justify-content: space-around;
}

.site-header a {
color: #ffffff;
}

.top_phones {
    padding-left: 50px;
    background: url(img/top_phone.png) no-repeat left center;
}

.top_phones a {
    display: block;
    font-size: 18px;
font-weight: 700;
white-space: nowrap;
text-decoration: none;
}

.top_phone_mob {
    display: none;
}

.top_logo img {
    max-width: none;
}

.home_textblock_1 {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 900px;

}

.home_textblock_1_text {
    color: #FFFFFF;
}

.home_textblock_1_text h1 {
font-size: 48px;
letter-spacing: -1px;
line-height: 1.25;
}

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

.home_textblock_1_text ul li {
    position: relative;
    font-size: 16px;
    padding: 5px 0 5px 25px;
}

.home_textblock_1_text ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
height: 6px;
background-color: #02cfaa;
border-radius: 100%;
}

.home_textblock_1_form {
width: 330px;
border-radius: 5px;
border: 1px solid #ced6de;
background-color: #ffffff;
padding: 30px 25px 10px;
}


.form-control:focus {
        outline: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
}

.form-horizontal .form-group{
        margin-bottom: 30px;
}

.form-horizontal .btn{
    width: 100%;

}

.form-horizontal .ajax-loader{
        height: 0;
        width: 0;
        display: none !important;
}

 .form-group {
    position: relative;
}

.form-group.with-label textarea {
    padding-top: 30px;
}

.form-group.with-label label {
    z-index: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #7e868e;
    position: absolute;
    left: 50px;
    top: 18px;
    transition: .3s;
    pointer-events: none;
}

.form-group.with-label label span {
     color: #e6214f;
}



.form-group.with-label input[type="text"] {
background: #ffffff url(img/inp_name.png) no-repeat 20px center;
}

.form-group.with-label input[type="tel"] {
background: #ffffff url(img/inp_tel.png) no-repeat 22px center;
}

.form-group.with-label textarea {
background: #ffffff url(img/inp_txta.png) no-repeat 20px 20px;
}



p.form-control-p span {
  color: #e6214f;
  margin-left: -15px;
}

.form-group.is-fill label {
    color: #c4c4c4;
    pointer-events: all;
    font-size: 11px;
    line-height: 11px;
    top: 6px;
    left: 12px;
}


.form-control-hdr {
color: #11263a;
font-size: 22px;
font-weight: 700;
line-height: 30px;
text-align: center;
}

.form-control-p{
    margin: 10px 0 20px;
    font-size: 14px;
    text-align: center;
}


.home_programs_block {
    text-align: center;
    padding-bottom: 50px;
}

.home_programs_block h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.home_programs_block .subhdr {
    max-width: 450px;
    margin: 0 auto 30px;

}

.home_textblock_2 {
    background: #000000 url(img/home_textblock_2_bg.png) no-repeat center top;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.5;
    padding: 25px 0 50px;
}

.program_topspace {
    margin-top: 150px;
}

.home_textblock_2 .h2 {
     font-size: 36px;
     font-weight: 700;
     padding-left: 45px;
}

.home_program_block {
border: 1px solid #f2f6fa;
background: #FFFFFF;
border-radius: 10px;
margin-bottom: 35px;
padding-bottom: 40px;
box-shadow: 2px 8px 16px rgba(23, 50, 115, 0.06);
}

.home_program_block img {
    border-radius: 10px 10px 0 0;
}

.home_program_block h3 {
font-size: 22px;
padding: 0 40px;
min-height: 120px;
margin: 30px 0;
line-height: 1.4;
}






.home_tarifs_block {
    text-align: center;
/*    padding-bottom: 120px;
background: url(img/prefs_top.svg) no-repeat center bottom;*/
}

.home_tarifs_block h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.home_tarifs_block .subhdr {
    margin: 0 auto 50px;

}


.home_tarif_block {
border: 1px solid #f2f6fa;
margin-bottom: 35px;
padding-bottom: 40px;
background: #FFFFFF;
box-shadow: 0px 4px 15px rgba(33, 68, 98, 0.25);
}

.home_tarif_ttl {
height: 102px;
background-color: #02cfaa;
display: flex;
}

.home_tarif_ttl h3 {
color: #ffffff;
font-size: 36px;
font-weight: 600;
line-height: 1.2;
margin: auto;
padding: 0 50px;
}

.tarif_short p {
    margin: 20px 0 0;

}

.home_tarif_block .price {
font-size: 48px;
font-weight: 700;
letter-spacing: -1px;
}

.home_tarif_block ul {
    padding: 0;
    margin: 10px 0 50px;
    list-style: none;
}

.home_tarif_block ul li {
    position: relative;
    font-size: 16px;
    padding: 7px 0 7px 40px;
    text-align: left;
}

.home_tarif_block ul li:before {
    content: "+";
    position: absolute;
left: 15px;
    top: 2px;
color: #02cfaa;
font-size: 24px;
font-weight: 700;
}

#tarif_form_pop, #sert_form_pop {
    padding: 20px 20px 0;
}

#tarif_form_pop input[type="text"],
#tarif_form_pop input[type="tel"],
#tarif_form_pop input[type="submit"],
#sert_form_pop input[type="text"],
#sert_form_pop input[type="tel"],
#sert_form_pop input[type="submit"]  {
    width: 100%;
    box-sizing: border-box;

}

.home_prefs_block {
    text-align: center;
    background-color: #f2f6fa;
    padding-top: 30px;
}

.home_prefs_block h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.home_prefs_block .subhdr {
    margin: 0 auto 50px;

}

.home_pref_block {
border: 1px solid #f2f6fa;
border-radius: 10px;
margin-bottom: 30px;
padding: 60px 30px 20px;
background-color: #ffffff;
box-shadow: 0px 0px 15px rgba(180, 180, 180, 0.11);
}


.home_pref_block h3 {
font-size: 18px;
margin: 30px 0 20px;
line-height: 1.4;
}



.home_reviews_block {
    text-align: center;
    padding-top: 0px;
    background-color: #f2f6fa;
background: url(img/prefs_btm.svg) no-repeat center top;
}

.home_reviews_block h2 {
    font-size: 36px;
    margin-bottom: 15px;
    margin-top: 0;
}

.home_review_block {
    max-width: 850px;
border-radius: 4px;
border: 1px solid #bac2ca;
background-color: #ffffff;
margin: auto;
padding: 80px 65px 60px;
box-sizing: border-box;
}

.home_review_block .wp-post-image {
    border-radius: 130px;
}


.home_reviews_text {
    text-align: left;
    padding-top: 60px;
    padding-right: 15px;
    background: url(img/quotes.png) no-repeat 0 0;
}



.home_textblock_3 {
    background: #000000 url(img/home_textblock_3_bg.jpg) no-repeat center top;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.5;
    padding: 25px 0 160px;
    position: relative;
    margin: 20px 0 0;
}

.home_textblock_3 h2 {
     font-size: 36px;
     font-weight: 700;
     text-align: center;
}


.home_videos_block {
    text-align: center;
    padding-top: 0px;
}

.home_videos_block h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.home_video_block {
    position: relative;
/*width: 744px;
height: 481px;
background-color: #2E373E;*/
}

.video-play {
position: absolute;
    z-index: 1;
   top: 50%;
    left: 50%;
    margin-top: -43px;
    margin-left: -43px;
width: 86px;
height: 86px;
background: url(img/video-play.png) no-repeat center;
    border: 0;
    cursor: pointer;
}

.home_sert_block {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 160px;
background: url(img/prefs_top.svg) no-repeat center bottom;

}

.home_sert_block h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 10px;
}

.home_sert_img {
    margin: 20px auto;
}


.home_footform_block {
    background-color: #f2f6fa;
    text-align: center;
    padding: 50px 0;

}

.home_footform_block .container {
    max-width: 820px;
}

.home_footform_block h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 10px;
}

.home_footform_block .subhdr {
    margin: 0 auto 30px;
    font-size: 21px;

}

.home_footform_block .form-horizontal {
    max-width: 330px;
    margin: 0 auto;
}

.home_footform_block input[type="text"], .home_footform_block input[type="tel"] {
    border-left: 1px solid #bac2ca;
}

.site-footer {
background: #214462;
padding: 0 0 40px;
color: #FFFFFF;
}

.site-footer a {
color: #FFFFFF;
opacity: 0.7;
}

.site-footer a:hover {
    opacity: 1;
}

.site-footer h5 {
   font-size: 21px;
}

#footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer-menu li {
    margin-bottom: 18px;
}

.foot_phones {
    display: inline-block;
    margin-bottom: 30px;
}

.foot_phones a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
}

.site-footer b {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.social_links a {
    display: inline-block;
    width: 30px;
height: 30px;
border-radius: 100%;
background: #02cfaa;
margin-right: 20px;
opacity: 1;
text-align: center;

}

.social_links a img {
    display: inline-block;
    vertical-align: middle;
    vertical-align: text-bottom;
}

#support-menu {
    margin: 50px 0 0;
    padding: 0;
    list-style: none;
}

#support-menu li a {
    font-size: 12px;
    text-decoration: underline;
}










/* контакты */

#post-20, #post-137 {
    color: #FFFFFF;
    padding: 30px 0;
    text-align: center;
}

#post-20 .contact-form, #post-137 .contact-form {
    text-align: left;
    max-width: 670px;
    margin: 40px auto 0;
}

#post-20 h1, #post-137 h1 {
font-size: 48px;
letter-spacing: -1px;
line-height: 1.2;
}

#post-20 p, #post-137 p {
font-size: 36px;
line-height: 1.4;
margin-bottom: 1em;
}

.contact-form .form-group {
    margin-bottom: 10px;
}

.contact-form .row {
    margin-right: -5px;
    margin-left: -5px;
}

.contact-form .col-md-6, .contact-form .col-md-12{
padding-right: 5px;
    padding-left: 5px;
}

.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form textarea {
    border-left: 1px solid #bac2ca;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form .btn {
    display: block;
    max-width: 330px;
    border-radius: 0;
    margin: -5px auto 0;
}

.photo_block {
    margin-bottom: 40px;
}

.blog_article {
border: 1px solid #f2f6fa;
    margin-bottom: 25px;
    box-shadow: 2px 8px 16px rgb(23 50 115 / 6%);
    padding: 20px;
}

.blog_article:hover {
    box-shadow: 2px 8px 16px rgb(23 50 115 / 10%);
}


.fly-menu-open #masthead{display:block;z-index:999;position:fixed;left:0;right:0;top:-100%;background-color: rgba(33, 68, 98, 0.9);box-shadow:0 3px 5px rgba(33, 68, 98, .2);transition:all ease-in-out .3s}
.fly-menu-open #masthead.show{top:0;}
.fly-menu-open #wpadminbar + .site #masthead {margin-top: 32px;}


.crlink {margin-top: 40px;font-size: 12px;}














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

body {
    background-size: 170% !important;
}

.page-id-20 {
    background-size: auto !important;
}

.site-header {
   display: block;
   position: relative;
    text-align: center;
    min-height: auto;
}

.top_logo {
display: block;
    position: absolute;
    top: 4px;
    left: 10px;
}

.top_phones {
    display: none;
}

.top_phone_mob {
/*    display: block;
    position: absolute;
    top: 8px;
    left: 25px;
    font-weight: 700;
    font-size: 18px;*/
}

.top_lang {
    display: none;
}

.main-navigation.toggled ~ .top_lang {
    display: block;
}

.main-navigation.toggled ~ .top_phones {
    margin: 0 auto;
    display: table;
    padding: 15px 50px;
}

.top_phones a {
    font-size: 22px;
}

.main-navigation li {
    position: relative;
     padding: 7px 0;
}

.main-navigation a {
    font-size: 22px;
    font-weight: 500;
    text-transform: none;
    min-height: 78px;
    line-height: 78px;
border-radius: 10px;
background-color: #151635;
}

.main-navigation a:hover, .main-navigation .current_page_item a {
    color: #FFFFFF;
    text-shadow: none;
    background-color: #02cfaa;
}


.main-navigation ul li:hover > ul, .main-navigation ul li.focus > ul {
    left: auto;
    float: none;
    position: relative;
    box-shadow: none;
    background: #151635;
    margin-top: -10px;
    border-radius: 0 0 10px 10px;
}

.main-navigation ul ul li {
  /*  padding: 4px 0;   */
}

.main-navigation ul ul a {
    width: 100%;
    font-size: 18px;
    min-height: 30px;
    line-height: 30px;
}



.home_textblock_1 {
    display: block;
    min-height: auto;
}

.home_textblock_1_text h1 {
    font-size: 28px;
    text-align: center;
}

.home_textblock_1_form {
    width: 100%;
    padding: 20px 20px 5px;
    margin-top: 15px;
}


.home_programs_block h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.home_program_block h3 {
padding: 0 25px;
    min-height: auto;
}

#post-20 h1, #post-137 h1 {
font-size: 24px;
letter-spacing: 0;
line-height: 1.4;
}

#post-20 p, #post-137 p {
font-size: 14px;
}

.site-footer {
    text-align: center;
}

.site-footer h5 {
    margin: 20px 0;
}
#support-menu {
    margin: 40px 0 0;
}


.home_textblock_2 {
    padding: 25px 0;
}

.program_topspace {
    margin-top: 20px;
}

.home_textblock_2 .h2 {
    font-size: 22px;
    padding-left: 0;
    display: flex;
    flex-direction: column-reverse;
   margin-top: 0;
    text-align: center;
}

.home_textblock_2 .alignright {
    float: none;
    margin: 20px 0 0;
}


.home_tarifs_block h2 {
    font-size: 24px;
}


.home_sert_block {
   padding-bottom: 40px;
    background-size: contain;
}


.home_prefs_block h2 {
    font-size: 24px;
    margin-top: 0;
}

.home_reviews_block {
    background-size: contain;
}

.home_reviews_block h2 {
    font-size: 24px;
}

.home_review_block {
padding: 25px 20px;
}

.home_review_block .row {
    flex-direction: column-reverse;
}

.home_reviews_text {
    padding-top: 30px;
}


.home_textblock_3 h2, .home_videos_block h2 {
    font-size: 22px;
}


.home_sert_block h2 {
    font-size: 24px;
}

.home_footform_block h2 {
    font-size: 24px;
}

.home_footform_block .subhdr {
    font-size: 14px;
}

.fly-menu-open #wpadminbar + .site #masthead {margin-top: -1px;}











   }
