.page-faq {
  --faq-radius: 26px;
  --faq-card-bg: #ffffff;
  --faq-border: #ece5db;
  background: var(--c7-paper);
  overflow: hidden;
}

.page-faq .faq-hero {
  position: relative;
  background: var(--c7-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  padding: 38px 0 56px;
  color: #ffffff;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: var(--c7-paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 0;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__title {
  font-family: var(--c7-serif);
  font-size: 2rem;
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin: 22px 0 14px;
  max-width: 820px;
}

.page-faq .faq-hero__lead {
  font-family: var(--c7-sans);
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin-bottom: 28px;
}

.page-faq .faq-hero__media {
  border-radius: var(--faq-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 6px 32px rgba(0, 212, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
}

.page-faq .faq-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-faq .faq-section {
  padding: 62px 0 68px;
  background-color: var(--c7-paper);
  background-image: radial-gradient(rgba(45, 45, 45, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
}

.page-faq .faq-section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.page-faq .faq-section__head .c7-index {
  align-self: flex-start;
}

.page-faq .faq-section__head .c7-title {
  font-size: 1.7rem;
  margin: 0;
  line-height: 1.3;
}

.page-faq .faq-section__head-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-faq .faq-filter {
  position: relative;
}

.page-faq .faq-filter__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.page-faq .faq-filter__bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-filter__bar::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-filter__label {
  flex: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--c7-capsule);
  background: #ffffff;
  border: 1px solid var(--faq-border);
  font-family: var(--c7-sans);
  font-size: 0.88rem;
  color: var(--c7-ink);
  white-space: nowrap;
  transition: background 0.3s var(--c7-ease), border-color 0.3s var(--c7-ease), color 0.3s var(--c7-ease), box-shadow 0.3s var(--c7-ease);
}

.page-faq .faq-filter__label:hover {
  border-color: rgba(124, 46, 62, 0.4);
  color: var(--c7-red);
}

.page-faq .faq-filter__radio#faq-all:checked ~ .faq-filter__bar label[for="faq-all"],
.page-faq .faq-filter__radio#faq-account:checked ~ .faq-filter__bar label[for="faq-account"],
.page-faq .faq-filter__radio#faq-download:checked ~ .faq-filter__bar label[for="faq-download"],
.page-faq .faq-filter__radio#faq-update:checked ~ .faq-filter__bar label[for="faq-update"],
.page-faq .faq-filter__radio#faq-activity:checked ~ .faq-filter__bar label[for="faq-activity"],
.page-faq .faq-filter__radio#faq-cservice:checked ~ .faq-filter__bar label[for="faq-cservice"] {
  background: var(--c7-red);
  border-color: var(--c7-red);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(124, 46, 62, 0.22);
}

.page-faq .faq-filter__panels {
  position: relative;
}

.page-faq .faq-item {
  background: var(--faq-card-bg);
  border-radius: var(--faq-radius);
  border: 1px solid var(--faq-border);
  margin-bottom: 16px;
  transition: box-shadow 0.35s var(--c7-ease), border-color 0.35s var(--c7-ease);
}

.page-faq .faq-item:hover {
  border-color: rgba(124, 46, 62, 0.18);
  box-shadow: 0 8px 26px rgba(45, 45, 45, 0.06);
}

.page-faq .faq-item[data-open] {
  border-color: rgba(124, 46, 62, 0.28);
  box-shadow: 0 12px 32px rgba(124, 46, 62, 0.08);
}

.page-faq .faq-item__heading {
  margin: 0;
}

.page-faq .faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--c7-sans);
  border-radius: var(--faq-radius);
}

.page-faq .faq-item__no {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--c7-mono);
  font-size: 0.8rem;
  color: var(--c7-red);
  border: 1px solid currentColor;
  border-radius: var(--c7-capsule);
  background: rgba(124, 46, 62, 0.05);
}

.page-faq .faq-item__q {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c7-ink);
  line-height: 1.5;
}

.page-faq .faq-item__icon {
  flex: none;
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d8d2c8;
  background: #fbf8f3;
  transition: transform 0.35s var(--c7-ease), border-color 0.35s var(--c7-ease), background 0.35s var(--c7-ease);
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--c7-gray);
  transition: background 0.35s var(--c7-ease);
}

.page-faq .faq-item__icon::before {
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item__icon::after {
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item[data-open] .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--c7-red);
  background: rgba(124, 46, 62, 0.08);
}

.page-faq .faq-item[data-open] .faq-item__icon::before,
.page-faq .faq-item[data-open] .faq-item__icon::after {
  background: var(--c7-red);
}

.page-faq .faq-item__answer {
  padding: 4px 18px 20px 68px;
  font-family: var(--c7-sans);
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--c7-gray);
}

.page-faq .faq-item__answer p {
  margin: 0;
}

.page-faq .faq-filter__radio#faq-all:checked ~ .faq-filter__panels .faq-item {
  display: block;
}

.page-faq .faq-filter__radio:not(#faq-all):checked ~ .faq-filter__panels .faq-item {
  display: none;
}

.page-faq .faq-filter__radio#faq-account:checked ~ .faq-filter__panels .faq-item[data-cat="account"],
.page-faq .faq-filter__radio#faq-download:checked ~ .faq-filter__panels .faq-item[data-cat="download"],
.page-faq .faq-filter__radio#faq-update:checked ~ .faq-filter__panels .faq-item[data-cat="update"],
.page-faq .faq-filter__radio#faq-activity:checked ~ .faq-filter__panels .faq-item[data-cat="activity"],
.page-faq .faq-filter__radio#faq-cservice:checked ~ .faq-filter__panels .faq-item[data-cat="cservice"] {
  display: block;
  animation: c7-faq-rise 0.35s var(--c7-ease) both;
}

@keyframes c7-faq-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-faq .faq-contact {
  position: relative;
  background: var(--c7-red);
  background-image:
    linear-gradient(135deg, rgba(18, 18, 18, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(242, 183, 5, 0.24), transparent 40%);
  color: #ffffff;
  padding: 60px 0;
  overflow: hidden;
}

.page-faq .faq-contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
  transform: translate(30%, -30%);
  pointer-events: none;
}

.page-faq .faq-contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  align-items: center;
}

.page-faq .faq-contact__media {
  border-radius: var(--faq-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.page-faq .faq-contact__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-faq .faq-contact__body {
  position: relative;
}

.page-faq .faq-contact__title {
  font-family: var(--c7-serif);
  font-size: 1.55rem;
  line-height: 1.4;
  margin: 12px 0 12px;
}

.page-faq .faq-contact__text {
  font-family: var(--c7-sans);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-faq .faq-contact__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-faq .faq-contact__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 12px;
  font-size: 0.9rem;
}

.page-faq .faq-contact__item span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.page-faq .faq-contact__item strong {
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.page-faq .faq-contact__item em {
  font-style: normal;
  display: block;
  grid-column: 2;
  color: var(--c7-yellow);
  font-size: 0.8rem;
}

.page-faq .faq-contact__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-faq .faq-contact__actions .c7-btn--primary {
  background: var(--c7-yellow);
  border-color: var(--c7-yellow);
  color: var(--c7-dark);
}

.page-faq .faq-contact__actions .c7-btn--primary:hover {
  background: #f5c224;
  border-color: #f5c224;
}

.page-faq .faq-contact__actions .c7-btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.page-faq .faq-contact__actions .c7-btn--ghost:hover {
  border-color: #ffffff;
  color: var(--c7-yellow);
}

.page-faq .faq-contact__compliance {
  margin-top: 26px;
  font-family: var(--c7-sans);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 52px 0 68px;
  }

  .page-faq .faq-hero__title {
    font-size: 2.6rem;
  }

  .page-faq .faq-hero__lead {
    font-size: 1rem;
  }

  .page-faq .faq-section {
    padding: 84px 0 90px;
  }

  .page-faq .faq-section__head {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 42px;
  }

  .page-faq .faq-section__head .c7-title {
    font-size: 2rem;
  }

  .page-faq .faq-filter__bar {
    gap: 12px;
    margin-bottom: 30px;
  }

  .page-faq .faq-filter__label {
    padding: 11px 24px;
    font-size: 0.92rem;
  }

  .page-faq .faq-item {
    margin-bottom: 18px;
  }

  .page-faq .faq-item__trigger {
    padding: 22px 24px;
  }

  .page-faq .faq-item__q {
    font-size: 1rem;
  }

  .page-faq .faq-item__answer {
    padding: 4px 26px 24px 80px;
    font-size: 0.92rem;
  }

  .page-faq .faq-contact {
    padding: 76px 0;
  }

  .page-faq .faq-contact__title {
    font-size: 1.9rem;
  }

  .page-faq .faq-contact__text {
    font-size: 0.95rem;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-contact__inner {
    grid-template-columns: 400px 1fr;
    gap: 64px;
  }

  .page-faq .faq-contact__media {
    margin: 0;
  }

  .page-faq .faq-cotnact__body {
    max-width: 520px;
  }

  .page-faq .faq-contact__list {
    grid-template-columns: 1fr 1fr;
  }

  .page-faq .faq-contact__item em {
    grid-column: auto;
  }
}
