/* Основные стили */
:root {
  --primary-color: #3a7ca5;
  --secondary-color: #f58a07;
  --accent-color: #16697a;
  --dark-color: #2c3e50;
  --light-color: #f7f9fc;
  --gray-color: #e6e9ef;
  --text-color: #4a5568;
  --heading-color: #2d3748;
  --border-radius: 8px;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.rounded-image {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  object-fit: cover;
}

.rounded-icon {
  border-radius: 50%;
  object-fit: cover;
  width: 100px;
  height: 100px;
  box-shadow: var(--box-shadow);
}

.icon-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.social-img {
  width: 20px;
  height: 20px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

section {
  padding: 100px 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 15px rgba(58, 124, 165, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(58, 124, 165, 0.3);
}

/* Шапка */
header {
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0 0 0 10px;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Секция Hero */
.hero {
  background-color: var(--light-color);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(58, 124, 165, 0.05);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h2:after {
  margin: 25px 0 0;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* О курсе */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

/* Программа курса */
.program {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.program:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(245, 138, 7, 0.1);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.modules {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.module {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 35px;
  display: flex;
  gap: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 5px solid var(--primary-color);
}

.module:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.module-icon {
  flex-shrink: 0;
}

.module-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Преимущества */
.benefits {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.benefit-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-top: 5px solid var(--secondary-color);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.benefit-card h3 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

/* Преподаватель */
.instructor {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.instructor:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-color: rgba(245, 138, 7, 0.1);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  z-index: 0;
}

.instructor-profile {
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.instructor-image {
  flex-shrink: 0;
}

.instructor-image img {
  max-width: 300px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.instructor-info {
  flex: 1;
}

.instructor-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.instructor-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.stat {
  text-align: center;
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Регистрация */
.register {
  background-color: white;
}

.register-content {
  display: flex;
  gap: 60px;
}

.register-info {
  flex: 1;
}

.register-details {
  margin-top: 30px;
}

.register-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background-color: var(--light-color);
  padding: 18px 22px;
  border-radius: var(--border-radius);
}

.register-form {
  flex: 1;
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--primary-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.2);
}

/* Отзывы */
.testimonials {
  background-color: var(--light-color);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  border-left: 5px solid var(--secondary-color);
}

.testimonial-content {
  margin-bottom: 30px;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
}

.testimonial-content:before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -15px;
  font-family: "Playfair Display", serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--dark-color);
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.prev-btn,
.next-btn {
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.prev-btn:hover img,
.next-btn:hover img {
  filter: brightness(0) invert(1);
}

/* FAQ */
.faq {
  background-color: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-color);
  margin-bottom: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.faq-toggle {
  transition: var(--transition);
}

.faq-answer {
  padding-bottom: 20px;
  display: none;
  color: var(--text-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Футер */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-info {
  flex: 2;
  min-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.footer-logo h3 {
  color: white;
  margin: 0 0 0 10px;
}

.footer-info p {
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.8);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  flex: 3;
  justify-content: space-between;
}

.footer-column {
  min-width: 160px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
}

.footer-column h4:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1100px) {
  h2 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .hero .container,
  .about-content,
  .instructor-profile,
  .register-content {
    flex-direction: column;
  }

  .hero-image,
  .about-image {
    order: -1;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .instructor-image {
    margin: 0 auto 30px;
  }

  .instructor-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .module {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
  }

  .module-icon {
    margin-bottom: 20px;
  }

  .benefit-card {
    padding: 30px 20px;
  }

  .testimonial {
    padding: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .instructor-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat {
    width: 100%;
  }

  .register-details li {
    padding: 12px 15px;
  }

  .register-form {
    padding: 25px;
  }

  .testimonial-content {
    font-size: 1rem;
  }
}
