@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  --first-color: hsl(44, 58%, 59%);
  --first-color-light: hsl(44, 83%, 47%);
  --first-color-alt: hsl(32, 75%, 50%);
  --white-color: hsl(212, 4%, 95%);
  --white-two-color: hsl(0, 0%, 95%);
  --white-three-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  --black-two-color: hsl(0, 0%, 3%);
  --black-three-color: hsl(0, 1%, 32%);

  --body-font: "Bai Jamjuree", sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: 1rem;
}
body {
  color: var(--black-color);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  overflow-x: hidden; /* Устранить горизонтальную прокрутку */
}

html {
  scroll-behavior: smooth;
}

.section-title {
  margin-bottom: 70px;
  text-align: center;
}

.container {
  max-width: 1230px;
  padding: 0 30px;
  margin: 0 auto;
  overflow: hidden; /* Устранить переполнение */
}
.title-1 {
  font-size: 34px;
  font-weight: 800;
}

.btn {
  display: inline-block;
  padding: 7px 22px;
  background-color: var(--black-two-color);
  border-radius: 30px;

  font-size: 18px;
  color: var(--white-three-color);

  transition: background-color 0.2s ease-in, top 0.2s ease-in;
}

.btn:hover,
.btn:focus {
  background-color: var(--white-three-color);
}

.btn:active {
  position: relative;
  top: 1px;
  background-color: var(--black-color);
}

/* Шапка */

.header {
  padding-top: 46px;
  background-color: var(--white-two-color);
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  margin-bottom: 76px;
}

.logo-set {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

.logo {
  padding: 0 12px 0px 0;
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--black-two-color);
}

/* Навигация */

.nav-list {
  display: flex;
  column-gap: 50px;
  font-weight: 500;
  font-size: 17px;
}

.nav-button {
  display: none;
}

.nav-link {
  position: relative;
  color: var(--black-two-color);
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--first-color-light);
  display: block;
}

.nav-link.active {
  color: var(--black-three-color);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--first-color-light);
  display: block;
}

/* Содержимое шапки */

.header-row {
  display: flex;
  justify-content: space-between;
  column-gap: 30px;
}

.header-content {
  display: flex;
  flex-direction: column;
  margin-top: 124px;
  max-width: 500px;
}

.header-heading {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 44px;
  flex-direction: column;
}

.header-content p {
  line-height: 1, 5;
}

.header-btn {
  margin-top: 30px;
  align-self: flex-start;
}

.header-btn > a {
  border: none;
  border-radius: 10px;
  text-decoration: none;
  padding: 12px 19px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white-two-color);
  background: var(--first-color-light);
  box-shadow: 0 5px 0 var(--first-color);
}

.header-btn > a:hover {
  box-shadow: none;
  position: relative;
  top: 5px;
}

.header-img > picture > img {
  height: 613px;
}
/* Почему я? */

.services {
  padding: 90px 0;
}

.services > .container {
  padding-bottom: 22px;
}

.services-title {
  margin-bottom: 70px;
  text-align: center;
}

.services-row {
  display: flex;
  column-gap: 30px;
  row-gap: 60px;
  flex-wrap: wrap;
}

.service-card {
  flex: 1 1 0;
  min-width: 315px;
  position: relative;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 4px;
  background-color: var(--first-color-light);
  display: block;
}

.service-card > div {
  display: flex;
  gap: 17px;
}

.service-card-img {
  margin-bottom: 20px;
}

.service-card-title {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
}

.service-card p {
  line-height: 1, 47;
}

/* Кнопки закладок */
/* Контейнер закладок */
.tabs {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: stretch; /* Растягиваем кнопки по высоте */
  gap: 0; /* Убираем промежутки между кнопками */
  border: 1px solid var(--first-color-light); /* Рамка вокруг всех кнопок */
  overflow: hidden; /* Убираем выход за края */
}

/* Базовый стиль кнопок */
.tab-button {
  position: relative;
  flex: 1; /* Кнопки растягиваются на равные части */
  padding: 15px 5px; /* Увеличенный отступ по вертикали */
  font-size: 16px;
  font-weight: bold;
  color: var(--black-two-color);
  background: var(--white-color); /* Фон кнопок */
  border: none; /* Убираем стандартные границы */
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

/* Вертикальные линии между кнопками */
.tab-button + .tab-button {
  border-left: 1px solid var(--first-color-light); /* Тонкая линия между кнопками */
}

/* Активная кнопка с полной заливкой */
.tab-button.active {
  background-color: var(--first-color-light); /* Фон активной кнопки */
  color: var(--white-color); /* Белый текст для контраста */
  z-index: 1; /* Поднятие кнопки */
}

/* Анимация при наведении */
.tab-button:hover {
  background-color: var(--first-color-light); /* Фон при наведении */
  color: var(--white-color);
}

/* Для предотвращения толчка при добавлении стилей */
.tab-button.discount::after {
  content: "-90%"; /* Значок скидки */
  display: block; /* Убедитесь, что он отображается */
}

/* Значок скидки */
.tab-button.discount::after {
  content: "до -90%"; /* Текст значка */
  position: absolute;
  top: 11%;
  right: -19px;
  transform: translateY(-50%) rotate(34deg); /* Поворот значка на 15 градусов влево */
  background-color: var(--first-color-light);
  color: var(--white-color);
  font-size: 14px;
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Значок у активной кнопки discount */
.tab-button.discount.active::after {
  right: -19px; /* Сохраняем положение */
  transform: translateY(-50%) rotate(34deg) scale(1.2); /* Убедитесь, что поворот остаётся */
}

/* Для предотвращения наложения значка */
.tabs {
  position: relative;
  overflow: visible; /* Разрешаем элементы выходить за границы */
}

/* Содержимое закладок */
.tabs-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-pane {
  display: none; /* Скрываем все вкладки */
  width: 100%;
}

.tab-pane.active {
  display: flex; /* Показываем только активную вкладку */
  flex-wrap: wrap; /* Для размещения карточек в несколько рядов */
  gap: 20px;
  justify-content: center;
}

.trainings {
  padding: 50px 0;
  background-color: var(--white-two-color);
}

.trainings > .container {
  padding-bottom: 20px;
}

.trainings-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 30px;
  justify-content: space-around;
}

.training-cart {
  position: relative;
  width: 100%;
  max-width: 350px; /* Максимальная ширина карточки */
  border: 1px solid var(--first-color-light); /* Лёгкая рамка */
  border-radius: 8px; /* Скруглённые углы */
  overflow: hidden; /* Убираем выход за границы */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* width: 275px;
  min-height: 390px;
  box-shadow: 1px 2px 4px var(--first-color-light);
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  border-radius: 4px;
  transition: 0.2s;
  position: relative; */
}
.training-cart:hover {
  transform: translateY(-5px); /* Лёгкий подъём при наведении */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Усиление тени */
}
/* .training-cart:hover {
  box-shadow: 4px 8px 16px var(--first-color);
} */

/* .training-cart_top {
  flex: 0 0 146px;
  position: relative;
  overflow: hidden;
}

.training-cart_bottom {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding: 10px;
}

.training-cart_img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.training-cart_img > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.2s;
} */
/* Верхняя часть карточки */
.training-cart_top {
  position: relative;
  border-bottom: 1px solid var(--first-color-light);
}

.training-cart_img img {
  width: 100%;
  height: 100%; /* Высота изображения */
  object-fit: cover; /* Картинка обрезается по контейнеру */
}

/* Значок скидки */
.training-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--first-color-light);
  color: var(--white-color);
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Нижняя часть карточки */
.training-cart_bottom {
  padding: 15px;
}

.training-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--black-two-color);
  text-align: center;
}

/* Программа */
.training-program {
  margin-bottom: 15px;
}

.training-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 5px;
  color: #555;
  font-size: 14px;
}

/* Регистрация */
.training-registr {
  text-align: center;
}

.training-description {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

/* Цены */
.training-prices {
  display: flex;
  flex-direction: column; /* Расположение цен друг над другом */
  align-items: center; /* Центрирование по горизонтали */
  margin-bottom: 15px; /* Расстояние до кнопки */
}

/* Старая цена */
.old-price {
  font-size: 14px; /* Меньший размер */
  color: gray; /* Серый цвет */
  text-decoration: line-through; /* Зачёркнутая цена */
  margin-bottom: -11px; /* Отступ вниз */
  left: 10px;
}

/* Новая цена */
.new-price {
  font-size: 24px; /* Крупный шрифт */
  font-weight: bold; /* Жирный текст */
  color: var(--first-color-light); /* Основной цвет темы */
}

/* Кнопка */
.traning-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--first-color-light);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.traning-btn:hover {
  background-color: var(--first-color-alt);
}

.training-sele {
  padding: 4px 8px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--first-color-light);
  border-radius: 4px;
  font-weight: 400;
  font-size: 14px;
  color: #fff;
}

.training-title {
  font-weight: 700;
  font-size: 19px;
  color: #414141;
  position: relative;
}

.training-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background-color: var(--first-color-light);
  display: block;
}

.training-program {
  display: block;
  margin-top: 15px;
  list-style-type: none;
}

.training-list {
  display: block;
  margin: 0 0 10px 20px;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #414141;
  list-style-type: decimal;
}

.training-registr {
  margin-top: auto;
}

.training-description {
  font-weight: 700;
  margin-bottom: 5px;
}

.training-description > span {
  color: var(--first-color-light);
}

.traning-btn {
  display: block;
  width: 100%;
  font-weight: 400;
  font-size: 19px;
  color: var(--white-color);
  padding: 10px;
  text-align: center;
  border: 1px solid var(--first-color-light);
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.traning-btn:hover {
  border: 1px solid var(--first-color);
  background-color: var(--first-color);
  color: var(--white-two-color);
}

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  overflow: auto;
}

#successModal > .modal-content {
  max-width: 300px;
  text-align: center;
}

#successModal > .modal-content > span {
  position: absolute;
  right: 5px;
  top: 5px;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  box-shadow: 0 3px 5px var(--first-color);
  background-color: #fefefe;
  border: 1px solid #888;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.modal-content > h2 {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.modal-content > h2::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -2px;
  height: 2px;
  background-color: var(--first-color-light);
  display: block;
}

.close {
  position: absolute;
  z-index: 1001;
  color: #aaa;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

.telegram-form {
  flex-direction: column;
  display: flex;
}

.telegram-form > input {
  margin: 10px 0;
  padding: 10px;
  box-shadow: 0 3px 3px var(--first-color);
  border-radius: 10px;
}

.telegram-form > textarea {
  margin: 10px 0;
  padding: 10px;
  box-shadow: 0 3px 3px var(--first-color);
  outline: none;
  border-radius: 10px;
  resize: none;
}

.telegram-form > button {
  min-width: 100%;
  padding: 12px 22px;
  background-color: var(--first-color-light);
  border-radius: 30px;
  font-size: 18px;
  color: var(--white-three-color);
  transition: background-color 0.2s ease-in, top 0.2s ease-in;
  box-shadow: 0 5px 0 var(--first-color);
  margin-top: 20px;
  width: 100%;
}

.telegram-form > button > a:hover {
  box-shadow: none;
  position: relative;
  top: 5px;
}

.purchase-form {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid var(--first-color-light);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--first-color-light);
  margin-bottom: 15px;
}

.purchase-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #555;
}

.purchase-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.purchase-form .form-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--first-color-light);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.purchase-form .form-btn:hover {
  background-color: var(--first-color-alt);
}

/* Отзывы учиников */

.review-swiper > .container {
  padding-bottom: 30px;
}

.review-swiper {
  padding: 90px 0;
  background-color: var(--white-three-color);
}

.swiper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Убедиться, что элементы внутри контейнера позиционируются относительно контейнера */
  overflow: visible; /* Убедиться, что контейнер не обрезает содержимое */
}

.swiper {
  width: 100%; /* Измените на 100%, чтобы занять всю ширину контейнера */
  height: auto;
}

.swiper-cards .swiper-slide {
  height: auto;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px; /* Скруглённые углы */
  background: linear-gradient(145deg, #ffffff, #e6e6e6); /* Лёгкий градиент */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2),
    -5px -5px 15px rgba(255, 255, 255, 0.5); /* Объёмные тени */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимация при наведении */
  overflow: hidden;
  width: 100%; /* Убедиться, что слайды занимают 100% ширины */
}

.swiper-slide:hover {
  transform: scale(1.05); /* Лёгкое увеличение слайда */
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3),
    -8px -8px 20px rgba(255, 255, 255, 0.6); /* Более яркие тени */
}

.swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer; /* Курсор в виде руки при наведении */
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px; /* Скруглённые углы для видео */
  overflow: hidden; /* Чтобы видео не выходило за границы */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15); /* Лёгкая тень вокруг видео */
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8); /* Белая полупрозрачная рамка */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); /* Внутренняя тень */
  border-radius: 18px; /* Скруглённые углы */
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5); /* Затемнение для акцента */
  border-radius: 18px; /* Скруглённые углы */
  transition: background 0.3s ease;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.7); /* Более тёмное затемнение при наведении */
}

.video-overlay img {
  width: 50px;
  height: 50px;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px; /* Убедиться, что пагинация находится внизу */
  width: 100%;
  text-align: center;
  z-index: 10; /* Убедиться, что пагинация выше других элементов */
}

.swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.6); /* Полупрозрачный белый цвет */
  width: 12px; /* Увеличенный размер */
  height: 12px;
  border-radius: 50%; /* Круглая форма */
  transition: background 0.3s ease, transform 0.3s ease; /* Анимация для активного индикатора */
}

.swiper-pagination-bullet-active {
  background: var(--first-color-light); /* Цвет темы для выделения */
  transform: scale(1.5); /* Увеличенный размер */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Лёгкая подсветка */
}

/* Анимация при наведении */
.swiper-pagination-bullet:hover {
  background: var(--first-color-alt); /* Лёгкое изменение цвета при наведении */
  cursor: pointer; /* Указатель, чтобы подчеркнуть интерактивность */
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: var(--swiper-pagination-bottom, -28px);
  top: var(--swiper-pagination-top, auto);
  left: 0;
  width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--first-color-light); /* Цвет стрелок */
width: 50px;
height: 50px;
  background: rgba(255, 255, 255, 0.8); /* Лёгкий фон */
  border-radius: 50%; /* Круглая форма */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для объёма */
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Размер SVG-иконок стрелок */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 17px; /* Размер стрелки */
  font-weight: bold;
}

/* Анимация при наведении */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--first-color-alt);
  transform: scale(1.1); /* Лёгкое увеличение */
}

/* Размещение стрелок */
.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

/* Footer */

.contacts {
  padding: 90px 0;
  text-align: center;
  background-color: var(--white-two-color);
}

.contacts-title {
  margin-bottom: 40px;
}

.contacts-content {
  margin: 0 auto 40px;
  max-width: 480px;
  font-size: 18px;
}

.contacts-content p + p {
  margin-top: 1em;
}

.contacts-button {
  margin-bottom: 80px;
}

.contacts-social {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 60px;
}

.contacts-social > a > svg:hover {
  fill: var(--first-color-light);
}

.contacts-footer {
  color: #828282;
  margin-bottom: 20px;
}

.contact-btn {
  margin-top: 20px;
  width: 100%;
  margin-bottom: 80px;
}

.contact-btn > a {
  display: inline-block;
  min-width: 80%;
  padding: 12px 22px;
  background-color: var(--first-color-light);
  border-radius: 30px;
  font-size: 18px;
  color: var(--white-three-color);
  transition: background-color 0.2s ease-in, top 0.2s ease-in;
  box-shadow: 0 5px 0 var(--first-color);
}
