/* Хэдер */

.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
}

.header__container {
	display: flex;
	align-items: center;
	position: relative;
	padding-block: 30px;
	flex-wrap: wrap;
}

.header_scrolling {
	background-color: #000;
	color: #fff;
}

.header_scrolling .header__nav a {
	color: #fff;
}

.header__nav {
	margin-inline: auto;
}

.header__nav ul {
	list-style-type: none;
	display: flex;
	gap: 20px;
}
.header__logo img {
	width: 100px;
}

.header__nav-container_mobile {
	display: none;
	margin-right: 15px;
}

.header__menu-btn {
	display: inline-block;
	background: var(--main-gradient);
	border-radius: 10px;
	color: #fff;
	padding: 10px 14px 10px 14px;
	cursor: pointer;
	text-align: center;
	width: 150px;
}

.header__nav_mobile {
	height: 0;
	opacity: 0;
	background-color: #fff;
	position: absolute;
	top: 35px;
	left: 0;
	right: 0;
	padding: 20px;
	z-index: -1;
	transition: height 0.3s ease;
	border-radius: 0px 0px 10px 10px;
	pointer-events: none;
}

.header__nav_mobile ul {
	list-style-type: none;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.header__nav_mobile a {
	color: #000;
	text-decoration: none;
}

.header__menu-btn:hover {
	background: #870012;
}

.header__logo {
	background: var(--main-gradient);
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
	padding: 30px 20px;
	border-bottom-left-radius: 50%;
	border-bottom-right-radius: 50%;
	position: absolute;
	top: 0;
}

.header__nav a {
	color: #000;
	text-decoration: none;
}

.header__vk-link {
	width: 40px;
	background: var(--main-gradient);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-right: 20px;
}

.header__vk-link:hover {
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.header__tel-link {
	font-weight: 600;
	color: #000;
	text-decoration: none;
}

.header_scrolling .header__tel-link {
	color: #fff;
}

.header_scrolling .header__vk-link svg path {
	fill: #000;
}

.header__nav-toggler {
	display: none;
}

@media (max-width: 992px) {
	.header__mobile_vk_nav {
		display: flex;
		flex-basis: 100%;
		justify-content: end;
	}

	.header__nav {
		display: none;
	}

	.header__nav-container_mobile {
		display: block;
		position: relative;
	}

	.header__tel-link {
		flex-basis: 100%;
		text-align: end;
		margin-bottom: 10px;
	}

	.header__vk-link {
		margin-right: 0;
	}

	.header__nav-toggler:checked ~ .header__nav_mobile {
		height: 200px;
		opacity: 1;
		transform: translateY(0);
		pointer-events: all;
	}

	.header__nav-toggler:checked ~ .header__menu-btn {
		border-radius: 10px 10px 0 0;
	}
}

@media (max-width: 576px) {
	.header__container {
		max-width: 400px;
		width: 100%;
	}

	.header__container {
		padding-block: 15px;
	}

	.header__menu-btn {
		width: 100px;
	}

	.header__logo img {
		width: 70px;
	}

	.header__logo {
		padding: 25px 15px;
	}
}

@media (max-width: 380px) {
	.header__menu-btn {
		width: 80px;
	}

	.header__nav-container_mobile {
		margin-right: 5px;
	}
}

/* Хэдер */

/* Первый экран */

.main-block {
	height: 100vh;
	background-image: url(../images/mainBlockBg.webp);
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	background-position: center;
}

.main-block__text {
	width: 50%;
	display: flex;
	flex-direction: column;
	margin-block: auto;
}

.main-block__paragraph {
	font-size: calc((100vw - 360px) / (1200 - 360) * (20 - 16) + 16px);
}

.main-block__heading {
	margin-bottom: 47px;
	font-size: calc((100vw - 100px) / (1500 - 100) * (100 - 40) + 40px);
	font-weight: 600;
	-webkit-text-stroke: 1px #000;
	font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.main-block__btn {
	margin-left: auto;
	margin-top: 100px;
}

@media (max-width: 768px) {
	.main-block__text {
		width: 100%;
	}

	.main-block {
		background-position: 70%;
	}
}

@media (max-width: 577px) {
	.main-block__text {
		text-align: center;
	}

	.main-block__btn {
		margin-inline: auto;
	}
}

/* Первый экран */

/* Преимущества */

.advantages {
	padding-block: 90px;
}

.advantages__list {
	display: flex;
	justify-content: space-between;
	margin-top: 70px;
	flex-wrap: wrap;
}

.advantages__list-item {
	width: 20%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	text-align: center;
}

.advantages__list-item h3 {
	font-weight: 600;
}

@media (max-width: 768px) {
	.advantages__list-item {
		width: 200px;
		margin-bottom: 30px;
	}
}

@media (max-width: 444px) {
	.advantages__list {
		justify-content: center;
	}
}

/* Преимущества */

/* Цены */

input[type="radio"] {
	display: none;
}

.prices__price-desc img {
	width: 35%;
}

.prices__btns-container {
	border: 1px solid #bb0019;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	padding: 20px;
	margin-block: 50px;
}

.prices__btn {
	border-right: 1px solid rgba(0, 0, 0, 0.15);
	padding: 10px 58px;
	cursor: pointer;
}

.prices__btn:last-child {
	border-right: 0;
}

#cat-a:checked ~ div label[for="cat-a"] {
	text-decoration: underline;
}
#cat-b:checked ~ div label[for="cat-b"] {
	text-decoration: underline;
}
#cat-ab:checked ~ div label[for="cat-ab"] {
	text-decoration: underline;
}
#cat-extra:checked ~ div label[for="cat-extra"] {
	text-decoration: underline;
}

.prices__price {
	display: none;
	gap: 0;
}

#cat-a:checked ~ #cat-a-price {
	display: flex;
	width: 100%;
}
#cat-b:checked ~ #cat-b-price {
	display: flex;
}
#cat-ab:checked ~ #cat-ab-price {
	display: flex;
}
#cat-extra:checked ~ #cat-extra-price {
	display: flex;
}
.prices__price-imgs {
	width: 45%;
	display: flex;
	flex-direction: column;
}

.prices__price-imgs img {
	width: 100%;
	height: 100%;
}

#cat-a-price .prices__price-table {
	border: 4px solid #bb0019;
	height: auto;
	border-radius: 10px;
}

.prices__price-desc {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 4px solid #bb0019;
	border-radius: 10px;
}

.prices__price-table .contacts-btn {
	margin-top: auto;
	font-size: calc((100vw - 360px) / (1200 - 360) * (20 - 16) + 16px);
}

.prices__price-table {
	display: flex;
	background-image: url(../images/bg/priceTableBg.png);
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 50%;
	justify-content: center;
	text-align: center;
	background-color: #fff;
}

.prices__price-table div:first-child {
	border-right: 1px solid #bb0019;
}

.prices__price-table div {
	padding-inline: 55px;
	display: flex;
	flex-direction: column;
	width: 50%;
}

.prices__price-table div a {
	width: auto;
}

.prices__price-table h3 {
	font-weight: 500;
	margin-bottom: 12px;
	font-size: 1.4rem;
}

.prices__price-cost {
	margin-block: 10px;
	font-weight: 600;
	font-size: 26px;
}

.prices__price-cost .price-span{
	font-size: 16px;
}

.prices__price-table {
	padding-block: 40px;
}

@media (max-width: 992px) {
	.prices__price {
		flex-direction: column;
	}
	.prices__price-imgs {
		flex-direction: row;
		width: 100%;
	}

	.prices__price-imgs img {
		width: 50%;
	}

	.prices__btn {
		padding: 7px 37px;
	}
}

@media (max-width: 768px) {
	.prices__btns-container {
		flex-wrap: wrap;
	}
	.prices__btn {
		width: 150px;
		margin-bottom: 20px;
	}
	.prices__btn:nth-child(2) {
		border: 0;
	}

	.prices__price-table div {
		padding-inline: 40px;
	}
}

@media (max-width: 580px) {
	.prices__btn {
		border: 0;
	}
	.prices__btns-container {
		width: fit-content;
	}

	.prices__price-table {
		flex-direction: column;
	}
	.prices__price-table div {
		border-right: 0 !important;
		border-bottom: 1px solid #bb0019;
		margin-bottom: 20px;
		padding-block: 30px;
		margin-inline: auto;
	}

	.prices__price-table {
		margin-inline: auto;
	}

	.prices__price-table div:last-child {
		border: 0;
	}

	.prices__price-imgs {
		flex-direction: column;
	}

	.prices__price-table div {
		padding-inline: 0;
		width: 70%;
	}

	.prices__price-imgs img {
		width: 100%;
		margin-inline: auto;
	}
}

/* Цены */

/* Как проходить обучение */

.about {
	margin-top: 120px;
}

.about__tab {
	border-radius: 10px;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
	position: relative;
	text-align: center;
	padding: 40px 24px 20px 24px;
	width: 250px;
	justify-self: center;
	background-color: #fff;
}

.about__tab h3 {
	margin-bottom: 20px;
}

.about__tab-image {
	position: absolute;
	top: -60px;
	border-radius: 50%;
	padding: 10px;
	background-color: #fff;
	border: 3px solid #bb0019;
	display: flex;
	justify-content: center;
	align-items: center;
	right: calc(100% / 2 - 90px / 2);
}

.about__tab:first-child {
	grid-area: a;
}

.about__car {
	grid-area: b;
	justify-self: center;
	width: 250px;
	align-self: center;
}

.about__tab:nth-child(3) {
	grid-area: c;
}
.about__tab:nth-child(4) {
	grid-area: d;
	justify-self: end;
}
.about__tab:nth-child(5) {
	grid-area: e;
	justify-self: start;
}

.about__tabs {
	display: grid;
	grid-template-areas:
		"a b b c"
		"d d e e";
	gap: 50px;
	margin-block: 100px;
	align-items: stretch;
}

@media (max-width: 992px) {
	.about__tabs {
		grid-template-areas:
			"a c"
			"b b"
			"d e";
		gap: 100px;
	}
}

@media (max-width: 768px) {
	.about__tabs {
		grid-template-areas:
			"a"
			"c"
			"b"
			"e"
			"d";
	}
	.about__tab:nth-child(4) {
		justify-self: center;
	}
	.about__tab:nth-child(5) {
		justify-self: center;
	}
}

/* Студенты */

.students__container {
	display: flex;
	flex-direction: column;
}

.students__container a {
	margin-inline: auto;
	margin-top: 70px;
}

.students {
	padding-block: 60px;
	background-image: url(../images/bg/studentsBg.webp);
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.students__photos {
	display: grid;
	grid-template-areas:
		"a a b"
		"c d e";
	margin-top: 50px;
	gap: 10px;
	margin-inline: auto;
}

.students__photos-sep-training {
	width: 606px;
	height: 367px;
}
.students__photos-sep-man {
	width: 318px;
	height: 261px;
}
.students__photos-sep-girl-left {
	width: 263px;
	height: 261px;
}
.students__photos-sep-girl-right {
	width: 318px;
	height: 261px;
}
.students__photos-sep-boy {
	width: 318px;
	height: 358px;
}

.students__photos img:first-child {
	grid-area: a;
}

.students__photos img:nth-child(2) {
	grid-area: b;
}

.students__photos img:nth-child(3) {
	grid-area: c;
}
.students__photos img:nth-child(4) {
	grid-area: d;
}
.students__photos img:nth-child(5) {
	grid-area: e;
	margin-top: -30%;
	align-self: stretch;
}

@media (max-width: 1000px) {
	.students__photos-sep-training {
		width: 495px;
		height: 271px;
	}
	.students__photos-sep-man {
		width: 238px;
		height: 195px;
	}
	.students__photos-sep-girl-left {
		width: 221px;
		height: 211px;
	}
	.students__photos-sep-girl-right {
		width: 267px;
		height: 212px;
	}
	.students__photos-sep-boy {
		width: 241px;
		height: 289px;
	}
}

@media (max-width: 768px) {
	.students__photos {
		display: flex;
		flex-direction: column;
		justify-items: center;
	}
	.students__photos img {
		margin-inline: auto;
	}

	.students {
		background-size: cover;
	}

	.students__photos img:nth-child(5) {
		margin-top: 0;
	}

	.students__photos-sep-training {
		width: 428px;
		height: 274px;
	}
	.students__photos-sep-man {
		width: 428px;
		height: 366px;
	}
	.students__photos-sep-girl-left {
		width: 428px;
		height: 326px;
	}
	.students__photos-sep-girl-right {
		width: 428px;
		height: 316px;
	}
	.students__photos-sep-boy {
		width: 428px;
		height: 479px;
	}
}

@media (max-width: 450px) {
	.students__photos-sep-training {
		width: 346px;
		height: 222px;
	}
	.students__photos-sep-man {
		width: 346px;
		height: 290px;
	}
	.students__photos-sep-girl-left {
		width: 346px;
		height: 276px;
	}
	.students__photos-sep-girl-right {
		width: 346px;
		height: 240px;
	}
	.students__photos-sep-boy {
		width: 346px;
		height: 406px;
	}
}

@media (max-width: 370px) {
	.students__photos-sep-training {
		width: 290px;
		height: 166px;
	}
	.students__photos-sep-man {
		width: 290px;
		height: 235px;
	}
	.students__photos-sep-girl-left {
		width: 290px;
		height: 218px;
	}
	.students__photos-sep-girl-right {
		width: 290px;
		height: 204px;
	}
	.students__photos-sep-boy {
		width: 290px;
		height: 345px;
	}
}

/* Филиалы */

.branches {
	padding-block: 60px;
	background-image: url(../images/bg/bgBranches.png);
	background-position: 100% 100%;
}

.branches p {
	font-size: calc((100vw - 360px) / (1200 - 360) * (20 - 16) + 16px);
}

.branches__text {
	margin-block: 30px;
	text-align: center;
}

.branches__list {
	list-style-type: none;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
}

.branches__list li {
	display: flex;
	gap: 20px;
	align-items: center;
	cursor: pointer;
}

.branches__list li:hover {
	color: #bb0019;
}

.branches__li-active {
	color: #bb0019;
}

.icon_location {
	display: block;
	background-image: url(../images/branches/location.svg);
	width: 34px;
	height: 35px;
	background-repeat: no-repeat;
	background-position: center;
}

@media (max-width: 992px) {
	.branches__list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 576px) {
	.branches__list {
		grid-template-columns: 1fr;
	}
}

/* Филиалы */

/* Автопарк */

.car-park {
	padding-block: 100px;
	position: relative;
}

.car-park p {
	font-size: calc((100vw - 360px) / (1200 - 360) * (20 - 16) + 16px);
}

.car-park__text {
	text-align: center;
	margin-top: 30px;
	margin-bottom: 50px;
}

.car-park__swiper {
	width: 90%;
}
.car-park__swiper .swiper-slide img {
	width: 100%;
	border-radius: 10px;
}

.car-park__swiper-button-next {
	position: absolute;
	right: 0;
	bottom: 40%;
	cursor: pointer;
}

.car-park__swiper-button-prev {
	position: absolute;
	left: 0;
	bottom: 40%;
	cursor: pointer;
}

@media (max-width: 768px) {
	.car-park__swiper-button-next {
		bottom: 50px;
		right: 35%;
	}

	.car-park__swiper-button-prev {
		bottom: 50px;
		left: 35%;
	}
}

/* Автопарк */

/* Отзывы */

.reviews {
	background-image: url(../images/bg/reviewsBg.webp);
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
	padding-block: 60px;
}

.rewiews__swiper {
	margin-top: 50px;
	width: 80%;
	font-size: calc((100vw - 360px) / (1200 - 360) * (20 - 16) + 16px);
}

.rewiews__swiper .swiper-wrapper {
	align-items: stretch;
}

.rewiews__swiper .swiper-slide {
	display: flex;
	flex-direction: column;
	height: auto;
}

.rewiews__swiper .swiper-slide > p {
	margin-bottom: 20px;
}

.reviews__review-author {
	margin-top: auto;
	display: flex;
	gap: 20px;
	align-items: center;
}

.reviews__review-author p {
	font-weight: 600;
}

.reviews__swiper .swiper-button-prev {
	left: -20px !important;
}

.reviews__container {
	position: relative;
}

.reviews__swiper-button-next {
	cursor: pointer;
	position: absolute;
	bottom: 50%;
	right: 0;
}

.reviews__swiper-button-prev {
	cursor: pointer;
	position: absolute;
	bottom: 50%;
	left: 0;
}

@media (max-width: 768px) {
	.reviews__swiper-button-next {
		bottom: -40px;
		right: 35%;
	}

	.reviews__swiper-button-prev {
		bottom: -40px;
		left: 35%;
	}
}

/* Отзывы */

/* FAQ */

.faq {
	background-image: url(../images/bg/faqBg.webp);
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
	padding-block: 60px;
}

.faq__accordion-container {
	display: flex;
	gap: 50px;
	align-items: center;
	margin-top: 60px;
}

.faq__accordion {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.faq__accordion-toggler {
	display: none;
}
.faq__accordion-btn {
	padding: 20px;
	display: grid;
	grid-template-columns: 4fr 1fr;
	border-bottom: 1px solid #bb0019;
	align-items: center;
	cursor: pointer;
	font-size: calc((100vw - 360px) / (1200 - 360) * (24 - 20) + 20px);
}

.faq__accordion-arrow {
	display: block;
	background-image: url(../images/faq/arrow.png);
	width: 23px;
	height: 9px;
	background-size: 100% 100%;
	margin-left: auto;
	transition: transform 0.3s ease;
}

.faq__accordion-body {
	display: none;
	transition: height 0.1s ease;
	border-radius: 0px 0px 10px 10px;
	font-size: calc((100vw - 360px) / (1200 - 360) * (20 - 16) + 16px);
}

.faq__accordion-toggler:checked ~ .faq__accordion-body {
	display: block;
	height: fit-content;
	padding: 30px;
	background-color: #fff;
}

.faq__accordion-toggler:checked ~ .faq__accordion-btn {
	background: linear-gradient(
		180deg,
		rgba(187, 0, 25, 0.5) 0%,
		rgba(255, 92, 0, 0.5) 96.35%
	);
	border-radius: 10px 10px 0px 0px;
	border: 0;
}

.faq__accordion-toggler:checked ~ .faq__accordion-btn .faq__accordion-arrow {
	transform: rotate(180deg);
}

@media (max-width: 992px) {
	.faq__accordion-container {
		flex-direction: column;
	}
}

/* FAQ */

/* Контакты */

.contacts {
	background-image: url(../images/bg/contactsBg.webp),
		radial-gradient(
			70.31% 70.31% at 50% 50%,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 92, 0, 0) 44.27%,
			rgba(255, 92, 0, 0.6) 77.6%,
			#930013 100%
		);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	padding-block: 130px;
}

.contacts__container {
	display: flex;
	justify-content: end;
}

.contacts__form::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: var(--main-gradient);
	height: 30px;
}

.contacts__form {
	background: rgba(255, 255, 255, 0.46);
	border-radius: 0 0 100px 100px;
	padding: 70px 23px 90px 30px;
	text-align: center;
	position: relative;
}

.contacts__form-heading {
	font-weight: 600;
	margin-bottom: 40px;
}

.contacts__form-text {
	margin-bottom: 60px;
}

@media (max-width: 768px) {
	.contacts__form {
		max-width: 400px;
		width: 100%;
		margin-inline: auto;
		padding: 50px 23px 50px 30px;
	}

	.contacts__form-text {
		margin-bottom: 20px;
	}

	.contacts {
		background-size: cover;
		background-position: 20%;
	}
}

/* Контакты */

/* Футер */

.footer {
	background-color: #411c1c;
	color: #fff;
	padding-block: 26px;
}

.footer__container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.footer__container h3 {
	color: #979797;
	font-weight: 400;
	margin-bottom: 23px;
}

.footer__vk-link {
	background: var(--main-gradient);
	border-radius: 50%;
	display: flex;
	width: 40px;
	justify-content: center;
	align-items: center;
}

.footer__link-tel {
	font-weight: 600;
	color: #fff;
	display: inline-block;
	text-decoration: none;
	margin-bottom: 40px;
}

.footer__nav ul li a {
	color: #fff;
	text-decoration: none;
}

.footer__nav ul {
	list-style-type: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.footer__schedule-first {
	margin-bottom: 15px;
}

@media (max-width: 576px) {
	.footer__container {
		flex-direction: column;
	}
}

/* Футер */
