* {
  --diff: calc(var(--max-size) - var(--min-size));
  --responsive: calc((var(--min-size) * 1px) + var(--diff) * ((100vw - 360px) / (1280 - 360)));
  --diff2: calc(var(--max-size2) - var(--min-size2));
  --responsive2: calc((var(--min-size2) * 1px) + var(--diff2) * ((100vw - 360px) / (1280 - 360)));
}

* {
	--color-dark: #58448e;
}

html {
	height: 100%;
}

body {
	font-size: 17px;
	overflow-x: hidden;
	min-width: 320px;
	font-family: 'Roboto', sans-serif;
	background-image: url('/images/us-bg.jpg');
	background-size: cover;
	background-attachment: fixed;
	height: 100%;
}


/* ОБЩИЕ СТИЛИ */

h1 {
	font-family: 'Roboto', sans-serif;
	color: var(--color-prim);
  --max-size: 38;
  --min-size: 28;
  font-size: var(--responsive);
  --max-size2: 15;
  --min-size2: 10;
  margin-top: var(--responsive2);
  margin-bottom: var(--responsive2);
}

h2 {
	font-family: 'Roboto', sans-serif;
  --max-size: 28;
  --min-size: 24;
  font-size: var(--responsive);
	margin-top: 0;
}

h3 {
	font-family: 'Roboto', sans-serif;
	color: var(--color-prim);
  --max-size: 30;
  --min-size: 24;
  font-size: var(--responsive);
  --max-size2: 25;
  --min-size2: 20;
  margin-top: var(--responsive2);
}

h4, .h4 {
	font-family: 'Roboto', sans-serif;
	color: var(--color-prim);
  --max-size: 24;
  --min-size: 17;
  font-size: var(--responsive);
}

h5 {
  font-size: 18px;
  font-weight: 600;	
}

a {
	color: var(--color-prim);
}

p a, .u {
	text-decoration: underline;
	font-weight: bold;
}

main h4 {
	color: var(--color-prim);
	font-weight: 400;
}

.container {
	width: 100%;
	max-width: 1200px;
}

p:not(.card-description) {
  text-indent: 40px;
}

.card-value {
	color: var(--color-prim);
	font-weight: 600;
}

.card-wrap {
	margin-bottom: 30px;
}

.contacts p {
  text-indent: 0;
}


.pages {
	font-size: 20px;
}

.img-home {
	max-width: 100%;
	border-radius: 11px;
	border: 3px solid #FFFBDB;
	margin-bottom: 20px;
}


/* ШАПКА */

header {
	background-color: #fff;
	background-image: url('/images/us-header.png');
	background-position: 50% 0;
	height: 154px;
	margin-bottom: 20px;
}

.menu-desktop {
	font-size: 18px;
}

.logo {
	padding-bottom: 12px;
	padding-top: 50px;
}

nav ul {
	padding: 0;
	list-style: none;
}

nav ul a {
	height: 50px;
	background-image: url('/images/menu-bullet.png'), url('/images/menu-item.png');
	background-position: 97%, left;
	background-repeat: no-repeat, repeat;
	margin-bottom: 6px;
	border-radius: 11px;
	border: 3px solid #FFFBDB;
	padding: 5px 15px;
	color: #fffcc8 !important;
	text-shadow: -2px 1px 2px rgba(0, 0, 0, 1);
	font-size: 22px;
	display: block;
}

nav ul a.hot {
	height: 50px;
	background-image: url('/images/menu-bullet-hot.png'), url('/images/menu-item-hot.png');
}

.header-right {
	text-align: right;
	padding-top: 63px;
	font-size: 18px;
	font-weight: bold;
	background-image: url('/images/us-header-right.png');
	background-position: top 0 right -95px;
	background-repeat: no-repeat;
	height: 154px;
}

.img-menu {
	margin-bottom: 6px;
	border-radius: 11px;
	border: 3px solid #FFFBDB;
	max-width: 100%;
}

.contacts a img {
	width: 32px;
}


/* ПОДВАЛ */

.footer {
	background-color: var(--color-prim);
	padding: 40px 0;
	color: #fff;
	margin-top: 40px;
}

.footer .modal {
	color: #333;
}

.footer a {
	opacity: 0.85;
	color: #fff;
}

.footer a {
	opacity: 0.7;
}

.footer .modal a {
	color: var(--color-prim);
}

.footer h3 {
	display: none;
}

.footer h3.modal-title {
	display: block;
}

.footer .btn-default {
	border: 0;
	background-color: #fff;
	color:  var(--color-prim);
	margin-top: 15px;
}


/* АДАПТИВНОСТЬ */

@media (max-width:767px) {
	.logo img {
		max-width: 320px;
	}
		
	body {
		--max-size: 16;
		--min-size: 14;
		font-size: var(--responsive);
	}
	
	.header-right {
		background-image: none;
		background: #fff;
		text-align: left;
		padding-top: 6px;
		padding-bottom: 6px;
		height: auto;
		font-size: 16px;
	}
		
	header {
		background-position: 30% -29px;
	}
	
	.logo {
		padding-top: 30px;
	}
}

@media (max-width:960px) {
	nav ul a {
		padding: 6px 12px !important;
		font-size: 20px;
		overflow: hidden;
		white-space: nowrap;
	}
}

@media (max-width:900px) {
	nav ul a {
		background-image: url('/images/menu-item.png');
		background-position: left;
		background-repeat: repeat;
	}
	nav ul a.hot {
		background-image: url('/images/menu-item-hot.png');
	}
	.pushy {
    background: #fff;
		padding: 0 10px;
	}
}

@media (max-width: 479px) {
  .col-xxs {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
  }
  .col-xxs-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  .col-xxs-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-xxs-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .order-xxs-first {
    order: -1;
  }
	.col-xxs-6:nth-child(even) {
    padding-left: 8px;
  }
	.col-xxs-6:nth-child(odd) {
    padding-right: 8px;
  }
}




