/* Стили для сайта "Гармонія Йоги" */

/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #7e57c2;
  --secondary-color: #4a148c;
  --accent-color: #a5d6a7;
  --text-color: #333;
  --light-color: #fff;
  --dark-color: #212121;
  --grey-color: #f5f5f5;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Шапка */
.header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Анимации без JavaScript */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-in-up {
  animation: slideInUp 0.8s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Главный баннер */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/tsx66i.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 2s ease;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

/* О нас */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-text {
  margin-bottom: 20px;
}

/* Типы тренировок */
.classes {
  background-color: var(--grey-color);
}

.classes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.class-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.class-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.class-content {
  padding: 20px;
}

.class-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.class-desc {
  margin-bottom: 20px;
}

.class-signup {
  text-align: center;
}

/* Форма записи */
.signup-form {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Расписание */
.schedule {
  background-color: var(--light-color);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #eee;
  padding: 15px;
  text-align: center;
}

.schedule-table th {
  background-color: var(--primary-color);
  color: var(--light-color);
  font-weight: 500;
}

.schedule-table tr:nth-child(even) {
  background-color: var(--grey-color);
}

/* Преподаватели */
.trainers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.trainer-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-10px);
}

.trainer-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.trainer-content {
  padding: 20px;
}

.trainer-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.trainer-role {
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 15px;
}

.trainer-bio {
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-color);
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
}

/* Отзывы */
.testimonials {
  background-color: var(--grey-color);
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  position: relative;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-text::before {
  content: "";
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: #777;
}

/* Свяжитесь с нами */
.contact {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/u0DO53.jpg') no-repeat center center/cover;
  color: var(--light-color);
}

.contact-title {
  color: var(--light-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--dark-color);
  text-align: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
}

/* Футер */
.footer {
  background-color: var(--dark-color);
  color: #bbb;
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--light-color);
  margin-bottom: 15px;
  display: block;
}

.footer-about p {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--light-color);
  position: relative;
}

.footer-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin-top: 10px;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 10px;
}

.footer-link a {
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-link a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie уведомление */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 8px 15px;
  font-size: 0.8rem;
}

/* Страница "Спасибо" */
.thank-you {
  text-align: center;
  padding: 100px 0;
}

.thank-you-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.thank-you-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  
  .nav-menu {
    flex-direction: column;
    background-color: var(--light-color);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  
  .nav-item {
    margin: 0;
    text-align: center;
    padding: 10px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-container,
  .contact-container {
    flex-direction: column;
  }
  
  .signup-form {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .schedule-table {
    font-size: 0.8rem;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 10px 5px;
  }
  
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
} 