/* Фирменный стиль агентства (тот же, что в презентации "обучение.html" и
   welcome-баннере бота): Unbounded для заголовков, JetBrains Mono для
   разряженных капслок-лейблов, Inter для основного текста. Тема всегда
   тёмная — не подстраивается под системную тему пользователя. */
:root {
  --bg: #000000;
  --secondary-bg: #0a0a0a;
  --text: #ffffff;
  --body-text: #b0b0b0;
  --hint: #888888;
  --link: #ffffff;
  --button: #ffffff;
  --button-text: #000000;
  --border: #1d1d1d;
  --danger: #ff5555;
  --success: #4ade80;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  /* Та же сетка, что на фоне слайдов презентации (.hero-grid) — просто
     подобран более мелкий шаг под ширину телефона. */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  padding: 20px 16px 10px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--hint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.app-header h1 {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

#tab-content {
  flex: 1;
  padding: 8px 16px 150px;
  overflow-y: auto;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px 4px;
  background: none;
  border: none;
  color: var(--hint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.tab-btn span {
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--text);
}

.tab-btn .icon {
  font-size: 38px;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.6;
}

.tab-btn.active .icon {
  filter: none;
  opacity: 1;
}

.card {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.card.bright {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.card.bright .section-hint { color: #444444; }

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 12px 0 10px;
}

.section-hint {
  color: var(--body-text);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.eyebrow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--hint);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist .checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
  font-weight: 700;
}

.checklist li.done .checkbox {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}

.checklist li.done .label {
  color: var(--hint);
  text-decoration: line-through;
}

.counts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.count-pill {
  min-width: 0;
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
}

.count-pill .n {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 900;
}

/* Суммы длиннее коротких счётчиков объектов — уменьшаем, чтобы не наезжали
   друг на друга в 3-колоночной сетке. */
.count-pill.money .n {
  font-size: 15px;
  line-height: 1.2;
}

.count-pill .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hint);
  margin-top: 4px;
  line-height: 1.3;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 6px;
}

.field input, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--secondary-bg);
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--button);
  color: var(--button-text);
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.btn-primary:disabled {
  opacity: 0.4;
}

.form-status {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.contact-block {
  white-space: pre-line;
  line-height: 1.55;
}

.contact-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 12px 0 8px;
}

.progress-fill {
  height: 100%;
  background: var(--text);
  transition: width 0.3s ease;
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hint);
}

.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.video-list li:last-child {
  border-bottom: none;
}

.video-list li {
  color: var(--text);
  font-weight: 500;
}

.video-list a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.video-list a:active {
  opacity: 0.7;
}

.coming-soon {
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px dashed var(--success);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.5;
}

.coming-soon-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--success);
  margin-right: 8px;
}

.finance-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: 40px;
  font-weight: 900;
  margin-top: 4px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  margin-top: 14px;
}

.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  width: 100%;
  background: var(--text);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}

.chart-labels {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.chart-labels div {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--hint);
}

.close-hint {
  text-align: center;
  color: var(--hint);
  font-size: 13px;
  margin-top: 16px;
}

/* Разворачиваемые карточки (пак материалов для развития) */
.details-card summary {
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.details-card summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--hint);
  margin-left: 12px;
}

.details-card[open] summary::after {
  content: '–';
}

.details-card .details-body {
  margin-top: 14px;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  color: var(--text);
  text-decoration: none;
  display: block;
}

.resource-list a:active {
  opacity: 0.7;
}

.resource-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.resource-desc {
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.4;
}

.resource-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hint);
  margin-top: 5px;
}

.fact-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row .fact-text {
  color: var(--body-text);
}

.fact-row .fact-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  font-weight: 500;
}

.skeleton-list {
  list-style: none;
  counter-reset: step;
  margin: 10px 0 0;
  padding: 0;
}

.skeleton-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.5;
}

.skeleton-list li:last-child {
  border-bottom: none;
}

.skeleton-list li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--hint);
  margin-top: 1px;
}

.plan-week {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.plan-week:last-child {
  border-bottom: none;
}

.plan-week .week-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 4px;
}

.plan-week .week-what {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.plan-week .week-check {
  font-size: 12px;
  color: var(--body-text);
}
