/* landing-topics.css — блок «Темы вступительного экзамена».

   Слева список одиннадцати тем, справа панель выбранной: описание, метки
   материалов, символ темы с графиком и ключевые разделы. Цвет темы приходит
   из разметки переменной --tc. */

.tpx {
  position: relative; overflow: hidden;
  padding: clamp(60px, 7.2vw, 118px) 0;
  color: #eef2f8;
}

.tpx-eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 8px 18px; border-radius: 999px;
  font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #8fc2ff; background: rgba(47, 127, 224, .16); border: 1px solid rgba(88, 150, 240, .45);
}
.tpx-title {
  margin: 0 0 16px; padding: 0;
  font-size: clamp(26px, 2.9vw, 40px); font-weight: 800; line-height: 1.12;
  letter-spacing: -.035em; color: #fff;
}
.tpx-title::before { content: none; }
.tpx-lead { margin: 0 0 clamp(30px, 3.2vw, 52px); max-width: 760px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: #9fb0c6; }

.tpx-grid {
  display: grid; grid-template-columns: minmax(0, .44fr) minmax(0, 1fr);
  gap: clamp(18px, 2.1vw, 38px); align-items: stretch;
}

/* ---------- список тем ---------- */
.tpx-list { display: flex; flex-direction: column; gap: 9px; }
.tpx-item {
  --tc: var(--blue);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  color: inherit; font: inherit;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, #0b0e15 0%, #08090f 100%);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.tpx-item:hover { border-color: color-mix(in srgb, var(--tc) 42%, transparent); transform: translateX(2px); }
.tpx-item.on {
  border-color: color-mix(in srgb, var(--tc) 68%, transparent);
  background:
    radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 62%),
    linear-gradient(160deg, #0d1018 0%, #090b11 100%);
  box-shadow: 0 0 24px -10px color-mix(in srgb, var(--tc) 70%, transparent);
}
.tpx-n {
  display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; flex: none;
  font: 800 13.5px/1 var(--sans); color: #fff;
  background: color-mix(in srgb, var(--tc) 72%, transparent);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--tc) 90%, transparent);
}
.tpx-txt { min-width: 0; }
.tpx-txt b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; color: #eaf1fa; }
.tpx-txt i { display: block; margin-top: 2px; font-style: normal; font-size: 12px; line-height: 1.3; color: #7f90a6; }
.tpx-chev { width: 18px; height: 18px; flex: none; color: #56677e; transition: color .16s ease, transform .16s ease; }
.tpx-item.on .tpx-chev { color: var(--tc); transform: translateX(2px); }

/* ---------- панель темы ---------- */
.tpx-pane {
  --tc: var(--blue);
  padding: clamp(26px, 2.6vw, 40px);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--tc) 24%, rgba(255, 255, 255, .07));
  background:
    radial-gradient(90% 70% at 88% 8%, color-mix(in srgb, var(--tc) 13%, transparent), transparent 62%),
    linear-gradient(160deg, #0b0e15 0%, #08090f 100%);
  box-shadow: 0 30px 70px -44px rgba(0, 0, 0, .95);
}
/* все панели лежат в одной ячейке грида: высота блока равна самой высокой
   панели и не скачет при переключении тем */
.tpx-panes { display: grid; height: 100%; }
.tpx-pane {
  grid-area: 1 / 1; display: flex; flex-direction: column;
  gap: clamp(22px, 2.4vw, 36px); min-height: 100%; box-sizing: border-box;
  transition: opacity .18s ease;
}
.tpx-pane.off { visibility: hidden; opacity: 0; pointer-events: none; }
.tpx-pane-bot { margin-top: auto; }

.tpx-pane-top { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(20px, 2.4vw, 40px); align-items: center; }

.tpx-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8b9bb0;
}
.tpx-badge i {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  font: 800 15px/1 var(--sans); font-style: normal; color: #fff;
  background: color-mix(in srgb, var(--tc) 78%, transparent);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--tc) 95%, transparent);
}
.tpx-h {
  margin: 0 0 6px; font-size: clamp(28px, 2.9vw, 44px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.08; color: #fff;
}
.tpx-sub { margin: 0 0 18px; font-size: clamp(15px, 1.15vw, 17.5px); color: #b9c8da; }
.tpx-desc { margin: 0 0 22px; max-width: 46ch; font-size: clamp(14px, 1.02vw, 15.5px); line-height: 1.65; color: #93a3b8; }

.tpx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tpx-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px;
  font: 600 13.5px/1 var(--sans); color: #cfdcec;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035);
}
.tpx-chip svg { width: 17px; height: 17px; color: var(--tc); }

/* символ темы и декоративный график */
.tpx-art { display: flex; flex-direction: column; gap: 2px; color: var(--tc); }
.tpx-fx {
  font-size: clamp(26px, 3vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
  font-family: Cambria, "Times New Roman", Georgia, serif;
  color: color-mix(in srgb, var(--tc) 88%, #fff);
  text-shadow: 0 0 30px color-mix(in srgb, var(--tc) 55%, transparent);
}
.tpx-curve { display: block; width: 100%; height: auto; aspect-ratio: 320 / 190; max-height: 260px; }

/* ---------- нижняя часть: разделы и ремарка ---------- */
.tpx-pane-bot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .42fr);
  gap: clamp(18px, 2.2vw, 36px); padding: clamp(22px, 2.2vw, 32px);
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
}
.tpx-parts h4 { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.tpx-parts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 26px;
}
.tpx-parts li { position: relative; padding-left: 20px; font-size: 13.8px; line-height: 1.45; color: #a9b8cc; }
.tpx-parts li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--tc) 70%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent);
}
.tpx-note {
  position: relative; margin: 0; padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.8px; line-height: 1.6; color: #93a3b8;
}
.tpx-quote {
  display: block; margin-bottom: 2px; font-size: 30px; line-height: .6;
  color: color-mix(in srgb, var(--tc) 55%, transparent);
}

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .tpx-grid { grid-template-columns: minmax(0, 1fr); }
  .tpx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tpx-pane-top { grid-template-columns: minmax(0, 1fr); }
  .tpx-art { min-height: 0; }
  .tpx-pane-bot { grid-template-columns: minmax(0, 1fr); }
  .tpx-note { padding-left: 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
}
@media (max-width: 640px) {
  .tpx-list { grid-template-columns: minmax(0, 1fr); }
  .tpx-parts ul { grid-template-columns: minmax(0, 1fr); }
  /* одиннадцать пунктов с подписями — слишком плотно: подписи скрываем,
     они всё равно повторяются в панели выбранной темы */
  .tpx-txt i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tpx-item, .tpx-chev { transition: none; }
}
