body {
  font-family: Arial, sans-serif;
}

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

a:hover {
  color: #ec0000;
  text-decoration: none;
}

hr {
  border-top: 3px solid #000;
}

.modal {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-dialog {
  max-width: 65%;
}

.modal-header {
  border-bottom: none !important;
}
.form-control {
  background-color: #ebebeb;
  font-family: "Arial", sans-serif;
  transform: skewX(-20deg);
  padding: 10px 20px;
}
.modal-title {
  background-color: #ebebeb;
  color: #e50e20;
  font-family: "Arial", sans-serif;
  font-size: 20px;
  font-weight: 800;
  width: 80.5%;
  padding: 10px 20px;
  border: none;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  transform: skewX(-20deg);
  -webkit-font-smoothing: antialiased;
}
.modal-title span {
  display: inline-block;
  transform: skewX(20deg);
}
.modal-rectangle {
  position: absolute;
  top: 36px;
  right: 3%;
  width: 17%;
  height: 10px;
  background-color: #ec0000;
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
  z-index: 1;
}
.modal-content {
  padding: 10px;
  border-radius: 0%;
}

#signupModal .modal-header {
  position: relative;
}

#signupModal .btn-close {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 1.2em;
  height: 1.2em;
  font-size: 1.1rem;
  opacity: 1;
}

.modal-body .form-label {
  font-family: "Arial", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.modal-footer {
  justify-content: center;
  border-top: none !important;
}

.button-red {
  background-color: #e0242b;
  color: white;
  font-family: "Arial", sans-serif;
  font-size: 24px;
  font-weight: 800;
  min-height: 50px;
  padding: 0 40px 5px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transform: skewX(-20deg);
  -webkit-font-smoothing: antialiased;
  transition: all 0.3s ease;
}

.button-red span {
  display: inline-block;
  transform: skewX(20deg);
}
.button-red:hover {
  background-color: #e50e20a8;
}
.button-red:active {
  background-color: #e50e20a8;
  transform: skewX(-20deg) translateY(1px);
}

.top-block {
  height: 90px;
  padding-right: 70px;
  display: flex;
  justify-content: flex-end;
}

.button-block {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-bottom: 30px;
  margin-top: 50px;
}

.button-style,
.button-style2 {
  font-family: "Arial", sans-serif;
  font-size: 26px;
  font-weight: 800;
  min-height: 80px;
  width: 300px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-20deg);
  -webkit-font-smoothing: antialiased;
  transition: all 0.3s ease;
}

.button-style {
  background-color: #e0242b;
  color: white;
}

.button-style2 {
  background-color: #3e4346;
  color: white;
}

.button-style span,
.button-style2 span {
  display: inline-block;
  transform: skewX(20deg);
  width: 100%;
  line-height: 1.1;
}

.button-style:hover {
  background-color: #e50e20a8;
}

.button-style:active {
  background-color: #e50e20a8;
  transform: skewX(-20deg) translateY(1px);
}

.button-style2:hover {
  background-color: #3e434687;
  color: #fff;
}

.button-style2:active {
  background-color: #3e434687;
  transform: skewX(-20deg) translateY(1px);
}

.insert h2,
.insert h4 {
  font-family: "Arial", sans-serif;
  font-weight: 800;
  color: #ec0000;
}

.page-title {
  font-family: "Arial", sans-serif;
  font-weight: 800;
  color: #ec0000;
}

.insert p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #3e4346;
}

.logo {
  position: absolute;
  top: 78px;
  right: 76%;
  z-index: 3;
}

.logo img {
  vertical-align: middle;
  height: 100px;
}

.contact-info {
  font-family: "Arial", sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin: 0 76px;
  color: #3e4346;
}

.contact-info a {
  color: #000;
}

.contact-info a:hover {
  text-decoration: underline;
}

.navbar-container {
  padding-left: 23%;
}

.navbar {
  position: relative;
  overflow: hidden;
  height: 90px;
  background-color: #3e4346;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    #fff 0%,
    #fff 50%,
    transparent 50%
  );
  z-index: 2;
}

.navbar .navbar-nav {
  margin-left: 20px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.navbar .nav-link {
  color: #fff;
}

.navbar .nav-link:hover {
  color: #ec0000;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.banner-block {
  padding-left: 30%;
  background-color: #dce0e3;
  position: relative;
}

.banner-top {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 528px;
  background-image: url("../img/car1.jpg");
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}

.banner-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 170px;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    #dce0e3 0%,
    #dce0e3 50%,
    transparent 50%
  );
  z-index: 1;
}

.banner-block .container {
  position: absolute;
  top: 40px;
  left: calc(27% - 250px);
  z-index: 2;
  width: auto;
}

.banner-title {
  font-family: "Arial", sans-serif;
  font-size: 58px;
  font-weight: 800;
  color: #000;
  margin: 0;
  padding: 0;
}

.banner-title span.text-white {
  color: #fff;
  padding-left: 75px;
}

.text-top {
  color: #e50e20;
  width: 287px;
  font-weight: 600;
  margin-top: 40px;
}

.baner-nav {
  position: absolute;
  bottom: 4%;
  left: 0;
  width: auto;
  background-color: rgba(29, 29, 29, 0.39);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  z-index: 2;
  height: 200px;
  padding: 30px 275px 30px 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.baner-nav .btn-pdd {
  font-family: "Arial", sans-serif;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: none;
  -webkit-font-smoothing: antialiased;
  margin-bottom: 6px;
  background-color: #d9d9d9;
  padding-right: 25px;
  width: 270px;
  height: 96px;
  font-size: 20px;
  font-weight: 800;
  color: #000;
  clip-path: polygon(0 0, 84% 0, 98% 100%, 0 100%);
  transition: all 0.3s ease;
}

.baner-nav .btn-pdd:hover {
  background-color: #3e4346;
  color: #fff;
  opacity: 0.61;
}

.baner-nav .btn-down {
  font-family: "Arial", sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: none;
  -webkit-font-smoothing: antialiased;
  background-color: #3e4346;
  padding-left: 20px;
  width: 300px;
  height: 43px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  clip-path: polygon(0 0, 89% 0, 95% 100%, 0 100%);
  transition: all 0.3s ease;
}

.baner-nav .btn-down:hover {
  background-color: #3e4346;
  color: #fff;
  opacity: 0.61;
}

.baner-nav button span {
  display: inline-block;
  transform: none;
}

.baner-nav button:hover {
  background-color: #e50e20a8;
}

.baner-nav button:active {
  background-color: #e50e20a8;
  transform: translateY(1px);
}

.baner-nav .aside {
  position: absolute;
  top: 28px;
  left: 455px;
  width: 315px;
  height: 142px;
  background-color: rgba(29, 29, 29, 0.39);
  clip-path: polygon(
    0 0,
    /* Левый верхний (было 15% 0) */ 78% 0,
    /* Правый верхний (было 100% 0) */ 100% 100%,
    /* Правый нижний (было 85% 100%) */ 18% 100%
      /* Левый нижний (было 0 100%) */
  );
  z-index: 3;
}

.info-block {
  background-color: #5f676d;
  padding: 0 30px;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  width: 244px;
  height: 64px;
}

.info-block-content {
  transform: skewX(-10deg);
  display: inline-block;
}

.number {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.info-block p {
  font-size: 12px;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

.text-danger {
  color: #ec0000 !important;
}

@media (max-width: 1199px) {
  .nav-link {
    font-size: 12px;
  }
  .info-block {
    padding: 0 10px;
    width: 200px;
  }
}

/*--------- Тарифы -----------*/

.title-tarifs {
  background-color: #3e4346;
  color: white;
  font-family: "Arial", sans-serif;
  font-size: 30px;
  font-weight: 800;
  height: 46px;
  padding: 0 130px 0 130px;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transform: skewX(-20deg);
  -webkit-font-smoothing: antialiased;
  margin-bottom: 70px;
  margin-left: 160px;
}

@media (min-width: 991px) {
}

.title-tarifs span {
  display: inline-block;
  padding-right: 150px;
  white-space: nowrap;
  transform: skewX(20deg);
}

.card-tarif {
  background-color: #f7f7f7;
  position: relative;
  min-height: 100%;
}

.card-header {
  background-color: #e50e20;
  color: #fff;
  padding: 10px;
  font-family: "Arial", sans-serif;
  font-size: 22px;
  text-align: center;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  background-color: #3e4346;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: 1;
}

.card-header img {
  position: absolute;
  top: 8px;
  left: 23px;
  width: 48px;
  z-index: 2;
}

.card-header span {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding-left: 70px;
}

.card-tarif ul {
  list-style-type: none;
  padding: 20px 30px 40px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: #3e4346;
}

.card-tarif li {
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
}

.card-tarif li img {
  margin-top: 4px;
}
.list-unstyled li img {
  width: 24px;
  margin-bottom: 4px;
}

.price {
  font-family: "Arial", sans-serif;
  font-size: 28px;
  text-align: left;
  color: #414546;
  position: absolute;
  bottom: 10px;
  left: 30px;
  font-weight: 800;
}

/*----------- Обучение --------*/

.title-scool {
  color: #414546;
  font-family: "Arial", sans-serif;
  font-size: 28px;
  font-weight: 800;
  height: 68px;
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  background-color: #ebebeb;
  clip-path: polygon(0 0, 100% 0, 97.8% 100%, 0 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 30px;
}

.red-rectangle {
  position: absolute;
  top: 25px;
  right: 0;
  width: 42.3%;
  height: 15px;
  background-color: #ec0000;
  clip-path: polygon(0.8% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.scool {
  margin-top: 60px;
  position: relative;
  min-height: 100px;
}

.block-scool {
  padding: 40px 0 70px;
}

.text-block {
  font-weight: 600;
  color: #3e4346;
}

.text-block p {
  line-height: 1.8;
}

.peoples {
  width: 420px;
  height: 420px;
  object-fit: cover;
  object-position: left;
}

.driver {
  width: 420x;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

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

.advantages {
  position: relative;
  background: #dce0e3;
  height: auto;
  overflow: hidden;
  z-index: -1;
}

.advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 55%;
  height: 100%;
  background: #ebebeb;
  transform: skewX(-20deg);
  z-index: -1;
}

.advantages-title,
.filials-title {
  color: #fff;
  font-family: "Arial", sans-serif;
  font-size: 32px;
  font-weight: 800;
  height: 90px;
  position: absolute;
  top: 50px;
  right: 0;
  width: 68%;
  background-color: #3e4346;
  clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 65px;
  z-index: -1;
}

.advantages p {
  padding-top: 5px;
  font-weight: 600;
  color: #3e4346;
}

/*---------- Отзывы --------*/

.reviews {
  position: relative;
  background: #dce0e3;
  height: auto;
  overflow: hidden;
  z-index: 0;
}

.reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: -200px;
  width: 60%;
  height: 100%;
  background: #ebebeb;
  transform: skewX(-20deg);
  z-index: -1;
}

/*--------- Филлиалы --------*/

.filials {
  position: relative;
  height: 150px;
  overflow-x: hidden;
}

/*---------- Футер --------*/

.footer {
  position: relative;
  background: #6e7174;
  height: auto;
  overflow: hidden;
  z-index: 0;
  line-height: 1.2;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -200px;
  width: 75%;
  height: 100%;
  background: #3e4346;
  transform: skewX(-20deg);
  z-index: -1;
}

footer {
  position: relative;
  font-size: 14px;
  padding: 15px 0;
  z-index: 1;
  background-color: rgba(200, 200, 200, 0.7);
}

ul.list-unstyled {
  line-height: 2;
}

ul.list-unstyled a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

ul.list-unstyled a:hover,
.footer a:hover {
  color: #ec0000;
  text-decoration: none;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

.logo-footer {
  width: 170px;
  margin: 20px 0;
}

.footer span {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.footer .icon img {
  width: 28px;
}
/*--------- Отзывы ----------*/

.reviews-block {
  position: relative;
  margin: 40px 0 10px;
  overflow-x: hidden;
  width: 100%;
}

.reviews-title {
  background-color: #ebebeb;
  font-family: "Arial", sans-serif;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  width: 70%;
  margin-left: 3%;
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: skewX(-20deg);
  -webkit-font-smoothing: antialiased;
}

.reviews-title .title-content {
  display: inline-block;
  transform: skewX(20deg);
  margin-left: calc((100% - 76%) / 2);
}

.reviews-title b {
  display: inline-block;
  transform: skewX(20deg);
}

.reviews-rectangle {
  position: absolute;
  top: 40%;
  right: 3%;
  width: 24%;
  height: 10px;
  background-color: #ec0000;
  clip-path: polygon(1% 0, 100% 0, 99% 100%, 0 100%);
  z-index: 1;
}

/*--------- Дополнительные услуги ---------*/
.why-block {
  background-color: #3e4346a3;
  color: #fff;
  padding: 5px 20px;
  font-weight: 600;
  min-height: 100px;
  line-height: 1.2;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*--------- Коллектив ---------*/

.group {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.group-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.group-title {
  background-color: #e50e20;
  color: #fff;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  position: relative;
  line-height: 1.1;
  overflow: hidden;
}

.group-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  background-color: #3e4346;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: 1;
}

.group-title img {
  position: absolute;
  top: 8px;
  left: 23px;
  width: 48px;
  z-index: 2;
}

.group-title span {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding-left: 80px;
}

/*------- Акордион --------*/
.accordion-item {
  margin: 20px 0;
  background: #dce0e3;
  border-radius: 20px !important;
}

.accordion-button {
  font-size: 20px;
  font-weight: bold;
  background: #dce0e3;
  border-radius: 20px !important;
  padding: 10px;
  transition: border-radius 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #dce0e3;
}

.accordion-collapse {
  transition: all 0.3s ease;
}
/* Анимация открытия */
.accordion-collapse.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* Анимация закрытия */
.accordion-collapse.show {
  transition: all 0.3s ease;
}

/*--------- Номера телефонов -------*/
.contact p {
  position: relative;
}

.contact p img {
  position: absolute;
  left: 0;
  top: 2px;
}

.contact p span {
  display: block;
  margin-left: 40px;
}

/*--------- Пагинация и ПДД -------*/
.pagination,
.pdd {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 80px 0;
}

.button-pagination,
.button-pdd {
  background-color: #dce0e3;
  color: #000;
  font-family: "Arial", sans-serif;
  font-size: 26px;
  font-weight: 800;
  padding: 5px 20px;
  line-height: 1.1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-20deg);
  -webkit-font-smoothing: antialiased;
  transition: all 0.3s ease;
}

.button-pagination span,
.button-pdd span {
  display: inline-block;
  transform: skewX(20deg);
}

.button-pagination:hover,
.button-pdd:hover {
  color: #fff;
  background-color: #3e434687;
}

.button-pagination:active,
.button-pdd:active {
  color: #fff;
  background-color: #3e434687;
  transform: skewX(-20deg) translateY(1px);
}

.button-pagination img {
  width: 26px;
  height: auto;
  vertical-align: middle;
  transition: content 0.3s ease;
}

.button-pagination:hover img[src="/img/pag-left.png"] {
  content: url("/img/pag-left-white.png");
}

.button-pagination:hover img[src="/img/pag-right.png"] {
  content: url("/img/pag-right-white.png");
}

/*-------- Анимация и слайдер ----------*/
/* Общие стили для анимации появления */
.card-tarif,
.scool,
.block-scool,
.advantages-title,
.advantages .container,
.filials-title,
.reviews-block,
.down-up {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-tarif,
.down-up {
  transform: translateY(50px);
}

.scool,
.block-scool,
.reviews-block {
  transform: translateX(-200px);
}

.advantages-title,
.advantages .container,
.filials-title {
  transform: translateX(200px);
}

.card-tarif.visible,
.scool.visible,
.block-scool.visible,
.advantages-title.visible,
.advantages .container.visible,
.filials-title.visible,
.reviews-block.visible,
.down-up.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.scool,
.reviews-block {
  transition-delay: 0.2s;
}

.block-scool,
.card-tarif,
.down-up {
  transition-delay: 0.4s;
}

.advantages-title,
.filials-title {
  transition-delay: 0.2s;
}

.advantages .container {
  transition-delay: 0.4s;
}

/*--------- Стили для слайдеров --------*/
.slider-container-group {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.slider-wrapper-group {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  box-sizing: border-box;
  padding: 0 10px;
}

.theory-slider-container,
.driving-slider-container,
.slider-container {
  position: relative;
  overflow: hidden;
}

.theory-slider-wrapper,
.driving-slider-wrapper,
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.theory-slider-item,
.driving-slider-item {
  flex: 0 0 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.slider-item {
  flex: 0 0 33.33%;
  width: 33.33%;
  box-sizing: border-box;
}
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 10px;
}
/* ------ Планшетная версия ------- */
@media (max-width: 991px) {
  .slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .slider-container-group {
    max-width: 100%;
  }
  .slider-item {
    flex: 0 0 50%;
    width: 50%;
  }
  .slider-wrapper {
    gap: 16px;
  }
}

/*--------- Мобильная версия --------*/
@media (max-width: 576px) {
  .slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .slider-container-group {
    max-width: 100%;
  }
  .slider-item {
    flex: 0 0 100%;
    width: 100%;
  }
  .slider-wrapper {
    gap: 24px;
  }
}

/*------- Остальные медиа ----*/
@media (max-width: 991px) {
  .logo {
    right: 64%;
    top: 84px;
  }

  .logo img {
    height: 90px;
  }

  .top-block {
    margin-right: 0;
    padding-right: 0;
  }

  .button-red {
    font-size: 20px;
    padding: 0 20px;
    margin-left: 80px;
  }

  .contact-info {
    font-size: 20px;
    margin: 0 20px;
  }

  .navbar-container {
    padding-left: 35%;
  }

  .navbar {
    height: auto;
  }

  .navbar-toggler {
    border: none;
    outline: none !important;
    box-shadow: none !important;
    font-size: 2rem;
    color: #fff;
    padding: 1.2rem;
    background: transparent;
    transition: color 0.3s, transform 0.3s;
    cursor: pointer;
  }

  .navbar-toggler:focus,
  .navbar-toggler:active,
  .navbar-toggler:hover,
  .navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none;
  }

  .navbar-toggler:hover {
    color: #e0242b;
    transform: scale(1.1);
  }

  .navbar-toggler img {
    width: 36px;
    height: auto;
    vertical-align: middle;
    content: url("/img/bars.png");
  }

  .navbar-toggler:hover img {
    content: url("/img/bars-red.png");
  }

  .navbar .navbar-nav {
    margin-right: 0;
    margin-left: 0;
    flex-direction: column;
    text-align: center;
    z-index: 1;
  }

  .navbar .navbar-nav .nav-item {
    border-bottom: 1px solid #616161;
  }

  .nav-link {
    padding: 10px 0;
    font-size: 18px;
  }

  .info-block {
    margin: 10px auto;
  }

  .modal-rectangle {
    position: absolute;
    top: 45%;
    background-color: #ec0000;
    clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  }

  .banner-block .container {
    left: 50px;
  }

  .banner-top {
    background-position: left;
  }

  .banner-title {
    font-size: 48px;
  }

  .baner-nav {
    padding: 30px 275px 30px 20px;
    clip-path: polygon(0 0, 83% 0, 100% 100%, 0 100%);
  }

  .baner-nav .aside {
    top: 30px;
    left: 255px;
    height: 140px;
  }

  .title-tarifs {
    margin-left: 0;
    padding: 4px 130px 0 130px;
    font-size: 24px;
  }

  .title-tarifs span {
    padding-right: 0;
  }

  .card-header {
    font-size: 18px;
  }

  .card-header img {
    left: 12px;
  }

  .title-scool {
    font-size: 20px;
    padding-left: 20px;
  }

  .theory-row {
    display: flex;
    flex-wrap: wrap;
  }

  .theory-row .image-col {
    order: 1;
  }

  .theory-row .text-block-col {
    order: 2;
  }

  .peoples,
  .driver {
    margin-bottom: 20px;
  }

  .advantages-title,
  .filials-title {
    font-size: 24px;
    height: 60px;
  }

  .insert h2 {
    font-size: 24px;
  }

  .footer {
    height: auto;
  }

  .logo-footer {
    width: 140px;
    margin: 15px 0;
  }

  ul.list-unstyled {
    line-height: 1.8;
  }

  ul.list-unstyled a {
    font-size: 12px;
  }

  .footer span {
    font-size: 13px;
  }

  .footer .icon img {
    width: 26px;
  }

  footer {
    font-size: 13px;
    text-align: center;
    padding: 10px 0;
  }

  .button-block {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-top: 40px;
  }

  .button-style,
  .button-style2 {
    font-size: 15px;
    min-height: 50px;
    width: 100%;
    max-width: 220px;
  }

  .button-style span,
  .button-style2 span {
    padding: 0 !important;
  }

  .group-title {
    font-size: 14px;
  }
  .group-title img {
    left: 14px;
  }
  .group-title span {
    padding-left: 70px;
  }
}

@media (max-width: 576px) {
  .top-block {
    height: 60px;
  }

  .logo {
    right: 59%;
    top: 58px;
  }

  .logo img {
    height: 70px;
  }

  .contact-info {
    font-size: 12px;
  }

  .contact-info span,
  .contact-info a {
    margin: 5px 0;
  }

  .navbar-container {
    padding-left: 38%;
  }

  .button-red {
    font-size: 12px;
    padding: 0 12px;
    min-height: 35px;
  }

  .navbar {
    height: auto;
  }

  .navbar-toggler {
    padding: 0.5rem;
  }

  .navbar .navbar-nav {
    padding: 10px 0;
    margin-left: 30px;
  }

  .navbar .navbar-nav .nav-item {
    border-bottom: 1px solid #616161;
  }

  .nav-link {
    font-size: 16px;
  }

  .info-block {
    font-size: 14px;
    margin-right: -5%;
  }

  .info-block .number {
    font-size: 20px;
  }

  .modal-dialog {
    max-width: 100%;
  }

  .modal-rectangle {
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  }

  .baner-nav {
    padding: 30px 5px 30px 20px;
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%);
  }

  .banner-title {
    font-size: 40px;
  }

  .baner-nav .aside {
    display: none;
  }

  .banner-block .container {
    left: 10px;
  }

  .title-tarifs {
    margin-left: 0;
    padding: 8px 50px 0 50px;
    font-size: 20px;
  }

  .title-scool {
    font-size: 15px;
  }

  .advantages-title,
  .filials-title {
    font-size: 18px;
  }

  .advantages-title,
  .filials-title {
    width: 80%;
    padding-left: 35px;
  }

  footer {
    font-size: 12px;
    padding: 8px 0;
  }

  .reviews-title {
    padding: 10px;
    font-size: 14px;
    width: 85%;
  }

  .reviews-title b {
    font-size: 12px;
  }

  .reviews-title .title-content {
    margin-left: 0;
  }

  .reviews-rectangle {
    position: absolute;
    top: 40%;
    right: 2%;
    width: 10%;
    height: 8px;
    background-color: #ec0000;
    clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  }

  .button-block {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 15px;
    margin-top: 20px;
  }

  .button-style,
  .button-style2 {
    font-size: 16px;
    min-height: 45px;
    width: 100%;
    max-width: 250px;
  }
}
