/* FAQ PAGE (sizes are +2px vs previous pattern) */

.faq-page{
  background:#fff;
  color:#0b1a37;
}

/* ---------- HERO ---------- */
.faq-hero{
  padding: 84px 0 40px;
  background:#fff;
}

.faq-hero__grid{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items:start;
}

.faq-hero__title{
  margin:0;
  color:#0b1a37;
}

.faq-hero__subtitle{
  margin: 14px 0 0;
  max-width: 420px;
}

.faq-hero__actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-hero__right-media{
  margin: 0;
}

.faq-hero__right-img{
  width: 100%;
  height: auto;
  display: block;
}

/* mock */
.faq-mock{
  max-width: 760px;
  margin-left:auto;
}

.faq-mock__frame{
  border: 3px solid rgba(12,22,48,0.14);
  border-radius: 20px;
  overflow:hidden;
  background:#fff;
}

.faq-mock__img{
  width:100%;
  height:auto;
  display:block;
}

.faq-mock__ph{
  width:100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(45deg, rgba(12,22,48,0.06) 25%, transparent 25%, transparent 75%, rgba(12,22,48,0.06) 75%, rgba(12,22,48,0.06)),
    linear-gradient(45deg, rgba(12,22,48,0.06) 25%, transparent 25%, transparent 75%, rgba(12,22,48,0.06) 75%, rgba(12,22,48,0.06));
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.faq-mock__controls{
  display:flex;
  justify-content:center;
  margin-top: 14px;
}

.faq-mock__pill{
  display:inline-flex;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246,248,252,1);
  border: 1px solid rgba(12,22,48,0.12);
}

.faq-mock__dot{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(12,22,48,0.16);
  background:#fff;
}

.faq-mock__dot--dark{
  background:#0b1a37;
  border-color:#0b1a37;
}

/* ---------- GROUPS ---------- */
.faq-group{
  padding: 56px 0;
  background:#fff;
}

.faq-group--alt{
  background:var(--surface-soft);
}

.faq-group__grid{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items:start;
}

.faq-group__left,
.faq-group__title,
.faq-group__desc{
  text-align: left;
}


.faq-group__desc{
  margin: 8px 0 0;
  font-size: 16px; /* +2px */
  line-height: 1.55;
}

/* ---------- ACCORDION ---------- */
.faq-acc{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item{
  border: 1px solid rgba(12,22,48,0.14);
  border-radius: 12px;
  background:#fff;
  overflow:hidden;
}

.faq-item.faq-group--alt{
  background:var(--surface-soft);
  border: 0;
}

.faq-item__head{
  width:100%;
  background: transparent;
  border: 0;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  cursor:pointer;
  text-align:left;
}

.faq-item__q{
  font-size: 16px; /* +2px */
  line-height: 1.35;
  font-weight: 500;
  color:#0b1a37;
}

.faq-item__icon{
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(11,26,55,0.16);
  background:#fff;
  position: relative;
  flex: 0 0 28px;
}


/* --- FAQ icon: chevron down/up instead of +/- --- */
.faq-item__icon::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(11,26,55,0.75);
  border-bottom: 2px solid rgba(11,26,55,0.75);
  transform: translate(-50%,-55%) rotate(45deg); /* down */
  transition: transform .60s ease, border-color .20s ease;
}

/* выключаем старый второй штрих (вертикальную палочку от "+") */
.faq-item__icon::after{
  content: none;
}

/* open state: arrow up + white stroke */
.faq-item.is-open .faq-item__icon::before{
  border-color: #fff;
  transform: translate(-50%,-45%) rotate(-135deg); /* up */
}


.faq-item.is-open .faq-item__icon::after{
  display:none; /* превращаем в минус */
}

/* panel anim */
.faq-item__panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .34s ease;
}

.faq-item__body{
  padding: 0 14px 14px;
  font-size: 16px; /* +2px */
  line-height: 1.55;
  border-top: 1px solid rgba(12,22,48,0.10);
}

.faq-link{
  color:#1A83D4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- HELP CARD ---------- */
.faq-help{
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(12,22,48,0.14);
  background:#fff;
}

.faq-help__title{
  margin:0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 27px; /* +2px */
  line-height: 1.2;
  color:#0b1a37;
}

.faq-help__text{
  margin: 10px 0 0;
  font-size: 16px; /* +2px */
  line-height: 1.55;
}

.faq-help .btn{
  margin-top: 12px;
  gap: 10px;
}

.faq-help__btn-icon{
  width: 14px;
  height: 14px;
  display: block;
  transform: rotate(-45deg);
  filter: brightness(0) invert(1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .faq-hero{
    padding: 60px 0 28px;
  }

  .faq-hero__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faq-mock{
    margin-left: 0;
    max-width: 100%;
  }

  .faq-group{
    padding: 40px 0;
  }

  .faq-group__grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-hero__subtitle{
    max-width: none;
  }
}

.faq-item.is-open .faq-item__icon{
  background:#0b1a37;
  border-color:#0b1a37;
}

