@font-face {
  font-family: "Noah";
  src: url("https://s-4111.soholms.com/Noah-Light.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #9bcbc6;
  --dark_green: #395151;
  --grey_green: #537474;
  --pink: #ffd2d2;
  --dark_pink: #f1817e;
  --brown: #835332;
  --beige: #fdeee0;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

h1 {
  font-family: "Noah", serif;
  font-size: clamp(1rem, 3vw + 1rem, 3rem);
  text-transform: uppercase;
  white-space: nowrap;

  animation: TitleMask linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 60%;
}

body {
  background: var(--beige);
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
}

[class*="__container"] {
  max-width: 90%;
  margin-inline: auto;
  position: relative;
  container: container / inline-size;
  padding-top: 130px;
}

/* -- ДЕКСТОПНАЯ ВЕРСИЯ -- */
@media (min-width: 768px) {
  [class*="__container"] {
    max-width: 80%;
  }

  section {
    min-height: 100vh;
  }
}

[class*="__button"] {
  color: white;
  font-weight: bold;
  padding: 13px 2rem;
  background-color: #f1827ea8;
  border: 1px solid var(--pink);
  border-radius: 12px;
  box-shadow: 0 6px 6px #f1827e51;
  width: fit-content;
  text-align: center;
  transition: transform 500ms;
}

[class*="__button"]:hover {
  transform: translateY(-0.3rem);
  transition: transform 250ms;
  background: linear-gradient(
    125deg,
    rgb(241, 130, 126, 0.7) 0%,
    #ffbaba 50%,
    rgba(241, 130, 126, 0.7) 100%
  );
  box-shadow: 0 12px 20px rgba(255, 157, 157, 0.638);
}

/* ANIMATIONS */

@keyframes TitleMask {
  0% {
    opacity: 0;
    transform: translateY(90px) scale(0.75);
    letter-spacing: 18px;
    filter: blur(5px);
  }
  65% {
    transform: translateY(-8px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0px;
    filter: none;
  }
}

.FadeUp {
  animation: FadeUp both;
  animation-timeline: view();
  animation-range: entry 20% cover 40%;
}

@keyframes FadeUp {
  from {
    filter: saturate(0) contrast(4) brightness(0.1) blur(5px);
    opacity: 0;
    scale: 0.95;
    translate: 0 4rem;
  }
  to {
    filter: none;
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

.Growth {
  animation: Growth both;
  animation-timeline: view(50% 20%);
}

@keyframes Growth {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: none;
  }
}

.BlurOut {
  animation: BlurOut both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes BlurOut {
  from {
    filter: saturate(0) contrast(4) brightness(0.1) blur(5px);
    opacity: 0;
  }
  to {
    filter: none;
    opacity: 1;
  }
}

.PopOutEffect {
  animation: popOutEffect 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes popOutEffect {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: none;
  }
}

.SlideIn {
  animation: SlideIn 0.5s both;
  animation-timeline: view();
  animation-range: entry 0 cover 30%;
}

@keyframes SlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
  }
}

.SlideIn-right {
  animation: SlideIn-right 0.5s both;
  animation-timeline: view();
  animation-range: entry 0 cover 25%;
}

@keyframes SlideIn-right {
  0% {
    opacity: 0;
    transform: translateX(20px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
  }
}

/* HEADER */
header {
  width: 100vw;
  min-height: 100px;
}

.header__wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50%;
  padding-block: 26px 37px;
  z-index: 999;
  container: header / inline-size;

  background-color: #9bcbc6cd;
  border: 1px solid #d6fffb;
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;

  animation: ShrinkingHeader linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 340px;

  transition:
    width 0.3s,
    border-radius 0.3s;
}

.logo {
  height: 82.7px;
  width: auto;
  transition: height 0.2s ease;

  animation: ShrinkingLogo linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 340px;
}

.header__promo-container {
  max-height: 150px;
  overflow: hidden;
  animation: ShrinkingPromoContainer linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 170px;
}

.promo {
  color: white;
  text-align: center;
  margin: 0;

  animation: FadingText linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 120px;
}

.header__nav {
  align-self: flex-end;
  margin-right: 23px;

  animation: Hamburger linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 340px;
}

#navbar li a {
  position: relative;
  color: white;
  transition: color 0.3s;
  z-index: 2;
  white-space: nowrap;
  display: block;
}

#navbar li a:hover {
  color: var(--dark_green);
}

#navbar li.active a {
  color: #d6fffb;
}

.dropdown-btn {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

#navbar a,
#navbar .dropdown-btn {
  font-size: 18px;
  padding: 0.85em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1em;
}

/* ДЕКСТОПНАЯ ВЕРСИЯ */
@container header (min-width: 768px) {
  #navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }

  #navbar > ul {
    padding: 0;
    display: flex; /* Flex лучше подходит, чем фиксированные 20px в Grid */
    gap: 2rem;
    align-items: center;
  }

  #navbar li {
    height: 100%;
    position: relative; /* Обязательно! Чтобы сабменю позиционировалось относительно своего пункта */
  }

  #navbar li.active a {
    color: var(--grey_green);
  }

  #navbar ul a,
  #navbar ul .dropdown-btn {
    height: 100%;
    width: max-content;
    padding: 0;
    border-radius: 0;
    justify-content: center;
    gap: 8px; /* Небольшой отступ между иконкой и текстом */
  }

  /* Скрываем мобильные элементы */
  label,
  #burger-toggle {
    display: none;
  }

  .dropdown-btn i:last-child {
    rotate: -90deg;
  }

  /* --- НАСТРОЙКА САБМЕНЮ (ЭФФЕКТ ПОЯВЛЕНИЯ СНИЗУ) --- */
  #navbar .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    transform: translateY(15px);

    width: max-content;
    min-width: 200px;
    background-color: rgba(83, 116, 116, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

    display: grid;
    grid-template-rows: 0fr; /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;

    /* Плавная анимация высоты, прозрачности и позиции */
    transition:
      grid-template-rows 0.3s ease,
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
    z-index: 100;
  }

  #navbar .sub-menu > div {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Стили для ссылок внутри сабменю */
  #navbar .sub-menu a {
    padding: 12px 20px;
    width: 100%;
    justify-content: flex-start;
  }

  #navbar .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  /* --- МАГИЯ HOVER (Открываем меню при наведении) --- */
  #navbar li:hover .sub-menu {
    grid-template-rows: 1fr; /* Раскрываем высоту */
    opacity: 1; /* Делаем видимым */
    visibility: visible;
    transform: translateY(5px);
  }

  /* Плавный поворот стрелочки при наведении */
  .dropdown-btn i:last-child {
    transition: transform 0.3s ease;
  }
  #navbar li:hover .dropdown-btn i:last-child {
    transform: rotate(90deg);
  }
}

@keyframes ShrinkingHeader {
  100% {
    top: 15px;
    width: 92%;
    height: 65px;
    padding: 10px 24px;
    border-radius: 100px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.5);
    flex-direction: row;
  }
}

@keyframes ShrinkingLogo {
  to {
    height: 29.5px;
    margin-top: 10px;
  }
}

@keyframes ShrinkingPromoContainer {
  100% {
    max-height: 0px;
    margin: 0;
    display: none;
  }
}

@keyframes FadingText {
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes Hamburger {
  100% {
    align-self: center;
    margin-right: 0;
  }
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@container header (max-width: 768px) {
  header {
    height: auto;
    min-height: auto;
  }

  .header__wrapper {
    position: sticky;
    height: auto;
    padding: 15px 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  label {
    position: relative;
    display: block;
    height: 20px;
    width: 25px;
    z-index: 1000;
  }

  label::after,
  label::before,
  label span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 100px;
    transition: 0.3s;
  }

  label::before {
    content: "";
    top: 0;
  }

  label::after {
    content: "";
    bottom: 0;
  }

  label span {
    top: 8px;
  }

  #burger-toggle:checked ~ label::after {
    transform: rotate(45deg);
    bottom: 8px;
  }
  #burger-toggle:checked ~ label::before {
    transform: rotate(-45deg);
    top: 8px;
  }
  #burger-toggle:checked ~ label span {
    transform: rotate(-45deg);
    top: 8px;
  }

  #navbar {
    position: fixed;
    padding: 2rem;
    background: #537474f1;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    height: fit-content;

    top: 90px;
    left: 15px;
    width: calc(100% + 20px);

    transform: translateX(120%);
    opacity: 0;
    visibility: hidden; /* Делает меню некликабельным, когда оно скрыто */
    transition:
      transform 0.4s ease,
      opacity 0.4s ease,
      visibility 0.4s;
  }

  #burger-toggle:checked ~ #navbar {
    transform: translateX(0); /* Возвращаем меню на законное место */
    opacity: 1;
    visibility: visible;
  }

  #navbar a,
  #navbar .dropdown-btn {
    font-size: 21px;
    padding: 0.85em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1em;
  }

  #navbar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: 300ms ease-in-out;

    > div {
      overflow: hidden;
    }
  }

  #navbar .sub-menu.show {
    grid-template-rows: 1fr;
  }
  .dropdown-btn i {
    transition: 200ms ease;
  }
  .rotate i:last-child {
    rotate: -180deg;
  }

  #navbar .sub-menu a {
    padding-left: 2em;
  }
}

/* HERO */

.hero {
  width: 100%;
  padding-bottom: 30px;

  background-image: url(https://s-4111.soholms.com/hero-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center left;
  background-color: #537474;
}

.hero__container {
  container: hero / inline-size;
  position: relative;
}

.hero__card {
  padding: 26px 20px 15px 20px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  border: 1px solid white;
  border-radius: 25px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.089);
  margin-top: 29vh;
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}

.hero__title {
  color: #537474;
  line-height: 1.4;
  animation: none;
  white-space: wrap;
}

.hero__desc {
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-block: 15px;
  line-height: 1.7;
}

.hero__button {
  padding-inline: 53px;
}

.hero__in-short {
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-top: 13px;
  width: 308px;
}

/* --- ДЕСКТОПНАЯ СТРУКТУРА --- */

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */

/* FEATURES */

.features {
  width: 100%;
  padding-bottom: 40px;

  background-image: url(https://s-4111.soholms.com/features-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--brown);
}

.features__container {
  container: features / inline-size;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
}

.features__title {
  color: var(--brown);
}

.feature__wrapper {
  width: 220px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px white solid;
  border-radius: 23px;
  backdrop-filter: blur(10px);
  box-shadow: 10px 10px 10px #83523239;
}

.feature__wrapper:nth-child(odd) {
  align-self: flex-end;
}

.feature__number {
  font-size: 28px;
}

.feature__card {
  padding: 15px 14px 11px 14px;
  border-radius: 16px;
}

.feature__title {
  font-family: "Rubik", serif;
  font-size: 17px;
  margin-bottom: 7px;
}

.feature__desc {
  font-size: 12px;
  opacity: 80%;
}

/* green cards */
.green > .feature__number {
  color: #537474;
}
.green > .feature__card,
.modular-block__card.green,
.scheme__blocks.green {
  background: rgba(155, 203, 198, 10);
  background: linear-gradient(
    135deg,
    rgba(155, 203, 198, 0.7) 24%,
    rgba(163, 237, 229, 0.7) 75%
  );
  backdrop-filter: blur(10px);
  border: 1px #d6fffb solid;
  box-shadow: 6px 6px 6px #6bb6af51;
}
.green > .feature__card > .feature__text {
  color: #537474;
}

/* pink cards */
.pink > .feature__number {
  color: #f1817e;
}
.pink > .feature__card,
.modular-block__card.pink,
.scheme__blocks.pink {
  background: #eaacb6;
  background: linear-gradient(
    90deg,
    rgba(234, 172, 182, 0.7) 15%,
    rgba(255, 210, 210, 0.7) 85%
  );
  backdrop-filter: blur(10px);
  border: 1px #ffe8e8 solid;
  box-shadow: 6px 6px 6px #f1827e51;
}
.pink > .feature__card > .feature__text {
  color: #e66a67;
}

/* brown cards */
.brown > .feature__number {
  color: var(--brown);
}
.brown > .feature__card,
.scheme__blocks.brown,
.comparison-help {
  background: #ddac8b;
  background: linear-gradient(
    135deg,
    rgba(221, 172, 139, 0.7) 24%,
    rgba(253, 238, 224, 0.7) 75%
  );
  backdrop-filter: blur(10px);
  border: 1px #fdeee0 solid;
  box-shadow: 6px 6px 6px #83533251;
}
.brown > .feature__card > .feature__text {
  color: var(--brown);
}

/* WHO */

.who {
  width: 100%;
  padding-bottom: 30px;

  background-image: url(https://s-4111.soholms.com/who-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--pink);
}

.who__container {
  container: who / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@container who (max-width: 768px) {
  .who__text {
    position: relative;
  }

  .who__title {
    color: var(--grey_green);
    position: relative;
    top: 16px;
    left: 20px;
    z-index: 3;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.105);
  }

  .who__card {
    padding: 32px 34px 27px 34px;
    background: linear-gradient(
      135deg,
      rgba(155, 203, 198, 0.7) 24%,
      rgba(163, 237, 229, 0.7) 75%
    );
    border-radius: 16px;
    border: 1px solid white;
    backdrop-filter: blur(10px);
    justify-content: center;
  }

  .who__card p {
    color: var(--grey_green);
    font-size: 15px;
    line-height: 1.5;
  }

  .who__desc {
    margin-top: 19px;
    margin-inline: 20px;
    font-size: 15px;
    color: var(--brown);
  }

  .who__button {
    margin-top: 20px;
    align-self: center;
  }
}

/* OUR-STUDYING */

.our-studying {
  width: 100%;
  padding-bottom: 170px;

  background-image: url(https://s-4111.soholms.com/system-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--brown);
}

.our-studying__wrapper {
  padding: 27px 20px 16px 20px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(15px);
  border: 1px solid white;
  border-radius: 25px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.089);
}

.our-studying__main-title {
  color: white;
  white-space: nowrap;
  text-align: center;
}

.our-studying__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 1rem;
  margin-top: 20px;
}

.our-studying__card {
  background: #9bcbc691;
  border: 1px solid #d6fffb;
  border-radius: 16px;
  backdrop-filter: blur(10px);

  overflow: hidden;
  display: flex;
  align-items: center;
}

.card__icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-inline: 13px;
  width: 54.5px;
}

.card__icon {
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 80%;
}

.our-studying__card-text {
  color: #fff;
  text-align: left;
  padding: 14px 11px 14px 0;
}

.our-studying__title {
  font-size: 17px;
  line-height: 1.15;
}

.our-studying__desc {
  opacity: 70%;
  padding-top: 5px;
  font-size: 14px;
}

@container (min-width: 768px) {
  .our-studying__main-title {
    font-size: 3cqw;
  }
  .our-studying__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px 10px 10px;

    h4 {
      font-size: 2cqh;
    }
  }

  .our-studying__cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* IMPORTANT */

.important {
  width: 100%;
  height: 266.7px;

  background-image: url(https://s-4111.soholms.com/important-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center left;
  background-color: var(--beige);
}

.important__title {
  color: #f1817e;
  margin-left: 8px;
  font-weight: bold;
}

.important__text {
  margin-inline: 11px 20px;
  margin-top: 14px;

  font-size: 11pt;
  color: var(--brown);
  border-left: 4px solid #f1817e;
  padding-left: 14px;
}

/* MODULAR-BLOCK */

.modular-block {
  width: 100%;
  padding-bottom: 30px;

  background-image: url(https://s-4111.soholms.com/modular-block-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--beige);
}

.modular-block__title {
  color: var(--grey_green);
}

.modular-block__card {
  margin-top: 27px;
  margin-inline: 12px;
  padding: 24px 28px 20px 28px;
  border-radius: 16px;
  display: flex;
  justify-content: space-around;
  align-items: last baseline;
}

.modular-block__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.modular-block__box > h3 {
  color: white;
  font-size: 17px;
}

.modular-block__icon {
  zoom: 0.25;
  width: fit-content;
}

.modular-block__arrow {
  color: white;
  rotate: 90deg;
  max-height: 50px;
  align-self: center;
}

.modular-block__desc {
  color: var(--brown);
  margin-left: 12px;
  margin-top: 13px;
}

.scheme__wrapper {
  margin-top: 23px;
  padding: 23px 20px;
  border-radius: 16px;
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  max-width: fit-content;
  height: 335px;
}

.scheme__wrapper::-webkit-scrollbar {
  height: 15px;
}

.scheme__wrapper::-webkit-scrollbar-track {
  margin-inline: 14px;
}

.scheme__wrapper::-webkit-scrollbar-thumb {
  background: #b0b0b0;
  border-radius: 100px;
  border: 5px solid #fcf6ef;
}

.scheme__modul {
  white-space: nowrap;
  position: relative;
}

.scheme__modul:nth-child(1) {
  align-self: flex-start;
  color: var(--grey_green);
}
.scheme__modul:nth-child(2) {
  align-self: center;
  color: var(--dark_pink);
}
.scheme__modul:nth-child(3) {
  align-self: flex-end;
  color: var(--brown);
}

.scheme__title {
  font-family: "Rubik";
  margin-bottom: 15px;
}

.scheme__blocks {
  font-size: 17px;
  font-weight: bold;
  line-height: 2.2;
  padding: 5px 69px 5px 16px;
  border-radius: 16px;
  position: relative;
}

.modular-block__card.pink,
.scheme__blocks.pink {
  background: #eaacb6;
  background: linear-gradient(135deg, #ffd1d2c7 20%, #f0817da3 80%);
  backdrop-filter: blur(10px);
  border: 1px #ffe8e8 solid;
  box-shadow: 6px 6px 6px #f1827e51;
}

.scheme__blocks::before {
  content: "";
  width: 80%;
  height: 2px;
  background: #fff;
  border-radius: 100px;
  position: absolute;
  top: 42px;
}

.custom__arrow {
  position: absolute;
  right: -30px;
  bottom: -50px;
}

/* -- ДЕКСТОПНАЯ ВЕРСИЯ -- */
@container (min-width: 768px) {
  .modular-block__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* STUDY FORMATS */

.study-formats {
  padding-block: 60px;
  background-color: var(--beige);

  background-image: url(https://s-4111.soholms.com/study-formats-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center left;
  background-color: var(--beige);
}

.study-formats__title {
  margin-bottom: 40px;
  color: var(--grey_green);
}

.study-formats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

.format-card {
  border-radius: 24px;
  padding: 8px 8px 20px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.format-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.format-card--primary {
  background-color: var(--green);
  border: 1px solid #d6fffb;
  color: var(--grey_green);

  animation: FadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

.format-card--secondary {
  background-color: #e3b89b;
  border: 1px solid #fdeee0;
  color: var(--brown);

  animation: FadeUp linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 40%;
}

.format-card-img {
  height: 327px;
  min-width: 272px;

  background-image: url(https://s-4111.soholms.com/format-card--primary-img.jpg);
  background-size: cover;
  background-position: center top;
  border-radius: 20px;
  position: relative;
  border: inherit;
}

.format-card-img--secondary {
  background-image: url(https://s-4111.soholms.com/format-card--secondary-img.png);
}

.format-card-overlay {
  position: absolute;
  bottom: 0;
  padding-inline: 16px;
  padding-bottom: 13px;
  background: linear-gradient(
    to bottom,
    rgba(208, 233, 227, 0) 0%,
    rgba(208, 233, 227, 0.2) 40%,
    rgba(208, 233, 227, 0.6) 70%,
    rgba(208, 233, 227, 0.9) 90%,
    #d0e9e3 100%
  );
  border-radius: inherit;
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation-delay: 15s;
}

.format-card-overlay--secondary {
  background: linear-gradient(
    to bottom,
    rgba(233, 219, 208, 0) 0%,
    rgba(233, 219, 208, 0.2) 40%,
    rgba(233, 219, 208, 0.6) 70%,
    rgba(233, 219, 208, 0.9) 90%,
    #e9dbd0 100%
  );
}

.format-card__title {
  font-family: "Rubik";
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.format-card__desc {
  font-size: 15px;
  opacity: 0.9;
}

.format-card__list {
  margin-block: 15px;
  color: white;
}

.format-card__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  margin-left: 20px;
  font-size: 14px;
}

.format-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.format-card__button {
  align-self: center;
  border-radius: 100px;
  width: 80%;
}

/* BLOCKS */

.blocks {
  width: 100%;
  padding-bottom: 50px;

  background-image: url(https://s-4111.soholms.com/blocks-img.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--brown);
}

.blocks__container {
  position: relative;
  top: 28px;
}

.blocks__title {
  color: #537474;
}

.blocks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  justify-content: space-between;
  align-items: center;
}

.blocks__wrapper {
  margin-top: 17px;
  height: 495px;
  width: 100%;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  gap: 0.5rem;
}

.block__card {
  flex: 1;
  min-width: 59.5px;
  border-radius: 28px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: 0.6s cubic-bezier(0.28, -0.03, 0, 0.99);
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.089);
  backdrop-filter: blur(10px);
  border: 1px solid white;
}

.block__card > .row {
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.block__card > .row > .icon {
  display: flex;
  justify-content: right;
  align-items: center;
  margin-right: 14px;
  margin-top: 8px;
}

.block__card > .row > .icon > img {
  width: 28px;
  height: 28px;
}

.block__title {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60px;
  width: 100%;
  margin-block: 10px 10px;
}

.block__title h2 {
  font-family: "Rubik", sans-serif;
  font-size: 51px;
  font-weight: lighter;
  letter-spacing: -3px;
  flex-wrap: nowrap;
}

.block__title p {
  font-size: 17px;
  margin-top: -10px;
}

.block__desc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;

  opacity: 0;
  transform: translateY(30px);
  transition-delay: 0.3s;
  transition: all 0.3s ease;
  padding-left: 15px;
  padding-top: 10px;

  background-color: #9bcbc6ae;
  height: 350px;
}

.block__desc li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

.block__desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
}

.block__desc li.check::before {
  background-image: url(https://s-4111.soholms.com/checkmark-icon.svg);
}

.block__desc li.cross::before {
  background-image: url(https://s-4111.soholms.com/cross-icon.svg);
}

input:checked + .block__card,
.block__card:hover {
  flex: 4;
}

input:checked + .block__card .block__desc,
.block__card:hover .block__desc {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

input {
  display: none;
}

.about-blocks__wrapper {
  background-color: hsla(29, 88%, 94%, 0.7);
  border-radius: 25px;
  border: 1px solid white;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
}

.about-blocks__title {
  font-family: "Rubik", serif;
  font-size: 17px;
  color: var(--grey_green);
}

.about-blocks__text {
  font-size: 11pt;
  color: var(--brown);
  margin-top: 10px;
  line-height: 1.3;
}

.about-blocks__link {
  font-size: 11pt;
  color: var(--dark_pink);
  position: absolute;
  right: 0;
}

/* PROGRAMS  */

.programs {
  width: 100%;
  padding-block: 60px;

  background-image: url(https://s-4111.soholms.com/programs-img.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  background-color: var(--beige);
}

.programs__title {
  color: var(--grey_green);
  margin-bottom: 20px;
}

.programs__desc {
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 40px;
}

.program--sharia {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  background-color: var(--green);
  border-radius: 16px 16px 0 0;
  padding: 30px 31px 60px 31px;
  color: white;
  background-image: linear-gradient(
    rgb(154, 203, 198, 0.75),
    rgba(67, 152, 144, 0.75)
  );
  background-position: center;
  background-size: cover;
  transition: all 250ms ease;
}

.program--FGOS {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  background-color: var(--dark_pink);
  border-radius: 0 0 16px 16px;
  padding: 50px 31px 25px 31px;
  color: white;
  background-image: linear-gradient(
    rgb(234, 172, 182, 0.75),
    rgba(217, 122, 138, 0.75)
  );
  background-position: center;
  background-size: cover;
  margin-top: -40px;
  transition: all 250ms ease;
}

.program--sharia:hover + .program--FGOS {
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transform: translateY(20px);
}
.programs__box:has(.program--FGOS:hover) .program--sharia {
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.program__title-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.program__title {
  font-family: "Rubik", sans-serif;
  font-size: 25px;
  position: relative;
}

.program__title i {
  font-size: 1.2rem;
  margin-left: 6px;
}

.box-right {
  display: flex;
  flex-direction: column;
  text-align: right;
  align-items: flex-end;
}

.program__subtitle {
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 27px;
}

.program--sharia > .program__subtitle {
  color: var(--dark_green);
}

.box-right > .program__subtitle {
  color: #a4485e;
}

.program__desc {
  font-weight: bolder;
  margin-bottom: 21px;
}

.program__list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.program__list-item i {
  margin-top: 0.2rem;
}

.comparison-help {
  margin-top: 40px;
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--brown);
}

.comparison-help h3 {
  color: var(--brown);
  font-family: "Rubik", sans-serif;
  margin-bottom: 12px;
}

.comparison-help p {
  margin-bottom: 20px;
}

.comparison-help a {
  white-space: wrap;
  color: white;
}

/* -- ДЕКСТОПНАЯ ВЕРСИЯ -- */
@container (min-width: 768px) {
  .programs__box {
    display: flex;
  }

  .program--sharia {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);

    border-radius: 16px 0 0 16px;
    padding: 30px 90px 30px 31px;
  }

  .program--FGOS {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);

    border-radius: 0 16px 16px 0;
    padding: 30px 31px 30px 90px;
    margin-top: 0;
    margin-left: -50px;
  }
}

/* REVIEWS */

.reviews {
  padding-block: 60px;
  height: 100vh;
}

.reviews__container {
  max-width: 150%;
  margin-inline: -20px;
  padding: 0 20px;
}

.swiper {
  width: 100%; /* Занимает всю ширину родителя */
  min-height: 300px; /* Задайте минимальную высоту, чтобы он не исчез */
}

.swiper-slide {
  height: auto; /* Или задайте фиксированную высоту */
}

/* --- Заголовок секции --- */
.reviews__header {
  width: 90%;
  margin-inline: auto;
  margin-bottom: 36px;
}

.reviews__title {
  font-size: clamp(1rem, 3vw + 1rem, 3rem);
  color: var(--grey_green);
  margin-bottom: 8px;
  font-weight: 700;
}

.reviews__subtitle {
  font-size: 16px;
  color: #738079;
}

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

/* --- Карточка отзыва --- */
.review-card {
  position: relative;
  flex: 0 0 65vw;
  max-width: 400px;
  scroll-snap-align: start;
  background-color: var(--pink);
  border: 1px solid var(--dark_pink);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.review-card::before,
.review-card::after {
  content: url('data:image/svg+xml,<svg class="sparkle-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="40" height="40" ><path d="M 50 0 C 50 42, 55 50, 90 50 C 55 50, 50 58, 50 100 C 50 58, 45 50, 10 50 C 45 50, 50 42, 50 0 Z" fill="%23f2b67e" /></svg>');

  position: absolute;
  scale: 1.3;
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  transition:
    opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 250ms,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 250ms;
  pointer-events: none;
}

.review-card::before {
  bottom: 32px;
  left: -20px;
}

.review-card::after {
  top: 35px;
  right: -20px;
}

.swiper-slide-active::before,
.swiper-slide-active::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Шапка карточки: Имя и класс */
.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-card__author {
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3vw + 1rem, 2rem);
  color: var(--grey_green);
}

.review-card__badge {
  font-size: 13px;
  background: var(--green);
  color: var(--grey_green);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* Текст отзыва с ограничением строк */
.review-card__body {
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-card__text {
  font-size: clamp(0.15rem, 1.4vw + 0.5rem, 1rem);
  line-height: 1.55;
  color: #2c3531;
  margin-bottom: 5px;
}

.review-card__more-btn {
  font-size: 13px;
  color: var(--brown);
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease;
}

.review-card__more-btn:hover {
  text-decoration: underline;
  color: var(--grey_green);
}

/* Футер карточки: */

.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-card__date {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #eaacb6;
  margin-left: auto;
}

/* Кнопка "Все отзывы" */
.reviews-section-all__button {
  margin-top: 50px;
  margin-inline: auto;

  > a {
    color: white;
  }
}

/* --- Стили для Модального Окна (JS версия) --- */

.review-modal {
  /* Размеры и внешний вид самого окна */
  width: 90%;
  max-width: 520px;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  align-self: center;
  justify-self: center;

  /* Эффект плавного появления */
  opacity: 1;
  transition: opacity 0.3s ease;
}

.review-modal::-webkit-scrollbar {
  width: 0;
}

/* Нативный затемненный фон, который браузер создает сам */
.review-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}

.review-modal__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 14px;
}

/* Кнопка закрытия */
.review-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 35px;
  color: #738079;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.review-modal__close:hover {
  color: #2c3531;
}

/* Текст внутри окна */
.review-modal__text {
  font-size: 15px;
  line-height: 1.6;
  color: #2c3531;
  margin: 16px 0 20px 0;
}

/* -- ДЕКСТОПНАЯ ВЕРСИЯ -- */
@container (min-width: 768px) {
  .reviews__container {
    max-width: 90%;
    margin-inline: 0;
    padding: 0;
  }

  .reviews .swiper-button-prev {
    display: auto;
    left: calc(20% - 3rem);
  }
  .reviews .swiper-button-next {
    display: auto;
    right: calc(20% - 3rem);
  }

  .reviews .swiper-button-prev::after,
  .reviews .swiper-button-next::after {
    content: "";
  }

  .reviews :is(.swiper-button-prev, .swiper-button-next) {
    scale: 2.2;
    color: var(--dark_pink);
    background-color: white;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
  }
}
