:root {
  --faq-bg: var(--color-bg-accent, #FFFFFF);
  --faq-row: var(--color-bg-tertiary, #F3F4F6);
  --faq-row-hover: var(--color-bg, #F7F7F7);
  --faq-text: var(--color-text, #2F2F2F);
  --faq-accent: var(--color-primary-accent, #FFFFFF);
  --faq-muted: var(--color-tertiary, #4B4B4B);
  --faq-blue: var(--color-accent-dark, #33B7EA);
  --faq-arrow: var(--color-accent, #6CCCF1);
  --faq-orange: var(--color-bg-secondary, #F5803A);

  --faq-r: 40px;
  --faq-gap: 12px;
}
.faq.row {
  align-items: start
}

/* ---------- левая карточка ---------- */
.faq__card {
  position: relative;
  min-height: 468px;
  aspect-ratio: 890 / 468;
  border-radius: 0 var(--faq-r) var(--faq-r) 0;
  overflow: hidden;
}
.faq__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Вырез с заголовком */
.faq__tab {
  --corner-cutout-radius: var(--faq-r);
  --corner-cutout-background: var(--faq-bg);

  width: min-content;
  padding: 0 24px 24px 0;
  display: flex;
  align-items: center;
}
.faq__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em
}

/* Вырез с кнопкой */
.faq__cta-wrap {
  --corner-cutout-radius: var(--faq-r);
  --corner-cutout-background: #fff;

  width: 273px;
  height: 100px;
  padding: 24px;

  & .btn:hover {
    transform: translateY(-2px);
  }
}

/* paralax */
.faq__paralax {
  z-index: 1;
  position: absolute;
  inset: 0;

  & .faq__parallax-layer {
    width: max-content;
    min-height: 56px;
    pointer-events: none;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 16px 24px;
    color: var(--color-accent-text);
    background-color: var(--color-accent-dark);

    &::before {
      content: '';
      position: absolute;
    }
  }
  & .faq__parallax-layer--2 {
    top: 46.37%;
    left: 14.27%;
    border-radius: 20px 20px 0 20px;

    &::before {
      right: 0;
      top: 100%;
      width: 15px;
      height: 27px;
      background: radial-gradient(
        ellipse 15px 27px at left bottom,
        transparent 99%,
        var(--color-accent-dark) 100%
      );
    }
  }
  & .faq__parallax-layer--1 {
    top: 13.68%;
    left: 63.37%;
    border-radius: 20px 20px 20px 0;

    &::before {
      left: 0;
      top: 100%;
      width: 15px;
      height: 27px;
      background: radial-gradient(
        ellipse 15px 27px at right bottom,
        transparent 99%,
        var(--color-accent-dark) 100%
      );
    }
  }
  & .faq__parallax-layer--3 {
    top: 66.67%;
    left: 61.46%;

    &::before {
      right: 100%;
      top: 50%;
      transform: translateY(-50%);
      width: 27px;
      height: 30px;
      
      background:
        radial-gradient(
          ellipse 27px 15px at left top,
          transparent 99%,
          var(--color-accent-dark) 100%
        ) top / 100% 50% no-repeat,
        radial-gradient(
          ellipse 27px 15px at left bottom,
          transparent 99%,
          var(--color-accent-dark) 100%
        ) bottom / 100% 50% no-repeat;
    }
  }
}
.faq__tab,
.faq__cta-wrap {
  pointer-events: none; /* не перехватывают курсор */

  & > * {
    pointer-events: auto; /* кликабельные элементы остаются кликабельными */
  }
}

/* ---------- список ---------- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--faq-gap)
}
.faq__item {
  background: var(--faq-row);
  border-radius: var(--faq-r);
  transition: background .2s;
  
  &:hover {
    background: var(--faq-row-hover);
  }
}
.faq__q {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 84px;
  padding: 16px 16px 16px 32px;
  cursor: pointer;
  

  & :is(h2, h3, h4, span:first-child, p:first-child) {
    margin: 0;
    font-weight: 500;
    line-height: 24px;
    font-size: 1.125rem;
    font-family: var(--font-body);
  }
}
.faq__q:focus-visible {
  outline: 3px solid var(--faq-blue);
  outline-offset: 2px;
  border-radius: var(--faq-r);
}
.faq__arrow {
  --icon-size: 16px;
  --icon-fill: var(--faq-accent);

  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--faq-arrow);
  transition: all .3s ease;
}
.faq__q:hover .faq__arrow {
  background-color: var(--faq-blue);
}
.faq__a-text {
  padding: 0 32px 0;
  color: var(--faq-muted);
  font-size: 17px;
  line-height: 1.55;
  transition: padding-bottom .3s ease
}
.faq__item.is-open .faq__a-text {
  padding-bottom: 28px
}
.faq__item.is-open .faq__arrow {
  transform: rotate(180deg)
}
.faq__item.is-open {
  background: var(--color-accent-lite)
}
.faq__item--empty .faq__arrow {
  opacity: .55
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}