/* Сброс стилей и основные настройки */
:root {
  --main-color: #6a5acd;
  --secondary-color: #9370db;
  --accent-color: #8a2be2;
  --text-color: #333;
  --light-color: #f9f9f9;
  --dark-color: #2c2c2c;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--main-color);
  margin: 10px auto;
  transition: var(--transition);
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: var(--main-color);
  color: white;
}

.btn--primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.btn--secondary:hover {
  background-color: var(--main-color);
  color: white;
  transform: translateY(-3px);
}

/* Анимация появления элементов */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Шапка сайта */
.header {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main-color);
}

.nav__list {
  display: flex;
}

.nav__item {
  margin-left: 25px;
}

.nav__link {
  font-weight: 500;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

/* Секция Герой */
.hero {
  height: 90vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('./img/LB9q8R.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  position: relative;
}

.hero__content {
  max-width: 600px;
  animation: fadeIn 1s ease-out;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Секция Про нас */
.about__content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.about__text {
  flex: 1;
  min-width: 300px;
}

.about__text p {
  margin-bottom: 1rem;
}

.about__image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Секция Преимущества */
.benefits {
  background-color: #f5f5f5;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50%;
}

.benefit-card__title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--main-color);
}

/* Секция Галерея */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

/* Секция Программы тренировок */
.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.program-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-card__image {
  height: 200px;
  overflow: hidden;
}

.program-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .program-card__image img {
  transform: scale(1.1);
}

.program-card__title {
  padding: 20px 20px 10px;
  font-size: 1.5rem;
  color: var(--main-color);
}

.program-card__text {
  padding: 0 20px 20px;
}

.program-card__booking {
  padding: 0 20px 20px;
}

/* Секция Форма записи */
.booking {
  background-color: #f5f5f5;
}

.booking-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-form__error {
  background-color: #ffe6e6;
  color: #c00;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px;
  border: 1px solid #ffcccc;
}

.booking-form__field {
  margin-bottom: 20px;
}

.booking-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.booking-form__input,
.booking-form__select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.booking-form__input:focus,
.booking-form__select:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

.booking-form__submit {
  width: 100%;
  margin-top: 10px;
}

/* Секция Отзывы */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.review-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
}

.review-card__name {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--main-color);
}

.review-card__rating {
  color: #ffb900;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Секция FAQ */
.faq {
  background-color: #f5f5f5;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background-color: white;
  margin-bottom: 15px;
  border-radius: 8px;
  padding: 20px 25px;
  box-shadow: var(--shadow);
}

.faq__question {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--main-color);
}

/* Секция Контакты */
.contacts__content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contacts__info {
  flex: 1;
  min-width: 300px;
}

.contacts__item {
  margin-bottom: 25px;
}

.contacts__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--main-color);
}

.contacts__map {
  flex: 2;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Футер */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer__logo {
  display: inline-block;
}

.footer__social {
  display: flex;
  flex-direction: column;
}

.social-link {
  margin-bottom: 10px;
}

.social-link:hover {
  color: var(--main-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
}

.footer__link {
  margin-bottom: 10px;
}

.footer__link:hover {
  color: var(--main-color);
}

.footer__copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie предупреждение */
.cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-alert__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-alert__text {
  flex: 1;
  min-width: 200px;
}

.cookie-alert__buttons {
  display: flex;
  gap: 10px;
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero__title {
    font-size: 2.8rem;
  }
  
  .hero__subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .header {
    padding: 15px 0;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
  }
  
  .about__content {
    flex-direction: column;
  }
  
  .contacts__content {
    flex-direction: column;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav__list {
    flex-direction: column;
    padding: 20px;
  }
  
  .nav__item {
    margin: 0;
    margin-bottom: 15px;
  }
  
  .nav__toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .benefit-card,
  .program-card,
  .review-card,
  .faq__item {
    padding: 20px 15px;
  }
  
  .booking-form {
    padding: 20px;
  }
} 