* { box-sizing: border-box; }
:root {
  --kyt-border: #6a664d;
  --kyt-ink: #181818;
  --kyt-muted: #4e4a39;
  --kyt-surface: #fffbe9;
  --kyt-surface-elev: #f1ecd0;
  --kyt-accent: #9a0000;
}
body {
  margin: 0;
  background: #f6f2da;
  color: #181818;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.3;
}
a { color: #003f7a; }
a:hover { background: #f4df00; }
.skip-to-content { position: absolute; left: -9999px; }
.skip-to-content:focus { left: 8px; top: 8px; background: #fff; padding: 4px 8px; z-index: 10; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}
.site-nav-rail {
  flex: 0 0 156px;
  background: #efe8c7;
  border-right: 2px solid var(--kyt-border);
  padding: 14px 10px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  box-sizing: border-box;
}
.site-nav-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-rail-link {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--kyt-border);
  background: #fffbe9;
  color: #181818;
  padding: 8px 6px;
  font-size: 15px;
  font-weight: 700;
}
.nav-rail-link:hover { background: #f4df00; }
.nav-rail-link[aria-current="page"] {
  background: #ebe4c0;
  box-shadow: inset 0 0 0 1px var(--kyt-border);
}
.site-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.site-brand-header {
  flex: 0 0 auto;
  text-align: center;
  padding: 18px 16px 16px;
  border-bottom: 2px solid var(--kyt-border);
  background: #efe8c7;
}
.site-brand-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #181818;
}
/* Пустой слот под шапкой (под будущий баннер / сеть) */
.site-ad-strip {
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px dashed #8a8669;
  background: #f3eed5;
  min-height: 72px;
}
.pwa-install-btn, .theme-toggle {
  text-decoration: none;
  border: 1px solid #6a664d;
  background: #fffbe9;
  color: #181818;
  padding: 3px 9px;
  font-size: 15px;
}
.container {
  max-width: 1080px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 12px 20px;
  background: #fffbe9;
  border-left: 2px solid #6a664d;
  border-right: 2px solid #6a664d;
  min-height: calc(100vh - 100px);
}
section, article {
  border: 2px solid #6a664d;
  background: #fffdf2;
  margin-bottom: 12px;
  padding: 10px;
}
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.15; }
h1 { font-size: 32px; text-transform: uppercase; }
h2 { font-size: 22px; }
p { margin: 0 0 8px; }
button, [role="button"], .btn {
  border: 2px solid #6a664d;
  background: #eee7c5;
  color: #000;
  padding: 6px 10px;
  font-weight: 700;
  text-decoration: none;
}
input, select, textarea {
  width: 100%;
  border: 2px solid #6a664d;
  background: #fff;
  padding: 7px;
  font-family: inherit;
  font-size: 16px;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  max-width: none;
  display: inline-block;
  vertical-align: middle;
  padding: 0;
  margin: 0;
  accent-color: #003f7a;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  text-align: left;
  line-height: 1.35;
  font-size: 15px;
}
.consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 3px;
}
.consent-label span {
  flex: 1;
  min-width: 0;
}
.consent-label a { word-break: break-word; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #6a664d; padding: 6px; vertical-align: top; }
th { background: #ebe4c0; text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.legacy-hide { display: none !important; }
.new-home-hero { margin-top: 6px; }
.lab-badge {
  display: inline-block;
  border: 2px dashed #9a0000;
  color: #9a0000;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-right: 6px;
  margin-bottom: 6px;
  background: #fff;
}
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.test-card { display: block; text-decoration: none; color: inherit; border: 2px solid #6a664d; background: #fcf8e3; padding: 8px; }
.test-card h3 { color: #003f7a; font-size: 20px; }
.test-card-footer { display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 13px; color: #444; }
.arrow { font-weight: 700; }
.methodology-note { border-left: 4px solid #005d2d; background: #f1ecd0; padding: 6px 8px; }
.result-type-badge { background: #f7f1d8; border: 2px solid #6a664d; padding: 8px; }

.lab-theme-result .dim-item {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42, 38, 24, 0.1);
}
.lab-theme-result .dim-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.lab-theme-result .dim-level {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: #e8f0e4;
  color: #1a5c2e;
  margin-left: 0.35rem;
}
.lab-theme-result .dim-score {
  font-size: 0.85rem;
  color: var(--kyt-muted);
  margin-left: 0.25rem;
}
.lab-theme-result .dim-tip {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334155;
}
.lab-theme-result .neo120-facet-group {
  margin-bottom: 1.25rem;
}
.lab-theme-result .neo120-factor-heading {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.lab-theme-result .neo120-highlights {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.lab-theme-result .dim-item--facet {
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid rgba(26, 92, 46, 0.25);
}
.lab-theme-result .scale-block-title--sub {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}
.lab-theme-result .scale-hbars--neo-facets {
  margin-bottom: 0.5rem;
}

/* ── Страница результата: шкалы (гистограмма, сегменты, диск, «деревья») ── */
.lab-theme-result .scale-viz-section {
  margin: 1rem 0 1.25rem;
  padding: 14px 14px 16px;
  border: 2px solid #5c582f;
  border-radius: 6px;
  background: linear-gradient(165deg, #fffef8 0%, #fff4d6 55%, #fcefc4 100%);
  box-shadow: 0 4px 14px rgba(60, 50, 20, 0.12);
}
.lab-theme-result .scale-block-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}
.lab-theme-result .scale-viz-section .scale-block-title:not(:first-child) {
  margin-top: 14px;
}
.lab-theme-result .scale-block-title--sub {
  margin: 12px 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
}
.lab-theme-result .scale-subtitle {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--kyt-muted);
}
.lab-theme-result .scale-viz-section .scores-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.lab-theme-result .scale-hbars--scores-fallback {
  margin-top: 6px;
}
.lab-theme-result .scale-hbars--scores-fallback .scale-hbar-track {
  height: 22px;
  border-radius: 11px;
  border-width: 2px;
  background: linear-gradient(180deg, #f2ead8, #e0d6be);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.lab-theme-result .scale-hbars--scores-fallback .scale-hbar-fill {
  border-radius: 9px;
  min-width: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 10px rgba(0, 0, 0, 0.12);
}
/* Леонгард–Шмишек: выраженные акцентуации — только заголовок шкалы и описание */
.lab-theme-result .shmishek-badge-list {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}
.lab-theme-result .shmishek-accent-blocks {
  margin: 0;
}
.lab-theme-result .shmishek-accent-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42, 38, 24, 0.12);
}
.lab-theme-result .shmishek-accent-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.lab-theme-result .shmishek-accent-name {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: #0f172a;
}
.lab-theme-result .shmishek-accent-desc {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1e293b;
}
.lab-theme-result .scale-seg-wrap {
  position: relative;
  margin: 8px 0 6px;
}
.lab-theme-result .scale-seg-track {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #2a2618;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.lab-theme-result .scale-seg {
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  filter: saturate(1.15);
}
.lab-theme-result .scale-seg:last-child {
  border-right: none;
}
.lab-theme-result .scale-seg-marker {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 0;
  border-left: 4px solid #0f172a;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 3px #fffef8, 0 0 0 5px #003f7a;
  border-radius: 1px;
  z-index: 2;
}
.lab-theme-result .scale-seg-wrap--signed {
  padding-bottom: 2px;
}
.lab-theme-result .scale-seg-zero {
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: rgba(15, 23, 42, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.lab-theme-result .scale-signed-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kyt-muted);
  line-height: 1.2;
}
.lab-theme-result .scale-subtitle--detail {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.lab-theme-result .scale-viz-caption {
  margin: 10px 0 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 600;
}
.lab-theme-result .scale-range-hint {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--kyt-muted);
}
.lab-theme-result .scale-zone-legend-title {
  margin: 12px 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.lab-theme-result .scale-zone-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1e293b;
}
.lab-theme-result .scale-zone-legend li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.lab-theme-result .scale-zone-sample {
  flex-shrink: 0;
  width: 18px;
  height: 14px;
  margin-top: 3px;
  border: 1px solid #2a2618;
  border-radius: 2px;
  box-sizing: border-box;
}
.lab-theme-result .scale-donut-wrap {
  position: relative;
  width: 160px;
  max-width: 100%;
  margin: 8px auto 4px;
}
.lab-theme-result .scale-donut-svg {
  display: block;
  width: 100%;
  height: auto;
}
.lab-theme-result .scale-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  pointer-events: none;
}
.lab-theme-result .scale-donut-slash {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;
}
.lab-theme-result .scale-hbars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-theme-result .scale-hbars--many .scale-hbar-name {
  font-size: 0.88rem;
}
.lab-theme-result .scale-hbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
  gap: 8px 10px;
  align-items: center;
}
.lab-theme-result .scale-hbar-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}
.lab-theme-result .scale-hbar-track {
  height: 16px;
  background: linear-gradient(180deg, #e4dcc4, #d8cfba);
  border-radius: 8px;
  border: 1px solid #2a2618;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.lab-theme-result .scale-hbar-fill {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #22c55e 0%, #0ea5e9 45%, #6366f1 100%);
  min-width: 0;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.35);
}
.lab-theme-result .scale-hbars--perfectionism .scale-hbar-track {
  height: 22px;
  border-radius: 11px;
  border-width: 2px;
  background: linear-gradient(180deg, #f2ead8, #e0d6be);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.lab-theme-result .scale-hbars--perfectionism .scale-hbar-fill {
  border-radius: 9px;
  min-width: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 10px rgba(0, 0, 0, 0.14);
}
.lab-theme-result .scale-hbar-num {
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--kyt-muted);
}
.lab-theme-result .gauge-section {
  text-align: center;
  margin: 1rem 0;
}
.lab-theme-result .gauge-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.lab-theme-result .gauge-max {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.65;
}
.lab-theme-result .gauge-bar {
  width: 100%;
  height: 18px;
  background: #d6d0b8;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.65rem 0;
  border: 1px solid #3f3c30;
}
.lab-theme-result .gauge-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.55s ease;
}
.lab-theme-result .gauge-level {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
@media (max-width: 520px) {
  .lab-theme-result .scale-hbar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .lab-theme-result .scale-hbar-num {
    justify-self: start;
  }
}
.action-bridge, .soft-cta, .free-mini-insight, .share-section {
  background: #f7f1d8;
  border: 2px solid #6a664d;
  padding: 8px;
  margin-top: 10px;
}
.soft-cta-btn, .profile-cta {
  display: inline-block; margin-right: 8px; margin-top: 6px;
}
.dashboard-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px 24px;
}
.dashboard-section .disclaimer { font-size: 14px; color: #4e4a39; line-height: 1.35; }
/* Прогресс */
.dash-progress-wrap {
  margin-bottom: 20px;
  padding: 14px 14px 16px;
  border: 2px solid var(--kyt-border);
  background: #fcf8e3;
}
.dash-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}
.dash-progress-pct { font-size: 15px; color: #4e4a39; font-weight: 700; }
.dash-progress-bar {
  height: 10px;
  border: 1px solid var(--kyt-border);
  background: #fff;
  overflow: hidden;
}
.dash-progress-fill {
  height: 100%;
  background: #005d2d;
  transition: width 0.35s ease;
}
/* Категории */
.dash-acc {
  margin-bottom: 14px;
  border: 2px solid var(--kyt-border);
  background: #fffdf2;
}
.dashboard-section .dash-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #ebe4c0;
  border: none;
  border-bottom: 2px solid var(--kyt-border);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  user-select: none;
}
.dash-acc-title { flex: 1; min-width: 0; line-height: 1.2; }
.dash-acc-count {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border: 2px solid var(--kyt-border);
  background: #fffbe9;
  white-space: nowrap;
}
.dashboard-section .dash-acc-body {
  padding: 14px;
  border: none;
  border-top: 0;
  display: none;
}
.dashboard-section .dash-acc-open .dash-acc-body { display: block; }
.dash-block-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4e4a39;
}
.dash-acc-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.dash-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border: 2px solid var(--kyt-border);
  background: #fffbe9;
  text-decoration: none;
  color: #181818;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.dash-pill:hover {
  background: #f4df00;
  box-shadow: inset 0 0 0 1px var(--kyt-border);
}
.dash-pill-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #003f7a;
}
.dash-pill-result {
  display: block;
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 10px;
  border: 1px dashed #6a664d;
  background: #f1ecd0;
  color: #181818;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dash-pill-link {
  font-size: 14px;
  font-weight: 700;
  color: #003f7a;
  margin-top: 2px;
}
.dash-acc-unpassed { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #8a8669; }
.dash-acc-unpassed-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c5845;
}
.dash-acc-unpassed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}
@media (max-width: 720px) {
  .dash-acc-unpassed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 440px) {
  .dash-acc-unpassed-list {
    grid-template-columns: 1fr;
  }
}
.dash-acc-unpassed-list li {
  margin: 0;
  min-width: 0;
  display: flex;
}
.dash-unpassed-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 6.75rem;
  height: 6.75rem;
  max-height: 6.75rem;
  padding: 10px 12px;
  border: 2px solid var(--kyt-border);
  background: #fffbe9;
  text-decoration: none;
  color: #003f7a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
}
.dash-unpassed-item:hover { background: #f4df00; }
.dash-unpassed-item-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
/* Пустое состояние */
.dash-empty { text-align: center; padding: 12px 8px 24px; }
.dash-empty h3 { margin-bottom: 10px; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}
.dash-empty-hint {
  margin: 14px auto 0;
  font-size: 14px;
  color: #4e4a39;
  line-height: 1.35;
  max-width: 36rem;
}
.dash-card.dash-card-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 2px solid var(--kyt-border);
  background: #fcf8e3;
  text-decoration: none;
  color: #181818;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-weight: 700;
  font-size: 17px;
  color: #003f7a;
}
.dash-card-empty .dash-card-header::after {
  content: "\2192";
  flex-shrink: 0;
  font-size: 1.15rem;
  color: #4e4a39;
  font-weight: 700;
  line-height: 1;
}
.dash-card-empty:hover { background: #f4df00; }
.dash-card-empty:focus-visible {
  outline: 3px solid #003f7a;
  outline-offset: 2px;
}
.profile-card { background: #fcf8e3; border: 2px solid #6a664d; }
.profile-menu-item { display: flex; justify-content: space-between; padding: 8px; border-bottom: 1px dashed #6a664d; text-decoration: none; color: inherit; }
.profile-avatar-lg {
  width: 56px;
  height: 56px;
  border: 2px solid #6a664d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-sizing: border-box;
}
.profile-card-header-dash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.profile-dash-avatar-col {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar-lg--dash {
  width: 72px;
  height: 72px;
  font-size: 1.65rem;
}
.profile-avatar-lg--emoji {
  font-size: 2rem;
  line-height: 1;
}
.profile-avatar-picker--dash {
  font-size: 14px;
  max-width: none;
  margin: 0;
}
.profile-avatar-picker-sum--icon {
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: block;
  border-radius: 50%;
  line-height: 0;
}
.profile-avatar-picker-sum--icon::-webkit-details-marker {
  display: none;
}
.profile-avatar-picker-sum--icon::marker {
  content: "";
}
.profile-avatar-picker--dash[open] .profile-avatar-picker-sum--icon {
  outline: 3px solid #003f7a;
  outline-offset: 2px;
}
.profile-avatar-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 280px;
  max-width: min(380px, calc(100vw - 2rem));
  padding: 12px 14px;
  border: 2px solid var(--kyt-border);
  background: #fffdf2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
}
.profile-avatar-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--kyt-muted);
  line-height: 1.35;
  text-align: left;
}
.profile-avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
  gap: 6px;
}
.profile-avatar-opt {
  width: auto;
  min-width: 0;
  padding: 6px 4px;
  font-size: 1.15rem;
  line-height: 1.2;
  border: 2px solid var(--kyt-border);
  background: #fffbe9;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.profile-avatar-opt:hover {
  background: #f4df00;
}
.profile-dash-identity-col {
  min-width: 0;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.profile-cube-trees-section {
  margin: 14px 0 6px;
  padding: 12px 10px 14px;
  border: 2px dashed #8a8669;
  background: #fcf8e3;
}
.profile-cube-trees-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.profile-cube-legend {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--kyt-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  line-height: 1.35;
}
.profile-cube-sample {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid #3f3c30;
  vertical-align: middle;
}
.profile-cube-sample--done { background: #16a34a; }
.profile-cube-sample--todo { background: #dc2626; }
.profile-cube-legend-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--kyt-muted);
  flex: 1 1 100%;
}
.profile-category-trees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 12px;
  align-items: start;
}
.profile-cube-tree-panel {
  border: 2px solid var(--kyt-border);
  background: #fffdf2;
  padding: 10px 10px 11px;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.profile-cube-tree-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 700;
}
.profile-cube-tree-title {
  min-width: 0;
  line-height: 1.3;
  font-size: 15px;
}
.profile-cube-tree-count {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border: 2px solid var(--kyt-border);
  background: #fffbe9;
  white-space: nowrap;
}
.profile-cube-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-content: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
}
.profile-cube {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  box-sizing: border-box;
  border: 1px solid #3f3c30;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}
.profile-cube--done {
  background: #16a34a;
  box-shadow: inset 0 0 0 1px #14532d;
}
.profile-cube--todo {
  background: #dc2626;
  box-shadow: inset 0 0 0 1px #7f1d1d;
}
/* Перебить lab a:hover { background: #f4df00 } — кубики остаются зелёными/красными */
.profile-cube.profile-cube--done:hover,
.profile-cube.profile-cube--done:focus-visible {
  background: #16a34a;
  box-shadow: inset 0 0 0 1px #14532d;
}
.profile-cube.profile-cube--todo:hover,
.profile-cube.profile-cube--todo:focus-visible {
  background: #dc2626;
  box-shadow: inset 0 0 0 1px #7f1d1d;
}
.profile-cube:focus-visible {
  outline: 3px solid #003f7a;
  outline-offset: 2px;
}
.profile-dash-embedded {
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 0 2px 8px;
  border: none;
  background: transparent;
}
.profile-dash-embedded .dash-progress-wrap { margin-top: 4px; }
.profile-dash-catalog-cta {
  margin: 10px 0 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.profile-dash-catalog-cta a { text-decoration: none; }
.profile-dash-catalog-cta a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .profile-card-header-dash {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-dash-identity-col {
    width: 100%;
    align-items: center;
  }
  .profile-dash-identity-col .profile-name-row {
    justify-content: center;
  }
  .profile-avatar-pop {
    left: 50%;
    transform: translateX(-50%);
  }
  .profile-avatar-hint {
    text-align: center;
  }
}
.quiz-wrapper {
  width: 640px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  min-width: 0;
}
.quiz-wrapper #quiz-container {
  border: 2px solid #6a664d;
  background: #fffdf2;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#quiz-question {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.question-text {
  font-size: 24px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  white-space: pre-line;
}
.options-binary { display: grid; gap: 8px; }
.quiz-scale-hint {
  font-size: 15px;
  margin: 0 0 12px;
  line-height: 1.4;
}
.likert-end-label--mid {
  text-align: center;
  flex: 1;
  max-width: 34%;
}
.likert-scale--horizontal {
  display: grid;
  grid-template-columns: repeat(var(--likert-cols, 5), minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.likert-scale--horizontal .likert-btn {
  width: 100%;
  min-width: 0;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
.likert-scale--per-button {
  align-items: stretch;
}
.likert-scale--per-button .likert-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.likert-scale--per-button .likert-col-label {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: #3a3729;
  word-break: break-word;
  hyphens: auto;
}
.likert-scale--yesno {
  max-width: 28rem;
  margin-inline: auto;
}
.likert-scale--yesno .likert-btn--text {
  padding: 12px 10px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.likert-scale--text-buttons .likert-btn--text {
  padding: 12px 6px;
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}
.likert-scale--text-buttons[style*="--likert-cols:5"] .likert-btn--text {
  font-size: 12px;
  padding: 10px 4px;
}
.likert-end-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
  color: #3a3729;
}
.likert-end-label {
  flex: 0 1 auto;
  max-width: 48%;
  line-height: 1.25;
}
.likert-end-label--left { text-align: left; }
.likert-end-label--right { text-align: right; }
.option-btn, .likert-option { width: 100%; text-align: left; }
.option-btn.selected, .likert-btn.selected, .likert-option.selected { background: #f4df00; }
.footer-bar { min-height: auto; border-top: 2px solid #6a664d; text-align: center; }
.cookie-banner, .ios-install-banner {
  position: fixed; bottom: 8px; left: 8px; right: 8px;
  background: #fffbe9; border: 2px solid #6a664d; padding: 8px; z-index: 20;
}
.cookie-actions { display: flex; gap: 8px; margin-top: 8px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.auth-tab.active { background: #f4df00; }
.layout-doc {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 12px 20px;
  background: #fffbe9;
  border-left: 2px solid #6a664d;
  border-right: 2px solid #6a664d;
  min-height: calc(100vh - 100px);
}
.layout-doc-main { min-width: 0; }
.layout-doc-aside { position: sticky; top: 8px; }
.ad-slot {
  border: 1px dashed #8a8669;
  background: #f3eed5;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c5845;
  font-size: 13px;
}
.ad-slot-label { opacity: 0.75; }
.ad-slot-inline { margin-top: 12px; min-height: 90px; }
.plain-list { margin: 0 0 8px; padding-left: 1.2rem; }
.plain-list li { margin-bottom: 4px; }
.home-link-list li { margin-bottom: 6px; }
.home-lead { font-size: 18px; }
.home-topics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.home-search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.home-search-form input { flex: 1; min-width: 200px; max-width: 420px; }
.test-intro-article h1 { text-transform: none; }
.test-intro-nav {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.test-intro-nav a { text-decoration: none; }
.test-intro-nav a:hover { text-decoration: underline; }
.test-intro-nav-sep { opacity: 0.5; }
.test-intro-hero {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.35);
  padding: 16px 18px 18px;
  margin-bottom: 20px;
}
.test-intro-hero-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: baseline;
  justify-content: space-between;
}
.test-intro-badge {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  opacity: 0.75;
  white-space: nowrap;
}
.test-intro-lead {
  font-size: 17px;
  line-height: 1.45;
  margin: 10px 0 14px;
  max-width: 46rem;
}
.test-intro-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.test-intro-fact {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 10px;
  min-width: 0;
}
.test-intro-fact dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.7;
  margin: 0 0 4px;
}
.test-intro-fact dd { margin: 0; font-size: 16px; font-weight: 700; }
.test-intro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.test-intro-result-link {
  font-size: 15px;
}
.test-intro-result-link.is-hidden { display: none; }
.test-intro-section { margin-bottom: 22px; }
.test-intro-section h2 { margin-top: 0; margin-bottom: 10px; }
.test-intro-list { margin: 0; padding-left: 1.2rem; }
.test-intro-list li + li { margin-top: 6px; }
.test-intro-result-lead {
  margin: 0 0 8px;
  font-size: 16px;
}
.test-intro-details {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0 14px;
  margin-bottom: 22px;
}
.test-intro-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.test-intro-details-body { padding-bottom: 14px; }
.test-intro-details-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 12px 0 6px;
}
.test-intro-methodology {
  font-size: 16px;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: pre-line;
  margin: 0;
}
.test-intro-caveats { color: #4e4a39; }
.test-intro-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 8px;
}
.test-intro-cta-wrap--bottom { margin-top: 8px; }
.test-intro-cta {
  display: inline-block;
  font-size: 22px;
  padding: 14px 32px;
  text-align: center;
  text-decoration: none;
}
.test-intro-cta--compact {
  font-size: 18px;
  padding: 12px 24px;
  width: 100%;
  max-width: 420px;
}
.test-intro-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(241, 236, 208, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
}
.test-intro-sticky-cta[hidden] { display: none !important; }
@media (max-width: 720px) {
  .test-intro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.method-version-note { font-size: 13px; color: #4e4a39; }
.test-run-back { margin: 0 0 8px; }
.small { font-size: 13px; }
.catalog-filter-form { margin-bottom: 8px; }
.catalog-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end;
  margin-bottom: 8px;
}
.catalog-filter-row label { font-size: 14px; }
.catalog-filter-row select { width: auto; min-width: 140px; }
.catalog-search-label { flex: 1; min-width: 220px; }
.catalog-search-label input { margin-top: 4px; }
.catalog-quick-links { font-size: 14px; margin: 0; }
.catalog-active-filter { border-left: 4px solid #005d2d; background: #f1ecd0; padding: 6px 8px; }
.table-wrap { overflow-x: auto; }
.catalog-table td:last-child { white-space: nowrap; }
.catalog-reset { align-self: center; font-size: 15px; }
.catalog-sort-th { white-space: nowrap; }
.catalog-sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.catalog-sort-link:hover { text-decoration: underline; }
.catalog-sort-th.is-sorted .catalog-sort-link { font-weight: 700; }
.catalog-sort-indicator::after { content: "↕"; opacity: 0.35; font-size: 12px; }
.catalog-sort-th.is-sorted.is-asc .catalog-sort-indicator::after { content: "↑"; opacity: 1; }
.catalog-sort-th.is-sorted.is-desc .catalog-sort-indicator::after { content: "↓"; opacity: 1; }
@media (max-width: 900px) {
  .layout-doc { grid-template-columns: 1fr; }
  .layout-doc-aside { position: static; order: -1; }
  .home-topics-two-col { grid-template-columns: 1fr; }
  .hero-grid, .test-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-shell {
    flex-direction: column;
  }
  .site-nav-rail {
    position: static;
    min-height: 0;
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--kyt-border);
    padding: 8px 10px;
  }
  .site-nav-rail-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .nav-rail-link {
    flex: 1 1 auto;
    min-width: 5.5rem;
    max-width: 11rem;
  }
  .site-brand-header {
    padding: 12px 10px 10px;
  }
  .site-brand-title {
    font-size: clamp(1.1rem, 4.2vw, 1.65rem);
  }
  .likert-scale--horizontal { gap: 4px; }
  .likert-scale--horizontal .likert-btn {
    padding-left: 2px;
    padding-right: 2px;
    font-size: 16px;
  }
  .likert-end-labels { font-size: 12px; gap: 8px; }
}
/* Legacy visual blocks from old design are explicitly hidden */
.gradient-hero,
.how-it-works,
.profile-preview,
.reg-banner,
.home-split,
.gradient-cta,
.hero-glass-card,
.profile-radar,
.pain-card-emoji {
  display: none !important;
}

/* ── Переключатель оформления: Классика ↔ Атлас (правый верхний угол) ── */
.design-theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 2px solid #8a8669;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(24, 24, 24, 0.35);
  background: linear-gradient(135deg, #f4df00 0%, #f4df00 48%, #7fa3c9 52%, #7fa3c9 100%);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.design-theme-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(24, 24, 24, 0.35);
}
.design-theme-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(24, 24, 24, 0.35);
}
html[data-design="atlas"] .design-theme-toggle {
  background: linear-gradient(135deg, #7fa3c9 0%, #7fa3c9 48%, #f4df00 52%, #f4df00 100%);
}
.design-switcher,
.design-switcher-btn {
  display: none !important;
}

/* ── Вариант 2: авторский современный дизайн ── */
html[data-design="editorial"] {
  --kyt-border: rgba(148, 163, 184, 0.3);
  --kyt-ink: #0f172a;
  --kyt-muted: #64748b;
  --kyt-surface: #ffffff;
  --kyt-surface-elev: #f8fafc;
  --kyt-accent: #7c3aed;
}
html[data-design="editorial"] body {
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.14), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 54%, #ffffff 100%);
  color: #172033;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}
html[data-design="editorial"] a { color: #4f46e5; }
html[data-design="editorial"] a:hover { background: transparent; color: #312e81; }
html[data-design="editorial"] .site-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
html[data-design="editorial"] .site-nav-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 0;
  width: 100%;
  padding: 12px clamp(14px, 4vw, 42px);
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-design="editorial"] .site-nav-rail-inner {
  max-width: 1180px;
  margin: 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
html[data-design="editorial"] .nav-rail-link {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 750;
}
html[data-design="editorial"] .nav-rail-link:hover,
html[data-design="editorial"] .nav-rail-link[aria-current="page"] {
  background: #eef2ff;
  color: #3730a3;
  box-shadow: none;
}
html[data-design="editorial"] .site-brand-header {
  border: none;
  background: transparent;
  padding: clamp(30px, 7vw, 76px) 18px 24px;
}
html[data-design="editorial"] .site-brand-title {
  max-width: 860px;
  margin: 0 auto;
  color: #111827;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-transform: none;
}
html[data-design="editorial"] .site-brand-title::after {
  content: "38 методик самоотчёта: проходи тесты быстро, сохраняй историю и возвращайся к результатам.";
  display: block;
  max-width: 700px;
  margin: 18px auto 0;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
html[data-design="editorial"] .design-switcher {
  margin-top: 22px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
html[data-design="editorial"] .design-switcher-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 13px;
}
html[data-design="editorial"] .design-switcher-btn.is-active {
  background: #111827;
  color: #fff;
  box-shadow: none;
}
html[data-design="editorial"] .site-ad-strip {
  max-width: 1080px;
  width: calc(100% - 32px);
  min-height: 64px;
  margin: 0 auto 18px;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}
html[data-design="editorial"] .container,
html[data-design="editorial"] .layout-doc {
  max-width: 1120px;
  border: none;
  background: transparent;
  padding: 14px 16px 36px;
  min-height: auto;
}
html[data-design="editorial"] .layout-doc {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
}
html[data-design="editorial"] section,
html[data-design="editorial"] article {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
html[data-design="editorial"] h1,
html[data-design="editorial"] h2,
html[data-design="editorial"] h3,
html[data-design="editorial"] h4 {
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.035em;
  text-transform: none;
}
html[data-design="editorial"] h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
html[data-design="editorial"] h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
html[data-design="editorial"] button,
html[data-design="editorial"] [role="button"],
html[data-design="editorial"] .btn {
  border: none;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  padding: 11px 18px;
  font-family: inherit;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
}
html[data-design="editorial"] button:hover,
html[data-design="editorial"] [role="button"]:hover,
html[data-design="editorial"] .btn:hover {
  background: #3730a3;
  color: #fff;
}
html[data-design="editorial"] input,
html[data-design="editorial"] select,
html[data-design="editorial"] textarea {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  padding: 11px 12px;
}
html[data-design="editorial"] .plain-list { padding-left: 1.05rem; }
html[data-design="editorial"] .home-lead {
  max-width: 780px;
  color: #334155;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
html[data-design="editorial"] .home-topics-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
html[data-design="editorial"] .plain-list li {
  margin-bottom: 8px;
}
html[data-design="editorial"] .catalog-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}
html[data-design="editorial"] th,
html[data-design="editorial"] td {
  border: none;
  background: #fff;
  padding: 12px;
}
html[data-design="editorial"] th {
  color: #64748b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html[data-design="editorial"] .catalog-table tbody tr {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
html[data-design="editorial"] .ad-slot {
  border: 1px dashed rgba(100, 116, 139, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  color: #64748b;
}
html[data-design="editorial"] .test-intro-cta {
  font-size: 20px;
  padding: 16px 34px;
}
html[data-design="editorial"] .quiz-wrapper #quiz-container {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}
html[data-design="editorial"] .question-text {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.25;
  text-align: center;
}
html[data-design="editorial"] .option-btn,
html[data-design="editorial"] .likert-option,
html[data-design="editorial"] .likert-btn {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
}
html[data-design="editorial"] .option-btn.selected,
html[data-design="editorial"] .likert-btn.selected,
html[data-design="editorial"] .likert-option.selected {
  background: #4f46e5;
  color: #fff;
}
html[data-design="editorial"] .footer-bar {
  border: none;
  background: transparent;
  color: #64748b;
}

/* ── Вариант 3: белый фон, чёрный текст, навигация табами ── */
html[data-design="minimal"] {
  --kyt-border: #111;
  --kyt-ink: #000;
  --kyt-muted: #444;
  --kyt-surface: #fff;
  --kyt-surface-elev: #fff;
  --kyt-accent: #000;
}
html[data-design="minimal"] body {
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
html[data-design="minimal"] a { color: #000; text-decoration: underline; }
html[data-design="minimal"] a:hover { background: transparent; color: #000; }
html[data-design="minimal"] .site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html[data-design="minimal"] .site-nav-rail {
  order: 2;
  position: sticky;
  top: 0;
  z-index: 30;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  padding: 0 16px;
  border: none;
  border-bottom: 1px solid #000;
  background: #fff;
}
html[data-design="minimal"] .site-nav-rail-inner {
  max-width: 1080px;
  margin: 0 auto;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
}
html[data-design="minimal"] .nav-rail-link {
  flex: 0 0 auto;
  border: none;
  border-right: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}
html[data-design="minimal"] .nav-rail-link:first-child { border-left: 1px solid #000; }
html[data-design="minimal"] .nav-rail-link:hover,
html[data-design="minimal"] .nav-rail-link[aria-current="page"] {
  background: #000;
  color: #fff;
  box-shadow: none;
}
html[data-design="minimal"] .site-main-column {
  order: 1;
  display: contents;
}
html[data-design="minimal"] .site-brand-header {
  order: 1;
  border: none;
  border-bottom: 1px solid #000;
  background: #fff;
  padding: 18px 16px;
  text-align: left;
}
html[data-design="minimal"] .site-brand-title {
  max-width: 1080px;
  margin: 0 auto;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: none;
}
html[data-design="minimal"] .design-switcher {
  max-width: 1080px;
  margin: 12px auto 0;
  justify-content: flex-start;
  gap: 0;
}
html[data-design="minimal"] .design-switcher-btn {
  border: 1px solid #000;
  border-right: none;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 7px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
html[data-design="minimal"] .design-switcher-btn:last-child { border-right: 1px solid #000; }
html[data-design="minimal"] .design-switcher-btn.is-active {
  background: #000;
  color: #fff;
  box-shadow: none;
}
html[data-design="minimal"] .site-ad-strip {
  order: 3;
  min-height: 48px;
  border: none;
  border-bottom: 1px solid #000;
  background: #fff;
}
html[data-design="minimal"] main,
html[data-design="minimal"] .container,
html[data-design="minimal"] .layout-doc {
  order: 4;
}
html[data-design="minimal"] .container,
html[data-design="minimal"] .layout-doc {
  max-width: 1080px;
  border: none;
  background: #fff;
  padding: 18px 16px 32px;
  min-height: auto;
}
html[data-design="minimal"] .layout-doc {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
html[data-design="minimal"] .layout-doc-aside {
  position: static;
  order: 2;
}
html[data-design="minimal"] section,
html[data-design="minimal"] article {
  border: none;
  border-bottom: 1px solid #000;
  background: #fff;
  padding: 18px 0;
  margin-bottom: 0;
}
html[data-design="minimal"] h1,
html[data-design="minimal"] h2,
html[data-design="minimal"] h3,
html[data-design="minimal"] h4 {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.03em;
  text-transform: none;
}
html[data-design="minimal"] h1 { font-size: clamp(2rem, 5vw, 4rem); }
html[data-design="minimal"] h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
html[data-design="minimal"] button,
html[data-design="minimal"] [role="button"],
html[data-design="minimal"] .btn {
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 9px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  box-shadow: none;
}
html[data-design="minimal"] button:hover,
html[data-design="minimal"] [role="button"]:hover,
html[data-design="minimal"] .btn:hover {
  background: #000;
  color: #fff;
}
html[data-design="minimal"] input,
html[data-design="minimal"] select,
html[data-design="minimal"] textarea {
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}
html[data-design="minimal"] th,
html[data-design="minimal"] td {
  border: 1px solid #000;
  background: #fff;
  color: #000;
}
html[data-design="minimal"] th { background: #fff; }
html[data-design="minimal"] .ad-slot {
  border: 1px solid #000;
  background: #fff;
  color: #000;
}
html[data-design="minimal"] .catalog-active-filter,
html[data-design="minimal"] .methodology-note,
html[data-design="minimal"] .result-type-badge {
  border: 1px solid #000;
  border-left-width: 4px;
  background: #fff;
}
html[data-design="minimal"] .quiz-wrapper #quiz-container {
  border: 1px solid #000;
  background: #fff;
}
html[data-design="minimal"] .question-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
}
html[data-design="minimal"] .option-btn.selected,
html[data-design="minimal"] .likert-btn.selected,
html[data-design="minimal"] .likert-option.selected {
  background: #000;
  color: #fff;
}
html[data-design="minimal"] .footer-bar {
  order: 5;
  border: none;
  border-top: 1px solid #000;
  background: #fff;
}

/* ── Вариант 4: Ночь — тёмный неоновый интерфейс ── */
html[data-design="noir"] {
  --kyt-border: rgba(148, 163, 184, 0.2);
  --kyt-ink: #f8fafc;
  --kyt-muted: #94a3b8;
  --kyt-surface: #101624;
  --kyt-surface-elev: #151d2f;
  --kyt-accent: #38bdf8;
}
html[data-design="noir"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 24%, rgba(168, 85, 247, 0.2), transparent 28rem),
    #070a12;
  color: #e5edf8;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
html[data-design="noir"] a { color: #7dd3fc; }
html[data-design="noir"] a:hover { background: transparent; color: #e0f2fe; }
html[data-design="noir"] .site-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}
html[data-design="noir"] .site-nav-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: auto;
  padding: 20px 14px;
  border: none;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 18, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-design="noir"] .site-nav-rail-inner { gap: 10px; }
html[data-design="noir"] .nav-rail-link {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  padding: 12px 10px;
  font-family: inherit;
  font-weight: 800;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html[data-design="noir"] .nav-rail-link:hover,
html[data-design="noir"] .nav-rail-link[aria-current="page"] {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(124, 58, 237, 0.25));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.2), 0 12px 30px rgba(14, 165, 233, 0.16);
}
html[data-design="noir"] .site-main-column { background: transparent; }
html[data-design="noir"] .site-brand-header {
  border: none;
  background: transparent;
  padding: clamp(28px, 6vw, 72px) 20px 22px;
  text-align: left;
}
html[data-design="noir"] .site-brand-title {
  max-width: 980px;
  margin: 0 auto;
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.95;
  text-transform: none;
  text-shadow: 0 0 34px rgba(56, 189, 248, 0.24);
}
html[data-design="noir"] .site-brand-title::after {
  content: "Собери карту состояний, привычек и сильных сторон без лишнего шума.";
  display: block;
  max-width: 760px;
  margin-top: 18px;
  color: #a9b7cc;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
html[data-design="noir"] .design-switcher {
  max-width: 980px;
  margin: 24px auto 0;
  justify-content: flex-start;
  padding: 6px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}
html[data-design="noir"] .design-switcher-btn {
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  padding: 8px 10px;
}
html[data-design="noir"] .design-switcher-btn.is-active {
  background: #38bdf8;
  color: #06111f;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25);
}
html[data-design="noir"] .site-ad-strip,
html[data-design="noir"] .ad-slot {
  border: 1px dashed rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.48);
  color: #94a3b8;
}
html[data-design="noir"] .site-ad-strip {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto 18px;
}
html[data-design="noir"] .container,
html[data-design="noir"] .layout-doc {
  max-width: 1120px;
  border: none;
  background: transparent;
  padding: 14px 20px 36px;
  min-height: auto;
}
html[data-design="noir"] .layout-doc {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
}
html[data-design="noir"] section,
html[data-design="noir"] article {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(21, 29, 47, 0.9), rgba(15, 23, 42, 0.86));
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
html[data-design="noir"] h1,
html[data-design="noir"] h2,
html[data-design="noir"] h3,
html[data-design="noir"] h4 {
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
  text-transform: none;
}
html[data-design="noir"] button,
html[data-design="noir"] [role="button"],
html[data-design="noir"] .btn {
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: #fff;
  font-family: inherit;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.2);
}
html[data-design="noir"] input,
html[data-design="noir"] select,
html[data-design="noir"] textarea,
html[data-design="noir"] th,
html[data-design="noir"] td {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.42);
  color: #e5edf8;
}
html[data-design="noir"] th { color: #7dd3fc; }
html[data-design="noir"] .option-btn,
html[data-design="noir"] .likert-option,
html[data-design="noir"] .likert-btn {
  background: rgba(15, 23, 42, 0.9);
  color: #e5edf8;
  border-color: rgba(148, 163, 184, 0.2);
}
html[data-design="noir"] .option-btn.selected,
html[data-design="noir"] .likert-btn.selected,
html[data-design="noir"] .likert-option.selected {
  background: #38bdf8;
  color: #06111f;
}
html[data-design="noir"] .footer-bar {
  border: none;
  background: transparent;
  color: #94a3b8;
}

/* ── Вариант 5: Тёплый — мягкий спокойный стиль ── */
html[data-design="warm"] {
  --kyt-border: #e6cdb6;
  --kyt-ink: #2f2118;
  --kyt-muted: #765f50;
  --kyt-surface: #fffaf3;
  --kyt-surface-elev: #f4e6d4;
  --kyt-accent: #9b4d2f;
}
html[data-design="warm"] body {
  background:
    radial-gradient(circle at 12% 10%, rgba(237, 181, 126, 0.26), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #f7efe3 60%, #fbf6ee 100%);
  color: #2f2118;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
}
html[data-design="warm"] a { color: #7c3f25; }
html[data-design="warm"] a:hover { background: #f8ddbd; color: #512716; }
html[data-design="warm"] .site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html[data-design="warm"] .site-nav-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 0;
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-bottom: 1px solid rgba(123, 82, 55, 0.18);
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[data-design="warm"] .site-nav-rail-inner {
  max-width: 1050px;
  margin: 0 auto;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}
html[data-design="warm"] .nav-rail-link {
  border: 1px solid #e8cbb1;
  border-radius: 999px;
  background: #fffaf3;
  color: #4b2b1b;
  padding: 9px 15px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 750;
}
html[data-design="warm"] .nav-rail-link:hover,
html[data-design="warm"] .nav-rail-link[aria-current="page"] {
  background: #9b4d2f;
  color: #fffaf3;
  box-shadow: 0 8px 18px rgba(155, 77, 47, 0.18);
}
html[data-design="warm"] .site-brand-header {
  border: none;
  background: transparent;
  padding: clamp(28px, 6vw, 64px) 18px 20px;
}
html[data-design="warm"] .site-brand-title {
  max-width: 820px;
  margin: 0 auto;
  color: #2f2118;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: none;
}
html[data-design="warm"] .site-brand-title::after {
  content: "Спокойное пространство для самоисследования: выбери методику, пройди без спешки, сохрани важное.";
  display: block;
  max-width: 680px;
  margin: 18px auto 0;
  color: #765f50;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}
html[data-design="warm"] .design-switcher {
  margin-top: 20px;
  padding: 6px;
  border: 1px solid #e8cbb1;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.86);
}
html[data-design="warm"] .design-switcher-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #765f50;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 8px 11px;
}
html[data-design="warm"] .design-switcher-btn.is-active {
  background: #2f2118;
  color: #fffaf3;
  box-shadow: none;
}
html[data-design="warm"] .container,
html[data-design="warm"] .layout-doc {
  max-width: 1040px;
  border: none;
  background: transparent;
  padding: 12px 18px 34px;
  min-height: auto;
}
html[data-design="warm"] .layout-doc {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
}
html[data-design="warm"] section,
html[data-design="warm"] article {
  border: 1px solid #e8cbb1;
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.92);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 18px 38px rgba(93, 58, 35, 0.08);
}
html[data-design="warm"] h1,
html[data-design="warm"] h2,
html[data-design="warm"] h3,
html[data-design="warm"] h4 {
  color: #2f2118;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  text-transform: none;
}
html[data-design="warm"] button,
html[data-design="warm"] [role="button"],
html[data-design="warm"] .btn {
  border: none;
  border-radius: 999px;
  background: #9b4d2f;
  color: #fffaf3;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  padding: 10px 18px;
  box-shadow: 0 12px 22px rgba(155, 77, 47, 0.16);
}
html[data-design="warm"] input,
html[data-design="warm"] select,
html[data-design="warm"] textarea {
  border: 1px solid #e8cbb1;
  border-radius: 18px;
  background: #fffdf8;
  color: #2f2118;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-design="warm"] th,
html[data-design="warm"] td {
  border-color: #e8cbb1;
  background: #fffaf3;
}
html[data-design="warm"] th { background: #f4e6d4; }
html[data-design="warm"] .site-ad-strip,
html[data-design="warm"] .ad-slot {
  border: 1px dashed #d7b08d;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.64);
  color: #765f50;
}
html[data-design="warm"] .site-ad-strip {
  width: calc(100% - 36px);
  max-width: 1040px;
  margin: 0 auto 18px;
}
html[data-design="warm"] .option-btn.selected,
html[data-design="warm"] .likert-btn.selected,
html[data-design="warm"] .likert-option.selected {
  background: #2f2118;
  color: #fffaf3;
}
html[data-design="warm"] .footer-bar {
  border: none;
  background: transparent;
  color: #765f50;
}

/* ── Вариант 6: Атлас — плотный аналитический интерфейс ── */
html[data-design="atlas"] {
  --kyt-border: #b8c4d4;
  --kyt-ink: #0b1f38;
  --kyt-muted: #52657c;
  --kyt-surface: #f8fbff;
  --kyt-surface-elev: #e8eef6;
  --kyt-accent: #0f5ea8;
}
html[data-design="atlas"] body {
  background: #e8eef6;
  color: #0b1f38;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.45;
}
html[data-design="atlas"] a { color: #0f5ea8; }
html[data-design="atlas"] a:hover { background: #dbeafe; color: #08365f; }
html[data-design="atlas"] .site-shell {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 100vh;
}
html[data-design="atlas"] .site-nav-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 12px;
  border: none;
  border-right: 1px solid #b8c4d4;
  background: #dbe4ef;
}
html[data-design="atlas"] .site-nav-rail-inner { gap: 6px; }
html[data-design="atlas"] .nav-rail-link {
  border: 1px solid #a8b5c6;
  border-radius: 4px;
  background: #f8fbff;
  color: #0b1f38;
  padding: 8px 9px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}
html[data-design="atlas"] .nav-rail-link:hover,
html[data-design="atlas"] .nav-rail-link[aria-current="page"] {
  background: #0f5ea8;
  color: #fff;
  box-shadow: none;
}
html[data-design="atlas"] .site-brand-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  border: none;
  border-bottom: 1px solid #b8c4d4;
  background: #f8fbff;
  padding: 16px 18px;
  text-align: left;
}
html[data-design="atlas"] .site-brand-title {
  color: #0b1f38;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: none;
}
html[data-design="atlas"] .site-brand-title::after {
  content: "Каталог, прохождение, результат, история.";
  display: block;
  margin-top: 6px;
  color: #52657c;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}
html[data-design="atlas"] .design-switcher {
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
}
html[data-design="atlas"] .design-switcher-btn {
  border: 1px solid #a8b5c6;
  border-radius: 4px;
  background: #fff;
  color: #0b1f38;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
}
html[data-design="atlas"] .design-switcher-btn.is-active {
  background: #0b1f38;
  color: #fff;
  box-shadow: none;
}
html[data-design="atlas"] .site-ad-strip {
  min-height: 54px;
  border: none;
  border-bottom: 1px solid #b8c4d4;
  background: #eef4fb;
}
html[data-design="atlas"] .container,
html[data-design="atlas"] .layout-doc {
  max-width: none;
  border: none;
  background: transparent;
  padding: 14px 16px 28px;
  min-height: auto;
}
html[data-design="atlas"] .layout-doc {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}
html[data-design="atlas"] section,
html[data-design="atlas"] article {
  border: 1px solid #b8c4d4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(11, 31, 56, 0.04);
}
html[data-design="atlas"] h1,
html[data-design="atlas"] h2,
html[data-design="atlas"] h3,
html[data-design="atlas"] h4 {
  color: #0b1f38;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: -0.025em;
  text-transform: none;
}
html[data-design="atlas"] h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
html[data-design="atlas"] h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
html[data-design="atlas"] button,
html[data-design="atlas"] [role="button"],
html[data-design="atlas"] .btn {
  border: 1px solid #0b4f8f;
  border-radius: 5px;
  background: #0f5ea8;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  padding: 8px 12px;
  box-shadow: none;
}
html[data-design="atlas"] input,
html[data-design="atlas"] select,
html[data-design="atlas"] textarea {
  border: 1px solid #a8b5c6;
  border-radius: 5px;
  background: #fff;
  color: #0b1f38;
  font-family: inherit;
}
html[data-design="atlas"] th,
html[data-design="atlas"] td {
  border: 1px solid #b8c4d4;
  background: #fff;
  padding: 7px 8px;
}
html[data-design="atlas"] th {
  background: #dbe4ef;
  color: #0b1f38;
}
html[data-design="atlas"] .catalog-table {
  font-size: 14px;
}
html[data-design="atlas"] .ad-slot {
  border: 1px dashed #9aacbf;
  border-radius: 6px;
  background: #eef4fb;
  color: #52657c;
}
html[data-design="atlas"] .quiz-wrapper {
  width: 760px;
}
html[data-design="atlas"] .quiz-wrapper #quiz-container {
  border: 1px solid #b8c4d4;
  border-radius: 10px;
  background: #f8fbff;
}
html[data-design="atlas"] .question-text {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.25;
}
html[data-design="atlas"] .option-btn.selected,
html[data-design="atlas"] .likert-btn.selected,
html[data-design="atlas"] .likert-option.selected {
  background: #0b1f38;
  color: #fff;
}
html[data-design="atlas"] .footer-bar {
  border: none;
  border-top: 1px solid #b8c4d4;
  background: #f8fbff;
}

/* ── Вариант 7: Наука — сетка, формулы, исследовательская бумага ── */
html[data-design="science"] {
  --kyt-border: #bdd7e2;
  --kyt-ink: #092435;
  --kyt-muted: #496a78;
  --kyt-surface: #fbfeff;
  --kyt-surface-elev: #e7f3f7;
  --kyt-accent: #007a9c;
}
html[data-design="science"] body {
  position: relative;
  background:
    linear-gradient(rgba(2, 132, 199, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.16), transparent 28rem),
    #edf7fb;
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: #123042;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}
html[data-design="science"] body::before {
  content: "α β γ  Σx²  p<0.05  n=38  μ  σ  r  β₁  β₂  F  t  d";
  position: fixed;
  right: -20px;
  top: 64px;
  z-index: 0;
  width: min(340px, 42vw);
  color: rgba(7, 89, 133, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-6deg);
  pointer-events: none;
  white-space: normal;
}
html[data-design="science"] .site-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
html[data-design="science"] a { color: #0369a1; }
html[data-design="science"] a:hover { background: rgba(14, 165, 233, 0.12); color: #075985; }
html[data-design="science"] .site-nav-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: auto;
  border: none;
  border-right: 2px solid #94c5d8;
  background-color: rgba(224, 242, 254, 0.92);
  background-image:
    linear-gradient(180deg, rgba(251, 254, 255, 0.95) 0%, rgba(224, 242, 254, 0.5) 55%, transparent 70%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 12px 220px;
}
html[data-design="science"] .site-nav-rail::before {
  content: "LAB NAV";
  display: block;
  margin: 0 0 12px;
  color: #6b8a96;
  font: 700 11px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
}
html[data-design="science"] .site-nav-rail-inner { gap: 8px; }
html[data-design="science"] .nav-rail-link {
  border: 1px solid #bdd7e2;
  border-left: 4px solid #38bdf8;
  border-radius: 3px;
  background: #fbfeff;
  color: #123042;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
html[data-design="science"] .nav-rail-link:hover,
html[data-design="science"] .nav-rail-link[aria-current="page"] {
  background: #dff3fb;
  color: #06364d;
  box-shadow: none;
}
html[data-design="science"] .site-brand-header {
  position: relative;
  overflow: hidden;
  border: none;
  border-bottom: 2px solid #94c5d8;
  min-height: clamp(240px, 34vw, 360px);
  padding: clamp(28px, 5vw, 56px) min(46%, 520px) clamp(28px, 4vw, 40px) 22px;
  text-align: left;
  background-color: #e8f6fc;
  background-image:
    linear-gradient(105deg, rgba(232, 246, 252, 0.97) 0%, rgba(232, 246, 252, 0.72) 42%, rgba(224, 242, 254, 0.35) 58%, transparent 72%),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, transparent 55%);
}
html[data-design="science"] .site-brand-header::after {
  content: "H₀ → H₁";
  position: absolute;
  right: 4%;
  bottom: 12px;
  z-index: 1;
  color: rgba(7, 89, 133, 0.28);
  font: 900 clamp(3rem, 9vw, 7.5rem)/0.9 Georgia, serif;
  pointer-events: none;
}
html[data-design="science"] .site-brand-title {
  max-width: 900px;
  margin: 0;
  color: #092435;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 5.5vw, 4.8rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: none;
}
html[data-design="science"] .site-brand-title::after {
  content: "Психометрические шкалы как исследовательский протокол: гипотеза, ответы, расчёт, интерпретация.";
  display: block;
  max-width: 720px;
  margin-top: 14px;
  color: #496a78;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
html[data-design="science"] .design-switcher {
  justify-content: flex-start;
  max-width: 900px;
  margin: 18px 0 0;
  padding: 6px;
  border: 1px solid #bdd7e2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}
html[data-design="science"] .design-switcher-btn {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #496a78;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 9px;
}
html[data-design="science"] .design-switcher-btn.is-active { background: #075985; color: #fff; box-shadow: none; }
html[data-design="science"] .container,
html[data-design="science"] .layout-doc {
  max-width: 1120px;
  border: none;
  background: transparent;
  padding: 16px 20px 34px;
  min-height: auto;
}
html[data-design="science"] .layout-doc { grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; }
html[data-design="science"] section,
html[data-design="science"] article {
  position: relative;
  border: 1px solid #bdd7e2;
  border-radius: 8px;
  background: rgba(251, 254, 255, 0.92);
  padding: clamp(16px, 2.6vw, 26px);
  box-shadow: 0 12px 34px rgba(8, 47, 73, 0.08);
}
html[data-design="science"] section::before,
html[data-design="science"] article::before {
  content: "observation";
  position: absolute;
  right: 12px;
  top: 8px;
  color: rgba(7, 89, 133, 0.24);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[data-design="science"] h1,
html[data-design="science"] h2,
html[data-design="science"] h3,
html[data-design="science"] h4 {
  color: #092435;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.035em;
  text-transform: none;
}
html[data-design="science"] button,
html[data-design="science"] [role="button"],
html[data-design="science"] .btn {
  border: 1px solid #075985;
  border-radius: 4px;
  background: #075985;
  color: #fff;
  font-family: inherit;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(7, 89, 133, 0.15);
}
html[data-design="science"] input,
html[data-design="science"] select,
html[data-design="science"] textarea,
html[data-design="science"] th,
html[data-design="science"] td {
  border-color: #bdd7e2;
  background: #fbfeff;
  color: #123042;
}
html[data-design="science"] th { background: #dff3fb; }
html[data-design="science"] .site-ad-strip,
html[data-design="science"] .ad-slot {
  border: 1px dashed #8bb9c9;
  border-radius: 6px;
  background: rgba(251, 254, 255, 0.64);
  color: #496a78;
}
html[data-design="science"] .site-ad-strip { width: calc(100% - 40px); max-width: 1120px; margin: 0 auto 16px; }
html[data-design="science"] .option-btn.selected,
html[data-design="science"] .likert-btn.selected,
html[data-design="science"] .likert-option.selected { background: #075985; color: #fff; }
html[data-design="science"] .footer-bar { border: none; background: transparent; color: #496a78; }

/* ── Наука: иллюстративный слой (лаборатория, данные) ── */
html[data-design="science"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 4v48M4 28h48' stroke='%230284c7' stroke-width='1' opacity='.14'/%3E%3Ccircle cx='28' cy='28' r='3' fill='%23075885' opacity='.12'/%3E%3C/svg%3E"),
    linear-gradient(rgba(2, 132, 199, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.28), transparent 32rem),
    radial-gradient(circle at 8% 72%, rgba(14, 165, 233, 0.18), transparent 24rem),
    #d9eff9;
  background-size: 56px 56px, 28px 28px, 28px 28px, auto, auto, auto;
}
html[data-design="science"] body::after {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: min(480px, 58vw);
  height: min(320px, 42vh);
  pointer-events: none;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 220'%3E%3Crect x='12' y='150' width='130' height='58' fill='%23fbfeff' stroke='%2394c5d8' stroke-width='2'/%3E%3Cpath d='M24 198V168l20-32 18 22 28-48 32 58' fill='none' stroke='%23075885' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='44' cy='168' r='4' fill='%2338bdf8'/%3E%3Ccircle cx='62' cy='158' r='4' fill='%23075885'/%3E%3Ccircle cx='108' cy='132' r='4' fill='%2338bdf8'/%3E%3Ccircle cx='142' cy='178' r='4' fill='%23075885'/%3E%3Cpath d='M8 108V12h104M8 108h104' stroke='%2394c5d8' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / contain no-repeat;
}
html[data-design="science"] .site-shell::before {
  content: "";
  position: fixed;
  right: 0;
  top: 56px;
  z-index: 0;
  width: min(440px, 48vw);
  height: min(520px, 70vh);
  pointer-events: none;
  opacity: 0.62;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 420'%3E%3Cpath d='M70 60h48v52l34 88H36L70 112V60z' fill='%23dff3fb' stroke='%23075885' stroke-width='3'/%3E%3Cpath d='M88 96h12' stroke='%2338bdf8' stroke-width='2'/%3E%3Ccircle cx='94' cy='108' r='10' fill='%2338bdf8' opacity='.35'/%3E%3Cpath d='M150 40h44v58l30 102H120L150 98V40z' fill='%23e0f2fe' stroke='%2338bdf8' stroke-width='3'/%3E%3Cpath d='M230 50h36v24h-36zM248 74v120M228 194h80M218 194h16v28h52v-28h16' fill='none' stroke='%23075885' stroke-width='3'/%3E%3Ccircle cx='248' cy='120' r='28' fill='%23fbfeff' stroke='%23075885' stroke-width='2'/%3E%3Ccircle cx='248' cy='120' r='6' fill='%23075885'/%3E%3Cpath d='M248 92v28M220 120h56' stroke='%23075885' stroke-width='2'/%3E%3Ccircle cx='100' cy='300' r='52' fill='none' stroke='%2338bdf8' stroke-width='2.5'/%3E%3Cellipse cx='100' cy='300' rx='52' ry='16' fill='none' stroke='%23075885' stroke-width='2'/%3E%3Cellipse cx='100' cy='300' rx='52' ry='16' fill='none' stroke='%23075885' stroke-width='2' transform='rotate(60 100 300)'/%3E%3Cellipse cx='100' cy='300' rx='52' ry='16' fill='none' stroke='%23075885' stroke-width='2' transform='rotate(120 100 300)'/%3E%3Ccircle cx='100' cy='300' r='10' fill='%23075885'/%3E%3C/svg%3E") right top / contain no-repeat;
}
html[data-design="science"] .site-brand-header::before {
  content: "";
  position: absolute;
  right: 2%;
  top: 50%;
  z-index: 0;
  width: min(400px, 44vw);
  height: min(280px, 38vw);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.72;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 260'%3E%3Crect x='20' y='170' width='140' height='72' fill='%23fbfeff' stroke='%2394c5d8' stroke-width='2'/%3E%3Crect x='32' y='48' width='16' height='52' fill='%23075885' opacity='.75'/%3E%3Crect x='56' y='32' width='16' height='68' fill='%2338bdf8' opacity='.85'/%3E%3Crect x='80' y='56' width='16' height='44' fill='%23075885' opacity='.65'/%3E%3Crect x='104' y='24' width='16' height='76' fill='%2338bdf8'/%3E%3Cpath d='M28 230l24-40 20 24 32-52 36 68' fill='none' stroke='%23075885' stroke-width='3'/%3E%3Cpath d='M190 60h52v28h-52zM216 88v72M196 160h80' fill='none' stroke='%23075885' stroke-width='2.5'/%3E%3Ccircle cx='216' cy='118' r='22' fill='%23dff3fb' stroke='%23075885' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-design="science"] .site-brand-header > * { position: relative; z-index: 2; }
html[data-design="science"] .site-main-column { position: relative; isolation: isolate; }
html[data-design="science"] .site-nav-rail::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  height: 190px;
  pointer-events: none;
  opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 190'%3E%3Cpath d='M48 20h36v44l28 72H20L48 64V20z' fill='%23dff3fb' stroke='%23075885' stroke-width='2.5'/%3E%3Cpath d='M100 24h28v20h-28zM114 44v48M94 92h68' stroke='%23075885' stroke-width='2' fill='none'/%3E%3Ctext x='8' y='150' font-size='14' fill='%23075885' font-family='Georgia,serif'%3Eμ σ α%3C/text%3E%3Cpath d='M8 168h140' stroke='%2394c5d8'/%3E%3C/svg%3E") center bottom / contain no-repeat;
}
html[data-design="science"] .site-nav-rail { position: relative; }
html[data-design="science"] .site-main-column > .container {
  position: relative;
  border: 2px solid #94c5d8;
  border-radius: 10px;
  background: rgba(251, 254, 255, 0.88);
  box-shadow: 0 20px 50px rgba(8, 47, 73, 0.1);
}
html[data-design="science"] section,
html[data-design="science"] article {
  overflow: hidden;
  padding-top: clamp(52px, 8vw, 64px);
  background-color: rgba(251, 254, 255, 0.95);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Crect width='120' height='48' fill='%23dff3fb'/%3E%3Ctext x='12' y='30' font-size='11' font-weight='700' fill='%23075885' font-family='sans-serif' letter-spacing='.12em'%3EDATA BLOCK%3C/text%3E%3Cpath d='M78 14v20M88 10v28M98 18v12M108 8v32' stroke='%2338bdf8' stroke-width='3'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='42' fill='none' stroke='%23bdd7e2' stroke-width='1.5'/%3E%3Cpath d='M50 8v84M8 50h84' stroke='%23bdd7e2' stroke-dasharray='4 5'/%3E%3C/svg%3E");
  background-position: 0 0, right 10px top 52px;
  background-size: auto 48px, 88px 88px;
  background-repeat: no-repeat, no-repeat;
}
html[data-design="science"] .site-ad-strip {
  min-height: 88px;
  border-width: 2px;
  border-style: dashed;
  border-color: #38bdf8;
  background-color: rgba(224, 242, 254, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 88'%3E%3Cellipse cx='240' cy='62' rx='200' ry='18' fill='%23dff3fb' stroke='%2394c5d8' stroke-width='2'/%3E%3Cpath d='M60 50 Q120 20 180 50 T300 50 T420 50' fill='none' stroke='%23075885' stroke-width='2.5'/%3E%3Cpath d='M40 30h400' stroke='%2338bdf8' stroke-width='1' stroke-dasharray='6 6' opacity='.6'/%3E%3C/svg%3E");
  background-position: center;
  background-size: min(520px, 96%) auto;
  background-repeat: no-repeat;
}
html[data-design="science"] .footer-bar {
  padding-top: 28px;
  background-color: rgba(224, 242, 254, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28'%3E%3Cpath d='M0 14h400' stroke='%2394c5d8' stroke-width='2'/%3E%3Cpath d='M0 14h24M48 14h24M96 14h24M144 14h24M192 14h24M240 14h24M288 14h24M336 14h24' stroke='%23075885' stroke-width='4'/%3E%3C/svg%3E");
  background-position: top center;
  background-size: auto 16px;
  background-repeat: repeat-x;
}
html[data-design="science"] .quiz-wrapper #quiz-container {
  padding-top: 56px;
  background-color: #fbfeff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 48'%3E%3Crect width='200' height='48' fill='%23dff3fb'/%3E%3Ctext x='14' y='30' font-size='12' font-weight='800' fill='%23075885'%3EEXPERIMENT SESSION%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 56'%3E%3Cpath d='M8 44h144M8 44V10' stroke='%23bdd7e2'/%3E%3Cpath d='M8 44l22-24 24 16 28-32 34 40 28-20' fill='none' stroke='%23075885' stroke-width='2.5'/%3E%3C/svg%3E");
  background-position: 0 0, right 12px top 58px;
  background-size: auto 48px, 150px auto;
  background-repeat: no-repeat, no-repeat;
}

/* ── Вариант 8: Психология — мягкие образы, круги, внутренний ландшафт ── */
html[data-design="psyche"] {
  --kyt-border: #ead1df;
  --kyt-ink: #352037;
  --kyt-muted: #7c6277;
  --kyt-surface: #fff9fc;
  --kyt-surface-elev: #f6e7ef;
  --kyt-accent: #a8558d;
}
html[data-design="psyche"] body {
  position: relative;
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 114, 182, 0.2), transparent 24rem),
    radial-gradient(circle at 78% 8%, rgba(167, 139, 250, 0.2), transparent 26rem),
    radial-gradient(circle at 50% 84%, rgba(251, 191, 36, 0.12), transparent 26rem),
    #fbf2f7;
  color: #352037;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.62;
}
html[data-design="psyche"] body::before,
html[data-design="psyche"] body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
}
html[data-design="psyche"] body::before {
  left: -120px;
  top: 80px;
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  border: 42px solid rgba(168, 85, 141, 0.18);
  box-shadow: 90px 110px 0 -32px rgba(124, 58, 237, 0.14), inset 0 0 80px rgba(244, 114, 182, 0.12);
}
html[data-design="psyche"] body::after {
  right: -20px;
  bottom: 40px;
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  background:
    radial-gradient(circle, transparent 0 36%, rgba(168, 85, 141, 0.28) 37% 44%, transparent 45%),
    conic-gradient(from 20deg, rgba(244,114,182,0.28), rgba(167,139,250,0.24), rgba(251,191,36,0.22), rgba(244,114,182,0.28));
}
html[data-design="psyche"] .site-shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
html[data-design="psyche"] .site-main-column { position: relative; }
html[data-design="psyche"] a { color: #8b3d73; }
html[data-design="psyche"] a:hover { background: rgba(244, 114, 182, 0.14); color: #5b254b; }
html[data-design="psyche"] .site-nav-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 0;
  border: none;
  border-bottom: 1px solid rgba(168, 85, 141, 0.17);
  background: rgba(255, 249, 252, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 18px;
}
html[data-design="psyche"] .site-nav-rail-inner {
  max-width: 1080px;
  margin: 0 auto;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}
html[data-design="psyche"] .nav-rail-link {
  border: 1px solid #ead1df;
  border-radius: 999px 999px 999px 18px;
  background: rgba(255, 255, 255, 0.68);
  color: #5b3a56;
  padding: 10px 16px;
  font-weight: 780;
  font-family: inherit;
}
html[data-design="psyche"] .nav-rail-link:hover,
html[data-design="psyche"] .nav-rail-link[aria-current="page"] {
  background: #a8558d;
  color: #fff;
  box-shadow: 0 12px 24px rgba(168, 85, 141, 0.16);
}
html[data-design="psyche"] .site-brand-header {
  position: relative;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid rgba(168, 85, 141, 0.22);
  min-height: clamp(280px, 42vw, 420px);
  padding: clamp(40px, 8vw, 100px) 20px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 228, 244, 0.9), transparent 70%),
    radial-gradient(circle at 15% 80%, rgba(244, 114, 182, 0.2), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(167, 139, 250, 0.22), transparent 42%),
    #fbf2f7;
}
html[data-design="psyche"] .site-brand-header::before {
  content: "☽   ◐   ◯   ◒   ✧   ❋";
  display: block;
  margin-bottom: 22px;
  color: rgba(168, 85, 141, 0.72);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  letter-spacing: 0.28em;
  text-shadow: 0 8px 28px rgba(168, 85, 141, 0.2);
}
html[data-design="psyche"] .site-brand-title {
  max-width: 900px;
  margin: 0 auto;
  color: #352037;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  text-transform: none;
}
html[data-design="psyche"] .site-brand-title::after {
  content: "Тесты как карта внутреннего ландшафта: внимание к эмоциям, ролям, привычкам и личным смыслам.";
  display: block;
  max-width: 720px;
  margin: 18px auto 0;
  color: #7c6277;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}
html[data-design="psyche"] .design-switcher {
  margin-top: 22px;
  padding: 7px;
  border: 1px solid #ead1df;
  border-radius: 28px;
  background: rgba(255, 249, 252, 0.78);
  box-shadow: 0 16px 34px rgba(91, 37, 75, 0.08);
}
html[data-design="psyche"] .design-switcher-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7c6277;
  font-family: inherit;
  padding: 8px 11px;
}
html[data-design="psyche"] .design-switcher-btn.is-active { background: #352037; color: #fff9fc; box-shadow: none; }
html[data-design="psyche"] .container,
html[data-design="psyche"] .layout-doc {
  max-width: 1060px;
  border: none;
  background: transparent;
  padding: 14px 20px 36px;
  min-height: auto;
}
html[data-design="psyche"] .layout-doc { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
html[data-design="psyche"] section,
html[data-design="psyche"] article {
  border: 1px solid rgba(168, 85, 141, 0.18);
  border-radius: 34px 34px 34px 12px;
  background: rgba(255, 249, 252, 0.9);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 20px 46px rgba(91, 37, 75, 0.09);
}
html[data-design="psyche"] h1,
html[data-design="psyche"] h2,
html[data-design="psyche"] h3,
html[data-design="psyche"] h4 {
  color: #352037;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  text-transform: none;
}
html[data-design="psyche"] button,
html[data-design="psyche"] [role="button"],
html[data-design="psyche"] .btn {
  border: none;
  border-radius: 999px 999px 999px 16px;
  background: #a8558d;
  color: #fff;
  font-family: inherit;
  font-weight: 820;
  padding: 11px 18px;
  box-shadow: 0 14px 26px rgba(168, 85, 141, 0.18);
}
html[data-design="psyche"] input,
html[data-design="psyche"] select,
html[data-design="psyche"] textarea {
  border: 1px solid #ead1df;
  border-radius: 18px;
  background: #fff;
  color: #352037;
  font-family: inherit;
}
html[data-design="psyche"] th,
html[data-design="psyche"] td { border-color: #ead1df; background: #fff9fc; }
html[data-design="psyche"] th { background: #f6e7ef; }
html[data-design="psyche"] .site-ad-strip,
html[data-design="psyche"] .ad-slot {
  border: 1px dashed #d7a8c5;
  border-radius: 24px;
  background: rgba(255, 249, 252, 0.58);
  color: #7c6277;
}
html[data-design="psyche"] .site-ad-strip { width: calc(100% - 40px); max-width: 1060px; margin: 0 auto 18px; }
html[data-design="psyche"] .option-btn.selected,
html[data-design="psyche"] .likert-btn.selected,
html[data-design="psyche"] .likert-option.selected { background: #352037; color: #fff; }
html[data-design="psyche"] .footer-bar { border: none; background: transparent; color: #7c6277; }

/* ── Психология: иллюстративный слой (мандала, внутренний ландшафт) ── */
html[data-design="psyche"] body {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 114, 182, 0.35), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(167, 139, 250, 0.32), transparent 30rem),
    radial-gradient(circle at 72% 88%, rgba(251, 191, 36, 0.22), transparent 28rem),
    radial-gradient(circle at 22% 78%, rgba(168, 85, 141, 0.2), transparent 24rem),
    #f5e6ef;
}
html[data-design="psyche"] .site-shell::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 48%;
  z-index: 0;
  width: min(720px, 110vw);
  height: min(720px, 110vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.38;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Ccircle cx='120' cy='120' r='108' fill='%23fff9fc' fill-opacity='.35' stroke='%23a8558d' stroke-width='2'/%3E%3Ccircle cx='120' cy='120' r='78' fill='none' stroke='%23a78bfa' stroke-width='2'/%3E%3Ccircle cx='120' cy='120' r='48' fill='none' stroke='%23f472b6' stroke-width='2'/%3E%3Ccircle cx='120' cy='120' r='20' fill='%23f6e7ef' stroke='%23a8558d' stroke-width='2'/%3E%3Cpath d='M120 12v216M12 120h216M45 45l150 150M195 45L45 195' stroke='%23ead1df' stroke-width='1.5'/%3E%3Ccircle cx='120' cy='24' r='8' fill='%23fbbf24'/%3E%3Ccircle cx='216' cy='120' r='8' fill='%23f472b6'/%3E%3Ccircle cx='120' cy='216' r='8' fill='%23a78bfa'/%3E%3Ccircle cx='24' cy='120' r='8' fill='%23a8558d'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-design="psyche"] .site-shell::after {
  content: "";
  position: fixed;
  left: -8%;
  bottom: -6%;
  z-index: 0;
  width: min(420px, 70vw);
  height: min(300px, 50vh);
  pointer-events: none;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cpath d='M20 140 Q80 40 160 140 T300 140' fill='none' stroke='%23a8558d' stroke-width='4'/%3E%3Cpath d='M40 140 Q100 80 160 140' fill='none' stroke='%23f472b6' stroke-width='2.5' opacity='.8'/%3E%3Ccircle cx='90' cy='88' r='14' fill='%23fbbf24' opacity='.55'/%3E%3Ccircle cx='180' cy='72' r='18' fill='%23a78bfa' opacity='.5'/%3E%3Ccircle cx='250' cy='100' r='12' fill='%23f472b6' opacity='.55'/%3E%3Cpath d='M60 160c40-30 80-30 120 0s80 30 120 0' fill='none' stroke='%23ead1df' stroke-width='2'/%3E%3C/svg%3E") left bottom / contain no-repeat;
}
html[data-design="psyche"] .site-brand-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='88' fill='none' stroke='%23a8558d' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23f472b6' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='32' fill='%23f6e7ef' stroke='%23a78bfa' stroke-width='2'/%3E%3C/svg%3E") center 55% / min(340px, 75vw) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath d='M0 80 Q100 10 200 80 T400 80' fill='none' stroke='%23a8558d' stroke-width='3'/%3E%3C/svg%3E") center 85% / min(900px, 100%) no-repeat;
}
html[data-design="psyche"] .site-brand-header > * { position: relative; z-index: 2; }
html[data-design="psyche"] .site-main-column::before {
  content: "";
  position: absolute;
  left: -60px;
  top: 240px;
  z-index: 0;
  width: min(280px, 38vw);
  height: min(280px, 38vw);
  pointer-events: none;
  opacity: 0.42;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpath d='M80 8c44 48 44 96 0 144-44-48-44-96 0-144z' fill='%23f6e7ef' stroke='%23a8558d' stroke-width='3'/%3E%3Cpath d='M80 28c30 34 30 72 0 104-30-32-30-70 0-104z' fill='%23fff9fc' stroke='%23f472b6' stroke-width='2'/%3E%3Ccircle cx='80' cy='80' r='16' fill='%23a8558d' opacity='.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-design="psyche"] .site-main-column::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 420px;
  z-index: 0;
  width: min(240px, 32vw);
  height: min(240px, 32vw);
  pointer-events: none;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cpath d='M70 8 L128 70 L70 132 L12 70 Z' fill='%23fff9fc' stroke='%23a78bfa' stroke-width='3'/%3E%3Ccircle cx='70' cy='70' r='32' fill='none' stroke='%23f472b6' stroke-width='2.5'/%3E%3Cpath d='M70 38v64M38 70h64' stroke='%23a8558d' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-design="psyche"] .site-nav-rail {
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(244, 114, 182, 0.25), transparent 55%),
    rgba(255, 249, 252, 0.88);
}
html[data-design="psyche"] .site-nav-rail::after {
  content: "☽    ✧    ◐    ❋    ✧    ☾";
  display: block;
  margin-top: 18px;
  padding: 16px 0;
  text-align: center;
  color: rgba(168, 85, 141, 0.65);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.22em;
  pointer-events: none;
  border-top: 1px solid rgba(168, 85, 141, 0.2);
}
html[data-design="psyche"] .site-main-column > .container {
  border: 2px solid rgba(168, 85, 141, 0.28);
  border-radius: 28px;
  background: rgba(255, 249, 252, 0.82);
  box-shadow: 0 24px 60px rgba(91, 37, 75, 0.12);
}
html[data-design="psyche"] section,
html[data-design="psyche"] article {
  padding-top: clamp(56px, 9vw, 72px);
  padding-left: clamp(20px, 4vw, 32px);
  background-color: rgba(255, 249, 252, 0.94);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 56'%3E%3Crect width='140' height='56' rx='28' fill='%23f6e7ef'/%3E%3Ctext x='18' y='34' font-size='12' font-weight='700' fill='%23a8558d' font-family='Georgia,serif'%3Eвнутренний смысл%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 88'%3E%3Ccircle cx='44' cy='44' r='36' fill='%23fff9fc' stroke='%23ead1df' stroke-width='2'/%3E%3Ccircle cx='44' cy='44' r='20' fill='none' stroke='%23a8558d' stroke-width='2'/%3E%3Cpath d='M44 12v20M44 56v20M12 44h20M56 44h20' stroke='%23f472b6' stroke-width='2'/%3E%3C/svg%3E");
  background-position: 0 0, right 16px top 58px;
  background-size: auto 56px, 96px 96px;
  background-repeat: no-repeat, no-repeat;
}
html[data-design="psyche"] .site-ad-strip {
  min-height: 96px;
  border-width: 2px;
  border-color: #d7a8c5;
  background-color: rgba(255, 249, 252, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 96'%3E%3Ccircle cx='80' cy='48' r='32' fill='%23f6e7ef' stroke='%23a8558d' stroke-width='2'/%3E%3Ccircle cx='240' cy='48' r='40' fill='none' stroke='%23a78bfa' stroke-width='2'/%3E%3Ccircle cx='400' cy='48' r='28' fill='%23f6e7ef' stroke='%23f472b6' stroke-width='2'/%3E%3Cpath d='M112 48h96M280 48h92' stroke='%23ead1df' stroke-width='2' stroke-dasharray='8 8'/%3E%3Cpath d='M40 72 Q120 20 240 72 T440 72' fill='none' stroke='%23a8558d' stroke-width='2' opacity='.5'/%3E%3C/svg%3E");
  background-position: center;
  background-size: min(540px, 98%) auto;
  background-repeat: no-repeat;
}
html[data-design="psyche"] .footer-bar {
  padding-top: 44px;
  background-color: rgba(246, 231, 239, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40'%3E%3Cpath d='M0 20h400' stroke='%23ead1df'/%3E%3Ccircle cx='30' cy='12' r='4' fill='%23a8558d'/%3E%3Ccircle cx='80' cy='28' r='3' fill='%23f472b6'/%3E%3Ccircle cx='140' cy='10' r='5' fill='%23a78bfa'/%3E%3Ccircle cx='200' cy='26' r='3' fill='%23fbbf24'/%3E%3Ccircle cx='260' cy='14' r='4' fill='%23a8558d'/%3E%3Ccircle cx='320' cy='30' r='3' fill='%23f472b6'/%3E%3Ccircle cx='370' cy='12' r='5' fill='%23a78bfa'/%3E%3C/svg%3E");
  background-position: top center;
  background-size: auto 36px;
  background-repeat: repeat-x;
}
html[data-design="psyche"] .quiz-wrapper #quiz-container {
  padding-top: 60px;
  background-color: rgba(255, 249, 252, 0.96);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 52'%3E%3Crect width='220' height='52' rx='26' fill='%23f6e7ef'/%3E%3Ctext x='18' y='32' font-size='12' font-weight='700' fill='%23a8558d' font-family='Georgia,serif'%3Eпуть ответа%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='48' fill='none' stroke='%23ead1df' stroke-width='3'/%3E%3Cpath d='M60 20a40 40 0 1 1 0 80' fill='none' stroke='%23a8558d' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='60' cy='60' r='10' fill='%23f472b6'/%3E%3C/svg%3E");
  background-position: 0 0, right 14px top 62px;
  background-size: auto 52px, 110px 110px;
  background-repeat: no-repeat, no-repeat;
}

/* ── Вариант 9: Измерение — шкалы, приборы, лабораторная точность ── */
html[data-design="measure"] {
  --kyt-border: #9eb0a3;
  --kyt-ink: #0e1d15;
  --kyt-muted: #52655a;
  --kyt-surface: #fbfdf9;
  --kyt-surface-elev: #e4ebe4;
  --kyt-accent: #0f7a48;
}
html[data-design="measure"] body {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(15, 122, 72, 0.08) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(15, 122, 72, 0.05) 0 1px, transparent 1px 20px),
    linear-gradient(180deg, #eef3ef 0%, #fbfdf9 100%);
  color: #0e1d15;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.48;
}
html[data-design="measure"] body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 14px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #0f7a48 0 3px, #15965a 3px 20px, transparent 20px 24px, #0e1d15 24px 26px, transparent 26px 100px);
  opacity: 0.85;
  box-shadow: 0 2px 0 rgba(14, 29, 21, 0.12);
}
html[data-design="measure"] .site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 100vh;
}
html[data-design="measure"] a { color: #0f7a48; }
html[data-design="measure"] a:hover { background: rgba(15, 122, 72, 0.12); color: #064d2b; }
html[data-design="measure"] .site-nav-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: auto;
  border: none;
  border-right: 3px solid #0e1d15;
  background-color: #dce5dc;
  background-image: linear-gradient(180deg, #e4ebe4 0%, #dce5dc 100%);
  padding: 16px 10px 240px;
}
html[data-design="measure"] .site-nav-rail::before {
  content: "0 10 20 30 40";
  display: block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0e1d15;
  color: #52655a;
  font: 800 11px/1 monospace;
  letter-spacing: 0.12em;
}
html[data-design="measure"] .site-nav-rail-inner { gap: 6px; }
html[data-design="measure"] .nav-rail-link {
  position: relative;
  border: 2px solid #0e1d15;
  border-radius: 0;
  background: #fbfdf9;
  color: #0e1d15;
  padding: 8px 8px 8px 14px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}
html[data-design="measure"] .nav-rail-link::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 2px;
  background: #0e1d15;
}
html[data-design="measure"] .nav-rail-link:hover,
html[data-design="measure"] .nav-rail-link[aria-current="page"] {
  background: #0f7a48;
  color: #fff;
  box-shadow: none;
}
html[data-design="measure"] .nav-rail-link:hover::before,
html[data-design="measure"] .nav-rail-link[aria-current="page"]::before { background: #fff; }
html[data-design="measure"] .site-brand-header {
  position: relative;
  overflow: hidden;
  border: none;
  border-bottom: 3px solid #0e1d15;
  min-height: clamp(220px, 30vw, 320px);
  padding: clamp(28px, 5vw, 52px) min(44%, 500px) 28px 20px;
  text-align: left;
  background-color: #eef3ef;
  background-image:
    linear-gradient(100deg, rgba(238, 243, 239, 0.96) 0%, rgba(238, 243, 239, 0.7) 45%, rgba(228, 235, 228, 0.25) 60%, transparent 75%),
    repeating-linear-gradient(0deg, rgba(15, 122, 72, 0.06) 0 1px, transparent 1px 12px);
}
html[data-design="measure"] .site-brand-header::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 16px;
  z-index: 1;
  width: min(380px, 46vw);
  height: 72px;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(90deg, #0e1d15 0 3px, transparent 3px),
    repeating-linear-gradient(90deg, #0e1d15 0 2px, transparent 2px 16px),
    linear-gradient(#0e1d15, #0e1d15);
  background-size: 100% 22px, 100% 22px, 100% 3px;
  background-position: 0 0, 0 0, 0 32px;
  background-repeat: no-repeat;
}
html[data-design="measure"] .site-brand-title {
  max-width: 820px;
  color: #0e1d15;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}
html[data-design="measure"] .site-brand-title::after {
  content: "Приборная панель самоотчёта: выбрать шкалу, зафиксировать ответ, увидеть результат.";
  display: block;
  max-width: 650px;
  margin-top: 14px;
  color: #52655a;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}
html[data-design="measure"] .design-switcher {
  justify-content: flex-start;
  max-width: 900px;
  margin-top: 20px;
  gap: 0;
}
html[data-design="measure"] .design-switcher-btn {
  border: 2px solid #0e1d15;
  border-right: none;
  border-radius: 0;
  background: #fbfdf9;
  color: #0e1d15;
  font-family: inherit;
  font-size: 12px;
  padding: 7px 9px;
}
html[data-design="measure"] .design-switcher-btn:last-child { border-right: 2px solid #0e1d15; }
html[data-design="measure"] .design-switcher-btn.is-active { background: #0e1d15; color: #fff; box-shadow: none; }
html[data-design="measure"] .container,
html[data-design="measure"] .layout-doc {
  max-width: none;
  border: none;
  background: transparent;
  padding: 14px 16px 32px;
  min-height: auto;
}
html[data-design="measure"] .layout-doc { grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
html[data-design="measure"] section,
html[data-design="measure"] article {
  position: relative;
  border: 2px solid #0e1d15;
  border-radius: 0;
  background: rgba(251, 253, 249, 0.95);
  padding: clamp(14px, 2.4vw, 24px);
  box-shadow: 8px 8px 0 rgba(15, 122, 72, 0.14);
}
html[data-design="measure"] h1,
html[data-design="measure"] h2,
html[data-design="measure"] h3,
html[data-design="measure"] h4 {
  color: #0e1d15;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
html[data-design="measure"] button,
html[data-design="measure"] [role="button"],
html[data-design="measure"] .btn {
  border: 2px solid #0e1d15;
  border-radius: 0;
  background: #0f7a48;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(14, 29, 21, 0.18);
}
html[data-design="measure"] input,
html[data-design="measure"] select,
html[data-design="measure"] textarea,
html[data-design="measure"] th,
html[data-design="measure"] td {
  border: 2px solid #0e1d15;
  border-radius: 0;
  background: #fbfdf9;
  color: #0e1d15;
  font-family: inherit;
}
html[data-design="measure"] th { background: #e4ebe4; }
html[data-design="measure"] .site-ad-strip,
html[data-design="measure"] .ad-slot {
  border: 2px dashed #52655a;
  border-radius: 0;
  background: rgba(251, 253, 249, 0.62);
  color: #52655a;
}
html[data-design="measure"] .site-ad-strip { min-height: 54px; border-left: none; border-right: none; }
html[data-design="measure"] .quiz-wrapper { width: 760px; }
html[data-design="measure"] .quiz-wrapper #quiz-container {
  border: 2px solid #0e1d15;
  background: #fbfdf9;
  box-shadow: 8px 8px 0 rgba(15, 122, 72, 0.14);
}
html[data-design="measure"] progress {
  border: 2px solid #0e1d15;
  border-radius: 0;
  height: 14px;
}
html[data-design="measure"] progress::-webkit-progress-value { background: repeating-linear-gradient(90deg, #0f7a48 0 12px, #15965a 12px 18px); border-radius: 0; }
html[data-design="measure"] progress::-moz-progress-bar { background: repeating-linear-gradient(90deg, #0f7a48 0 12px, #15965a 12px 18px); border-radius: 0; }
html[data-design="measure"] .option-btn.selected,
html[data-design="measure"] .likert-btn.selected,
html[data-design="measure"] .likert-option.selected { background: #0e1d15; color: #fff; }
html[data-design="measure"] .footer-bar {
  border: none;
  border-top: 2px solid #0e1d15;
  background: rgba(251, 253, 249, 0.78);
}

/* ── Измерение: иллюстративный слой (приборы, шкалы, сигнал) ── */
html[data-design="measure"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%230f7a48' stroke-width='1' opacity='.12'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(15, 122, 72, 0.12) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(15, 122, 72, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #dce5dc 0%, #fbfdf9 42%, #eef3ef 100%);
  background-size: 40px 40px, auto, auto, auto;
}
html[data-design="measure"] body::after {
  content: "";
  position: fixed;
  right: 0;
  top: 14px;
  z-index: 0;
  width: 44px;
  height: calc(100vh - 14px);
  pointer-events: none;
  opacity: 0.75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 400'%3E%3Crect width='44' height='400' fill='%23dce5dc'/%3E%3Cpath d='M0 0h44' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M0 24h28M0 48h36M0 72h28M0 96h36M0 120h28M0 144h36M0 168h28M0 192h36M0 216h28M0 240h36M0 264h28M0 288h36M0 312h28M0 336h36M0 360h28M0 384h36' stroke='%230e1d15' stroke-width='2'/%3E%3Ctext x='6' y='18' font-size='10' font-weight='800' fill='%230f7a48' font-family='monospace'%3Ecm%3C/text%3E%3C/svg%3E") top center / 44px auto repeat-y;
  box-shadow: -4px 0 0 rgba(14, 29, 21, 0.08);
}
html[data-design="measure"] .site-shell::before {
  content: "";
  position: fixed;
  left: 180px;
  bottom: 0;
  z-index: 0;
  width: min(500px, 55vw);
  height: min(360px, 45vh);
  pointer-events: none;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 280'%3E%3Crect x='20' y='40' width='160' height='100' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M28 120 C60 60 100 140 140 80 180 120' fill='none' stroke='%230f7a48' stroke-width='3'/%3E%3Ccircle cx='220' cy='90' r='56' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='3'/%3E%3Ccircle cx='220' cy='90' r='6' fill='%230e1d15'/%3E%3Cpath d='M220 90V44M220 90h38' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M220 44a46 46 0 0 1 40 24' fill='none' stroke='%230f7a48' stroke-width='5'/%3E%3Crect x='40' y='180' width='24' height='70' fill='%230f7a48'/%3E%3Crect x='76' y='150' width='24' height='100' fill='%2315965a'/%3E%3Crect x='112' y='165' width='24' height='85' fill='%230f7a48' opacity='.8'/%3E%3Crect x='148' y='130' width='24' height='120' fill='%230e1d15' opacity='.85'/%3E%3C/svg%3E") left bottom / contain no-repeat;
}
html[data-design="measure"] .site-brand-header::before {
  content: "";
  position: absolute;
  right: 2%;
  top: 50%;
  z-index: 0;
  width: min(420px, 46vw);
  height: min(240px, 32vw);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.78;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 220'%3E%3Crect x='20' y='30' width='120' height='80' fill='%23e4ebe4' stroke='%230e1d15' stroke-width='3'/%3E%3Crect x='32' y='78' width='14' height='24' fill='%230f7a48'/%3E%3Crect x='54' y='62' width='14' height='40' fill='%2315965a'/%3E%3Crect x='76' y='48' width='14' height='54' fill='%230f7a48'/%3E%3Crect x='98' y='36' width='14' height='66' fill='%230e1d15'/%3E%3Ccircle cx='260' cy='70' r='50' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M260 70V30M260 70h36' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M260 30a40 40 0 0 1 36 22' fill='none' stroke='%230f7a48' stroke-width='5'/%3E%3Crect x='160' y='140' width='180' height='50' fill='none' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M172 178h8M196 178h8M220 178h8M244 178h8M268 178h8M292 178h8M316 178h8' stroke='%230f7a48' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-design="measure"] .site-brand-header > * { position: relative; z-index: 2; }
html[data-design="measure"] .site-main-column { position: relative; }
html[data-design="measure"] .site-main-column::before {
  content: "";
  position: absolute;
  right: 48px;
  top: 100px;
  z-index: 0;
  width: min(260px, 34vw);
  height: min(260px, 34vw);
  pointer-events: none;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Ccircle cx='80' cy='80' r='70' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='4'/%3E%3Ccircle cx='80' cy='80' r='8' fill='%230e1d15'/%3E%3Cpath d='M80 80V24' stroke='%230f7a48' stroke-width='5' stroke-linecap='square'/%3E%3Cpath d='M80 80h48' stroke='%230e1d15' stroke-width='4' stroke-linecap='square'/%3E%3Cpath d='M80 24a56 56 0 0 1 48 30' fill='none' stroke='%230f7a48' stroke-width='6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-design="measure"] .site-nav-rail::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 10px;
  height: 210px;
  pointer-events: none;
  opacity: 0.75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 210'%3E%3Crect x='10' y='120' width='130' height='70' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M18 170l20-36 18 22 24-40 28 54 22-30' fill='none' stroke='%230f7a48' stroke-width='2.5'/%3E%3Ccircle cx='75' cy='50' r='36' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M75 50V26M75 50h22' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M8 8v194' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M8 30h24M8 70h32M8 110h20M8 150h28' stroke='%230f7a48' stroke-width='2'/%3E%3C/svg%3E") center bottom / contain no-repeat;
}
html[data-design="measure"] .site-nav-rail { position: relative; }
html[data-design="measure"] .site-main-column > .container {
  border: 3px solid #0e1d15;
  background: rgba(251, 253, 249, 0.92);
  box-shadow: 10px 10px 0 rgba(15, 122, 72, 0.2);
}
html[data-design="measure"] section,
html[data-design="measure"] article {
  border-left-width: 22px;
  padding-top: clamp(48px, 7vw, 60px);
  background-color: rgba(251, 253, 249, 0.97);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 48'%3E%3Crect width='140' height='48' fill='%23e4ebe4'/%3E%3Ctext x='10' y='30' font-size='11' font-weight='900' fill='%230e1d15' font-family='monospace'%3EЗАМЕР %23%3C/text%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(15, 122, 72, 0.14) 9px 10px);
  background-position: 0 0, 0 0;
  background-size: auto 48px, 22px 100%;
  background-repeat: no-repeat, repeat-y;
}
html[data-design="measure"] section::before,
html[data-design="measure"] article::before {
  content: "▸";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #fbfdf9;
  font: 900 14px/1 monospace;
  text-transform: none;
}
html[data-design="measure"] .site-ad-strip {
  min-height: 92px;
  border-width: 3px;
  border-style: solid;
  border-color: #0e1d15;
  background-color: rgba(228, 235, 228, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 92'%3E%3Crect x='16' y='16' width='200' height='60' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M28 60 C60 28 100 72 140 40 180 60' fill='none' stroke='%230f7a48' stroke-width='3'/%3E%3Ccircle cx='360' cy='46' r='28' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M360 46V28M360 46h16' stroke='%230e1d15' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center;
  background-size: min(520px, 96%) auto;
  background-repeat: no-repeat;
}
html[data-design="measure"] .footer-bar {
  padding-top: 28px;
  background-color: rgba(228, 235, 228, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24'%3E%3Cpath d='M0 12h400' stroke='%230e1d15' stroke-width='3'/%3E%3Cpath d='M0 12h16M32 12h16M64 12h16M96 12h16M128 12h16M160 12h16M192 12h16M224 12h16M256 12h16M288 12h16M320 12h16M352 12h16' stroke='%230f7a48' stroke-width='5'/%3E%3C/svg%3E");
  background-position: top center;
  background-size: auto 18px;
  background-repeat: repeat-x;
}
html[data-design="measure"] .quiz-wrapper::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 760px;
  height: 56px;
  margin: 0 auto 10px;
  opacity: 0.65;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 56'%3E%3Crect x='8' y='8' width='464' height='40' fill='%23fbfdf9' stroke='%230e1d15' stroke-width='2'/%3E%3Cpath d='M16 32 C80 12 160 48 240 20 320 44 400 16' fill='none' stroke='%230f7a48' stroke-width='3'/%3E%3Cpath d='M16 40h448' stroke='%239eb0a3' stroke-width='1' stroke-dasharray='4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
html[data-design="measure"] .quiz-wrapper #quiz-container {
  padding-top: 56px;
  background-color: #fbfdf9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 48'%3E%3Crect width='200' height='48' fill='%23e4ebe4'/%3E%3Ctext x='12' y='30' font-size='11' font-weight='900' fill='%230e1d15' font-family='monospace'%3EСЕАНС ИЗМЕРЕНИЯ%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='8' y='68' width='84' height='24' fill='%23e4ebe4' stroke='%230e1d15' stroke-width='2'/%3E%3Crect x='16' y='24' width='14' height='44' fill='%230f7a48'/%3E%3Crect x='38' y='12' width='14' height='56' fill='%2315965a'/%3E%3Crect x='60' y='32' width='14' height='36' fill='%230f7a48'/%3E%3Crect x='82' y='18' width='14' height='50' fill='%230e1d15'/%3E%3C/svg%3E");
  background-position: 0 0, left 14px bottom 14px;
  background-size: auto 48px, 90px auto;
  background-repeat: no-repeat, no-repeat;
}

@media (max-width: 900px) {
  html[data-design="editorial"] .layout-doc,
  html[data-design="noir"] .layout-doc,
  html[data-design="warm"] .layout-doc,
  html[data-design="atlas"] .layout-doc,
  html[data-design="science"] .layout-doc,
  html[data-design="psyche"] .layout-doc,
  html[data-design="measure"] .layout-doc {
    grid-template-columns: 1fr;
  }
  html[data-design="atlas"] .site-brand-header {
    grid-template-columns: 1fr;
  }
  html[data-design="atlas"] .design-switcher {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  html[data-design="editorial"] .site-nav-rail,
  html[data-design="minimal"] .site-nav-rail,
  html[data-design="noir"] .site-nav-rail,
  html[data-design="warm"] .site-nav-rail,
  html[data-design="atlas"] .site-nav-rail,
  html[data-design="science"] .site-nav-rail,
  html[data-design="psyche"] .site-nav-rail,
  html[data-design="measure"] .site-nav-rail {
    width: 100%;
    min-height: 0;
  }
  html[data-design="noir"] .site-shell,
  html[data-design="atlas"] .site-shell,
  html[data-design="science"] .site-shell,
  html[data-design="measure"] .site-shell {
    grid-template-columns: 1fr;
  }
  html[data-design="noir"] .site-nav-rail,
  html[data-design="atlas"] .site-nav-rail,
  html[data-design="science"] .site-nav-rail,
  html[data-design="measure"] .site-nav-rail {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--kyt-border);
  }
  html[data-design="editorial"] .site-nav-rail-inner,
  html[data-design="noir"] .site-nav-rail-inner,
  html[data-design="warm"] .site-nav-rail-inner,
  html[data-design="atlas"] .site-nav-rail-inner,
  html[data-design="science"] .site-nav-rail-inner,
  html[data-design="psyche"] .site-nav-rail-inner,
  html[data-design="measure"] .site-nav-rail-inner {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
  }
  html[data-design="editorial"] .nav-rail-link,
  html[data-design="minimal"] .nav-rail-link,
  html[data-design="noir"] .nav-rail-link,
  html[data-design="warm"] .nav-rail-link,
  html[data-design="atlas"] .nav-rail-link,
  html[data-design="science"] .nav-rail-link,
  html[data-design="psyche"] .nav-rail-link,
  html[data-design="measure"] .nav-rail-link {
    min-width: auto;
    max-width: none;
    flex: 0 0 auto;
  }
  html[data-design="editorial"] .home-topics-two-col,
  html[data-design="minimal"] .home-topics-two-col,
  html[data-design="noir"] .home-topics-two-col,
  html[data-design="warm"] .home-topics-two-col,
  html[data-design="atlas"] .home-topics-two-col,
  html[data-design="science"] .home-topics-two-col,
  html[data-design="psyche"] .home-topics-two-col,
  html[data-design="measure"] .home-topics-two-col {
    grid-template-columns: 1fr;
  }
  html[data-design="science"] body::before,
  html[data-design="science"] body::after,
  html[data-design="science"] .site-shell::before,
  html[data-design="science"] .site-brand-header::before,
  html[data-design="science"] .site-nav-rail::after,
  html[data-design="psyche"] body::before,
  html[data-design="psyche"] body::after,
  html[data-design="psyche"] .site-shell::before,
  html[data-design="psyche"] .site-shell::after,
  html[data-design="psyche"] .site-main-column::before,
  html[data-design="psyche"] .site-main-column::after,
  html[data-design="psyche"] .site-brand-header::after,
  html[data-design="measure"] body::after,
  html[data-design="measure"] .site-shell::before,
  html[data-design="measure"] .site-main-column::before,
  html[data-design="measure"] .site-brand-header::before,
  html[data-design="measure"] .site-brand-header::after,
  html[data-design="measure"] .site-nav-rail::after,
  html[data-design="measure"] .quiz-wrapper::before {
    display: none;
  }
  html[data-design="science"] .site-brand-header,
  html[data-design="measure"] .site-brand-header {
    min-height: 0;
    padding-right: 20px;
    background-image: none;
  }
  html[data-design="psyche"] .site-brand-header {
    min-height: 0;
  }
  html[data-design="science"] .site-nav-rail,
  html[data-design="measure"] .site-nav-rail {
    padding-bottom: 18px;
  }
  html[data-design="science"] section,
  html[data-design="science"] article,
  html[data-design="psyche"] section,
  html[data-design="psyche"] article,
  html[data-design="measure"] section,
  html[data-design="measure"] article {
    background-image: none;
    padding-top: clamp(14px, 2.4vw, 24px);
    padding-left: clamp(14px, 2.4vw, 24px);
    border-left-width: 2px;
  }
  html[data-design="psyche"] section,
  html[data-design="psyche"] article {
    padding-left: clamp(18px, 3vw, 32px);
  }
}
