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

body {
	height: 100%;
	font-family: 'Pt Sans';
	font-size: 17px;
	min-width: 320px;
	overflow-x: hidden;
}

/* Заголовки */
h1 {
	font-family: 'Roboto Slab', serif;
	margin-top: 16px;
	margin-bottom: 15px;
  --max-size: 38;
  --min-size: 30;
  font-size: var(--responsive);
}

h2 {
	font-family: 'Roboto Slab', serif;
  --max-size: 32;
  --min-size: 26;
  font-size: var(--responsive);
  color: #666;
}

h3 {
	font-family: 'Roboto Slab', serif;
	color: var(--color-alt-l);
  --max-size: 30;
  --min-size: 24;
  font-size: var(--responsive);
}

h4 {
	font-family: 'Roboto Slab', serif;
	font-size: 25px;
  color: #666;
}

/* Кнопки */
.btn {
	border-radius: 999px;
	font-size: 17px;
	padding: 4px 16px 5px;
}

.btn-white {
	background-color: #fff;
	color: #002b60;
	border: 2px solid #fff;
}

.btn-outline {
	color: #fff;
	border: 2px solid #fff;
}

.btn-outline:hover {
	background-color: rgba(0,0,0,0.3);
	color: #fff;
}

.btn-lg {
	padding: 9px 25px 9px;
	font-size: 20px;
}


/* ШАПКА */

/*Панель*/
header {
	background: rgb(0,121,204);
	background: linear-gradient(0deg, rgba(0,121,204,1) 0%, rgba(40,235,145,1) 100%);
}

.top {
	background-color: #fff;
	padding: 10px 0;
	z-index: 50;
	position: fixed;
	width: 100%;
	top: 0;
	border-bottom: 1px solid var(--color-sec);
}

.top .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	max-width: 50vw;
	float: left;
	margin-right: 12px;
}

.logo {
	font-family: 'Roboto Slab', serif;
	color: #666;
	font-size: 24px;
	line-height: 1.1;
}

.logo a {
	color: #666;
}

.logo-text {
	display: inline-block;
	padding-top: 4px;
}

.nav-top {
	list-style: none;
	margin: 0;
	display: inline-block;
	padding-left: 10px;
}

.nav-item {
	display: inline-block;
	font-size: 18px;
}

.nav-item > a {
	padding: 5px 15px 6px;
	border-radius: 999px;
	transition: all 0.2s;
}

.nav-item a:hover {
	background-color: var(--color-sec);
	text-decoration: none;
}

.nav-item.active > a {
	color: #fff;
	background-color: var(--color-prim);
}

/* Слайдер */
.slider {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	opacity: 0;
	transition: 0.2s;
}
.slider.loaded {
	opacity: 1;
}

.slide {
	height: 100vh;
	color: #fff;
}

.slide-content {
	text-align: center;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-description {
	font-size: 20px;
	max-width: 800px;
	text-shadow: 1px 1px #002b60, 0 0 15px #000;
	margin: 0 auto;
}

.slide h1 {
	text-shadow: 2px 1px #002b60, 0 0 30px #000;
	text-align: center;
}

.unslider {
	overflow: hidden;
}

.unslider-nav {
	margin-top: -36px;
	padding-bottom: 12px;
	z-index: 999;
	position: relative;
}

.unslider-arrow {
  display: block;
  width: 32px;
  height: 32px;
  top: 50%;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.2) no-repeat 50% 50%;
  background-image: none;
  background-size: auto auto;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAQAAABuQZ3IAAAAi0lEQVR4AU3OISBEQQBAwS0AACS9NxqQgCZpkiYBVddFvWhAAUABAPQCAGC4g/0vTnrBqCfDIZl70J+kMUBPpEwT4FNXxBxz4F1HxHyr4EVTxBLb4EFNxEon4CJSlVNw9AcV9sC16h8osgke1P1ArgXwouVvdQq86ww/GQefusNf7kBviBlxpT8k+gL/Wox4r1d4MwAAAABJRU5ErkJggg==');
  background-size: 7px 11px;
  border-radius: 32px;
  text-indent: -999em;
  transition: all .2s;
  z-index: 45;
}

.unslider-arrow.prev {
  transform: rotate(-180deg);
}

.unslider-arrow:hover {
	background-color: rgba(0,0,0,.5)
}

.slide .btn {
	padding: 4px 18px 6px;
	margin: 10px;
}

.header-in {
	margin-top: 80px;
	padding: 30px 0 40px;
	text-align: center;
	background: linear-gradient(0deg, rgba(0,121,204,1) 0%, rgba(40,235,145,1) 100%);
	color: #fff;
}

.svg {
  width: 40%;
  padding-bottom: 40%;
  min-width: 80px;
  margin: 10px auto;
}

.bg-alt {
	margin: 20px 0;
	padding: 25px 0;
	background: rgb(0,121,204);
	background: linear-gradient(0deg, rgba(0,121,204,1) 0%, rgba(40,235,145,1) 100%);
}

.bg-alt h1 {
	color: #fff;
	text-shadow: 1px 1px #002b60;
}


/* РАСПИСАНИЕ */

.course-price {
	font-size: 24px;
	font-weight: bold;
}

.courses-archive {
	border-top: 1px solid rgba(255,255,255,0.3);
	padding: 15px 0;
	margin-top: 15px;
}


/* КАРТОЧКИ */

.card .panel {
	box-shadow: 0 0 0 0 var(--color-prim);
	transition: 0.2s;
}

.card .panel:hover {
	box-shadow: 10px;
	box-shadow: 0 0 0 3px var(--color-prim);
	border-color: var(--color-prim);
}

.panel {
	overflow: hidden;
	border-color: #ddd;
	height: 100%;
}

.panel-body {
	padding-bottom: 0;
}

.card-head {
	margin-top: 0;
}

.card-description {
	line-height: 1.2;
	font-size: 16px;
	padding-bottom: 0;
}


/* РАЗНОЕ */

.breadcrumbs {
	margin-top: 20px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.plain, .plain:hover {
	color: inherit;
	text-decoration: none;
}

.form-control {
	max-width: 480px;
	margin-bottom: 15px;
}

main h2 {
	color: #666;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
}

.home-block {
	padding: 10px 0 20px;
}

.contacts-map {
	background-color: var(--color-sec);
	border: 1px solid #ddd;
	height: 513px;
}


/* ПОДВАЛ */

footer {
	margin-top: 30px;
	padding: 30px 0 40px;
	background: linear-gradient(0deg, rgba(0,121,204,1) 0%, rgba(40,235,145,1) 100%);
	color: #fff;
	text-align: center;
}

footer h4 {
	color: #fff;
}

footer a, footer a:hover {
	color: #fff;
	text-decoration: underline;
}

footer .fa-stack .fa-circle {
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.copyright {
	margin-top: 8px;
	padding-top: 8px;
	color: rgba(255,255,255,0.8);
	font-size: 16px;
	border-top: 1px solid rgba(255,255,255,0.3);
}

.color-facebook {
	color: #3b5998;
}

.color-instagram {
	color: #c13584;
}


/* МЕДИАВЫРАЖЕНИЯ */

@media (min-width:768px) {
	.container {
		width: 96%;
		max-width: 1170px;
	}
	
	.logo {
		min-width: 218px;
	}

	.nav-item {
		margin: 5px 0;
	}
}


@media (max-width:767px) {
	body {
		font-size: 16px;
		line-height: 1.3333;
	}
	
	.top {
		position: absolute;
	}	
	
	.nav-item {
		display: block;
	}

	.table thead {
		display: none;
	}
	
  .table tr td { 
    display:block;
    width:100% !important;
    padding-bottom: 0; 
    border:0;
  }
	
  .table tr th { 
    display:block;
    width:100% !important;
    border:0;
  }
  	
  .table tbody tr { 
    display:block;
    border: 1px solid #ddd;
  }
  	
  .table tbody tr:not(.active) { 
    padding-bottom: 15px; 
  }
  	
  .table tbody tr.active:not(:first-child) { 
    margin-top: 15px; 
  }
  
  .course-lector:before {
  	content: 'Лектор: ';
  }
  
  .course-price:before {
  	font-weight: bold;
  }

	.header-in {
		margin-top: 130px;
		padding-left: 10px;
		padding-right: 10px;
	}
		
	.nav-item a {
		padding: 1px 15px 3px;
	}
}


@media (max-width:480px) {
	.slide-content {
		padding-top: 130px;
	}

	.slide-description {
		font-size: 17px;
		line-height: 1.25;
		margin-bottom: 5px;
	}
	
	.unslider-nav {
		display: none;
	}
	
	.unslider-arrow {
	  top: auto;
	  bottom: 15px;
  }

	.slide h1 {
		margin-bottom: 5px;
	}
		
	.slide .btn {
		margin: 5px 10px;
		font-size: 18px;
	}
}