.vsfaq,
.vsfaq * {
  box-sizing: border-box;
}

.vsfaq {
  --vsfaq-blue: #123a63;
  --vsfaq-blue-dark: #0b2947;
  --vsfaq-yellow: #f2c94c;
  --vsfaq-pale: #edf4fc;
  --vsfaq-border: #d6e2ef;
  --vsfaq-text: #263747;
  width: 100%;
  color: var(--vsfaq-text);
  font-family: inherit;
}

.vsfaq__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 52px 20px;
}

.vsfaq__header {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.vsfaq__eyebrow {
  margin: 0 0 8px;
  color: var(--vsfaq-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vsfaq__header h2 {
  margin: 0;
  color: var(--vsfaq-blue-dark);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vsfaq__header > p:last-child {
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.vsfaq__list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.vsfaq__item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--vsfaq-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 58, 99, 0.07);
}

.vsfaq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 20px 24px;
  color: var(--vsfaq-blue-dark);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.vsfaq__item summary::-webkit-details-marker {
  display: none;
}

.vsfaq__item summary:hover {
  background: var(--vsfaq-pale);
}

.vsfaq__item summary:focus-visible {
  outline: 3px solid var(--vsfaq-yellow);
  outline-offset: -3px;
}

.vsfaq__icon {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vsfaq-blue);
}

.vsfaq__icon::before,
.vsfaq__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.vsfaq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.vsfaq__item[open] {
  border-color: #b8cde1;
}

.vsfaq__item[open] summary,
.vsfaq__answer {
  background: var(--vsfaq-pale);
}

.vsfaq__item[open] .vsfaq__icon {
  background: var(--vsfaq-yellow);
}

.vsfaq__item[open] .vsfaq__icon::before,
.vsfaq__item[open] .vsfaq__icon::after {
  background: var(--vsfaq-blue-dark);
}

.vsfaq__item[open] .vsfaq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.vsfaq__answer {
  padding: 0 24px 24px;
}

.vsfaq__answer p {
  max-width: 800px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .vsfaq__inner {
    padding: 38px 16px;
  }

  .vsfaq__header {
    margin-bottom: 22px;
  }

  .vsfaq__header > p:last-child {
    font-size: 1rem;
  }

  .vsfaq__item summary {
    gap: 16px;
    min-height: 68px;
    padding: 18px;
    font-size: 1rem;
  }

  .vsfaq__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .vsfaq__answer {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsfaq__icon::before,
  .vsfaq__icon::after {
    transition: none;
  }
}

