/* FAQ */

.seoms-faq {
  padding: 86px 0 96px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 109, 61, 0.10), transparent 34%),
    #fafafa;
  color: #111;
  font-family: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.seoms-faq__container {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
}

.seoms-faq__title {
  margin: 0 0 38px;
  color: #111 !important;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.seoms-faq__item {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.seoms-faq__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff6d3d, #d85b2b);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.seoms-faq__item:hover,
.seoms-faq__item[open] {
  border-color: rgba(255, 109, 61, 0.3);
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
}

.seoms-faq__item:hover {
  transform: translateY(-2px);
}

.seoms-faq__item[open]::before {
  opacity: 1;
}

.seoms-faq__item > summary {
  list-style: none;
}

.seoms-faq__item > summary::-webkit-details-marker {
  display: none;
}

.seoms-faq__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 20px 22px 20px 26px;
  cursor: pointer;
  user-select: none;
}

.seoms-faq__summary:focus-visible {
  outline: 2px solid #ff6d3d;
  outline-offset: 4px;
}

.seoms-faq__question {
  color: #111;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.35;
}

.seoms-faq__icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: none;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.28s ease;
}

.seoms-faq__icon::before,
.seoms-faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 14px;
  height: 2px;
  margin: auto;
  border-radius: 999px;
  background: #111;
  transition: transform 0.24s ease, background 0.22s ease;
}

.seoms-faq__icon::after {
  transform: rotate(90deg);
}

.seoms-faq__item[open] .seoms-faq__icon {
  border-color: transparent;
  background: #ff6d3d;
  transform: rotate(180deg);
}

.seoms-faq__item[open] .seoms-faq__icon::before,
.seoms-faq__item[open] .seoms-faq__icon::after {
  background: #111;
}

.seoms-faq__item[open] .seoms-faq__icon::after {
  transform: rotate(0deg);
}

.seoms-faq__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 76px 0 26px;
  color: rgba(17, 17, 17, 0.68);
  font-size: 15px;
  line-height: 1.72;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.34s ease,
    padding-bottom 0.34s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

.seoms-faq__item[open] .seoms-faq__body {
  max-height: 420px;
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

.seoms-faq__body p {
  margin: 0 0 10px;
}

.seoms-faq__body p:last-child {
  margin-bottom: 0;
}

@supports selector(details::details-content) {
  .seoms-faq__item {
    interpolate-size: allow-keywords;
  }

  .seoms-faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.34s ease,
      content-visibility 0.34s ease allow-discrete;
  }

  .seoms-faq__item[open]::details-content {
    block-size: auto;
  }

  .seoms-faq__body,
  .seoms-faq__item[open] .seoms-faq__body {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .seoms-faq {
    padding: 62px 0 72px;
  }

  .seoms-faq__container {
    width: min(100% - 28px, 980px);
  }

  .seoms-faq__title {
    margin-bottom: 26px;
  }

  .seoms-faq__summary {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 14px;
    min-height: 68px;
    padding: 17px 16px 17px 18px;
  }

  .seoms-faq__icon {
    width: 34px;
    height: 34px;
  }

  .seoms-faq__body {
    padding-right: 18px;
    padding-left: 18px;
    font-size: 14px;
  }

  .seoms-faq__item[open] .seoms-faq__body {
    max-height: 560px;
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seoms-faq__item,
  .seoms-faq__item::before,
  .seoms-faq__icon,
  .seoms-faq__icon::before,
  .seoms-faq__icon::after,
  .seoms-faq__body {
    transition: none;
  }
}
