﻿/* ===== TASKS PAGE — page-specific styles ===== */

/* Page hero */
.tp-hero {
  padding: 140px 0 60px;
  position: relative;
}
.tp-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 28px;
}
.tp-hero__breadcrumb a { color: var(--text-3); transition: color var(--tr-fast); }
.tp-hero__breadcrumb a:hover { color: var(--cyan); }
.tp-hero__breadcrumb svg { opacity: 0.5; flex-shrink: 0; }
.tp-hero__title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}
.tp-hero__desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}
.tp-hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.tp-stat { display: flex; flex-direction: column; gap: 2px; }
.tp-stat__num {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.tp-stat__label { font-size: 0.78rem; color: var(--text-3); }
.tp-stat__div {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Filter tabs */
.tp-filter {
  position: sticky;
  top: 72px;
  z-index: 400;
  padding: 12px 0;
  transition: background 0.25s, box-shadow 0.25s;
}
.tp-filter--stuck {
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.tp-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-filter__btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: all var(--tr-fast);
}
.tp-filter__btn:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.tp-filter__btn.active {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* Main content */
.tp-main {
  padding: 48px 0 80px;
}

/* Empty state */
.tp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-3);
  font-size: 0.95rem;
}
.tp-empty svg { opacity: 0.4; }

/* CTA banner */
.tp-cta {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.tp-cta__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(6,214,224,0.05);
  border: 1px solid rgba(6,214,224,0.15);
  border-radius: var(--r-xl);
  padding: 48px 56px;
}
.tp-cta__text h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.tp-cta__text p {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.6;
}

/* Single-column choices for long option texts */
.task2-card__choices--col {
  grid-template-columns: 1fr;
}

/* Responsive */
@media (max-width: 768px) {
  .tp-hero { padding: 120px 0 48px; }
  .tp-cta__wrap { flex-direction: column; padding: 36px 28px; text-align: center; }
  .tp-cta__text p { margin: 0 auto; }
  .tp-hero__stats { gap: 20px; }
}
@media (max-width: 480px) {
  /* Статистика страницы задач: 2×2 сетка */
  .tp-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .tp-stat__div { display: none; }
  .tp-stat__num { font-size: 1.5rem; }

  /* Заголовок героя чуть меньше */
  .tp-hero__title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .tp-hero__desc { font-size: 0.92rem; }

  /* CTA баннер */
  .tp-cta__wrap { padding: 28px 20px; }
  .tp-cta { padding: 56px 0; }
}
