/* One offset under the fixed header. layout-fix.js sets the exact height. */
.page {
  margin-top: 170px;
}

.page__content {
  margin-top: 0;
}

.page__content > section:first-child {
  margin-top: 0;
}

@media only screen and (max-width: 1199px) {
  .page {
    margin-top: 420px;
  }

  .page__content > section:first-child {
    margin-top: 0;
  }
}

.slider-section {
  position: relative;
  height: 460px;
  margin-bottom: 28px;
  overflow: hidden;
  background: #d7d7d7;
}

.slider-section .swiper-container,
.slider-section .swiper-wrapper,
.slider-section .swiper-slide {
  height: 100%;
}

.slider-section__photo {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.slider-section__shade {
  position: relative;
  z-index: 2;
  height: 100%;
}

.slider-section__shade .container {
  height: 100%;
}

.slider-section .swiper-slide {
  width: 100%;
  overflow: hidden;
}

.slider-section__card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 620px;
  height: 100%;
  padding: 36px 48px 88px 8px;
  background: rgba(12, 165, 151, 0.9);
  box-sizing: border-box;
}

.slider-section__card:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 80vw;
  background: rgba(12, 165, 151, 0.9);
}

.slider-section__card .h2,
.slider-section__card .h5 {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 14px;
  color: #fff;
}

.slider-section__card .h2 {
  font-size: 2.15rem;
  line-height: 1.2;
}

.slider-section__card .h5 {
  max-width: 28em;
  margin-bottom: 22px;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
}

.slider-section__card .btn__block {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 0;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}

.slider-section__card .btn__block:hover {
  background: #fff;
  color: #0ca597;
}

.slider-section__controls {
  position: absolute;
  z-index: 3;
  left: calc((100% - 1140px) / 2 + 24px);
  bottom: 22px;
  display: flex;
  align-items: center;
}

.slider-section .simple-pagination {
  position: static;
  display: flex;
  align-items: center;
  width: auto;
  margin: 0 16px 0 0;
}

.slider-section .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 5px;
  background: #fff;
  opacity: 0.55;
}

.slider-section .swiper-pagination-bullet-active {
  opacity: 1;
}

.slider-section .simple-btn-next,
.slider-section .simple-btn-prev {
  position: relative;
  right: auto;
  bottom: auto;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  overflow: hidden;
  transform: none;
  background: #fff;
}

.slider-section .simple-btn-next svg,
.slider-section .simple-btn-prev svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 18px;
  margin: 0;
  transform: translate(-50%, -50%);
  fill: #3a3a3a;
}

.slider-section .simple-btn-prev svg {
  transform: translate(-50%, -50%) rotate(180deg);
}

@media only screen and (max-width: 1199px) {
  .slider-section {
    height: auto;
    background: rgba(12, 165, 151, 0.92);
  }

  .slider-section .swiper-container,
  .slider-section .swiper-wrapper,
  .slider-section .swiper-slide {
    height: auto !important;
    overflow: visible;
  }

  .slider-section__photo {
    position: relative;
    height: 46vw;
    min-height: 150px;
    max-height: 260px;
  }

  .slider-section__shade,
  .slider-section__shade .container,
  .slider-section__card {
    height: auto;
  }

  .slider-section__shade .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .slider-section__card {
    width: 100%;
    max-width: none;
    padding: 22px 16px 8px;
    background: rgba(12, 165, 151, 0.92);
  }

  .slider-section__card:before {
    display: none;
  }

  .slider-section__card .h2 {
    font-size: 1.45rem;
  }

  .slider-section__card .h5 {
    margin-bottom: 16px;
    font-size: 1rem;
  }

  .slider-section__card .btn__block {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    min-height: 46px;
  }

  .slider-section__controls {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 12px 16px 16px;
    background: rgba(12, 165, 151, 0.92);
  }

  .slider-section .simple-pagination {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    flex: 1 1 auto;
    margin: 0;
  }
}

@media only screen and (min-width: 480px) and (max-width: 1199px) {
  .slider-section__card .h2 {
    font-size: 1.75rem;
  }

  .slider-section__card {
    padding: 28px 24px 12px;
  }

  .slider-section__controls {
    padding: 14px 24px 20px;
  }
}

@media only screen and (max-width: 1199px) and (max-height: 480px) {
  .slider-section__photo {
    height: 120px;
    min-height: 0;
    max-height: none;
  }
}
