section.accordion-section {
  padding-top: 140px;
  padding-bottom: 200px;
}

.accordion-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-between;
  align-items: center;
}

.accordion-text-group {
  max-width: 405px;
  /*margin: 0 auto;*/
}

.dot-accordion-image img {
  max-width: 369px;
  height: auto;
}

.accordion-text-group-title {
  font-family: var(--ff-primary), sans-serif;
  font-size: 22px;
  font-weight: var(--fw-700);
  line-height: 26px;
  margin-top: 35px;
  margin-bottom: 20px;
}

.accordion-text-group-text {
  font-family: var(--ff-primary), sans-serif;
  font-size: 16px;
  font-weight: var(--fw-400);
  line-height: 26px;
}

.accordion-links-group {
  max-width: 557px;
  /*margin: 0 auto;*/
}

.accordion-link-single {
  border-bottom: 1px solid #8294c180;
  padding-top: 17px;
  padding-bottom: 17px;
}

.accordion-link-single:first-of-type {
  border-top: 1px solid #8294c180;
}

h3.accordion-links-group-title {
  font-family: var(--ff-primary), sans-serif;
  font-size: 24px;
  font-weight: var(--fw-700);
  line-height: 30px;
  /*margin-top: 30px;*/
  margin-bottom: 30px;
}

.link-single-title {
  font-family: var(--ff-primary), sans-serif;
  font-size: 16px;
  font-weight: var(--fw-700);
  line-height: 21px;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  position: relative;
  max-width: calc(100% - 30px); 
}

.active .link-single-title {
  color: var(--clr-pink-500);
}

.link-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
}

.toggle-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  z-index: 10;
}

.link-wrapper::after {
  position: absolute;
  content: "";
  width: 32px;
  height: 32px;
  background: url("../../../images/karat 1.svg");
  background-repeat: no-repeat;
  top: -3px;
  right: 0px;
  background-position: center;
  filter: opacity(0.3) brightness(0.5);
  rotate: -90deg;
  transition: 0.5s;
}
.dark-gradient .link-wrapper::after {
  filter: opacity(0.6) brightness(0) invert(1);
}

.link-wrapper:hover {
  cursor: pointer;
}

.link-wrapper:hover::after {
  filter: opacity(1) brightness(1);
}

.active.link-wrapper::after {
  filter: opacity(1) brightness(1);
  rotate: 0deg;
}

.link-single-text {
  font-family: var(--ff-primary), sans-serif;
  font-size: 18px;
  font-weight: var(--fw-500);
  line-height: 26px;
  opacity: 0;
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: 0.5s;
}

.active .link-single-text {
  opacity: 1;

  max-height: initial;
  height: fit-content;
  padding: 10px 0;
  transition: 0.5s;
}

@media screen and (max-width: 950px) {
  .accordion-group {
    grid-template-columns: 1fr;
    gap: 120px;
  }

  .dot-accordion-image img {
    width: 100%;
  }
}
