@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --red-color: #f1262c;
  --blue-color: #103279;
  --yellow-color: #f3b910;

  --navbuttons-space: 10vw;
}

/* Общие настройки */
header,
header * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --blue-color: #103279;
  --red-color: #f1262c;
  --yellow-color: #f2b80c;
}

.course-offer-section {
  display: flex;
  flex-direction: row;
  gap: 29px;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  margin-top: 120px;
  width: 1200px;
  margin-bottom: 200px;
  cursor: default;
}

.course-intro {
  flex-shrink: 0;
  width: 740px;
  height: 923px;
  position: relative;
}

.course-intro-icon {
  width: 740px;
  height: 837.5px;
  position: absolute;
  left: 0px;
  top: 0px;
  overflow: visible;
}

.course-intro-text {
  color: #ffffff;
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 35.59140396118164px;
  line-height: 147.56%;
  font-weight: 500;
  position: absolute;
  left: 76.5px;
  top: 240px;
  width: 548.22px;
}

.course-details {
  display: flex;
  flex-direction: column;
  gap: 96px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 760px;
  position: relative;
}

.course-description {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.course-duration-and-level,
.course-social-experience,
.course-contact-invitation {
  color: #37528b;
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 33.0521354675293px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
}

.course-contact {
  flex-shrink: 0;
  width: 330.75px;
  height: 164.54px;
  position: relative;

  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;

  &:hover {
    transform: translateX(-10px); /* move slightly to the left */
  }
}

.course-contact-icon {
  width: 330.75px;
  height: 164.54px;
  position: absolute;
  left: 0px;
  top: 0px;
  overflow: visible;
}

.course-contact-button {
  display: flex;
  flex-direction: row;
  gap: 21px;
  align-items: center;
  justify-content: flex-start;
  height: 38.25px;
  position: absolute;
  left: 43.5px;
  top: 62.75px;
}

.contact-text {
  color: #0b2d74;
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 34.5px;
  font-weight: 700;
  position: relative;
  width: auto;
  height: auto;
  padding-bottom: 3.75px;
}

.contact-arrow-icon {
  flex-shrink: 0;
  width: 26.25px;
  height: 30.38px;
  position: relative;
  overflow: visible;
}


.scroll-animate {
  opacity: 1;
  transform: translateX(-500px);
  transition: all 0.8s ease-out;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}




















.frame-108 {
  display: flex;
  flex-direction: column;
  /* gap: 93px; ORIGINAL GAP */
  gap: 22.5px;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  width: 1025px;
  margin: auto;
  margin-bottom: 200px;
}
.kurs {
  color: var(--red-color);
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 70.78px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  align-self: stretch;
}
.frame-107 {
  display: flex;
  flex-direction: column;
  gap: 59.25px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}
.course-card {
  display: flex;
  flex-direction: row;
  gap: 48.75px;
  align-items: flex-start;
  align-self: stretch;
  position: relative;

  overflow: hidden;
  max-height: 527.25px;
  transition: max-height 0.4s ease;
}
.rectangle-2 {
  background: #d9d9d9;
  flex-shrink: 0;
  width: 526.5px;
  height: 527.25px;
  position: relative;
}
.frame-54 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;

  width: 450px;
  height: 410.25px;
  gap: 52.5px;
}
.frame-52 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;

  gap: 22.5px;
}
.course-summary-description.red {
  color: var(--red-color);
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.011649px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
}
.course-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;

  gap: 9px;
  width: 162.75px;
}
.utvide {
  text-align: right;
  font-family: "Funnel Sans", sans-serif;
  font-size: 22.86px;
  font-weight: 700;
  position: relative;
}
.utvide.red {
  color: var(--red-color);
  transition: transform 0.3s ease;
}
.utvide.blue {
  color: var(--blue-color);
  transition: transform 0.3s ease;
}
.utvide.yellow {
  color: var(--yellow-color);
}
.course-card .utvide::before {
    content: "utvide";
}

.course-card.is-open {
  max-height: 2000px; /* должно быть больше реальной высоты */
}
/* когда карточка открыта */
.course-card.is-open .utvide::before {
    content: "kollapse";
}
.rombe {
  flex-shrink: 0;
  width: 30.75px;
  height: 24.0675px;
  position: relative;
  overflow: visible;
}
.course-card-accent {
  display: flex;
  flex-direction: column;
  gap: 48.75px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.course-card-accent.red {
  gap: 101.25px;
}
.course-body {
  display: flex; /* заменяем inline-flex на flex */
  flex-direction: row;
  gap: 37.5px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap; /* запрещаем перенос элементов */
}
.frame-101 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 33.75px;
  width: 251.25px;
}
.course-includes {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  height: auto;
  position: relative;
}
.course-includes-title {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.32299995px;
  font-weight: 500;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.course-includes-description {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.012498px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.course-includes-title.red, .course-includes-description.red {
  color: var(--red-color);
}
.course-includes-title.blue, .course-includes-description.blue {
  color: var(--blue-color);
}
.course-includes-title.yellow, .course-includes-description.yellow {
  color: var(--yellow-color);
}

.price-href {
  flex-shrink: 0;
  width: 160.5px;
  height: 95.82px;
  position: relative;

  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;

  &:hover {
    transform: translateX(7.5px); /* move slightly to the left */
  }
}
.romber-knapp-2-2-1 {
  width: 160.5px;
  height: 95.82px;

  position: absolute;
  left: 0px;
  top: 0px;
  overflow: visible;
}
.frame-47 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  position: absolute;

  gap: 11.25px;
  height: 24.075px;
  left: 32.25px;
  top: 34.3725px;
}
.pris {
  color: #ffffff;
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 23.6534586px;
  font-weight: 700;
  position: relative;
}
.pile-full-bla-1 {
  flex-shrink: 0;

  width: 26.25px;
  height: 30.3825px;

  position: relative;
  overflow: visible;
}
.course-duration {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;

  width: 197.25px; /* или фиксированная ширина, если нужно */
}
.course-duration-label {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.32299995px;
  font-weight: 500;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.course-duration-value {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.012498px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.course-duration-label.red, .course-duration-value.red {
  color: var(--red-color);
}
.course-duration-label.blue, .course-duration-value.blue {
  color: var(--blue-color);
}
.course-duration-label.yellow, .course-duration-value.yellow {
  color: var(--yellow-color);
}

.frame-542 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  height: auto;
  position: relative;

  width: 450px;
  gap: 37.5px;
}
.course-body-holder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  height: auto;
  position: relative;

  gap: 22.5px;
}
.course-summary-description.blue {
  color: #37528b;
  text-align: left;
  font-family: "Funnel Sans", sans-serif;

  font-size: 25.011649px;

  font-weight: 400;
  position: relative;
  align-self: stretch;
}
.course-body.blue ,.course-body.red ,.course-body.yellow {
  display: flex;
  flex-direction: column;
  gap: 62px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  justify-content: space-between;

  gap: 46.5px;
  width: 450px;
}
.course-body.yellow {

  gap: 114px;

}
.skills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;

  gap: 4.5px;
}
.skills-title {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;

  font-size: 25.32299995px;

  font-weight: 500;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.skills-title.blue {
  color: var(--blue-color);
}
.skills-title.red {
  color: var(--red-color);
}
.skills-title.yellow {
  color: var(--yellow-color);
}

.skills-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;

  gap: 3px;
}
.skill-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;

  gap: 15px;
  height: 27.75px;
}
.skill-item.red {
  height: 65.25px;
}
.skill-item.yellow {
  height: 57.75px;
}
.rombe-item-blue, .rombe-item-red, .rombe-item-yellow {
  flex-shrink: 0;
  position: relative;
  overflow: visible;

  width: 18.75px;
  height: 12.5325px;
}
.skill-item-text-blue, .skill-item-text-red, .skill-item-text-yellow {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-weight: 400;
  position: relative;
  cursor: default;

  font-size: 25.012498px;
  width: 405.75px;
  height: 35.25px;
}
.skill-item-text-blue {
  color: var(--blue-color);
}
.skill-item-text-red {
  color: var(--red-color);
}
.skill-item-text-yellow {
  color: var(--yellow-color);
}
.age-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;

  width: 290.25px;
  height: 63px;
}
.age-group-label {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.32299995px;
  font-weight: 500;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.age-group-description {
  color: var(--blue-color);
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.012498px;
  font-weight: 500;
  position: relative;
  align-self: stretch;
  cursor: default;
}
.age-group-label.blue, .age-group-description.blue {
  color: var(--blue-color);
}
.age-group-label.red, .age-group-description.red {
  color: var(--red-color);
}
.age-group-label.yellow, .age-group-description.yellow {
  color: var(--yellow-color);
}
.course-toggle-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;

  gap: 12.75px;
  margin-top: 165px;
  width: 161.25px;
  height: 26.25px;
}
.kollapse {
  color: var(--blue-color);
  text-align: right;
  font-family: "Funnel Sans", sans-serif;
  font-size: 22.86px;
  font-weight: 500;
  position: relative;
}
.frame-543 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 600px;
  position: relative;

  gap: 52.5px;
}
.course-title {
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-weight: 600;
  text-decoration: underline;
  position: relative;
  align-self: stretch;

  font-size: 37.6097889px;
  line-height: 63.11%;
}
.course-title.red {
  color: var(--red-color);
}
.course-title.blue {
  color: var(--blue-color);
}
.course-title.yellow {
  color: var(--yellow-color);
}
.course-summary-description.yellow {
  color: var(--yellow-color);
  text-align: left;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25.011649px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
}

.rombe {
  transition: transform 0.3s ease; /* чтобы красиво вращалось */
}

.course-card.is-open .rombe {
    transform: rotate(90deg);
}














/* --- Изначально скрытые блоки --- */
.course-body,
.course-body2 {
  max-height: 0;                /* скрыто */
  overflow: hidden;             /* скрываем лишнее */
  transition: max-height 0.5s ease, padding 0.5s ease; /* плавное раскрытие */
  padding: 0 0;                 /* паддинг при закрытом состоянии */
}

/* --- Открытые блоки --- */
.course-card.is-open .course-body,
.course-card.is-open .course-body2 {
  max-height: 1000px;           /* достаточно для всего контента */
  padding: 20px 0;              /* паддинг при открытии */
}

/* --- Ромбы: плавный поворот --- */
.course-card .rombe-1,
.course-card .rombe-12,
.course-card .rombe-13 {
  transition: transform 0.3s ease;
}

/* --- Ромбы при открытой карточке --- */
.course-card.is-open .rombe-1,
.course-card.is-open .rombe-12,
.course-card.is-open .rombe-13 {
  transform: rotate(90deg);
}













.filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  gap: 31.5px;
  margin-bottom: 30px;
}

.filters-reset {
  color: #0b2d74;
  font-family: "Funnel Sans", sans-serif;
  font-size: 21.75px;
  font-weight: 400;
  align-self: stretch;
  text-align: right;
  cursor: pointer;
  background: none;
  border: none;
}

.filters-container {
  display: flex;
  gap: 134.25px;
  align-items: flex-end;
}

.filters-main {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 351.75px;
  justify-content: space-between;
}

.filters-sub-main {
  display: flex;
  flex-direction: column;
  gap: 31.5px;
  width: 122.25px;
}

.filters-sub {
  display: flex;
  gap: 31.5px;
  width: 467.25px;
  justify-content: space-between;
}

.filters-sub-column {
  display: flex;
  flex-direction: column;
  gap: 31.5px;
  width: 232.5px;
}

/* Скрываем стандартный чекбокс */
.filter-item input[type="checkbox"] {
  display: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */

  user-select: none;
}


/* Квадрат для чекбокса */
.filter-label.blue::before {
  content: '';
  display: inline-block;
  width: 22.5px;
  height: 21.75px;
  border: var(--blue-color) 3px solid;
  flex-shrink: 0;
  margin-right: 7.5px;
}

/* Состояние checked для синих фильтров */
.filter-item input[type="checkbox"]:checked + .filter-label.blue::before {
  background: var(--blue-color);
}

/* Цвет текста */
.filter-label.blue {
  font-family: "Funnel Sans", sans-serif;
  font-weight: 400;
  font-size: 30.75px;
  color: var(--blue-color);
}


.filter-label.red {
  font-family: "Funnel Sans", sans-serif;
  font-weight: 700;
  font-size: 30.75px;
  color: var(--red-color)
}




/* Общий стиль для всех фильтров */
.filter-item {
  display: flex;
  flex-direction: row;   /* иконка слева, текст справа */
  align-items: center;
  gap: 3.75px;
  cursor: pointer;
  position: relative;

  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;          /* Современные браузеры */
}

/* Скрываем стандартный чекбокс */
.filter-item input[type="checkbox"] {
  display: none;
}

/* Для красных фильтров используем изображение */
.filter-label.red::before {
  content: '';
  display: inline-block;

  width: 29.25px;
  height: 21.75px;

  background: url("../assets/rombe-red.svg") center / 100% 100% no-repeat;
  background: url("../assets/kurs/rombe-empty.svg") center / 100% 100% no-repeat;

  flex-shrink: 0;
  transition: transform 0.3s ease;

  user-select: none;
}

.filter-item input[type="checkbox"]:checked + .filter-label.red::before {
  background: url("../assets/rombe-red.svg") center / 100% 100% no-repeat;
}


.filter-label {
  display: flex;
  align-items: center;
  gap: 3.75px;
}

.filter-item.all, .filter-item.wood{
  align-self: flex-start;
}







.carousel-preview {
    cursor: pointer;
    overflow: hidden;
}

.carousel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal.show {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 80%;
}

.nav {
    position: absolute;
    top: 0;
    height: 100vh;              /* ВСЯ высота экрана */
    width: calc(60px + var(--navbuttons-space));
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;        /* вертикальный центр */

    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Иконка */
.nav img {
    width: 60px;
    pointer-events: none;
}

/* Левая кнопка */
.nav.prev {
    left: 0;
    justify-content: flex-start;
    padding-left: var(--navbuttons-space);
}
/* Правая кнопка */
.nav.next {
    right: 0;
    justify-content: flex-end;
    padding-right: var(--navbuttons-space);
}

.close {
  position: absolute;
  top: 15px;
  right: 22.5px;
  font-size: 48.75px;
  cursor: pointer;
  color: white;
  z-index: 11;

  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}
