/* ==================== СБРОС И БАЗА ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Unbounded', Arial, sans-serif;
  font-weight: 400;
  color: #222;
  line-height: 1.5;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==================== ШАПКА ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #e61856;
  box-shadow: 0 2px 3px rgba(0, 11, 48, 0.25);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo {
  max-width: 110px;
  height: auto;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  gap: 30px;
}

.nav__link {
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav__link:hover {
  opacity: 0.7;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  display: inline-block;
  transition: transform 0.2s;
}

.socials a:hover {
  transform: scale(1.1);
}

.btn-free-lesson {
  display: inline-block;
  padding: 10px 22px;
  background: #fcfcfc;
  color: #000;
  border: 2px solid #222;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
}

.btn-free-lesson:hover {
  background: #f8497e;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Бургер */
.burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* ==================== ПЕРВЫЙ ЭКРАН ==================== */
.hero {
  background: #fff;
  padding: 80px 30px;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero__container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}

.hero__left {
  position: relative;
}

.hero__logo {
  max-width: 180px;
  margin-bottom: 35px;
}

.hero__title {
  font-size: 53px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 23px;
  color: #222;
}

.hero__divider {
  width: 290px;
  height: 3px;
  background: #e61856;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #112346;
  margin-bottom: 35px;
}

.hero__btn {
  display: inline-block;
  padding: 16px 35px;
  background: #e61856;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.hero__btn:hover {
  background: #f15081;
}

.hero__star {
  position: absolute;
  width: 125px;
  height: auto;
  left: 265px;
  bottom: -30px;
}

.hero__right {
  text-align: center;
  position: relative;
}

.hero__photo {
  width: 400px;
  height: 400px;
  border-radius: 80px;
  object-fit: cover;
  margin: 0 auto 35px;
  box-shadow: 10px 30px 30px rgba(174, 162, 162, 0.5);
}

.hero__name {
  font-size: 23px;
  font-weight: 400;
  color: #000;
}

.hero__name-sub {
  font-size: 16px;
  color: #000;
  opacity: 0.45;
  margin-top: 10px;
}

/* ==================== БЛОК СО СТАТИСТИКОЙ ==================== */
.stats {
  background: #5c93eb;
  padding: 40px 30px;
}

.stats__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stats__item {
  text-align: center;
}

.stats__item img {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
}

.stats__item p {
  font-size: 18px;
  line-height: 1.05;
  color: #f3f3f3;
  font-weight: 500;
}

/* ==================== ОБЩИЕ ЗАГОЛОВКИ ==================== */
.section-title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  color: #f43653;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.section-title--yellow {
  color: #fcd33d;
}

/* ==================== АНГЛИЙСКИЙ ЧТОБЫ ==================== */
.features {
  background: #fff;
  padding: 50px 30px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.features__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}

.features__item--reverse .features__img {
  order: 2;
}

.features__img img {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.features__text h3 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 20px;
  color: #222;
}

.features__text p {
  font-size: 20px;
  line-height: 1.4;
  color: #333;
}

/* ==================== ОТЗЫВЫ ==================== */
.reviews {
  background: #dc1752;
  padding: 60px 30px 80px;
}

.slider {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider__viewport {
  flex: 1;
  position: relative;
  min-height: 200px; /* минимальная высота, чтобы не схлопывался */
}

.slider__track {
  position: relative;
  width: 100%;
}

.slide {
  width: 100%;
  padding: 0 20px;
  text-align: center;
  color: #f3f3f3;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide__text {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.slide__name {
  font-size: 26px;
  color: #222;
  font-weight: 600;
  margin-bottom: 8px;
}

.slide__role {
  font-size: 14px;
  color: #f3f3f3;
}

.slider__arrow {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.slider__arrow:hover {
  transform: scale(1.1);
}

.slider__bullets {
  max-width: 1200px;
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider__bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fcfcfc;
  border: 2px solid #5c93eb;
  cursor: pointer;
  transition: background 0.2s;
}

.slider__bullet.active,
.slider__bullet:hover {
  background: #5c93eb;
}

/* ==================== ЗАНЯТИЯ ==================== */
.lessons {
  background: #f4f7f9;
  padding: 50px 30px 80px;
}

.lessons__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.lesson-card {
  background: #588de2;
  border-radius: 10px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.lesson-card:hover {
  background: #3c6dbc;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}

.lesson-card__icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
}

.lesson-card__title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.1;
  font-family: 'Unbounded', sans-serif;
}

.lesson-card__title:hover {
  color: #fff;
}

.lesson-card__list {
  text-align: left;
  margin-bottom: 25px;
  flex: 1;
}

.lesson-card__list li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #fff;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.lesson-card__list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  top: 0;
  color: #fff;
}

.lesson-card__list mark {
  background: #e9d994;
  padding: 1px 5px;
  font-weight: 700;
}

.lesson-card__btn {
  display: inline-block;
  padding: 12px 24px;
  background: #e61856;
  color: #222;
  border: 3px solid #fcd33d;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 11, 48, 0.25);
  transition: all 0.2s;
  margin-top: auto;
}

.lesson-card__btn:hover {
  background: #ff3503;
  color: #ecc46f;
}

/* ==================== CTA TELEGRAM ==================== */
.cta {
  background: #e61856;
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
}

.cta__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta__text {
  font-size: 26px;
  font-weight: 600;
  color: #000;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta__tg-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.cta__btn {
  display: inline-block;
  padding: 18px 40px;
  background: #f8f8f8;
  color: #000;
  border: 3px solid #000;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s;
}

.cta__btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.cta__arrow {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%) rotate(229deg);
  width: 200px;
  pointer-events: none;
}

/* ==================== ФУТЕР ==================== */
.footer {
  background: #222;
  color: #fff;
  padding: 30px;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer__copy {
  font-size: 14px;
  justify-self: start;
}

.footer__socials {
  display: flex;
  gap: 15px;
  justify-self: center;
}

.footer__socials a {
  transition: opacity 0.2s;
}

.footer__socials a:hover {
  opacity: 0.7;
}

.footer__up {
  color: #fff;
  font-size: 14px;
  justify-self: end;
  transition: opacity 0.2s;
}

.footer__up:hover {
  opacity: 0.7;
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 980px) {
  .header__nav,
  .header__right {
    display: none;
  }

  .header__nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e61856;
    padding: 20px 30px;
    flex-direction: column;
  }

  .header__nav.active .nav__list {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .burger {
    display: block;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__left {
    order: 2;
  }

  .hero__right {
    order: 1;
  }

  .hero__logo {
    margin: 0 auto 20px;
  }

  .hero__divider {
    margin: 0 auto 15px;
  }

  .hero__star {
    position: static;
    margin: 30px auto 0;
  }

  .stats__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__item,
  .features__item--reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .features__item--reverse .features__img {
    order: 0;
  }

  .lessons__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta__arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__photo {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 28px;
  }

  .features__text h3 {
    font-size: 26px;
  }

  .features__text p {
    font-size: 16px;
  }

  .stats__container {
    grid-template-columns: 1fr;
  }

  .slider__arrow {
    width: 40px;
    height: 40px;
  }

  .slide__text {
    font-size: 15px;
  }

  .cta__text {
    font-size: 18px;
  }

  .cta__btn {
    font-size: 16px;
    padding: 14px 28px;
  }

  .footer__container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header__container {
    padding: 12px 15px;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .features,
  .reviews,
  .lessons,
  .stats,
  .cta {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==================== АНИМАЦИЯ ПОЯВЛЕНИЯ ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}