.custom-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: Merriweather;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slider-slide {
  display: flex;
  align-items: center;
  justify-content: start;
  flex: 0 0 100%;
  max-width: 100%;
  position: relative;
  opacity: 1 !important;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.slider-slide:first-child {
  opacity: 1;
}

.slider-slide.active {
  display: flex;
  align-items: center;
  justify-content: start;
  opacity: 1;
}

.slide-image {
  width: 100%;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content_position {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.slide-content {
  position: absolute;
  max-width: 895px;
  margin-left: 0;
  color: white;
  transition: all 0.5s ease 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  padding-left: 3.438rem;
}

.slide-text-container {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1vw, 24px);
  width: 100%;
}

.slider-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-family: Merriweather;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 52px);
  line-height: clamp(30px, 3vw, 52px);
  text-align: center;
  margin-bottom: clamp(20px, 2vw, 43px);
}

.slide-description {
  font-family: Merriweather;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 28px);
  line-height: clamp(24px, 2vw, 32px);
  text-align: center;
  margin-bottom: 25px;
}

.for_button {
  max-height: 56px;
}

.slider-dots {
  display: flex;
  gap: clamp(12px, 1vw, 24px);
  z-index: 10;
  pointer-events: auto;
  margin-left: 46px;
  margin-right: 46px;
  align-items: center;
}

.slider-dot {
  width: clamp(10px, 1vw, 20px);
  height: clamp(10px, 1vw, 20px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.slider-dot span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.slider-dot.active span {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slider-dot:hover span {
  background: rgba(255, 255, 255, 0.8);
}

.slider-next svg {
  vertical-align: baseline;
}

.slider-prev svg {
  vertical-align: baseline;
}

.line_under_slider {
  display: flex;
  background-color: #1383c6;
  align-items: center;
  justify-content: center;
  height: clamp(60px, 5vw, 96px);
  position: relative;
  z-index: 3;
}

.for_navigation {
  display: flex;
  flex-direction: row;
}

.slider-prev,
.slider-next {
  all: unset;
  cursor: pointer;
}
.main-page-quote__text {
  font-family: "SF Pro Display", sans-serif;
  font-style: italic;
  font-weight: normal;
  font-size: 24px;
  line-height: 32px;
  color: #000000;
}

.line_under_slider  .slick-prev:after  {
  border-right: 18px solid #f0f0f0 !important;
}

.line_under_slider  .slick-next:after{
  border-left: 18px solid #f0f0f0 !important;
}

.line_under_slider .slick-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 44px;
  border: none;
  background: #1383c6 !important;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.3s;
}

.slide-title {
  font-size: clamp(36px, 2.8vw, 48px);
  line-height: clamp(42px, 3.2vw, 52px);
}

.slide-description {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: clamp(28px, 2.2vw, 32px);
}

.line_under_slider {
  height: 79px;
}
main .main-page-quote {
  padding: 24px 64px;
  background-color: #f7f7f7;
}
main .default_red_button {
  min-width: 263px;
}

.slider-wrapper {
  background-color: #1383c6;
}
.default_red_button {
  border-radius: 6px;
}
@media (max-width: 1921px) and (min-width: 1401px) {
  .slide-title {
    font-size: clamp(36px, 2.8vw, 48px);
    line-height: clamp(42px, 3.2vw, 52px);
  }

  .slide-description {
    font-size: clamp(22px, 1.8vw, 26px);
    line-height: clamp(28px, 2.2vw, 32px);
  }

  .line_under_slider {
    height: 79px;
  }
  main .main-page-quote {
    padding: 24px 64px;
    background-color: #f7f7f7;
  }
}

@media (max-width: 1400px) and (min-width: 1025px) {
  /* планшет альбом */
  .main-page-quote {
    background-color: #f7f7f7;
    display: flex !important;
    padding: 0 40px;
    margin: 20px 0 40px 0;
    align-items: center;
  }

  .main-page-quote__image img {
    border-radius: 50%;
    width: 158px !important;
    height: 158px;
    margin-right: 31px;
    height: auto;
  }

  .main-page-quote__content {
    max-width: 82%;
    max-height: 120px;
  }

  .main-page-quote__text {
    font-family: SF Pro Display;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: justify;
  }

  .main-page-quote__caption {
    text-align: right;
    font-family: "Merriweather", sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.25em;
    color: #8b0e04;
  }

  .slide-title {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 30px;
  }

  .slide-description {
    font-size: 22px;
    line-height: 28px;
  }

  .slider-dot {
    width: 16px;
    height: 16px;
  }

  .line_under_slider {
    height: 69px;
  }

  main .main-page-quote {
    padding: 24px 40px;
    background-color: #f7f7f7;
}
}

@media (max-width: 1024px) and (min-width: 769px) {
  /* планшет портрет */
  main .main-page-quote {
    padding: 24px 40px;
    background-color: #f7f7f7;
}
  .main-page-quote {
    background-color: #f7f7f7;
    display: flex !important;
    padding: 0 40px;
    margin: 20px 0 40px 0;
    align-items: center;
  }

  .main-page-quote__image img {
    border-radius: 50%;
    width: 158px !important;
    height: 158px;
    height: auto;
    margin-right: 31px;
  }

  .main-page-quote__content {
    max-width: 75%;
    max-height: 120px;
  }

  .main-page-quote__text {
    font-family: SF Pro Display;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: justify;
  }

  .main-page-quote__caption {
    text-align: right;
    font-family: "Merriweather", sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.25em;
    color: #8b0e04;
  }

  .slide-content {
    padding-left: 1.719rem;
  }

  .slide-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 12px;
  }

  .slide-description {
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 12px;
  }

  .slider-dot {
    width: 14px;
    height: 14px;
  }

  .line_under_slider {
    height: 69px;
  }
}

@media (max-width: 768px) {
  main .main-page-quote__image {
    margin-right: 0px;
}
  .line_under_slider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #1383c6;
    min-height: auto;
  }

  .for_navigation .slick-arrow {
    display: none;
  }

  .line_under_slider {
    height: 35px;
  }
  main .default_red_button {
    min-width: 244px;
  }

  .custom-slider {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
  }

  .slider-track {
    display: flex;
    width: 100%;
    height: 377px;
  }

  .slider-slide {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    flex: 0 0 100%;
  }

  .slider-slide.active {
    display: flex !important;
  }

  .slide-image {
    width: 100%;
    height: 25vh;
    /* max-height: 250px; */
    overflow: hidden;
  }

  .slide-image img {
    width: 100%;
    display: block;
  }

  .slide-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
  }

  .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .content_position {
    position: relative;
    width: 100%;
    height: auto;
    background: rgba(19, 131, 198, 0.9);
    flex: 1;
  }

  .slide-content {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px 30px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-height: 180px; */
    min-height: 175px;
  }

  .slider-slide.no-text.active .slide-image img {
    height: 100%;
    position: absolute;
    z-index: 99999;
  }

  .slide-text-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .slide-button-wrapper {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .default_red_button {
    font-size: 14px !important;
    padding: 16.5px 33px !important;
    width: fit-content !important;
    margin-top: -16px;
  }
  .slide-title {
    font-family: Merriweather;
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 16.8px;
    letter-spacing: 0%;
    text-align: center;
    color: white;
    margin-bottom: 16px;
  }

  .slide-description {
    font-family: Merriweather;
    font-weight: 400;
    font-style: Italic;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    color: white;
    margin-bottom: 16px;
  }

  .slide-button-wrapper {
    margin-top: 15px;
    text-align: center;
    width: 100%;
  }
  .default_red_button {
    border-radius: 6px;
  }
  .line_under_slider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #1383c6;
    min-height: auto;
  }

  .for_navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  @media (max-width: 768px) {
    .line_under_slider {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
      background-color: #1383c6;
      min-height: auto;
    }
  }
  .line_under_slider {
    height: 35px;
  }
  .slider-dots {
    display: flex;
    gap: 15px;
    margin: 0;
  }

  .slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .slider-dot span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
  }

  .slider-dot.active span {
    background: white;
    transform: scale(1.2);
  }

  .slider-next svg,
  .slider-prev svg {
    display: none;
  }

  /* .slider-slide:not(.active) {
    display: none !important;
  } */

  .main-page-quote {
    background-color: #f7f7f7;
    display: flex !important;
    padding: 0 40px;
    margin: 0 0 0 0;
    align-items: center;
  }

  .main-page-quote__image img {
    display: none;
  }

  .main-page-quote__content {
    max-width: 100%;
    /* max-height: 120px; */
  }

  .main-page-quote__text {
    font-family: SF Pro Display;
    font-weight: 400;
    font-size: 13px;
    line-height: 24px;
    letter-spacing: 0%;
  }

  .main-page-quote__caption {
    text-align: right;
    font-family: "Merriweather", sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.25em;
    color: #8b0e04;
  }

  main .main-page-quote {
    padding: 24px 26px;
    background-color: #f7f7f7;
  }
}
@media (max-width: 700px) {
  .slide-content {
    height: 175px;
  }
  .slider-slide.no-text.active .slide-image img {
    height: 100%;
    position: absolute;
    z-index: 99999;
    object-fit: fill;
  }
}
