/* Диагностика ogefizika.ru. Токены и базовые компоненты — в base.css. */

body { padding: 0 16px 48px; }

/* Тёмно-синяя шапка с сеткой; карточка наезжает на неё */
.band { margin: 0 -16px; padding: 18px 16px 96px; border-bottom: 1px solid var(--navy-line); }
.band-in { max-width: 600px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; }
.band .label { color: var(--on-navy-2); font-size: 12px; }

.card {
  position: relative; max-width: 600px; margin: -72px auto 0;
  padding: 32px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 560px) { .card { padding: 40px 40px; } }

h1 { font-size: clamp(28px, 6.4vw, 38px); margin: 10px 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin-bottom: 10px; }

.eyebrow { font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
#intro > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; }

.notes { list-style: none; margin: 24px 0 32px; padding: 0; border-top: 1px solid var(--line); }
.notes li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; }
.notes li::before { content: '—'; position: absolute; left: 0; font-family: var(--font-mono); color: var(--accent); }

#start { width: 100%; }
@media (min-width: 560px) { #start { width: auto; min-width: 220px; } }

.hint { min-height: 1.5em; margin: 10px 0; color: var(--bad); font-size: 15px; }

/* Прогресс из 16 делений */
.progress {
  position: relative; height: 8px; margin-bottom: 20px;
  background: var(--surface-2); overflow: hidden;
}
.progress::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(6.25% - 2px), var(--surface) calc(6.25% - 2px) 6.25%);
}
#progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 240ms var(--ease); }

.task-text { margin: 14px 0 22px; font-size: 19px; line-height: 1.6; }

.option {
  display: flex; gap: 12px; align-items: flex-start;
  min-height: 52px; padding: 14px 16px; margin-bottom: 8px;
  border: 1px solid var(--field); border-radius: var(--radius);
  cursor: pointer; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.option:hover { border-color: var(--text-2); }
.option input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.number-input { display: flex; gap: 12px; align-items: center; }
.number-input input { font-family: var(--font-mono); font-weight: 500; font-size: 20px; }
.number-input span { font-family: var(--font-mono); color: var(--text-2); white-space: nowrap; }

.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* Результат */
#score { font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(44px, 11vw, 60px); letter-spacing: -0.03em; margin: 8px 0 6px; }
#result > p:not(.eyebrow) { color: var(--text-2); }
#result > p strong { color: var(--text); font-weight: 600; }

.sections { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.section {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0 14px 16px; border-bottom: 1px solid var(--line);
  border-left: 3px solid; font-size: 16px;
}
.section .meta { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); white-space: nowrap; }
.section.strong { border-left-color: var(--good); }
.section.gaps { border-left-color: var(--warn); }
.section.weak { border-left-color: var(--bad); }

.cta { margin-top: 32px; padding: 24px; background: var(--surface-2); border-radius: var(--radius); }
.cta p { color: var(--text-2); }
.tg-button { margin-top: 18px; width: 100%; }
@media (min-width: 560px) { .tg-button { width: auto; } }

#lead-form { display: grid; gap: 12px; margin-top: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.trap { position: absolute; left: -9999px; }

.review { margin-top: 24px; color: var(--text-2); }
.review summary { list-style: none; cursor: pointer; font-weight: 500; color: var(--text); min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.review summary::-webkit-details-marker { display: none; }
.review summary::after { content: '+'; font: 500 22px/1 var(--font-mono); color: var(--accent); transition: transform var(--t) var(--ease); }
.review[open] summary::after { transform: rotate(45deg); }
.review ul { list-style: none; padding: 0; margin: 8px 0 0; font-family: var(--font-mono); font-size: 14px; }
.review li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.review .ok { color: var(--good); }
.review .bad { color: var(--bad); }

@media (max-width: 480px) {
  .actions { flex-direction: column-reverse; }
  .actions button { width: 100%; }
}

/* Страницы политики и согласия */
.doc { line-height: 1.65; }
.doc h1 { font-size: 30px; }
.doc h2 { margin: 28px 0 8px; font-size: 20px; }
.card.doc { margin-top: 32px; }
