.toggle,
[id^=drop] {
	display: none;
}
/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}
.headerphone {
	float: right;
    padding-right: 20px;
    font-size: 31px;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	float: right;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #fff;
	}

/* Styling the links */
nav a {
	display:block;
	padding:20px;	
	/*color:#FFF;*/
	font-size:17px;
	text-decoration:none;
}
nav ul li:focus {
	color:#fff;
	background: #555;
	outline: none;
}

nav ul li ul li:hover { background: #000000; }

/* Background color change on Hover */
nav a:hover { 
	background-color: #293974;
    color: #fff;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 60px; 
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
	z-index: 9;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:auto;
	float:none;
	display:list-item;
	position: relative;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:170px; 
}

	
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ' >'; }
li > a:only-child:after { content: ''; }


/* Media Queries
--------------------------------------------- */

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

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}
	#logo h5 {
		float: none;
		margin: 0;
		padding: 0;
	}
	nav {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		background-color: #293974;
		padding:14px 20px;	
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
	}
	.headerphone {
		margin-top: 15px;
	}
	.toggle:hover {
		background-color: #000000;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
		background-color: #000000;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		padding:14px 20px;	
		color:#FFF;
		font-size:17px; 
	}
  
  
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #f3f3f3; 
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}
.lightbox {
	    position: sticky !important;
}
input[type="submit"] {
	width:100% !important;
}	
}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}

}

/*бордер в табличке*/
td.text {
    border: 1px solid #ddd;
	font-weight: bold;
	/*font-style: italic;*/
	color:#ff0000;
}
td.text:nth-child(1) {
	font-weight: 400;
	color:#666;
}
td.text span {
    font-weight: 400;
    font-size: 13px;
}

/*поля и инпуты*/

form {
  margin: 0 auto;
  padding: 1em;
  max-width: 640px;
  background: white;
  border-radius: 0.25em;
}

legend {
  display: block;
  margin: 0 auto;
}

label {
  display: inline-block;
  margin: .5em 0;
}

input {
  transition: border, 100ms;
  font-size: 1em;
  font-family: 'Helvetica Neue', helvetica, sans-serif;
  line-height: 1.5em;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: .5em 1em;
  border: none;
  border-radius: 0.3em;
  background: #eee;
  display: block;
    margin: 0;
    width: 100%;
}
input:focus {
  border-left: 0.5em solid #293974;
}
input:focus {
  color: darkslategray;
}
input:focus {
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 10px 1px inset;
  box-sizing: border-box;
  outline: none;
  background: #f3f3f3;
}

input[type="email"],
input[type="password"] {
  width: 50%;
}

input[type="text"] {
  width: 100%;
}

fieldset {
  margin: 1em 0;
  padding: 1em;
  border: #f3f3f3 solid 2px;
  border-radius: 0.3em;
  text-align: center;
}
fieldset.radio-list {
  text-align: left;
}
fieldset.radio-list input[type="radio"] + label {
  display: block;
}
fieldset input[type="radio"] {
  position: absolute;
  opacity: 0;
}
fieldset input[type="radio"] + label {
  margin-right: 1em;
  color: #999;
  cursor: pointer;
}
fieldset input[type="radio"]:focus + label,
fieldset input[type="radio"]:hover + label,
fieldset input[type="radio"] + label:hover,
fieldset input[type="radio"]:checked + label {
  color: darkslategray;
}
fieldset input[type="radio"] + label span {
  display: inline-block;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  margin-right: .25em;
  width: 1em;
  height: 1em;
  border: .25em solid #ccc;
  border-radius: 50%;
  vertical-align: text-bottom;
  transition: border, 200ms;
}
fieldset input[type="radio"]:focus + label span,
fieldset input[type="radio"] + label:hover span,
fieldset input[type="radio"] + label span:hover {
  border: 0.25em solid darkslategray;
}
fieldset input[type="radio"]:checked + label span {
  border: 0.25em solid #293974;
  background-color: darkslategray;
}

.select {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  border: none;
  border-radius: 0.3em;
  background: #eee;
}
.select:focus {
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 10px 1px inset;
  box-sizing: border-box;
  outline: none;
  background: #f3f3f3;
}
.select:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position: absolute;
  right: 1em;
  bottom: 40%;
  display: block;
  width: .75em;
  height: .75em;
  border: 2px solid darkslategray;
  border-top: none;
  border-right: none;
  content: '';
}
.select:focus, .select:hover:after {
  border: 4px solid #293974;
  border-top: none;
  border-right: none;
  transition: border, 100ms;
}
.select select {
  -moz-appearance: none;
  -webkit-appearance: none;
  transition: border, 100ms;
  font-size: 1em;
  font-family: 'Helvetica Neue', helvetica, sans-serif;
  line-height: 1.5em;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: .5em 1em;
  border: none;
  border-radius: 0.3em;
  background: #eee;
  background: transparent;
  z-index: 1;
  position: relative;
  display: block;
  width: 100%;
  outline: none;
  border: none;
  font-size: 100%;
}
.select select:focus {
  border-left: 0.5em solid #293974;
}
.select select:focus {
  color: darkslategray;
}
.select select:focus {
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 10px 1px inset;
  box-sizing: border-box;
  outline: none;
  background: #f3f3f3;
}
.select select:focus {
  background: transparent;
}
.select select:focus + .select:after {
  border: 4px solid #293974;
  border-top: none;
  border-right: none;
  transition: border, 100ms;
}

textarea {
  transition: border, 100ms;
  font-size: 1em;
  font-family: 'Helvetica Neue', helvetica, sans-serif;
  line-height: 1.5em;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: .5em 1em;
  border: none;
  border-radius: 0.3em;
  background: #eee;
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}
textarea:focus {
  border-left: 0.5em solid #293974;
}
textarea:focus {
  color: darkslategray;
}
textarea:focus {
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 10px 1px inset;
  box-sizing: border-box;
  outline: none;
  background: #f3f3f3;
}

.agreement {
  margin: 1em 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 1em;
  border-radius: 0.3em;
  background: #eee;
  overflow: scroll;
  max-height: 16em;
}
.agreement p {
  margin: 1em 0;
  font-size: .625em;
  line-height: 1.2;
  color: #999;
}

input[type=checkbox] {
  margin: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.checkbox {
  position: relative;
  clear: both;
  margin: 1em 0;
  text-align: left;
}
.checkbox label {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 20px;
  height: 20px;
  border-radius: 0.3em;
  background: #eee;
  cursor: pointer;
}
.checkbox label:after {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position: absolute;
  bottom: .6em;
  left: 25%;
  width: 0;
  height: 0;
  border: 2px solid #333;
  border-top: none;
  border-right: none;
  background: transparent;
  content: '';
  transition: width, height, border, 100ms;
}
.checkbox label:hover, .checkbox input[type=checkbox]:checked + label {
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 10px 1px inset;
}
.checkbox input[type=checkbox]:focus + label:after, .checkbox label:hover:after {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
  opacity: 0.5;
  width: 1em;
  height: 8px;
}
.checkbox input[type=checkbox]:checked + label:after {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
  width: 1em;
  height: .6em;
  border: 4px solid #293974;
  border-top: none;
  border-right: none;
}
.checkbox span {
  margin-left: 2em;
  line-height: 20px;
}

input[type="submit"] {
  transition-property: background-color, color;
  transition-duration: 200ms;
  display: block;
  margin: 0 auto;
  padding: .5em 2em;
  width: 50%;
  border: none;
  border-radius: 0.3em;
  background-color: darkslategray;
  color: white;
  font-size: 1em;
}
input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus {
  background-color: #293974;
  color: black;
}
input[type='number'] {
    -moz-appearance: textfield;
}

/*стики шапка*/
.layer1 {
    position: relative; /* Относительное позиционирование */
    background: #293974; /* Цвет фона */
    height: auto; /* Высота блока */
    display: block;
    padding: 10px 0;
    color: #ffffff;

}
.layer2 {
    max-width: 1200px;
    margin: 0 auto;
}
ul.headerlist {
    padding: 0;
    text-align: center;
    margin: 0;
}
.headerlist li {
    display: inline-block;
    padding: 0 45px;
    font-size: 21px;
    line-height: 34px;
}
.headerlist li a {
    color: #FFFFFF;
    text-decoration: none;
}
.headerlist li a:hover {
    text-decoration: underline;
}
#logo h5 {
    font-family: Arial, Helvetica, sans-serif;
}
ul.menu {
    margin-top: 15px;
}
ul.menu a:active, ul.menu a:focus {
    background: #293974;
    color: #FFFFFF;
}

/*закрепляем шапку с контактами*/
.bigfixed {
    position: fixed;
	    top: 0;
    width: 100%;
    z-index: 999;
}
.bigmargin {
    margin-top: 68px;
}
@media  screen and (max-width: 920px) {
    .bigfixed {
        position: relative;
    }
    .bigmargin {
        margin-top: .75em;
    }
}

div#myModal3 {
    padding: 20px !important;
    /*top: 260px !important;*/
    color: #333333;

}
/*новая модалка*/
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.lightbox:target {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox__body {
  width: auto;
  position: relative;
}

.lightbox__content {
  background: #fff;
  padding: 15px;
  border-radius: 2px;
  position: relative;
  color:#686868;
}
.lightbox__content .close-reveal-modal {
	display:none;
}
.lightbox__content .tx-column {
	margin-bottom:10px !important;
}
.lightbox__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6em;
  color: #444;
}

.lightbox__close-btn::after {
  content: "Закрыть";
  display: inline-block;
  position: absolute;
  right: -15px;
  top: -15px;
  z-index: 3;
  width: auto;
  height: 30px;
  cursor: pointer;
  background: #000;
  font-weight: 700;
  font-size: 11px;
  padding: 0 15px;
  line-height: 30px;
  color: #fff;
}

.lightbox__close-btn::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
}