*, *::before, *::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol{
  list-style: none;
}

img {
  vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Делаем заголовки по центру и на полупрозрачном фоне с скруглением */
h4{
	text-align: center;
	background: rgba(256,256,256, 0.2);
	border-radius: 20px 20px 0;
	padding: 3%;
}

/* Закругляем кнопки в карточках */
.btn_br{
	border-radius: 15px;
	transition: all 3s;
}


.btn_br:hover{
	background: #9a2b00;
	box-shadow: 0 0 15px;
}

html, body {
  height: 100%;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 400;
  color: #405965;
	background-image: linear-gradient(115deg, #b6c2ff 0, #3c78f2 50%, #0039b9 100%);	
  font-family: 'Open Sans', sans-serif;
}

.wrapper {
  min-height: 100%;
  overflow: hidden;
  margin-left: 200px;
  margin-right: 200px;
}

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

header { 
	height: 70px;
	background-color: #fff;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 200px;
	padding-right: 200px;
	display: flex;
	justify-content: space-between;
}

.logo {
	display: flex;
	gap: 15px;
	width: 700px;
}

.logo-img {
	border-right: 4px solid lightblue;
}

.contacts-nav {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nav-list {
	padding-top: 17px;
	display: flex;
	gap: 10%;
	width: 65%;
	align-items: center;
	justify-content: center;
}

#menu__toggle {
	display: none;
}

.menu__box {
	display: none;
}

@media (max-width: 660px) {
	.nav-list {
		display: none;
	}

	.header-nav-list {
		display: none;
	}

	#menu__toggle {
		opacity: 0;
	}

	#menu__toggle:checked~.menu__btn>span {
		transform: rotate(45deg);
	}

	#menu__toggle:checked~.menu__btn>span::before {
		top: 0;
		transform: rotate(0);
	}

	#menu__toggle:checked~.menu__btn>span::after {
		top: 0;
		transform: rotate(90deg);
	}

	#menu__toggle:checked~.menu__box {
		visibility: visible;
		right: 0;
	}

	.menu__btn {
		display: flex;
		align-items: center;
		position: fixed;
		top: 20px;
		right: 20px;

		width: 26px;
		height: 26px;

		cursor: pointer;
		z-index: 10;
	}

	.menu__btn>span,
	.menu__btn>span::before,
	.menu__btn>span::after {
		display: block;
		position: absolute;

		width: 100%;
		height: 2px;

		background-color: black;

		transition-duration: .25s;
	}

	.menu__btn>span::before {
		content: '';
		top: -8px;
	}

	.menu__btn>span::after {
		content: '';
		top: 8px;
	}

	.menu__box {
		display: block;
		position: fixed;
		visibility: hidden;
		top: 0;
		right: -100%;

		width: 200px;
		height: 100%;

		margin: 0;
		padding: 80px 0;

		list-style: none;

		background-color: rgb(148, 205, 224);

		transition-duration: .25s;
		z-index: 1;
	}

	.menu__box ul {
		display: flex;
		flex-direction: column;
		text-align: center;
	}

	.menu__box li {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.menu__box .third-block-header {
		display: flex;
		flex-direction: column;
	}

	.menu__item {
		display: block;
		padding: 12px 24px;

		color: #333;

		font-family: 'Roboto', sans-serif;
		font-size: 20px;
		font-weight: 600;

		text-decoration: none;

		transition-duration: .25s;
	}

	.menu__item:hover {
		background-color: #CFD8DC;
	}
}


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

main {
	margin-top: 40px;
	
}

.itcss {
	padding-left: 200px;
	padding-right: 200px;	
}

.img-fluid {
	display: inline-block;
   opacity: 0.8;
   width: 100%;
}

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

.about {
	margin-top: 40px;
	background-color: #d4e9ff;
	padding-left: 200px;
	padding-right: 200px;
	position: relative;
}

.re-top {
	position: absolute;
	top: 0;
	left: 0;
	border-style: solid;
	border-width: 200px 200px 0 0;
	border-color: #1a559d transparent transparent transparent;
}

.re-bot {
	position: absolute;
	bottom: 0;
	right: 0;
	border-style: solid;
	border-width: 0 0 200px 200px;
	border-color: transparent transparent #1a559d transparent;
}

h3 {
	padding-top: 60px;
	font-size: 30px;
	text-align: center;
	margin-bottom: 40px;
}

.about-block {
	display: flex;
	align-items: center;
	gap: 50px;
	font-size: 18px;
	padding-bottom: 60px;
}

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

.features {
	padding-left: 200px;
	padding-right: 200px;
	background-color: #fff;
}

.features-block {
	padding-bottom: 60px;
}

.features-list {
	list-style-image: url('../img/check.png');
	/*list-style: decimal;*/
	line-height: 1.4;
	font-size: 20px;
}

.features-list-li {
	margin-bottom: 20px;
	background-color: #abbde7;
	padding: 0px 20px 10px 20px;
	border-radius: 20px;
	background: linear-gradient(154deg, #6383cda6, #8298c9b5, #abbde79e, #cfd6e7);;
}

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

.tariff {
	padding-top: 10px;
	padding-left: 200px;
	padding-right: 200px;
	background-color: #d4e9ff;
	font-size: 18px;
	background-image: linear-gradient(115deg, #b6c2ff 0, #3c78f2 50%, #0039b9 100%);
	color: #fff;
}

.tariff-block {
	padding-bottom: 60px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
}

.tariff-card {
	background-color: rgb(27, 85, 157);
	width: 24vw;
	height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	color: #fff;
	padding: 20px;
	border-radius: 20px 20px 0;
	background: linear-gradient(123deg, blue, #2f34c1, #23237e94, #7675bb);
	box-shadow: 5px 5px 15px;
}

.tariff-card p{
	padding: 10px;
}

.price {
	font-size: 30px;
	font-weight: bold;
	padding-bottom: 10px;
}

h4 {
	font-size: 21px;
	font-weight: bold;
}

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

.contacts {
	padding-left: 200px;
	padding-right: 200px;
	font-size: 18px;
	padding-bottom: 60px;
	background-image: radial-gradient(circle at 31.7% 118.3%, #d8feec 0, #c8f8e7 10%, #b6f1e3 20%, #a1eade 30%, #89e1db 40%, #6cd8d8 50%, #48ced6 60%, #00c5d7 70%, #00bdd8 80%, #00b5da 90%, #00addd 100%);
	position: relative;
}

.re-top-r {
	position: absolute;
	top: 0;
	right: 0;
	border-style: solid;
	border-width: 0 200px 200px 0;
	border-color: transparent #b6c2ff transparent transparent;
}

.re-bot-l {
	position: absolute;
	bottom: 0;
	left: 0;
	border-style: solid;
	border-width: 200px 0 0 200px;
	border-color: transparent transparent transparent #b6c2ff;
}

.contacts-block {
	margin-top: 80px;
	display: flex;
	justify-content: space-between;
	gap: 50px;
}

.contacts-card {
	width: 400px;
	
}

.form input {
	font-family: "Roboto", sans-serif;
	outline: 0;
	background: #f2f2f2;
	width: 100%;
	border: 1px solid #00000036;
	margin: 0 0 15px;
	padding: 10px;
	box-sizing: border-box;
	font-size: 14px;
	border-radius: 20px;
}

.form button {
	font-family: "Roboto", sans-serif;
	text-transform: uppercase;
	outline: 0;
	background: #F15A22;
	width: 100%;
	border: 0;
	padding: 15px;
	color: #FFFFFF;
	font-size: 14px;
	/*-webkit-transition: all 0.3 ease;*/
	/*transition: all 0.3 ease;*/
	cursor: pointer;
	border-radius: 20px;
}

.form button:hover,
.form button:active,
.form button:focus {
	background: #9a2b00;
	box-shadow: 0 0 15px red;
}

.contacts-link {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	
	border-radius: 20px 20px 0;
	padding: 20px;
	background-color: rgb(52, 117, 197);
	color: white;
}

.contacts-link img{
	width: 200px;
}

.contacts-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	width: 90%;
}

.red {
	color: #F15A22;
}

.contacts-nav-block {
	display: flex;
}

.tel-img {
	width: 20px;
	margin-right: 10px;
}

.form_input._error {
	box-shadow: 0 0 15px red;
}

.footer_info{
	display: flex;
	align-items: center;
	overflow: hidden;

	line-height: 1.2;
	font-size: 16px;
	font-weight: 400;
}

.footer_info img{
	height: 20px;
	width: 20px;
}

/* Стили для подложки */

.overlay {

	/* Скрываем подложку  */
	opacity: 0;
	visibility: hidden;

	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .8);
	z-index: 20;
	transition: .3s all;
}


/* Стили для модальных окон */

.modal {

	/* Скрываем окна  */
	opacity: 0;
	visibility: hidden;


	/*  Установаем ширину окна  */
	width: 100%;
	max-width: 500px;

	/*  Центрируем и задаем z-index */
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 30; /* Должен быть выше чем у подложки*/

	/*  Побочные стили   */
	box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2);
	text-align: center;
	padding: 30px;
	border-radius: 20px;
	background-color: #ffff;
	transition: 0.3s all;
}

/*  Стили для заголовка    */
.modal_h2 {
	font-size: 200%;
	color: black;
	margin-bottom: 20px;
	font-weight: bold;
}

._modal{
	border: 1px solid #00000036;
}


/* Стили для активных классов подложки и окна */

.modal.active,
.overlay.active{
	opacity: 1;
	visibility: visible;
}


/* Стили для кнопки закрытия */

.modal__cross {
	width: 15px;
	height: 15px;
	position: absolute;
	top: 20px;
	right: 20px;
	fill: #444;
	cursor: pointer;
}

@media (max-width: 1800px) {
	.tariff {
		padding-left: 100px;
		padding-right: 100px;
	}
}

@media (max-width: 1300px) {
	header {
		padding-left: 20px;
		padding-right: 20px;
	}
	.itcss {
		padding-left: 20px;	
		padding-right: 20px;
	}
	.about {
		padding-left: 70px;
		padding-right: 40px;
	}
	.features {
		padding-left: 60px;	
		padding-right: 40px;
	}
	.tariff {
		padding-left: 40px;	
		padding-right: 40px;
	}
	.tariff-block {
		gap: 40px;
	}
	.contacts {
		padding-left: 40px;	
		padding-right: 40px;
	}
	.contacts-link h4 {
		font-size: 20px;
	}
	.re-top {
		border-width: 100px 100px 0 0;
	}
	.re-bot {
		border-width: 0 0 100px 100px;
	}
	.re-bot-l {
		border-width: 100px 0 0 100px;
	}
	.re-top-r {
		border-width: 0 100px 100px 0;
	}
}

@media (max-width: 1200px) {
	.tariff {
		font-size: 14px;
	}
}

@media (max-width: 1000px) {
	.tariff-card {
		width: 40vw;
	}
	.tariff-block{
		gap: 40px;
	}
	.contacts-block {
		flex-direction: column;
	}
	.contacts-card {
		width: 100%;
	}
	.contacts-link h4{
		text-align: center;
		margin-bottom: 20px;
	}
	.img-fluid {
		display: none;
	}
}

@media (max-width: 900px) {
	.logo-img {
		border: none;
	}
	.contacts-nav {
		display: none;
	}
	.logo {
		width: auto;
	}
	.about-block {
		flex-direction: column;
	}
	.contacts-container {
		flex-direction: column;
	}
}

@media (max-width: 685px) {
	.tariff-card {
		width: 45%;
	}
}

@media (max-width: 600px) {
	.tariff-card {
		width: 100%;
	}
}

/* анимация кнопки "Отправить заявку" */

.button {
	position: relative;
	overflow-x: hidden;
}

.button .flare {
	position: absolute;
	top: 0;
	height: 100%;
	width: 45px;
	transform: skewX(-45deg);
	animation: flareAnimation;
	left: -150%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
	animation: flareAnimation 4s infinite linear;
}

@keyframes flareAnimation {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

