.tp-faq-page {
  color: var(--tp-ink);
  background: #fff;
}

.tp-faq-shell {
  box-sizing: border-box;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(42px, 5vw, 76px);
}

.tp-faq-hero {
  padding: 85px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #173944, var(--tp-primary-dark));
}

.tp-faq-hero span {
  color: #77d0e1;
  font: 700 12px/1.2 "Poppins", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tp-faq-hero h1 {
  margin: 13px auto;
  max-width: 760px;
  font: 800 clamp(36px, 5vw, 62px)/1.1 "Poppins", sans-serif;
  letter-spacing: -.035em;
}

.tp-faq-hero p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgb(255 255 255 / 76%);
  font-size: 17px;
  line-height: 1.65;
}

.tp-faq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  min-height: 56px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 0 18px;
  background: #fff;
  color: var(--tp-primary);
}

.tp-faq-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--tp-ink);
  font-size: 16px;
}

.tp-faq-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 60px;
  padding-block: 70px 110px;
}

.tp-faq-nav {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 7px;
}

.tp-faq-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  padding: 13px;
  color: #49636b;
  font-weight: 700;
  text-decoration: none;
}

.tp-faq-nav a:hover {
  background: #edf7f9;
  color: var(--tp-primary-dark);
}

.tp-faq-nav i {
  width: 20px;
  color: var(--tp-primary);
  text-align: center;
}

.tp-faq-content {
  display: grid;
  gap: 64px;
}

.tp-faq-content section > header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tp-faq-content section > header > i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eaf7fa;
  color: var(--tp-primary-dark);
  font-size: 22px;
}

.tp-faq-content header span {
  color: var(--tp-primary);
  font: 700 10px/1.2 "Poppins", sans-serif;
  letter-spacing: .12em;
}

.tp-faq-content h2 {
  margin: 3px 0 0;
  font: 700 28px/1.2 "Poppins", sans-serif;
}

.tp-faq-list {
  display: grid;
  gap: 10px;
}

.tp-faq-list details {
  border: 1px solid var(--tp-line);
  border-radius: 11px;
  background: #fff;
}

.tp-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 19px 20px;
  font: 600 15px/1.45 "Poppins", sans-serif;
  list-style: none;
}

.tp-faq-list summary i {
  color: var(--tp-primary);
  transition: transform 180ms ease;
}

.tp-faq-list details[open] summary i {
  transform: rotate(45deg);
}

.tp-faq-list details > div {
  padding: 0 20px 20px;
  color: #5c737a;
  line-height: 1.7;
}

.tp-faq-contact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border-radius: 14px;
  padding: 28px;
  background: var(--tp-primary-dark);
  color: #fff;
}

.tp-faq-contact > i {
  color: #73cada;
  font-size: 34px;
}

.tp-faq-contact h2,
.tp-faq-contact p {
  margin: 0;
  color: inherit;
}

.tp-faq-contact p {
  margin-top: 5px;
  opacity: .75;
}

.tp-faq-contact a {
  border-radius: 9px;
  padding: 13px 18px;
  background: var(--tp-accent);
  color: var(--tp-midnight);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .tp-faq-layout {
    grid-template-columns: 1fr;
  }

  .tp-faq-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .tp-faq-shell {
    padding-inline: 18px;
  }

  .tp-faq-nav {
    display: flex;
    overflow: auto;
  }

  .tp-faq-nav a {
    flex: 0 0 auto;
    border: 1px solid var(--tp-line);
  }

  .tp-faq-contact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-faq-list summary i {
    transition: none;
  }
}
