:root {
  --bg: #f4f4f4;
  --panel: #eceef1;
  --panel-open: #e4e8ee;
  --text: #4a4f55;
  --item-text: #8190a3;
  --border: #dde2e8;
  --max-width: 1250px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
}

.tp-container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 0;
}

.accordion-group + .accordion-group {
  margin-top: 2rem;
}

.group-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4b4f54;
}

.accordion-item {
  background: var(--panel);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.accordion-item[open] {
  background: var(--panel-open);
  border-color: var(--border);
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--item-text);
  font-size: 1.25rem;
  font-weight: 600;
}

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

.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--item-text);
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.accordion-icon::before {
  width: 18px;
  height: 2px;
  top: 8px;
  left: 0;
}

.accordion-icon::after {
  width: 2px;
  height: 18px;
  top: 0;
  left: 8px;
}

.accordion-item[open] .accordion-icon::after {
  opacity: 0;
  transform: scaleY(0.4);
}

.accordion-content {
  padding: 0 1.25rem 1.5rem;
  color: #5f6873;
  font-size: 1rem;
  line-height: 1.7;
}

.accordion-content p:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .accordion-item summary {
    min-height: 64px;
    font-size: 1.125rem;
    padding: 1.2rem 1rem;
  }

  .accordion-content {
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, var(--max-width));
    padding-top: 1.25rem;
  }

  .group-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .accordion-item summary {
    font-size: 1rem;
    min-height: 56px;
    padding: 1rem;
  }
}
