/*!
Theme Name: perfect
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: perfect
Tags: 
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
/* normalize.css v8.0.0 | 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.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

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

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
}

/**
 * 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; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
 * 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; /* 1 */
	font-size: 1em; /* 2 */
}

/* 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; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
 * 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; /* 1 */
	font-size: 1em; /* 2 */
}

/**
 * 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; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
	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; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

/**
 * 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; /* 1 */
	padding: 0; /* 2 */
}

/**
 * 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; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
 * 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; /* 1 */
	font: inherit; /* 2 */
}

/* 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;
}

/*--------------------------------------------------------------
# Typography
-----------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Gentium+Book+Basic&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lora:400,700&display=swap');

@font-face {
  font-family: 'Bebas Neue Bold';
  src: url('fonts/BebasNeueBold.woff') format('woff'); 
  font-weight: normal;
  font-style: normal;
  }

body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;	
	font-family: 'Lora', sans-serif;
}

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;
	font-size: 15px;
	font-size: 0.9375rem;
	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;
	font-size: 15px;
	font-size: 0.9375rem;
}

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

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

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background-color: rgb(226, 226, 226);
	font-family: 'montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.4;
	/* Fallback for when there is no custom background color defined. */
}

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: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

table {
	margin: 0;
	padding: 0 0 0.6rem 0;
	width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active, button: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 {
	border-color: #aaa #bbb #bbb;
}

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 {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

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



/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a, a:visited {
	color: #056DFF;
	text-decoration: none;
}


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

a:focus {
	outline: thin dotted;
}

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
/* #region [ rgba(0,35,139,0.2)]  */ 

.anchor_item  {
    display:block;
    padding-top:43px;
    margin-top:-43px;
 }

.site-header {
    position: fixed;     
    top: 0; 
    margin:0;
    padding: 0;
	position: fixed;    
    background-color: #F1F1EF;
    width: 100%; 
     z-index: 999;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.6); 
    color: #000e4c;
}

.primary-text {
margin: 0 auto;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
min-height: 43px;
}
  
.primary-text p {
margin: 0; 
padding: 0;  
font-family: 'Gentium Book Basic', serif;
font-size: 1rem;   
letter-spacing: 0.6px;
font-weight: normal;
line-height: 1.4;   
display: block;
text-align: right;
}

.primary-text h1 {
	display: inline-block;
	font-size: 1.2rem;
	margin:0;
	font-family: 'Bebas Neue Bold', sans-serif;
	font-weight: normal;
	line-height: 1;
}
  
.logo {
margin: 0 0 0 0.6rem;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
}

.logo a {
color: #000e4c;
}

.logo a:hover {
color: #cc0000;
}
  
.phone  {  
margin: 0 0.6rem 0 0;  
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center; 
}
.inline { 
display: none;  
}

.top-navigation {	
	display: none;
}

#top-link {
	display: none;
	}
	
	#top-link-mobile {
	display: none;
	}
  

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {	
border-bottom: 1px solid #eee;
border-top: 1px solid #eee;
margin: 56px auto 0 auto;
background-color: #fff;
max-width: 960px;
padding: 1rem 0;
box-shadow: 0px 4px 12px -6px rgba(60, 60, 60, 0.8); 
z-index: 88;
text-align: center;	
}

.main-navigation ul {
display: none;   
}


.hamburger {
position: relative;
display: inline-block; 
min-width: 60px;
text-align: center;
}
  
.dropdown-content {  
display: none;
position: absolute; 
min-width: 130px;
background-color: #f9f9f9;  
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);  
z-index: 99999;
position: absolute;
    top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */
    transform: translate(-50%, 4%);
}
  
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #f1f1f1}
  
  .hamburger:hover .dropdown-content {
	display: block;
  }

/* #endregion*/

/* #region [ rgba(6,10,19,0.7)]  */ 

/* ---------------- Landing Header ---------------*/
.landing-container {
text-align: center;
}
.landing-header {
  margin: 48px 0 0 0;
  width: 100%;
  height: 400px; 
  text-align: center;
  color: black; 
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;   
  color: rgb(24, 24, 24);  
}

.landing-header {
background: transparent url(img/mobile420.jpg) no-repeat scroll top center; 
}



.white-container {
  background-color: rgba(204, 204, 204, 0.85);
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8); 
  border-radius: 25px;
  margin: 0 0.4rem;
}

.white-container h1 {
margin: 0.8rem 0.4rem;
padding: 0;
font-size: 1.4rem;
letter-spacing: 1px;
line-height: 1.6;
font-weight: normal;
}

.white-container h2 {
margin: 0.5rem 0.5rem;
font-size: 1.3rem; 
padding: 0;  
letter-spacing: 1px;
line-height: 1.6;
font-weight: normal;
}

.white-container h3 {
margin: 0.5rem 0.5rem;
font-size: 1.2rem; 
padding: 0;  
letter-spacing: 1px;
line-height: 1.6;
font-weight: bold;
}

.white-container p {
  margin: 0.6rem 0 1rem 0; 
  padding: 0;  
  font-family: 'Gentium Book Basic', serif;
  font-size: 1.3rem;   
  letter-spacing: 1px;
  font-weight: normal;
  line-height: 1.6;     
}

/* ---------------- Main Landing ---------------*/

.main-landing {  
 margin: 0;
  padding: 0;
  margin-bottom: 0.5rem;
}

.main-landing-container {
	margin: 0 auto;
	padding: 0 0.4rem;
  max-width: 100%;
	display: inline-grid; 
	grid-template-columns: 1fr;
	grid-auto-rows: auto;	
	grid-gap: 8px;	
	text-align: left;	
	align-items:center;
	justify-content: center;
}

.landing-frame {
	margin: 0.2rem 0.2rem;	
  max-width: 310px;
  background-color: #fff;
	box-shadow: 0 0 12px 1px rgba(82, 82, 82, 0.4); 
	display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;  
}


.main-landing h1 {  
  font-size: 2.2rem;
  line-height: 1.6;
  font-weight: normal;
  text-align: center;
  margin: 1.5rem 0;  
}

.gallery-header {  
  margin: 1rem 0 0.6rem 0;  
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4; 
  text-align: center;  
  color: #3F3F3F;
}

.main-landing h2 {  
	margin: 1rem 0;  
	font-size: 1.4rem;		
	line-height: 1.8; 
	padding: 0 0.4rem;		
}

.main-landing h3 { 
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: normal;
  text-align: center;
  margin: 0.9rem 0.6rem;
}


.main-landing h4 {
  margin: 0 0 0.6rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: normal;
  text-align: center;  
}

.main-landing-container p {
  margin: 0 0.25rem 2rem 0.6rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  text-align: left;
}


.landing-center { 
  display: block;
  margin: 1rem auto 0.2rem auto;
}

h2.num {
  font-size: 2.6rem !important;
  margin:0.8rem 0 0 0;
  font-family: 'Gentium Book Basic', serif;
  font-weight: normal;
}

h2.num:before, h2.num:after {
  border-bottom: 1px solid #000;
  content: '';
  display: inline-block;
  height: 39px;
  vertical-align: top;
  width: 36px;
}

h2.num:before {
  margin-right: 23px;
}

h2.num:after {
  margin-left: 23px;
}

.landing-text-wrap {
  margin: 1rem 0.6rem;
  max-width: 1030px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

.landing-text {    
  margin:  0 auto;
	padding: 1rem 0;
	width: 100%;
	display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
  text-align: left;  
  background-color: #fff;
	box-shadow: 0 0 12px 1px rgba(82, 82, 82, 0.4);   
	text-align: center;
}

.landing-text h1 {
  font-size: 1.4rem;
    line-height: 1.4;
    font-weight: normal;
    text-align: center;
    padding: 0.9rem 0.6rem;
    margin: 0;
}

.landing-text h2 {
	margin: 0.4rem 0.6rem;
	font-size: 1.2rem;
	color: #3F3F3F;
}

.landing-text h3 {
	font-size: 1.2rem;
    margin: 0.4rem 0;
    color: #3F3F3F;
    font-weight: normal;
}

.landing-text h4 {
	margin: 0.6rem;
	padding: 0.9rem;
	font-family: 'Gentium Book Basic', serif;
	font-size: 1.45rem;
	font-weight: normal;
	background-color: rgb(230, 230, 230);
	box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.6);
	border-radius: 1.5rem;
	
}


.landing-text p {  
  margin: 0.1rem 0.6rem 0.8rem 0.6rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  }

	.landing-contacts {		
		max-width: 1030px;
		width: 100%;
		margin: 0 0.6rem;
		padding: 0;
		display: flex; 
		flex-flow: row nowrap;
		justify-content: center;
		align-items: center;
		text-align: center;  
		background-color: #fff;
  box-shadow: 0 0 12px 1px rgba(82, 82, 82, 0.4); 
	}

	.landing-gallery-container {
		max-width: 1030px;
		margin: 0 auto;
	  padding: 1rem 0;
		background-color: #fff;
    box-shadow: 0 0 12px 1px rgba(82, 82, 82, 0.4); 

	}


/* #endregion*/


/* #region [ rgba(32,115,112,0.1)]  */ 
.contacts-blocks {
	display: flex; 
flex-flow: column nowrap;  
justify-content: space-around;  
align-items: flex-start; 
}

.contacts-blocks > div {
width: 100%;
margin: 0.1rem 0.4rem;
}

.contacts-blocks h3::after {
	content: "";
	background-color: #8B8B8B;
	top: 18px;
	bottom: 0;
	left: 0;	
	display: block;
	position: relative;
	width: 220px;
	height: 1px;
	margin:0 auto;
}

.contacts-blocks h3 {
margin-bottom: 2rem;
}

.contacts-blocks a {
margin: 0.6rem 0.4rem;
padding: 0.6rem 0;
}

a svg:hover #social { 
  fill: #2794DD;
}

a svg #social { 
  transition: 200ms;
  transition-timing-function: ease-in-out;
  -webkit-transition: 200ms;
  -webkit-transition-timing-function: ease-in-out;
}


/* #endregion*/

/* #region [ rgba(0,35,139,0.2)]  */ 

.site-footer {    
    margin:0;
    padding: 0.6rem 0;  
    text-align: center;	
    font-size: 1rem;
    background-color: #21282E;
}

.site-footer p {
margin: 1rem 0;
color: #EFEFEF;
}

.site-footer a {
color: #EFEFEF;
}

.site-footer a:hover {
	color: #FFD505;
}
/* #endregion*/


/* #region [ rgba(15,255,25,0.1)]  */ 


.box {
  max-width: 300px;
  margin: 1rem auto;  
  padding: 0;
  border: 2px solid #fff;
  border-radius: 20px/50px;
  background-clip: padding-box;
  text-align: center;
}

.button {
  font-family: 'montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 10px;
  color: #fff;
  border: 2px solid #06D85F;
  border-radius: 20px/50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
  background: #06D85F;
}
.button:hover {
  background: rgb(2, 136, 58);
  border: 2px solid rgb(2, 136, 58);
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 100ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 80px auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 5px;
  max-width: 240px;
  position: relative;
  transition: all 1s ease-in-out;
}

.popup .close {
  position: absolute;
  top: 0;
  right: 1rem;
  transition: all 200ms;
  font-size: 1.8rem;
  font-weight: 400;
  text-decoration: none;
  color: #333;
  line-height: 1.2;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  
  overflow: auto;
}

.frm_submit {
  text-align: center;
}


/* #endregion*/


/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/

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


/* ---------------- Gallery ---------------*/

.gallery-container {
  text-align: center;
}

.gallery-container h2{
margin: 1.2rem 2.8rem;
font-size: 1.6rem;
font-weight: bold;
line-height: 1.8;
text-align: center;
color: #3F3F3F;
}

.gallery-wrap {   
  max-width: 1080px;
  padding: 0 1rem;  
  margin: 0 auto; 
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

.gallery {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;  
}

.gallery img {  
  width: 100%;
	height: auto;	
  border: 1px solid rgba(0, 12, 48, 0.2);
	transition: transform .15s ease;  
}
.gallery a {
	margin: 0 0.2rem;
}

.gallery a:hover img { 
  transform: scale(1.02);
	z-index: 5;
	border: 1px solid #cc0000;
}

/* #region [ rgba(0,35,139,0.2)]  */ 

@media screen and (min-width: 400px) { 

	.main-navigation {      
	margin: 56px auto 0 auto;;
	padding: 1rem 0;
	}
	
	.main-navigation a {
		margin: 0.15rem 0;        
		font-size: 0.85rem;          
	}
	
	.site-info div a {				
		font-size: 1rem;
		
	}

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

#related_posts_thumbnails {		
grid-template-columns: repeat(2, 1fr);			
grid-gap: 2px;			
}

.landing-text, .landing-gallery-container {
	max-width: 100%;

}

}

@media screen and (min-width: 421px) {  
	
	.logo img {
		margin: 0 0.6rem 0 0.6rem;
	}
	.phone img {
		margin: 0 0.6rem 0 0;
	}

  .inline { 
    display: inline-block;   
  }

  .landing-header {   
  background: transparent url(img/mobile600.jpg) no-repeat scroll top center;  
	}

			}

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

		  
.phone {  
margin: 0 0.6rem 0 0;   

}

.primary-text p {
font-size: 1.4rem;   
letter-spacing: 0.2px;
display: block;
}	
		
}

@media screen and (min-width: 500px) {  

.primary-text p {		
display: inline-block;
}	

.main-landing-container {
	grid-template-columns: 1fr 1fr;
	}

}

@media screen and (min-width: 600px) {  
.primary-text h1 {    
font-size: 1.6rem;
margin:0;    
line-height: 1.4;
}				


.main-navigation ul {
list-style: none;
margin:0 auto;
padding: 0;
display: flex;
flex-flow: row nowrap;
justify-content: space-around;    
}
				
.main-navigation ul li {
font-size: 1.1rem;   
}	  
	
	
.main-navigation a {
margin: 0.15rem 0;        
font-size: 1rem;          
}  
.site-info div {				
margin: 0 1rem;			
}

.entry-content p {
font-size: 1.1rem;
padding:0 0.8rem;
line-height: 1.6;
}

.main-flex {
flex-flow: row nowrap;
}

.main-flex div {
margin: 0 0.6rem;
	}

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

#related_posts_thumbnails {		
grid-template-columns: repeat(3, 1fr);			
grid-gap: 2px;			
}

.three-icons p {
font-size: 1.1rem;
}

.telephone {     
padding: 0.6rem 1.2rem;	
}

.telephone p {
margin: 0.6rem 0 0 0;
padding: 0;
}

.landing-header {   
  background: transparent url(img/ipad800.jpg) no-repeat scroll top center;  
	}

  .white-container h1 {
  margin: 1.1rem 0.6rem;
  padding: 0.5rem 1rem; 
  font-size: 1.6rem;    
  }

  .white-container h2 {
  margin: 1.05rem 0.5rem;
  font-size: 1.4rem;
  font-weight: normal;
  }

  .white-container h3 {
    margin: 1.05rem 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    }

  .white-container p {
  margin: 0 0 0.8rem 0;              
  font-size: 1.1rem;     
  font-weight: normal;
  line-height: 1.6;        
  padding: 0; 
	}


		.gallery-header {
			font-size: 1.5rem;		
			line-height: 1.8; 
		}

		.popup {  
			max-width: 320px;   
		}
	
		.frm_form_field.frm6, .frm_submit.frm6, .frm_form_field.frm_left_half, .frm_form_field.frm_right_half, .frm_form_field.frm_first_half, .frm_form_field.frm_last_half, .frm_form_field.frm_half, .frm_submit.frm_half {
			width: 100% !important;
	}
	
	
	.box {
		max-width: 400px;
		margin: 2rem auto;    
	}

}

/* #endregion*/



@media screen and (min-width: 760px) {  
	.hamburger {
		display: none; 
		}	

.top-navigation {
	margin: 0 auto;
	color: white;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;	
	max-width: 400px;
	}
	
	.top-navigation ul {
	width: 100%;
	max-width: 400px;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	}
	
	.top-navigation ul li {
	margin: 0 0.4rem;
	}  
	
	.top-navigation ul li a {
		font-family: 'Bebas Neue Bold', sans-serif;
		position: relative;	
		margin: 0;
		text-transform: uppercase;
		font-weight: 700;
		font-size: 1.1rem;
		letter-spacing: 1.6px;
		color: #000e4c;
		}  

		.top-navigation ul li a:before {
			content: "";
			position: absolute;
			width: 100%;
			height: 2px;
			bottom: 0;
			left: 0;
			top: 22px;
			background-color: #cc0000;
			visibility: hidden;
			-webkit-transform: scaleX(0);
			transform: scaleX(0);
			-webkit-transition: all 0.3s ease-in-out 0s;
			transition: all 0.3s ease-in-out 0s;
		}

		.top-navigation ul li a:hover:before {
			visibility: visible;
			-webkit-transform: scaleX(1);
			transform: scaleX(1);
		}	
	.main-landing-container {	
		max-width: 1080px;
		grid-template-columns: 1fr 1fr 1fr;
		}
	}
@media screen and (min-width: 800px) {   

	.contacts-blocks {
		flex-flow: row nowrap;  
		justify-content: space-around;  
		align-items: flex-start; 
		width: 100%;
		padding: 1rem 0;
		}

		.contacts-blocks > div {
			width: 100%;
			margin: 0.1rem 0.4rem;		
			min-height: 100px;
			}

			.contacts-blocks > div:nth-child(2) {
			border-left: 1px solid #8B8B8B;
			border-right: 1px solid #8B8B8B;
			}	
		}

@media screen and (min-width: 800px) {   

  .landing-header {    
    background: transparent url(img/main1080.jpg) no-repeat scroll top center;     
	} 


  .text-grid div {    
    max-width: 400px;    
    text-align: left;
    }   
  
}

@media screen and (min-width: 900px) { 
	
  .white-container h1 {
		margin: 1.1rem 0.6rem;
		padding: 0.5rem 1rem; 
		font-size: 1.8rem;    
		}
	
		.white-container h2 {
		margin: 1.05rem 0.5rem;
		font-size: 1.6rem;
		font-weight: normal;
		}
	
		.white-container h3 {
			margin: 1.05rem 0.5rem;
			font-size: 1.4rem;
			font-weight: bold;
			}
	
		.white-container p {
		margin: 0 0 0.8rem 0;              
		font-size: 1.4rem;     
		font-weight: normal;
		line-height: 1.6;        
		padding: 0; 
		}

#related_posts_thumbnails img {
max-width:250px;
height: 100%
}
.gallery-grid img {
max-width:250px;
height: 100%
}

.landing-text > .gallery-grid > .gallery-grid-block {
	margin:0 0.4rem;
}

}


@media screen and (min-width: 920px) {  


	.landing-text > .gallery-grid > .gallery-grid-block {
		margin:0 1rem;
	}
	
	}



@media screen and (min-width: 1081px) {  

	.landing-text-wrap {
		margin: 1rem auto;
		max-width: 1010px;
	}

.landing-header {    
background: transparent url(img/main1600.jpg) no-repeat scroll top center;     
}
	
.primary-text h1 {    
font-size: 1.8rem;
margin:0;    
line-height: 1.4;
}

.landing-gallery-container {
	min-width: 1030px;
}

}


@media screen and (min-width: 1601px) {   
  .landing-header {    
    background: transparent url(img/main1920.jpg) no-repeat scroll top center;   
	}

}