.fsi-page {
  color: #001f33;
  overflow: hidden;
}

.fsi-page__hero {
  padding: 1.5rem 0 2.5rem;
}

.fsi-page__hero-image {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: clamp(14rem, 30vw, 28rem);
  margin-top: 2rem;
  object-fit: cover;
  object-position: center 44%;
}

.fsi-page__title {
  max-width: 76rem;
  margin: 0;
  color: #001f33;
  font-size: 2.75rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.fsi-page__section-title {
  margin: 0;
  overflow-wrap: anywhere;
}

.fsi-page__statistics {
  padding: 2rem 0 5rem;
}

.fsi-page__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.fsi-page__stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 11rem;
  padding: 1.5rem 2rem;
  border-top: 0.25rem solid #3fb6a3;
  background: #eff2f1;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.fsi-page__stat:hover {
  background: #dcefeb;
  transform: translateY(-0.3rem);
}

.fsi-page__stat-value {
  display: block;
  margin-top: 0;
  font-family: MontBold, Arial, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.fsi-page__stat:last-child .fsi-page__stat-value {
  font-size: 2.25rem;
}

.fsi-page__stat-label {
  display: block;
  max-width: 22rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.35;
}

.fsi-page__about {
  padding: 4.5rem 0 5rem;
  border-top: 1px solid #e2e8e6;
}

.fsi-page__about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 4rem;
}

.fsi-page__about-heading {
  min-width: 0;
}

.fsi-page__logo {
  display: block;
  width: 19rem;
  max-width: 100%;
  height: auto;
  margin-top: 0;
}

.fsi-page__about-text {
  font-size: 1.125rem;
  line-height: 1.5;
}

.fsi-page__about-text p {
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.fsi-page__about-text h3 {
  margin: 2rem 0 1.25rem;
  font-family: MontBold, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.fsi-page__about-text ul {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fsi-page__about-text li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.fsi-page__about-text li::before {
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.75rem;
  height: 0.1875rem;
  background: #3fb6a3;
  content: "";
}

.fsi-page__about-text li::after {
  content: none;
}

.fsi-page__directions {
  padding: 5rem 0;
  background: #eff2f1;
  color: #001f33;
}

.fsi-page__directions-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.fsi-page__directions .fsi-page__section-title {
  max-width: 62rem;
  font-size: 2rem;
  line-height: 1.15;
}

.fsi-page__carousel-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.fsi-page__carousel-controls.is-ready {
  display: flex;
}

.fsi-page__carousel-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #3fb6a3;
  border-radius: 50%;
  background: #fff;
  color: #001f33;
  font-size: 1.375rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fsi-page__carousel-button:hover:not(:disabled),
.fsi-page__carousel-button:focus-visible {
  background: #3fb6a3;
  color: #001f33;
}

.fsi-page__carousel-button:disabled {
  border-color: #c7d4d1;
  color: #8fa4a0;
  cursor: default;
}

.fsi-page__directions-track {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0.5rem 0 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.fsi-page__directions-track::-webkit-scrollbar {
  display: none;
}

.fsi-page__directions-track:focus:not(:focus-visible) {
  outline: none;
}

.fsi-page__directions-track:focus-visible {
  outline: 2px solid #158477;
  outline-offset: 2px;
}

.fsi-page__direction {
  display: flex;
  flex: 0 0 calc((100% - 2rem) / 3);
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 17rem;
  padding: 1.75rem;
  border: 1px solid #d4dfdc;
  border-top: 0.25rem solid #3fb6a3;
  background: #fff;
  scroll-snap-align: start;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.fsi-page__direction:hover {
  background: #001f33;
  color: #fff;
  transform: translateY(-0.3rem);
}

.fsi-page__direction-number {
  color: #158477;
  font-family: MontBold, Arial, sans-serif;
  font-size: 2.75rem;
  line-height: 1;
}

.fsi-page__direction:hover .fsi-page__direction-number {
  color: #75d9c9;
}

.fsi-page__direction p {
  margin: 1.75rem 0 0;
  font-family: MontBold, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fsi-page__programs {
  padding: 4rem 0;
  background: #001f33;
  color: #fff;
}

.fsi-page__programs-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.fsi-page__programs-text {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.4;
}

.fsi-page__programs-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 15rem;
  min-height: 3.25rem;
  padding: 0.625rem 0.625rem 0.625rem 1.25rem;
  border: 1px solid #3fb6a3;
  border-radius: 2rem;
  background: #fff;
  color: #001f33;
  font-family: MontBold, Arial, sans-serif;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fsi-page__programs-link:hover,
.fsi-page__programs-link:focus-visible {
  background: #75d9c9;
  transform: translateX(0.25rem);
}

.fsi-page__programs-arrow {
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #3fb6a3;
  color: #001f33;
  font-size: 1.5rem;
  line-height: 1;
}

.fsi-page__contacts {
  padding: 2.5rem 0 5rem;
}

.fsi-page__contacts .contacts-block {
  gap: 2.5rem;
}

.fsi-page__contacts .contacts-block-map {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.fsi-page__map-canvas {
  width: 100%;
  height: 100%;
}

.fsi-page__map-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #001f33;
  transform: translate(-50%, -50%);
}

.fsi-page__map-fallback[hidden] {
  display: none;
}

.fsi-page__contacts .contacts-block-info {
  flex: 0 0 17.875rem;
}

.fsi-page__contacts .contacts-two-person__image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .fsi-page__about-grid {
    gap: 2rem;
  }

  .fsi-page__direction {
    flex-basis: calc((100% - 1rem) / 2);
  }

}

@media (max-width: 992px) {
  .fsi-page__contacts .contacts-block-info {
    flex-basis: auto;
  }

  .fsi-page__contacts .contacts-block-map {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .fsi-page__hero {
    padding: 1.25rem 0;
  }

  .fsi-page__title {
    font-size: 1.75rem;
  }

  .fsi-page__hero-image {
    height: 12rem;
    margin-top: 1.25rem;
  }

  .fsi-page__section-title {
    font-size: 1.75rem;
  }

  .fsi-page__statistics,
  .fsi-page__about,
  .fsi-page__directions,
  .fsi-page__programs {
    padding: 2.5rem 0;
  }

  .fsi-page__stats-grid,
  .fsi-page__about-grid {
    grid-template-columns: 1fr;
  }

  .fsi-page__stats-grid {
    margin-top: 1.25rem;
  }

  .fsi-page__stat {
    min-height: 8.5rem;
    padding: 1.25rem;
  }

  .fsi-page__stat-value,
  .fsi-page__stat:last-child .fsi-page__stat-value {
    font-size: 2.25rem;
  }

  .fsi-page__logo {
    width: 14rem;
    margin: 0 0 1.5rem;
  }

  .fsi-page__about-text {
    font-size: 1rem;
  }

  .fsi-page__directions-header {
    display: block;
  }

  .fsi-page__directions .fsi-page__section-title {
    font-size: 1.25rem;
  }

  .fsi-page__carousel-controls {
    justify-content: flex-end;
    margin-top: 1.5rem;
  }

  .fsi-page__directions-track {
    margin-top: 1rem;
  }

  .fsi-page__direction {
    flex-basis: 100%;
    min-height: 14rem;
    padding: 1.25rem;
  }

  .fsi-page__direction p {
    font-size: 1rem;
  }

  .fsi-page__programs-grid {
    display: block;
  }

  .fsi-page__programs-text {
    font-size: 1rem;
  }

  .fsi-page__programs-link {
    width: 100%;
    margin-top: 1.5rem;
  }

  .fsi-page__contacts {
    padding: 1.25rem 0 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fsi-page__directions-track {
    scroll-behavior: auto;
  }

  .fsi-page__stat,
  .fsi-page__direction,
  .fsi-page__programs-link {
    transition: none;
  }
}
