.yla-faq {
  --faq-ink: #111;
  --faq-copy: #555;
  --faq-rule: #d7d7d7;
  --faq-blue: #1f5fe0;
  padding: 42px 0 clamp(80px, 8vw, 132px);
  background: #fff;
  color: var(--faq-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.yla-faq *,
.yla-faq *::before,
.yla-faq *::after {
  box-sizing: border-box;
}

.yla-faq__shell {
  width: min(100% - clamp(36px, 6vw, 112px), 1640px);
  margin-inline: auto;
}

.yla-faq__kicker {
  margin: 0 0 18px;
  color: var(--faq-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.yla-faq__topic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
  margin: 0 0 clamp(52px, 6vw, 88px);
  border-top: 1px solid var(--faq-rule);
  counter-reset: faq-topic;
}

.yla-faq__topic-link {
  display: block;
  min-width: 0;
  padding: 15px 0 18px;
  background: transparent;
  color: var(--faq-ink);
  counter-increment: faq-topic;
  text-decoration: none;
}

.yla-faq__topic-index {
  display: block;
  margin-bottom: 18px;
  color: var(--faq-blue);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.3;
}

.yla-faq__topic-index::before {
  content: "0" counter(faq-topic);
}

.yla-faq__topic-title {
  display: block;
  max-width: 26ch;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.yla-faq__topic-link:hover .yla-faq__topic-title,
.yla-faq__topic-link:focus-visible .yla-faq__topic-title {
  opacity: .58;
}

.yla-faq__topic-link:focus-visible,
.yla-faq__question:focus-visible {
  outline: 2px solid var(--faq-blue);
  outline-offset: 4px;
}

.yla-faq__groups {
  counter-reset: faq-group;
}

.yla-faq__group {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr);
  gap: clamp(38px, 6vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--faq-rule);
  counter-increment: faq-group;
  scroll-margin-top: 28px;
}

.yla-faq__group + .yla-faq__group {
  margin-top: clamp(52px, 6vw, 88px);
}

.yla-faq__group-heading {
  min-width: 0;
}

.yla-faq__group-label {
  margin: 0 0 12px;
  color: var(--faq-blue);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.yla-faq__group-index::before {
  content: "0" counter(faq-group);
}

.yla-faq__group-label-text {
  margin-left: 10px;
  color: var(--faq-copy);
}

.yla-faq .yla-faq__group-title {
  margin: 0;
  color: var(--faq-ink);
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: clamp(24px, 2vw, 34px) !important;
  font-style: normal;
  font-weight: 600 !important;
  letter-spacing: .018em;
  line-height: 1.08;
  text-transform: uppercase;
}

.yla-faq__visual {
  width: min(100%, 440px);
  margin: clamp(24px, 2.2vw, 34px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f2f2f0;
}

.yla-faq__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yla-faq__visual--product img {
  object-position: 62% center;
}

.yla-faq__items {
  min-width: 0;
}

.yla-faq__item:not(:last-child) {
  border-bottom: 1px solid var(--faq-rule);
}

.yla-faq__item details,
.yla-faq__question {
  margin: 0;
}

.yla-faq__question {
  position: relative;
  display: block;
  padding: 20px 52px 20px 0;
  color: var(--faq-ink);
  cursor: pointer;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
  list-style: none;
}

.yla-faq__question::-webkit-details-marker {
  display: none;
}

.yla-faq__question-icon {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
}

.yla-faq__question-icon::before,
.yla-faq__question-icon::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 13px;
  height: 1px;
  background: var(--faq-blue);
  content: "";
  transition: opacity 160ms ease, transform 160ms ease;
}

.yla-faq__question-icon::after {
  transform: rotate(90deg);
}

.yla-faq__item details[open] .yla-faq__question-icon::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

.yla-faq__answer {
  max-width: 75ch;
  padding: 0 52px 24px 0;
  color: var(--faq-copy);
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
}

.yla-faq__answer > :first-child {
  margin-top: 0 !important;
}

.yla-faq__answer > :last-child {
  margin-bottom: 0 !important;
}

.yla-faq__answer p {
  margin: 0 0 14px;
  color: inherit;
  font: inherit;
}

.yla-faq__answer strong,
.yla-faq__answer b {
  color: #222;
  font-weight: 600;
}

.yla-faq__answer a {
  color: var(--faq-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.yla-faq__answer a:hover,
.yla-faq__answer a:focus-visible {
  color: var(--faq-blue);
}

@media screen and (max-width: 959px) {
  .yla-faq {
    padding: 32px 0 80px;
  }

  .yla-faq__shell {
    width: min(100% - 36px, 720px);
  }

  .yla-faq__topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    margin-bottom: 58px;
  }

  .yla-faq__group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .yla-faq__group + .yla-faq__group {
    margin-top: 58px;
  }

  .yla-faq .yla-faq__group-title {
    font-size: clamp(22px, 7vw, 28px) !important;
  }

  .yla-faq__visual {
    width: min(100%, 480px);
    margin-top: 22px;
  }

  .yla-faq__question {
    padding: 17px 44px 17px 0;
    font-size: 15px;
  }

  .yla-faq__answer {
    padding: 0 36px 22px 0;
    font-size: 14px;
  }
}

@media screen and (max-width: 559px) {
  .yla-faq__topic-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .yla-faq__topic-link {
    padding: 14px 0 16px;
  }

  .yla-faq__topic-index {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yla-faq__topic-title,
  .yla-faq__question-icon::before,
  .yla-faq__question-icon::after {
    transition: none;
  }
}
