/* Psychological tests hub — /testler */

.th-page {
  --th-lavender: #f5f3ff;
  --th-mint: #ecfdf5;
  --th-border: rgba(226, 232, 240, 0.95);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.th-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfdf5 45%, #fff 100%);
  border-bottom: 1px solid var(--th-border);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.th-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.th-trust-pills {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.th-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.th-trust-pills .ph-ico {
  width: 14px;
  height: 14px;
}

.th-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
}

.th-hero-copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: #0f172a;
}

.th-hero-copy p {
  margin: 0 0 1.25rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 38rem;
}

.th-sample-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(8px);
}

.th-sample-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6366f1;
}

.th-sample-bars > div {
  margin-bottom: 0.65rem;
}

.th-sample-bars span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  color: #64748b;
}

.th-bar {
  height: 8px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}

.th-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #818cf8, #34d399);
}

.th-sample-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

.th-section {
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}

.th-section-head h2,
.th-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #0f172a;
}

.th-section-head p {
  margin: 0;
  color: #64748b;
}

.th-featured-grid,
.th-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.th-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.th-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(100%, 280px);
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--th-border);
  border-radius: 12px;
  background: #fff;
}

.th-search .ph-ico {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.th-search input {
  border: 0;
  outline: none;
  width: 100%;
  font: inherit;
  background: transparent;
}

.th-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.th-filter {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.th-filter.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.th-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--th-border);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}

.th-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--th-accent, #6366f1) 12%, white);
  color: var(--th-accent, #6366f1);
}

.th-card-icon .ph-ico {
  width: 20px;
  height: 20px;
}

.th-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.th-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.th-card p {
  margin: 0;
  flex: 1;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.th-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.th-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.th-process-step {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--th-border);
  background: #fff;
}

.th-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 700;
}

.th-process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.th-process-step p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.th-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.th-results-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: #475569;
  line-height: 1.7;
}

.th-ethics-intro {
  color: #64748b;
  line-height: 1.65;
  max-width: 48rem;
}

.th-ethics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.th-ethics-list li {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.84rem;
  color: #475569;
}

.th-disclaimer {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .th-hero-grid,
  .th-results-grid {
    grid-template-columns: 1fr;
  }

  .th-featured-grid,
  .th-grid,
  .th-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .th-featured-grid,
  .th-grid,
  .th-process-grid,
  .th-ethics-list {
    grid-template-columns: 1fr;
  }

  .th-catalog-head {
    align-items: stretch;
  }

  .th-search {
    min-width: 100%;
  }
}
