/* NeuroDevel — компоненты: тарифы, переключатель периодов, карточки направлений с баннерами */

/* ---------- Механика платформы ---------- */
.mech { margin-bottom: 56px; }
.mech .card { padding-top: 30px; }

/* ---------- Переключатель периодов ---------- */
.period-bar { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 36px; }
.period-switch {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(7, 10, 19, .8);
}
.period-btn {
  padding: 10px 20px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
  font-weight: 650; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s;
}
.period-btn:hover { color: #fff; background: var(--surface-2); }
.period-btn[aria-pressed="true"] { background: var(--grad); color: #04101c; box-shadow: 0 4px 18px rgba(0, 229, 255, .25); }
.period-hint { font-size: .86rem; color: var(--muted); min-height: 1.3em; text-align: center; }

/* ---------- Тарифные карточки ---------- */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 24px 20px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.plan--featured { border-color: var(--line-strong); background: linear-gradient(170deg, rgba(0, 229, 255, .07), rgba(138, 43, 226, .12)); box-shadow: 0 0 0 1px rgba(138, 43, 226, .2), 0 0 50px rgba(138, 43, 226, .14); }
.plan-badge {
  position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 999px;
  font: 700 .66rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--grad-hot); color: #fff;
}
.plan-name { font: 700 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.plan-title { font-size: 1rem; font-weight: 600; color: #C3CBE4; margin-bottom: 18px; min-height: 2.6em; line-height: 1.3; }
.plan-price { font: 800 1.9rem/1.1 var(--mono); letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan-period { font-size: .84rem; color: var(--muted); margin: 4px 0 2px; }
.plan-meta { min-height: 2.9em; font-size: .8rem; margin-bottom: 14px; }
.plan-save { display: block; color: var(--ok); font-weight: 600; }
.plan-permonth { display: block; color: var(--muted); }
.plan-features { display: grid; gap: 10px; margin-bottom: 22px; flex: 1; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-features li { position: relative; padding-left: 20px; font-size: .86rem; line-height: 1.45; color: #C3CBE4; }
.plan-features li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.price-flash { animation: priceFlash .35s ease; }
@keyframes priceFlash { 0% { color: var(--cyan); transform: translateY(-3px); opacity: .4; } 100% { color: #fff; transform: none; opacity: 1; } }

/* ---------- Таблица пакетов по срокам ---------- */
.period-table-wrap { margin-top: 56px; }
.period-table-wrap h3 { margin-bottom: 6px; }
.tbl-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.period-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.period-table th, .period-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.period-table tr:last-child td { border-bottom: 0; }
.period-table thead th { font: 600 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); }
.period-table tbody th { font-weight: 700; white-space: nowrap; }
.period-table td b { font: 700 1.05rem/1.2 var(--mono); }
.period-table td .save { display: block; font-size: .8rem; color: var(--ok); }
.period-table tr.is-active { background: rgba(0, 229, 255, .06); }
.period-table td:last-child, .period-table th:last-child { text-align: right; }
.cell-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.price-notes { margin-top: 28px; display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }

/* ---------- Направления с баннерами ---------- */
.direction { padding: 72px 0; }
.direction-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.direction--rev .direction-row { grid-template-columns: 1fr 1.25fr; }
.direction--rev .direction-media { order: 2; }
.direction-media {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(138, 43, 226, .14), 0 30px 80px rgba(0, 0, 0, .5), 0 0 70px rgba(0, 229, 255, .1);
  background: var(--bg-2);
}
.direction-media img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.direction-text h2 { margin-bottom: 18px; }
.direction-text p { color: #C3CBE4; }
.spec-list { margin: 26px 0 28px; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-list li span:first-child { font: 600 .74rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.spec-list li span:last-child { color: #C3CBE4; }

/* ---------- R&D ---------- */
.rd-card .card-ico { font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--cyan); }

/* ---------- Адаптив ---------- */
@media (max-width: 1279px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans .plan:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .direction-row, .direction--rev .direction-row { grid-template-columns: 1fr; gap: 30px; }
  .direction--rev .direction-media { order: 0; }
  .direction { padding: 44px 0; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .period-btn { padding: 9px 14px; font-size: .86rem; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
}
