@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
  --font-menu-heading: 'Nunito', 'Segoe UI', sans-serif;
}

body {
  font-family: 'Yanus', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  font-weight: 500;
}

.logo {
  width: 180px;
}

ul.burger-trigger {
  padding: .5em 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-center;
  gap: .3em;
  cursor: pointer;
  z-index: 100;
  margin: 0;
}
ul.burger-trigger li {
  list-style: none;
  width: 30px;
  height: 3px;
  background-color: #24B098;
}

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

header .menu ul {
  margin: 0;
  padding: 0;
}
header .menu li.item {
  list-style: none;
  display: block;
}
header .header-menu {
  position: relative;
  display: none;
}
header .header-menu .first-line li.item,
header .header-menu .second-line li.item {
  font-weight: 400;
  cursor: pointer;
}
header .header-menu .first-line .item a,
header .mobile-menu .first-line .item a {
  font-family: var(--font-menu-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
}
header .first-line .item {
  color: #24B098;
}
header .header-menu .second-line .item ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 1em;
  list-style: none;
  opacity: 0;
  display: block;
  columns: 4;
  color: #000;
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(8px);
  z-index: 0;
  transform: translate( 0, -100% );
  transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}
header .header-menu .second-line .item:hover ul {
  opacity: 1;
  z-index: 11;
  transform: translate(0, 52px);
}


header .header-logo-hidden {
  display: none;
}

.gradient-line {
  width: calc(100% - 36px);
  margin-left: 18px;
  margin-right: 18px;
  height: 2px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(90deg, #FB78EA 0%, #F6B165 52.88%, #16AF97 100%);
  margin-bottom: 18px;
}

header .mobile-menu {
  position: fixed;
  padding: 1em;
  top: 83px;
  left: 100%;
  height: calc(100vh - 78px);
  width: 100%;
  overflow-y: scroll;
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: left 0.3s ease-in-out;
  font-size: 20px;
  line-height: 22px;
}
header .mobile-menu li {
  margin-bottom: 7px;
}
header .mobile-menu.active {
  left: 0;
}
header .mobile-menu .first-line {
  padding-left: 1em;
  padding-bottom: .5em;
}
header .second-line ul {
  padding: .5em 0 .3em 1em;
}
header .second-line ul li {
  list-style: none;
}
header ul li>a {
  text-decoration: none;
  color: inherit;
}
header ul li>a:hover {
  opacity: 0.7;
}

.owl-carousel .owl-dots {
  text-align: center;
  height: 3px;
  margin: 21px auto 21px;
}

.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 36px;
  height: 3px;
  background-color: #D9D9D9;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}
.owl-carousel .owl-dots .owl-dot.active {
  background-color: #24B098;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0.92;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    outline: none;
    opacity: 1;
    background: rgba(36, 176, 152, 0.88);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:focus-visible {
    box-shadow: 0 0 0 3px rgba(36, 176, 152, 0.45);
}

.left-arrow {
    left: 14px;
}

.right-arrow {
    right: 14px;
}

#hero {
  position: relative;
  z-index: 2;
}

#hero .container {
  position: relative;
}

#hero .slider .item {
  background-color: #eee;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 440/250;
  background-position: center center;
  background-size: cover;
}

#video {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.video {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 687px;
  aspect-ratio: 440/250;
  background-color: #f0f0f0;
  background-position: center center;
  background-size: cover;
  border: 0;
}

.video-feed {
  position: relative;
  max-width: 687px;
  margin: 0 auto;
  overflow: hidden;
}

.video-feed-viewport {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.video-feed-viewport::-webkit-scrollbar {
  display: none;
}

.video-feed-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.video-feed-player {
  position: relative;
}

.video-feed .video {
  max-width: 100%;
}

.video-feed-swipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  touch-action: pan-y;
  cursor: grab;
}

.video-feed.is-dragging,
.video-feed.is-dragging .video-feed-swipe {
  cursor: grabbing;
}

.video-feed.is-dragging .video-feed-viewport {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.video-feed-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  aspect-ratio: 440 / 250;
  max-width: 687px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 4;
}

.video-feed-nav {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.video-feed-nav:hover,
.video-feed-nav:focus {
  background: rgba(0, 0, 0, 0.7);
}

.video-feed-nav-prev {
  left: 10px;
}

.video-feed-nav-next {
  right: 10px;
}

.video-feed-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.video-feed-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #D9D9D9;
  cursor: pointer;
}

.video-feed-dot.is-active {
  background: #24B098;
}

.video-feed-caption {
  min-height: 0;
}

.video-feed-caption:empty,
.video-feed-caption[hidden] {
  display: none !important;
  margin: 0;
}

.video-feed-title {
  margin: 18px 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  text-align: center;
}

.video-feed-desc {
  margin: 0;
  font-size: 16px;
  color: #34495e;
  line-height: 1.5;
  text-align: center;
}

.video-feed-desc:last-child {
  margin-bottom: 0;
}

#programms {
  position: relative;
  z-index: 1;
}

#reviews {
  position: relative;
  z-index: 1;
}

h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.portal-menu-page h2,
.portal-menu-page .row > h4,
.portal-menu-page .card-title {
  font-family: var(--font-menu-heading);
  letter-spacing: 0.01em;
}

.portal-menu-page h2 {
  font-weight: 700;
}

.portal-menu-page .row > h4 {
  font-weight: 700;
}

.portal-menu-page .card-title {
  font-weight: 600;
}

#programms h2 {
  color: #24B098;
}
.programm-list-wrap {
  position: relative;
}

#programms .programm-list {
  display: flex;
  gap: 30px;
  justify-content: left;
  overflow-x: auto;  /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Snap to cards */
  -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
  padding: 1rem 10; /* Add padding for better scrolling on touch devices */
  position: relative; /* Needed for absolute positioning of controls */
  margin-left: 40px;
}

#programms .programm-list::-webkit-scrollbar {
            display: none; /* Hide scrollbar -  optional, but often desired  */
        }



#programms .programm-list .item {
  max-width: 60%;
  min-width: 32%;
}
#programms .image {
  position: relative;
  width: 100%;
  aspect-ratio: 3.3/2;
  background-position: center center;
  background-size: cover;
  border-radius: 15px;
  margin-bottom: 24px;
}
#programms .image .balls,
#programms .image .hours {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  position: absolute;
  bottom: 12px;
  left: 20px;
  width: 140px;
  background: rgba(255, 255, 255, 0.49);
  backdrop-filter: blur(9px);
  font-size: 20px;
}
#programms .image .hours {
  left: auto;
  right: 20px;
}
#programms .image .balls:before {
  content: url("data: image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' fill='none' %3E%3Cpath fill='%23000' d='M17.9 1.6 16.5.2l-6.2 6.2 1.4 1.4 6.2-6.2ZM22 .2 11.7 10.6l-4-4.1-1.5 1.4 5.5 5.4L23.4 1.6 22 .2ZM.7 8l5.5 5.4L7.6 12 2 6.5.7 7.9Z' /%3E%3C/svg%3E");
  display: inline-block;
  margin-right: 0.1em;
  width: 24px;
  height: 27px;
  object-position: center center;
}
#programms .image .hours:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='23' fill='none'%3E%3Cpath fill='%23000' d='m22.5 4.9-5-4.3L16 2.3l5 4.3 1.5-1.7ZM6.8 2.3 5.4.6.2 4.8l1.5 1.8 5-4.3Zm5.1 5.1h-1.6v6.7l5.3 3.2.8-1.4-4.5-2.7V7.4Zm-.5-4.5a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 17.9a7.8 7.8 0 1 1 0-15.6 7.8 7.8 0 0 1 0 15.6Z'/%3E%3C/svg%3E");
  display: inline-block;
  margin-right: 0.1em;
  width: 24px;
  height: 27px;
  object-position: center center;
}

#programms .title {
  color: #189C86;
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 10px;
  height: 140px;
  /* 100% */
}
#programms .for {
  font-size: 20px;
  font-style: italic;
  color: #000;
  margin-bottom: 12px;
  height: 160px;
}
#programms .info {
  font-size: 24px;
  color: #000;
  margin-bottom: 10px;
  height: 80px;
}
#programms .info b {
  font-weight: 700;
}
#programms .price {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-evenly;
  border: 1px solid #16AF97;
  font-size: 24px;
  line-height: 24px;
  padding: 1em .3em;
  color: #16AF97;
  font-weight: 700;
  margin-top: 190px;
}
#programms .price span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #A0A0A0;
  font-style: italic;
}

#programms .btn-link {
  text-decoration: underline;
  font-size: 20px;
  color: #16AF97;
}
#programms a {
  color: #16AF97;
  text-decoration: none;
  white-space: nowrap;
}


#reviews h2 {
  color: #F07D00;
}
#reviews .scroll {
  display: flex;
  overflow-x: scroll;
  gap: 12px;
}
#reviews .scroll .container {
  min-width: fit-content;
  display:flex;
  gap: 12px;
  justify-content: space-between;
}
#reviews .card {
  min-width: 271px;
  max-width: 271px;
  border: 0;
  border-radius: 15px;
  height: inherit;
  background-color: #F9F1E8;
  color: #000;
}
#reviews .card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}
#reviews .card .name {
  color: #000;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 0;
}
#reviews .card .portret img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
#reviews .card .card-summ {
  font-size: 16px;
  color: #A0A0A0;
  font-style: italic;
  width: 106%;
}
#reviews .card .card-text {
  font-size: 16px;
  color: #000;
  font-style: italic;
  width: 106%;
}

footer {
  padding: 1em 0;
  background-color: #495553;
  font-size: 16px;
  color: #fff;
  font-weight: 400;
}
footer p {
  margin-bottom: .3em;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a.address {
  color: #98D7CD;
}

footer .grid {
  display: grid;
  grid-template-columns: auto min-content;
  grid-template-rows: auto auto;
  gap: .3em;
  grid-template-areas:
      "contacts logos"
      "other other";
}
footer .grid .contacts {
  grid-area: contacts;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.footer-social-link {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: #98D7CD;
  border-color: #98D7CD;
  background-color: rgba(152, 215, 205, 0.08);
}

.footer-social-link:focus-visible {
  outline: 2px solid #98D7CD;
  outline-offset: 3px;
}
footer .grid .logos {
  grid-area: logos;
  text-align: right;
}
footer .grid .logos img {
  max-height: 90px;
}
footer .grid .other {
  grid-area: other;
  max-width: 600px;
}
footer .copy {
  color: #A0A0A0;
  text-align: center
}

 /* Стили для кнопки */
.orange-button {
  position: absolute; /* Абсолютное позиционирование относительно контейнера */
  left: 15%; /* Отступ слева */
  top: 90%;    /* Центрируем кнопку по вертикали */
  transform: translateY(-50%); /* Точная центровка по вертикали */
  background-color: #FFA500; /* Оранжевый цвет */
  color: white; /* Белый текст */
  border: 2px solid white; /* Белая граница */
  border-radius: 10px; /* Скругление углов */
  padding: 10px 20px; /* Отступы внутри кнопки */
  text-decoration: none; /* Убираем подчеркивание ссылки */
  font-family: sans-serif; /* Шрифт */
  font-weight: bold; /* Жирный текст */
  z-index: 999;
  pointer-events: auto;
  touch-action: manipulation;
}

/* Опционально: добавляем эффект при наведении */
.orange-button:hover {
  background-color: #FF8C00; /* Немного более темный оранжевый при наведении */
  z-index: 999;
}


/* Carousel Controls - Arrows */
        .carousel-course-control-prev,
        .carousel-course-control-next {
            position: absolute;
            top: 42%;
            margin-top: 0;
            margin-bottom: 0;
            transform: translateY(-50%);
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.5);
            color: black;
            border: none;
            font-size: 1.5rem;
            text-align: center;
            cursor: pointer;
            z-index: 10;
            transition: background-color 0.3s;
        }

        .carousel-course-control-prev:hover,
        .carousel-course-control-next:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .carousel-course-control-prev {
            left: 3%; /* Adjust position as needed */
        }

        .carousel-course-control-next {
            right: 3%; /* Adjust position as needed */
        }

        .carousel-course-control-prev i,
        .carousel-course-control-next i {
            line-height: 3rem; /* Center icon vertically */
        }

  /*Review*/
      .review-card {
            border: 1px solid #ddd;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            min-height: 400px;
        }

        .avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 1rem;
        }

        .review-text {
            margin-top: 1rem;
        }

        .review-date {
            font-size: 0.8rem;
            color: #777;
        }
.programm-cats2{
  font-family: 'Yanus', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #24B098;
  font-weight: 500;
  border-width: 0px;
  line-height: none;
  background-color: white;
}


.user-info{
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 14px;
  color: #333;
  z-index: 1000;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.user-info .nav-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.user-info select {
  max-width: 140px;
}

.user-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  border: 1px solid #dbe3ee;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.user-header-icon:hover {
  color: #147a68;
  border-color: #24B098;
  background: #ecfdf8;
}

.user-header-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.programm-search {
  width: 250%;
}


 #policyModal {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 64px);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    z-index: 2147483647;
    font-family: var(--ui-fonts-main, inherit);
    font-size: 14px;
    line-height: 20px;
    background: white;
    color: rgb(10, 10, 10);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px;
    right: 0;
  }

  #policyModal > div {
    background-color: #fff;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    width: 100%; /* По умолчанию 100% для мобильных */
    max-width: 800px;
    text-align: center;
  }

  #policyModal h3 {
    margin-top: 0;
  }

  #policyModal p {
    font-size: 16pt;
    margin: 12px 0;
  }

  #policyModal a {
    color: #007bff;
    text-decoration: none;
  }

  #policyModal a:hover {
    text-decoration: underline;
  }

  #policyModal button {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }

  /* Стили для больших экранов (ПК) */
  @media (min-width: 769px) {
    #policyModal {
      max-width: 600px;
      width: 600px;
      bottom: 32px;
    }

    #policyModal > div {
      width: 800px; /* фиксированная ширина для внутреннего контейнера */
      max-width: 100%;
    }
  }

  /* Стили для мобильных экранов */
  @media (max-width: 768px) {
    #policyModal {
      bottom: 16px;
      padding: 12px;
      width: calc(100% - 32px);
      max-width: none;
    }

    #policyModal > div {
      padding: 16px;
      width: 100%;
      max-width: none;
    }

    #policyModal p {
      font-size: 14pt;
    }

    #policyModal button {
      width: 100%;
      padding: 12px 0;
    }
  }