.accordeon__header-block {
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.directions .accordeon__btn::before {
  background-color: white;
}

.directions .accordeon__subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
}

.directions .accordeon__text p:first-child {
  margin-top: 0;
}

.directions .accordeon__text p > span {
  color: var(--main-red);
  font-weight: 700;
}

.social .social__link {
  width: 40px;
  height: 40px;
}

.social .social__link::after {
  background-size: 20px;
}

.directions .accordeon__item {
  position: relative;
  background-color: #f0f1f4;
}

.directions__container {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.directions__bg-container {
  pointer-events: none;
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.directions__bg-container svg {
  position: absolute;
  right: 0;
  bottom: 0;
}

.accordeon__item:has(.js-ac_active) .directions__bg-container {
  display: block;
}

.directions__bg_desk,
.directions__bg_tablet {
  display: none;
}

.swiper-pagination.directions__pagination {
  position: relative;
  padding-top: 20px;
  /* background-color: var(--main-gray); */
  bottom: 0 !important;
  line-height: 0;
}

.directions__pagination .swiper-pagination-bullet {
  background-color: var(--main-gray);
  width: 10px;
  height: 10px;
  border: 1px solid var(--main-red);
  opacity: 1;
}

.directions__pagination .swiper-pagination-bullet-active {
  background-color: var(--main-red);
}

.directions__icon {
  position: absolute;
  left: 10px;
  bottom: 40px;
  background-color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.directions__icon-pic {
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
}

.directions__galley-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.swiper-slide.directions__slide {
  height: 48vw;
}

.directions__buttons {
  display: none;
}

.directions-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 27px;
}

.directions-contacts__element {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.directions-contacts__title {
  font-weight: 700;
  font-size: 12px;
  line-height: 14.4px;
  color: #999;
  text-transform: uppercase;
}

.directions-contacts__text {
  font-weight: 600;
  font-size: 14px;
  line-height: 16.8px;
}

.directions-contacts__text a {
  text-decoration: none;
}

.directions-contacts__text a:hover {
  color: var(--main-red);
}

.directions-contacts__socials {
  display: flex;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .directions .accordeon__subtitle {
    font-size: 16px;
    line-height: 19.2px;
  }
  .directions .accordeon__text,
  .accordeon__text * {
    font-size: 18px;
    line-height: 1.2;
  }
  .directions__bg_mobile {
    display: none;
  }
  .directions__bg_tablet {
    display: block;
  }
  .directions__pagination {
    display: none;
  }
  .directions__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 13px;
  }
  .directions__buttons .round-button {
    border: none !important;
    background-color: #f0f1f4;
    width: 30px;
    height: 30px;
    background-position: center left 9px;
  }
  .directions-contacts {
    display: flex;
    gap: 30px;
  }
  .directions-contacts__title {
    font-size: 14px;
    line-height: 18.2px;
  }
  .directions-contacts__text {
    font-weight: 600;
    font-size: 16px;
    line-height: 19.2px;
  }
  .directions__icon {
    left: 20px;
    bottom: 60px;
  }
}

@media screen and (min-width: 1200px) {
  .directions__bg_tablet {
    display: none;
  }
  .directions__bg_desk {
    display: block;
  }
  .directions__container {
    display: grid;
    grid-template-columns: 490px 460px;
    gap: 50px;
    min-height: 420px;
  }
  .swiper-slide.directions__slide {
    height: 350px;
  }
}
