/* Hero Main Section */
.hero-main {
  background-image: url("/images/about-lib-main-bg.svg");
  background-repeat: no-repeat;
  border-radius: 20px;
  position: relative;
  max-width: 1435px;
  margin: 40px auto 0;
  padding-top: 44px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 50px;
}

.hero-main-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 76px;
  color: #ffffff;
}

.hero-main-below-content {
  display: flex;
  gap: 30px;
  margin-top: 84px;
}

.hero-main-image {
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-width: 0;
  position: relative;
  /* Предотвращение CLS: padding-bottom trick для 16:9 */
  width: 100%;
  height: 0; /* Необходимо для padding-bottom trick */
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.hero-main-bg {
  z-index: 1;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

/* Lottie player внутри hero-main-image */
.hero-main-image .hero-main-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Внешний hero-main-illustration (для другого контекста) */
.hero-main-illustration {
  position: absolute;
  max-width: 620px;
  right: -35px;
  top: -340px;
  height: auto;
  pointer-events: none;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  opacity: 0.5;
  z-index: 3;
  width: 100px;
  height: 100px;
}

.hero-main-image:hover > .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 100%;
  cursor: pointer;
}

.hero-second-illustration {
  position: absolute;
  bottom: 0;
  left: 42px;
}

.hero-video-link {
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 3vw, 24px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-video-link:hover {
  color: #b0e881;
}

.video-link-arrow {
  margin-left: 85px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.hero-main-action:hover .video-link-arrow {
  transform: translateX(4px);
}

.nav-link.active {
  color: #2b7ce9;
}

.nav-link.active::after {
  width: 100%;
}

@media screen and (max-width: 1450px) {
  .hero-main {
    margin: 40px 40px 0;
    padding: 40px;
  }

  .hero-main-title {
    font-size: 60px;
  }

  .play-icon {
    width: 100px;
  }

  .hero-video-link {
    font-size: 15px;
  }

  .hero-main-below-content {
    gap: 40px;
  }

  .video-link-arrow {
    margin-left: 15px;
  }

  .video-link-arrow img {
    width: 100%;
  }

  .hero-main-image {
    padding-bottom: 56.25%; /* Сохраняем 16:9 */
  }
  
  .hero-main-bg {
    width: 100%;
    height: 100%;
  }

  .hero-main-illustration {
    height: 75%;
    top: -75%;
  }

  .hero-second-illustration img {
    width: 400px;
  }
}

@media screen and (max-width: 1100px) {
  .hero-main-below-content {
    margin-top: 70px;
  }

  .hero-main-title {
    font-size: 45px;
  }

  .hero-second-illustration img {
    width: 60%;
  }
}

@media screen and (max-width: 1000px) {
  .play-icon {
    width: 80px;
  }

  .hero-second-illustration img {
    width: 50%;
  }
}

@media screen and (max-width: 950px) {
  .hero-main {
    margin: 30px 30px 0;
    padding: 30px;
  }

  .play-icon {
    width: 70px;
  }

  .hero-second-illustration img {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .hero-main {
    margin: 20px 20px 0;
    padding: 30px;
  }

  .hero-main-title {
    font-size: 35px;
  }

  .hero-main-below-content {
    flex-direction: column;
    gap: 80px;
    margin-top: 30px;
  }

  .hero-main-bg img {
    width: 100%;
  }
  .hero-main-image {
    margin-top: 70px;
  }

  .hero-second-illustration {
    display: none;
  }

  .hero-main-illustration {
    height: 60%;
    top: -60%;
  }

  .video-link-arrow {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero-main {
    padding: 25px;
  }

  .hero-main-below-content {
    gap: 40px;
    margin-top: 0px;
  }

  .hero-main-title {
    font-size: 28px;
  }
}

/* Teachers Section */
.teachers-section {
  background-image: url("/images/teacher-bg.svg");
  padding: 80px 40px;
  margin-top: 100px;
}

.teachers-header {
  margin-bottom: 50px;
}

.teachers-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.teachers-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 21px;
  align-items: stretch;
  margin-bottom: 20px;
}

.teachers-main-card {
  background: #b0e881;
  border-radius: 30px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.teachers-main-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.teachers-main-card-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.teachers-main-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  margin-top: 20px;
}

.teachers-main-card-illustration {
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 500px;
  height: 400px;
  min-width: 500px;
  min-height: 400px;
}

.teachers-main-card-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.teachers-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.teachers-side-card {
  background-color: #b0e881;
  border-radius: 30px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.teachers-side-card-icon {
  position: absolute;
  top: 30px;
  right: 40px;
}

.teachers-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.teachers-side-card-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.teachers-side-card-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.teachers-side-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  margin-top: 20px;
}

@media screen and (max-width: 1440px) {
  .teachers-main-card-illustration {
    max-width: 46%;
  }

  .teachers-side-card-title {
    padding-right: 100px;
  }

  .teachers-main-card-title {
    font-size: 34px;
  }

  .teachers-main-card-description {
    font-size: 23px;
  }

  .teachers-side-card-title {
    font-size: 34px;
  }

  .teachers-side-card-description {
    font-size: 24px;
  }

  .teachers-main-card-title br {
    display: none;
  }
}

@media screen and (max-width: 1200px) {
  .teachers-section {
    padding: 70px 40px;
  }

  .teachers-main-card {
    border-radius: 20px;
    padding: 30px;
  }

  .teachers-main-card-illustration {
    max-width: 38%;
  }

  .teachers-main-card-title {
    font-size: 32px;
  }

  .teachers-main-card-description {
    font-size: 22px;
  }

  .teachers-side-card-title {
    font-size: 32px;
  }

  .teachers-side-card-description {
    font-size: 22px;
  }

  .download-flaer a {
    font-size: 22px;
  }
}

@media screen and (max-width: 1024px) {
  .teachers-section {
    padding: 60px 40px;
    margin-top: 60px;
  }

  .teachers-title {
    font-size: 32px;
  }

  .teachers-main-grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .teachers-main-card {
    padding: 32px;
    border-radius: 20px;
    min-height: 400px;
  }

  .teachers-main-card-title {
    font-size: 28px;
  }

  .teachers-main-card-description {
    font-size: 20px;
  }

  .teachers-main-card-illustration {
    max-width: 40%;
    bottom: 0;
  }

  .teachers-cards {
    gap: 20px;
  }

  .teachers-side-card {
    border-radius: 20px;
    padding: 28px;
  }

  .teachers-side-card-icon {
    max-width: 70px;
    top: 28px;
    right: 28px;
  }

  .teachers-side-card-title {
    font-size: 28px;
  }

  .teachers-side-card-description {
    font-size: 20px;
  }

  .download-flaer a {
    font-size: 20px;
  }
}

@media screen and (max-width: 950px) {
  .teachers-section {
    padding: 50px 30px;
    margin-top: 50px;
  }

  .teachers-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .teachers-header {
    margin-bottom: 30px;
  }

  .teachers-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .teachers-main-card {
    padding: 30px;
    min-height: 350px;
  }

  .teachers-main-card-title {
    font-size: 24px;
  }

  .teachers-main-card-description {
    font-size: 18px;
    margin-top: 16px;
  }

  .teachers-main-card-illustration {
    max-width: 48%;
    bottom: 0;
  }

  .guide-image {
    padding: 30px 20px;
  }

  .teachers-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .teachers-side-card {
    padding: 24px;
  }

  .teachers-side-card-icon {
    max-width: 60px;
    top: 24px;
    right: 24px;
  }

  .teachers-side-card-title {
    font-size: 24px;
    max-width: 65%;
    padding-right: 0;
  }

  .teachers-side-card-description {
    font-size: 18px;
    margin-top: 16px;
  }

  .download-flaer a {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .teachers-section {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 660px) {
  .teachers-main-card-illustration {
    max-width: 37%;
  }
}

@media screen and (max-width: 480px) {
  .teachers-section {
    margin-top: 40px;
  }

  .teachers-title {
    font-size: 24px;
  }

  .teachers-header {
    margin-bottom: 24px;
  }

  .teachers-main-grid {
    gap: 16px;
    margin-bottom: 16px;
  }

  .teachers-main-card {
    padding: 24px;
    min-height: 300px;
  }

  .teachers-main-card-title {
    font-size: 20px;
  }

  .teachers-main-card-description {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.5;
  }

  .teachers-main-card-illustration {
    max-width: 30%;
    bottom: 0;
  }

  .guide-image {
    padding: 20px 16px;
  }

  .teachers-cards {
    gap: 12px;
  }

  .teachers-side-card {
    padding: 20px;
  }

  .teachers-side-card-icon {
    max-width: 50px;
    top: 20px;
    right: 20px;
  }

  .teachers-side-card-title {
    font-size: 20px;
    max-width: 60%;
  }

  .teachers-side-card-description {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.5;
  }

  .download-flaer a {
    font-size: 16px;
    margin-top: 16px;
  }
}

@media screen and (max-width: 375px) {
  .teachers-section {
    margin-top: 32px;
  }

  .teachers-title {
    font-size: 22px;
  }

  .teachers-main-card {
    padding: 20px;
    min-height: 280px;
  }

  .teachers-main-card-title {
    font-size: 18px;
  }

  .teachers-main-card-description {
    font-size: 14px;
  }

  .teachers-cards {
    gap: 12px;
  }

  .teachers-side-card {
    padding: 18px;
  }

  .teachers-side-card-icon {
    max-width: 45px;
    top: 18px;
    right: 18px;
  }

  .teachers-side-card-title {
    font-size: 18px;
    max-width: 55%;
  }

  .teachers-side-card-description {
    font-size: 14px;
  }

  .download-flaer a {
    font-size: 14px;
  }
}

/* teacher Methodical Guide Section */
.methodical-guide-section {
  margin-top: 20px;
}

.methodical-guide-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: stretch;
}

.methodical-guide-card .guide-image-preview {
  background: #f3f8ff;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Предотвращение CLS: резервируем место */
  min-height: 400px;
  width: 100%;
}

.methodical-guide-card .guide-image-preview img {
  width: 100%;
  height: auto;
  max-width: 300px;
  max-height: 400px;
  object-fit: contain;
}

.guide-content {
  background-color: #b0e881;
  border-radius: 30px;
  padding: 38px 18px 38px 38px;
}

.guide-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.guide-description,
.guide-additional-info,
.guide-hope {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
}

.guide-description,
.guide-additional-info {
  margin-bottom: 15px;
}

.guide-hope {
  margin-bottom: 31px;
}

.download-button {
  background: #0c6ed6;
  border: none;
  border-radius: 15px;
  padding: 20px 85px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-button a {
  font-family: "Inter";
  font-weight: 600;
  font-size: 20px;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
}

.download-button:hover {
  background: #0956b3;
}

@media screen and (max-width: 1200px) {
  .methodical-guide-section {
    margin-top: 20px;
  }

  .guide-content {
    padding: 35px 20px 35px 35px;
  }

  .guide-title {
    font-size: 32px;
  }

  .guide-description,
  .guide-additional-info,
  .guide-hope {
    font-size: 22px;
  }

  .download-button {
    padding: 18px 70px;
  }

  .download-button a {
    font-size: 18px;
  }
}

@media screen and (max-width: 1024px) {
  .guide-content {
    padding: 30px 20px 30px 30px;
    border-radius: 20px;
  }

  .methodical-guide-card .guide-image-preview {
    border-radius: 20px;
    padding: 15px;
  }

  .guide-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .guide-description,
  .guide-additional-info,
  .guide-hope {
    font-size: 20px;
  }

  .guide-hope {
    margin-bottom: 24px;
  }

  .download-button {
    padding: 16px 60px;
  }

  .download-button a {
    font-size: 18px;
  }
}

@media screen and (max-width: 950px) {
  .methodical-guide-section {
    margin-top: 20px;
  }

  .methodical-guide-card {
    grid-template-columns: 1fr;
  }

  .methodical-guide-card .guide-image-preview img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .methodical-guide-card .guide-image-preview {
    max-width: auto;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
  }

  .guide-content {
    padding: 30px 24px;
  }

  .guide-title {
    font-size: 24px;
  }

  .guide-description,
  .guide-additional-info,
  .guide-hope {
    font-size: 18px;
  }

  .guide-hope {
    margin-bottom: 20px;
  }

  .download-button {
    display: block;
    margin: 0 auto;
    padding: 16px 50px;
  }
}

@media screen and (max-width: 480px) {
  .methodical-guide-section {
    margin-top: 16px;
  }

  .methodical-guide-card {
    gap: 16px;
  }

  .methodical-guide-card .guide-image-preview {
    padding: 16px;
  }

  .guide-content {
    padding: 24px 20px;
  }

  .guide-title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .guide-description,
  .guide-additional-info,
  .guide-hope {
    font-size: 16px;
    line-height: 1.5;
  }

  .guide-description,
  .guide-additional-info {
    margin-bottom: 12px;
  }

  .guide-hope {
    margin-bottom: 16px;
  }

  .download-button {
    width: 100%;
    padding: 16px 20px;
  }

  .download-button a {
    font-size: 16px;
  }
}

@media screen and (max-width: 375px) {
  .methodical-guide-card .guide-image-preview {
    /* max-width: 200px; */
    padding: 12px;
  }

  .guide-content {
    padding: 20px 16px;
  }

  .guide-title {
    font-size: 18px;
  }

  .guide-description,
  .guide-additional-info,
  .guide-hope {
    font-size: 14px;
  }

  .download-button {
    padding: 14px 20px;
  }

  .download-button a {
    font-size: 14px;
  }
}

/* Digital Lesson Section */
.digital-lesson-section {
  background: #9dd66f;
  border-radius: 20px;
  padding: 40px 40px 60px 40px;
  margin-top: 50px;
}

.lesson-section-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.lesson-section-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  margin-bottom: 30px;
}

.lesson-example-title {
  font-family: "Inter";
  font-weight: 700;
  font-size: 32px;
  color: #183b59;
  margin-bottom: 30px;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-btn-prev,
.slider-btn-next {
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button-prev:active,
.slider-button-next:active {
  transform: scale(0.95);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
  content: none;
}

.swiper-button-prev,
.swiper-button-next {
  position: static;
  width: auto;
  height: auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 15px;
}

.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  /* Предотвращение CLS: резервируем место для слайдера */
  min-height: 450px;
}

.swiper-wrapper {
  /* Предотвращение CLS: фиксируем высоту */
  min-height: 450px;
  /* Предотвращение CLS: резервируем место до инициализации Swiper */
  height: auto;
}

.slide {
  text-align: center;
  cursor: pointer;
  /* Предотвращение CLS: фиксируем высоту слайда */
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.slide-image {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  /* Предотвращение CLS: резервируем место */
  aspect-ratio: 3 / 2;
  width: 100%;
  position: relative;
}

.slide-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-info {
  font-family: "Inter";
  font-weight: 600;
  font-size: 20px;
  color: #183b59;
  line-height: 1.3;
}

@media screen and (max-width: 1440px) {
  .lesson-section-title {
    font-size: 28px;
  }

  .lesson-section-description {
    font-size: 20px;
  }

  .lesson-example-title {
    font-size: 26px;
  }

  .slider-container {
    gap: 15px;
  }

  .slide-info {
    font-size: 16px;
  }
}

@media screen and (max-width: 850px) {
  .digital-lesson-section {
    padding: 30px 24px 40px 24px;
  }

  .lesson-section-title {
    font-size: 24px;
  }

  .lesson-section-description {
    font-size: 18px;
  }

  .lesson-example-title {
    font-size: 22px;
  }

  .slider-container {
    gap: 12px;
  }

  .slide-info {
    font-size: 16px;
  }
}

@media screen and (max-width: 600px) {
  .digital-lesson-section {
    padding: 30px 24px;
  }

  .lesson-section-title {
    font-size: 20px;
  }

  .slide-image {
    aspect-ratio: 3 / 2; /* Сохраняем соотношение */
  }
  
  .slide-image img {
    max-height: 200px;
  }

  .slide-info {
    font-size: 14px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    padding: 8px 10px;
  }

  .swiper-button-prev svg,
  .swiper-button-next svg {
    width: 70%;
  }
}

@media screen and (max-width: 430px) {
  .slide-image {
    aspect-ratio: 3 / 2; /* Сохраняем соотношение */
  }
  
  .slide-image img {
    max-height: 150px;
  }
}

@media screen and (max-width: 430px) {
  .digital-lesson-section {
    padding: 24px 20px;
    border-radius: 15px;
  }

  .lesson-section-title {
    font-size: 18px;
  }

  .lesson-section-description {
    font-size: 14px;
  }

  .lesson-example-title {
    font-size: 16px;
  }

  .slider-container {
    gap: 8px;
  }

  .slide-image img {
    max-height: 150px;
  }

  .slide-info {
    font-size: 13px;
  }
}

@media screen and (max-width: 375px) {
  .digital-lesson-section {
    padding: 20px 16px;
  }

  .lesson-section-title {
    font-size: 16px;
  }

  .lesson-section-description {
    font-size: 13px;
  }

  .lesson-example-title {
    font-size: 15px;
  }

  .slide-image img {
    max-height: 130px;
  }

  .slide-info {
    font-size: 12px;
  }
}

/* Student Section */
.student-section {
  background-color: #fff;
  padding: 80px 40px;
}

.student-header {
  margin-bottom: 50px;
}

.student-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.student-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 21px;
  align-items: stretch;
  margin-bottom: 20px;
}

.student-main-card {
  background: #0c6ed6;
  border-radius: 30px;
  padding: 40px 40px 100px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.student-main-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.student-main-card-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #ffffff;
  text-transform: uppercase;
}

.student-main-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #ffffff;
  margin-top: 20px;
}

.student-main-card-illustration {
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 500px;
  height: 400px;
  min-width: 500px;
  min-height: 400px;
}

.student-main-card-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.student-side-card {
  background: #0c6ed6;
  border-radius: 30px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.student-side-card-icon {
  position: absolute;
  top: 30px;
  right: 40px;
}

.student-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(12, 110, 214, 0.3);
}

.student-side-card-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.student-side-card-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #ffffff;
  text-transform: uppercase;
}

.student-side-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #ffffff;
  margin-top: 20px;
}

@media screen and (max-width: 1440px) {
  .student-side-card-title {
    padding-right: 100px;
  }
}

@media screen and (max-width: 1200px) {
  .student-section {
    padding: 70px 40px;
  }

  .student-main-card-title {
    font-size: 32px;
  }

  .student-main-card-description {
    font-size: 22px;
  }

  .student-side-card-title {
    font-size: 32px;
  }

  .student-side-card-description {
    font-size: 22px;
  }

  .download-flaer a {
    font-size: 22px;
  }
}

@media screen and (max-width: 1024px) {
  .student-section {
    padding: 60px 40px;
  }

  .student-title {
    font-size: 32px;
  }

  .student-main-grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .student-main-card {
    padding: 32px;
    border-radius: 20px;
    min-height: 400px;
  }

  .student-main-card-title {
    font-size: 28px;
  }

  .student-main-card-description {
    font-size: 20px;
  }

  .student-main-card-illustration {
    bottom: 0;
  }

  .side-cards {
    gap: 20px;
  }

  .student-side-card {
    border-radius: 20px;
    padding: 28px;
  }

  .student-side-card-icon {
    max-width: 70px;
    top: 28px;
    right: 28px;
  }

  .student-side-card-title {
    font-size: 28px;
  }

  .student-side-card-description {
    font-size: 20px;
  }

  .download-flaer a {
    font-size: 20px;
  }
}
@media screen and (max-width: 910px) {
  .student-main-card-illustration {
    max-width: 77%;
  }
}

@media screen and (max-width: 950px) {
  .student-section {
    padding: 50px 30px;
  }

  .student-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .student-header {
    margin-bottom: 30px;
  }

  .student-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .student-main-card {
    padding: 30px;
    min-height: 320px;
  }

  .student-main-card-title {
    font-size: 24px;
  }

  .student-main-card-description {
    font-size: 18px;
    margin-top: 16px;
  }

  .student-main-card-illustration {
    max-width: 100%;
    bottom: 0;
  }

  .guide-image {
    padding: 30px 20px;
  }

  .side-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .student-side-card {
    padding: 24px;
  }

  .student-side-card-icon {
    max-width: 60px;
    top: 24px;
    right: 24px;
  }

  .student-side-card-title {
    font-size: 24px;
    max-width: 65%;
    padding-right: 0;
  }

  .student-side-card-description {
    font-size: 18px;
    margin-top: 16px;
  }

  .download-flaer a {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .student-section {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 580px) {
  .student-main-card-illustration {
    max-width: 60%;
  }
}

@media screen and (max-width: 480px) {
  .student-title {
    font-size: 24px;
  }

  .student-header {
    margin-bottom: 24px;
  }

  .student-main-grid {
    gap: 16px;
    margin-bottom: 16px;
  }

  .student-main-card {
    padding: 24px;
    min-height: 300px;
  }

  .student-main-card-title {
    font-size: 20px;
  }

  .student-main-card-description {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.5;
  }

  .student-main-card-illustration {
    bottom: 0;
    right: -10px;
  }

  .guide-image {
    padding: 20px 16px;
  }

  .side-cards {
    gap: 12px;
  }

  .student-side-card {
    padding: 20px;
  }

  .student-side-card-icon {
    max-width: 50px;
    top: 20px;
    right: 20px;
  }

  .student-side-card-title {
    font-size: 20px;
    max-width: 60%;
  }

  .student-side-card-description {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.5;
  }

  .download-flaer a {
    font-size: 16px;
    margin-top: 16px;
  }
}

@media screen and (max-width: 375px) {
  .student-title {
    font-size: 22px;
  }

  .student-main-card {
    padding: 20px;
    min-height: 280px;
  }

  .student-main-card-title {
    font-size: 18px;
  }

  .student-main-card-description {
    font-size: 14px;
  }

  .student-side-card {
    padding: 18px;
  }

  .student-side-card-icon {
    max-width: 45px;
    top: 18px;
    right: 18px;
  }

  .student-side-card-title {
    font-size: 18px;
    max-width: 55%;
  }

  .student-side-card-description {
    font-size: 14px;
  }

  .download-flaer a {
    font-size: 14px;
  }
}

/* Parents Section */
.parents-section {
  background-image: url("/images/parrent-bg.svg");
  padding: 80px 40px;
}

.parents-header {
  margin-bottom: 50px;
}

.parents-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.parents-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 21px;
  align-items: stretch;
  margin-bottom: 20px;
}

.main-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.main-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.main-card-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.main-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  margin-top: 20px;
}

.main-card-illustration {
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 500px;
  height: 400px;
  min-width: 500px;
  min-height: 400px;
}

.main-card-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.guide-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f3f8ff;
  border-radius: 20px;
}

.download-flaer a {
  font-family: "Inter";
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  color: #0c6ed6;
  margin-top: 20px;
  display: inline-block;
}

.side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.side-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.side-card-icon {
  position: absolute;
  top: 30px;
  right: 40px;
}

.side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.side-card-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.side-card-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  color: #183b59;
  text-transform: uppercase;
}

.side-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  margin-top: 20px;
}

.mirror-text {
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  display: inline-block;
}

@media screen and (max-width: 1440px) {
  .main-card-illustration {
    max-width: 86%;
  }

  .side-card-title {
    padding-right: 100px;
  }
}

@media screen and (max-width: 1200px) {
  .parents-section {
    padding: 70px 40px;
  }

  .main-card-title {
    font-size: 32px;
  }

  .main-card-description {
    font-size: 22px;
  }

  .side-card-title {
    font-size: 32px;
  }

  .side-card-description {
    font-size: 22px;
  }

  .download-flaer a {
    font-size: 22px;
  }
}

@media screen and (max-width: 1024px) {
  .parents-section {
    padding: 60px 40px;
  }

  .parents-title {
    font-size: 32px;
  }

  .parents-main-grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .main-card {
    padding: 32px;
    border-radius: 20px;
    min-height: 400px;
  }

  .main-card-title {
    font-size: 28px;
  }

  .main-card-description {
    font-size: 20px;
  }

  .main-card-illustration {
    max-width: 77%;
    bottom: 0;
  }

  .side-cards {
    gap: 20px;
  }

  .side-card {
    border-radius: 20px;
    padding: 28px;
  }

  .side-card-icon {
    max-width: 70px;
    top: 28px;
    right: 28px;
  }

  .side-card-title {
    font-size: 28px;
  }

  .side-card-description {
    font-size: 20px;
  }

  .download-flaer a {
    font-size: 20px;
  }
}

@media screen and (max-width: 950px) {
  .parents-section {
    padding: 50px 30px;
  }

  .parents-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .parents-header {
    margin-bottom: 30px;
  }

  .parents-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .main-card {
    padding: 30px;
    min-height: 320px;
  }

  .main-card-title {
    font-size: 24px;
  }

  .main-card-description {
    font-size: 18px;
    margin-top: 16px;
  }

  .main-card-illustration {
    bottom: 0;
  }

  .guide-image {
    padding: 30px 20px;
  }

  .side-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .side-card {
    padding: 24px;
  }

  .side-card-icon {
    max-width: 60px;
    top: 24px;
    right: 24px;
  }

  .side-card-title {
    font-size: 24px;
    max-width: 65%;
    padding-right: 0;
  }

  .side-card-description {
    font-size: 18px;
    margin-top: 16px;
  }

  .download-flaer a {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .parents-section {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 480px) {
  .parents-header {
    margin-bottom: 24px;
  }

  .parents-main-grid {
    gap: 16px;
    margin-bottom: 16px;
  }

  .main-card {
    padding: 24px;
    min-height: 280px;
  }

  .main-card-title {
    font-size: 20px;
  }

  .main-card-description {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.5;
  }

  .main-card-illustration {
    bottom: 0;
    right: -10px;
  }

  .guide-image {
    padding: 20px 16px;
  }

  .side-cards {
    gap: 12px;
  }

  .side-card {
    padding: 20px;
  }

  .side-card-icon {
    max-width: 50px;
    top: 20px;
    right: 20px;
  }

  .side-card-title {
    font-size: 20px;
    max-width: 60%;
  }

  .side-card-description {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.5;
  }

  .download-flaer a {
    font-size: 16px;
    margin-top: 16px;
  }
}

@media screen and (max-width: 375px) {
  .parents-title {
    font-size: 22px;
  }

  .main-card {
    padding: 20px;
    min-height: 280px;
  }

  .main-card-title {
    font-size: 18px;
  }

  .main-card-description {
    font-size: 14px;
  }

  .side-card {
    padding: 18px;
  }

  .side-card-icon {
    max-width: 45px;
    top: 18px;
    right: 18px;
  }

  .side-card-title {
    font-size: 18px;
    max-width: 55%;
  }

  .side-card-description {
    font-size: 14px;
  }

  .download-flaer a {
    font-size: 14px;
  }
}

/* popup */
/* popup - общие стили для всех попапов */
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.video-popup .popup-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 95vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.video-popup video {
  width: 100%;
  height: auto;
  max-height: calc(95vh - 40px);
  display: block;
  background: #000;
}

.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.popup-close-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .video-popup {
    padding: 10px;
  }

  .video-popup .popup-container {
    width: 95%;
    max-height: 90vh;
  }

  .video-popup video {
    max-height: calc(90vh - 40px);
  }
}
