:root {
  --ink: #171818;
  --muted: #66706c;
  --line: #1b1c1b;
  --hairline: rgba(23, 24, 24, .2);
  --paper: #e9e5d5;
  --paper-2: #fff4df;
  --warm: #ffd37a;
  --warm-soft: #ffe9b5;
  --white: #fff;
  --sage: #9aa49d;
  --sage-dark: #65736b;
  --mint: #9fe9d2;
  --olive: #a79643;
  --signal: #ff4b1f;
  --signal-dark: #c73518;
  --blue: #536f72;
  --shadow: 0 18px 48px rgba(23, 24, 24, .16);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #fff0cc 0%, var(--paper) 32%, #f2ead2 100%); font-family: Arial, "Helvetica Neue", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { min-height: 84px; padding: 0 clamp(18px, 5vw, 72px); display: flex; align-items: center; gap: 28px; color: var(--ink); background: rgba(255, 244, 223, .96); border-bottom: 2px solid var(--signal); box-shadow: 0 8px 28px rgba(199, 83, 24, .16); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark, .mini-mark { display: grid; place-items: center; border-radius: 4px; background: var(--signal); color: #fff; font-weight: 800; }
.brand-mark { width: 48px; height: 48px; font-size: 25px; }
.mini-mark { width: 34px; height: 34px; background: var(--green-dark); color: #fff; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.topbar nav { margin-left: auto; display: flex; gap: 22px; color: var(--ink); font-weight: 700; }
.topbar nav a:hover { color: var(--signal); }
.hero { position: relative; min-height: min(760px, calc(100svh - 130px)); padding: 48px clamp(20px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr); align-items: center; gap: 54px; color: var(--ink); background: var(--paper-2); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,244,223,.97) 0%, rgba(255,232,178,.78) 36%, rgba(255,211,122,.2) 72%), radial-gradient(circle at 20% 72%, rgba(255,75,31,.26), transparent 38%); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(23,24,24,.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,24,24,.13) 1px, transparent 1px); background-size: 124px 124px; mix-blend-mode: multiply; }
.hero > *:not(.hero-video) { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 12px; color: var(--signal); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(44px, 7vw, 88px); line-height: .96; letter-spacing: 0; }
.lead { max-width: 680px; margin: 24px 0 0; color: #313633; font-size: 22px; line-height: 1.45; }
.hero-actions, .quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; border: 0; border-radius: 8px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; }
.button.primary { background: linear-gradient(180deg, #ff673a, var(--signal)); color: #fff; box-shadow: 0 10px 24px rgba(239, 59, 24, .28); }
.button.primary:hover { background: linear-gradient(180deg, #ff7a4f, #f13f18); }
.button.secondary { background: rgba(255,244,223,.92); color: var(--ink); border: 1px solid var(--line); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.text-button { border: 0; background: transparent; color: var(--signal-dark); padding: 0; font-weight: 800; }
.control-panel { padding: 24px; border: 2px solid var(--line); border-radius: 4px; background: rgba(255,244,223,.88); box-shadow: var(--shadow); backdrop-filter: blur(3px); }
.panel-header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.panel-header strong { color: var(--ink); }
.metric-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric-grid div { min-height: 96px; padding: 18px; border-radius: 4px; background: rgba(255,255,255,.72); color: var(--ink); border: 1px solid var(--hairline); }
.metric-grid b { display: block; font-size: 34px; }
.metric-grid span { color: var(--muted); font-weight: 700; }
.readiness-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 22px 0; }
.readiness-line span { height: 10px; border-radius: 999px; background: var(--signal); }
.readiness-line span:nth-child(4), .readiness-line span:nth-child(5) { background: var(--sage); }
.control-panel p { margin-bottom: 0; color: #313633; line-height: 1.5; }
.workspace { padding: 56px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
.sidebar { align-self: start; position: sticky; top: 18px; padding: 24px; border: 2px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, #fff7e8, #f5ecd8); box-shadow: 0 14px 34px rgba(199, 83, 24, .1); }
.sidebar h2, .section-heading h2, .method h2 { margin: 0 0 12px; font-size: 32px; }
.sidebar p, .section-heading p { color: var(--muted); line-height: 1.5; }
.status-card { margin-top: 22px; padding: 16px; display: flex; gap: 12px; align-items: center; border-radius: 4px; background: linear-gradient(180deg, #ffe2a1, #ffd078); color: var(--ink); font-weight: 800; border: 1px solid rgba(199, 83, 24, .38); }
.workarea { min-width: 0; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role-card, .test-intro, .quiz, .results, .module-card, .method article { border: 2px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, #fff7e8, #f7edd7); box-shadow: 0 12px 28px rgba(83, 54, 20, .08); }
.role-card { min-height: 210px; padding: 22px; display: flex; flex-direction: column; text-align: left; }
.role-card.selected { outline: 3px solid rgba(255, 75, 31, .25); border-color: var(--signal); background: linear-gradient(180deg, #ffe4a7, #ffd37a); color: var(--ink); }
.role-card h3 { margin: 0 0 8px; font-size: 22px; }
.role-card p { color: #3f4744; line-height: 1.45; }
.role-card .role-meta { margin-top: auto; color: var(--signal-dark); font-weight: 800; }
.role-card.selected span, .role-card.selected p { color: var(--ink); }
.test-intro, .quiz, .results { margin-top: 20px; padding: 26px; }
.test-intro h2, .quiz h2, .results h2 { margin: 0; font-size: 30px; }
.test-intro p { color: var(--muted); line-height: 1.5; }
.test-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.test-facts span { padding: 10px 12px; border-radius: 4px; background: linear-gradient(180deg, #ffe9b5, #ffd37a); color: #3f3422; font-weight: 800; border: 1px solid rgba(199, 83, 24, .25); }
.test-facts b { color: var(--ink); }
.block-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.block-strip div { padding: 12px; border-radius: 4px; background: rgba(255,255,255,.5); font-size: 14px; line-height: 1.35; border: 1px solid rgba(23,24,24,.18); display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 12px; }
.block-count { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 4px; background: var(--signal); color: #fff; font-weight: 900; white-space: nowrap; box-shadow: 0 6px 16px rgba(239, 59, 24, .22); }
.quiz-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.progress { height: 10px; margin: 18px 0 24px; overflow: hidden; border-radius: 999px; background: #e4ece8; }
.progress span { display: block; height: 100%; width: 0; background: var(--signal); transition: width .2s ease; }
.question-meta { color: var(--muted); font-weight: 800; }
.answers { display: grid; gap: 10px; margin-top: 20px; }
.answer { min-height: 54px; padding: 14px 16px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fffdf6; }
.answer input { width: 20px; height: 20px; }
.answer.correct { border-color: var(--sage-dark); background: rgba(159,233,210,.28); }
.answer.wrong { border-color: var(--red); background: #fff0ed; }
.feedback { padding: 16px; border-left: 4px solid var(--signal); background: #fff9ee; line-height: 1.5; }
.result-hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.score-circle { width: 150px; height: 150px; flex: 0 0 auto; display: grid; place-items: center; text-align: center; border-radius: 50%; background: rgba(159,233,210,.28); border: 8px solid var(--signal); }
.score-circle strong { display: block; font-size: 34px; }
.score-circle span { color: var(--muted); font-size: 13px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.block-result, .recommendation-item, .assigned-module { padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: rgba(154,164,157,.16); }
.block-result strong, .recommendation-item h4, .assigned-module h4 { display: block; margin: 0 0 8px; }
.block-result span, .recommendation-item p, .assigned-module p { color: var(--muted); line-height: 1.5; }
.recommendations, .assigned-modules { margin-top: 28px; }
.recommendation-item, .assigned-module { margin-top: 10px; background: #fffdf6; }
.modules-section, .method { padding: 64px clamp(20px, 5vw, 72px); }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.module-grid, .method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card, .method article { padding: 20px; }
.module-card h3, .method h3 { margin: 0 0 10px; font-size: 19px; }
.module-card p, .method p { color: var(--muted); line-height: 1.5; }
.module-card button { margin-top: 12px; }
.module-meta { display: grid; gap: 8px; margin: 12px 0; }
.module-meta p { margin: 0; }
.module-meta strong { color: var(--ink); }
.method { background: var(--paper-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
footer { min-height: 96px; padding: 28px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 18px; color: #fff; background: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 4px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.toast.show { opacity: 1; }
@media (max-width: 920px) {
  .topbar { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .topbar nav { margin-left: 0; }
  .hero, .workspace { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .sidebar { position: static; }
  .method-layout { grid-template-columns: 1fr; }
  .module-grid, .method-grid { grid-template-columns: 1fr 1fr; }
  .certificate-offer { grid-template-columns: 1fr; }
  .result-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 48px; }
  .lead { font-size: 18px; }
  .role-grid, .block-strip, .result-grid, .module-grid, .method-grid { grid-template-columns: 1fr; }
  .score-scale { padding: 18px; }
  .score-weights { grid-template-columns: 1fr; }
  .scale-labels text { font-size: 24px; }
  .scale-zones text { font-size: 22px; }
  .scale-zones text:nth-child(n + 4) { font-size: 20px; }
  .result-hero { align-items: flex-start; flex-direction: column; }
  .score-circle { width: 132px; height: 132px; }
  footer { flex-direction: column; }
}

/* Winter outside, warm inside */
:root {
  --winter-0: #fbfdff;
  --winter-1: #eef9fd;
  --winter-2: #d7eef7;
  --winter-3: #a9dcea;
  --winter-blue: #287d98;
  --inside-warm: #ffbd4a;
  --inside-soft: #fff1c9;
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.95), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(169,220,234,.55), transparent 28%),
    linear-gradient(180deg, var(--winter-0) 0%, var(--winter-1) 42%, #e6f5fa 100%);
}

.topbar {
  background: rgba(251,253,255,.84);
  border-bottom: 1px solid rgba(40,125,152,.3);
  box-shadow: 0 8px 28px rgba(40,125,152,.12);
  backdrop-filter: blur(16px);
}

.brand-mark, .mini-mark {
  background: linear-gradient(180deg, #ffcf73, #ff7a34);
  color: #18262b;
}

.hero::before {
  background: linear-gradient(90deg, rgba(251,253,255,.82) 0%, rgba(238,249,253,.52) 38%, rgba(251,253,255,.08) 76%);
}

.hero::after {
  background-image:
    linear-gradient(to right, rgba(40,125,152,.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(40,125,152,.12) 1px, transparent 1px);
}

.eyebrow, .text-button {
  color: var(--winter-blue);
}

.lead {
  color: #304d57;
}

.button.primary {
  background: linear-gradient(180deg, #ffcf73, #ff8138);
  color: #162227;
  box-shadow: 0 12px 28px rgba(255,129,56,.28);
}

.button.secondary {
  background: rgba(255,255,255,.7);
  border-color: rgba(40,125,152,.35);
  backdrop-filter: blur(10px);
}

.control-panel,
.sidebar,
.role-card,
.test-intro,
.quiz,
.results,
.module-card,
.method article {
  border: 1px solid rgba(40,125,152,.28);
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 34px rgba(40,125,152,.11);
  backdrop-filter: blur(12px);
}

.metric-grid div,
.test-facts span {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(215,238,247,.72));
  border-color: rgba(40,125,152,.24);
  color: #27424b;
}

.readiness-line span {
  background: var(--winter-3);
}

.readiness-line span:nth-child(4),
.readiness-line span:nth-child(5) {
  background: var(--inside-warm);
}

.status-card {
  background: linear-gradient(180deg, rgba(255,241,201,.98), rgba(255,189,74,.74));
  border-color: rgba(255,129,56,.3);
  color: #18262b;
}

.identity-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(40,125,152,.18);
  display: grid;
  gap: 10px;
}

.identity-form h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.identity-form label {
  display: grid;
  gap: 5px;
  color: #4d6870;
  font-size: 13px;
  font-weight: 800;
}

.identity-form input,
.identity-form select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(40,125,152,.28);
  border-radius: 6px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
}

.role-card {
  min-height: 236px;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.72), transparent 48%);
  pointer-events: none;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: var(--winter-3);
}

.role-card[data-role="МО"]::after { background: #7ccfed; }
.role-card[data-role="УК"]::after { background: #9ce4d0; }
.role-card[data-role="ТСО"]::after { background: var(--inside-warm); }
.role-card[data-role="ПО"]::after { background: #b9d7ff; }

.role-card.selected {
  border-color: #ff9248;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,241,201,.76));
  outline: 3px solid rgba(255,146,72,.22);
}

.role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.role-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 6px;
  background: rgba(238,249,253,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 12px 24px rgba(40,125,152,.12);
}

.role-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.38)),
    linear-gradient(90deg, rgba(169,220,234,.14), rgba(255,205,116,.16));
  pointer-events: none;
}

.role-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.role-card[data-role="МО"] .role-visual { box-shadow: 0 12px 24px rgba(75,174,204,.16); }
.role-card[data-role="УК"] .role-visual { box-shadow: 0 12px 24px rgba(55,159,134,.15); }
.role-card[data-role="ТСО"] .role-visual {
  box-shadow:
    0 0 0 3px rgba(255,198,86,.16),
    0 12px 24px rgba(40,125,152,.14);
}
.role-card[data-role="ПО"] .role-visual { box-shadow: 0 12px 24px rgba(95,146,214,.15); }

.role-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.role-code {
  min-width: 48px;
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(239,250,255,.96), rgba(197,234,246,.9));
  color: #1f6f88;
  font-weight: 900;
  border: 1px solid rgba(40,125,152,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

.role-card[data-role="МО"] .role-code {
  color: #207b98;
  background: linear-gradient(180deg, #effbff, #c5eef9);
}

.role-card[data-role="УК"] .role-code {
  color: #247966;
  background: linear-gradient(180deg, #edfff9, #ccefe4);
}

.role-card[data-role="ТСО"] .role-code {
  background: linear-gradient(180deg, #f0fbff, #c9edf8);
  color: #1f6f88;
  border-color: rgba(255,198,86,.42);
}

.role-card[data-role="ПО"] .role-code {
  color: #456fa8;
  background: linear-gradient(180deg, #f4f9ff, #dbeaff);
}

.role-card .role-meta,
.role-card.selected .role-meta {
  color: #315967;
}

.block-strip div {
  grid-template-columns: 112px minmax(0, 1fr);
  background: rgba(255,255,255,.58);
  border-color: rgba(40,125,152,.24);
}

.block-count {
  min-width: 108px;
  justify-content: center;
  background: linear-gradient(180deg, #e5f8ff, #67c7e3);
  color: #123945;
  border: 1px solid rgba(255,255,255,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 10px 22px rgba(40,125,152,.18);
}

.test-intro[data-role="МО"] .block-count { background: linear-gradient(180deg, #e8f9ff, #78d4ee); }
.test-intro[data-role="УК"] .block-count { background: linear-gradient(180deg, #e7fff8, #8fe1cb); }
.test-intro[data-role="ТСО"] .block-count {
  background: linear-gradient(180deg, #f0fbff, #70cae8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 0 0 3px rgba(255,198,86,.22),
    0 10px 22px rgba(40,125,152,.18);
}
.test-intro[data-role="ПО"] .block-count { background: linear-gradient(180deg, #eef6ff, #93bcf2); }

.progress span {
  background: linear-gradient(90deg, var(--winter-3), var(--inside-warm));
}

.module-card {
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--module-accent, var(--winter-3));
}

.module-card:nth-child(3n + 1) { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(215,238,247,.72)); }
.module-card:nth-child(3n + 2) { background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,241,201,.66)); }
.module-card:nth-child(3n) { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(226,248,241,.72)); }

.module-card[data-module-id="L01"] { --module-accent: #78d4ee; }
.module-card[data-module-id="L02"] { --module-accent: #ffbd4a; }
.module-card[data-module-id="L03"] { --module-accent: #a9dec9; }
.module-card[data-module-id="L04"] { --module-accent: #93bcf2; }
.module-card[data-module-id="L05"] { --module-accent: #7ccfed; }
.module-card[data-module-id="L06"] { --module-accent: #9ce4d0; }
.module-card[data-module-id="L07"] { --module-accent: #ffcf73; }
.module-card[data-module-id="L08"] { --module-accent: #b9d7ff; }
.module-card[data-module-id="L09"] { --module-accent: #f6d681; }
.module-card[data-module-id="L10"] { --module-accent: #8fe1cb; }
.module-card[data-module-id="L11"] { --module-accent: #f6b9ae; }

.module-card--featured {
  grid-column: span 2;
}

.module-visual {
  margin: -4px 0 16px;
  border: 1px solid rgba(40,125,152,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(238,249,253,.46)),
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--module-accent) 34%, transparent), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.module-visual--image {
  height: 168px;
  overflow: hidden;
  position: relative;
}

.module-visual--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.34)),
    linear-gradient(90deg, rgba(169,220,234,.2), rgba(255,189,74,.16));
  pointer-events: none;
}

.module-visual--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.module-visual--icon {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-icon-mask {
  width: 54px;
  height: 54px;
  background: #287d98;
  background: color-mix(in srgb, var(--module-accent) 72%, #1f5967);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  opacity: .9;
}

.module-result {
  padding-top: 8px;
  border-top: 1px solid rgba(40,125,152,.18);
}

.module-task-block {
  padding: 10px 0 2px;
  border-top: 1px solid rgba(40,125,152,.16);
}

.module-tasks {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #3d5860;
}

.module-tasks li {
  margin: 0 0 6px;
  line-height: 1.42;
}

.module-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(40,125,152,.18);
  border-radius: 6px;
  background: rgba(255,255,255,.5);
}

.mistakes,
.certificate-offer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(40,125,152,.2);
}

.mistakes > p,
.certificate-offer p {
  color: #4d6870;
  line-height: 1.5;
}

.mistake-item {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(40,125,152,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.64);
}

.mistake-item h4 {
  margin: 0 0 10px;
}

.mistake-item p {
  margin: 8px 0 0;
  color: #3d5860;
  line-height: 1.45;
}

.assigned-module strong {
  display: block;
  margin-top: 12px;
}

.certificate-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.score-circle {
  background: rgba(255,241,201,.78);
  border-color: #ff9248;
}

.method {
  background: rgba(255,255,255,.72);
  border-top: 1px solid rgba(40,125,152,.28);
  border-bottom: 1px solid rgba(40,125,152,.28);
}

.method-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr);
  gap: 22px;
  align-items: stretch;
}

.score-scale {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(40,125,152,.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(238,249,253,.7)),
    radial-gradient(circle at 82% 12%, rgba(255,189,74,.16), transparent 34%);
  box-shadow: 0 14px 34px rgba(40,125,152,.11);
  backdrop-filter: blur(12px);
}

.score-scale svg {
  width: 100%;
  height: auto;
  display: block;
}

.scale-axis,
.scale-ticks line {
  stroke: rgba(40,125,152,.42);
  stroke-width: 2;
}

.scale-labels text {
  fill: #315967;
  font-size: 22px;
  font-weight: 520;
  text-anchor: middle;
}

.scale-bar rect {
  stroke: rgba(255,255,255,.76);
  stroke-width: 2;
}

.zone-bad { fill: #f6b9ae; }
.zone-mid { fill: #f6d681; }
.zone-good { fill: #a9dec9; }

.scale-zones text {
  fill: #34555f;
  font-size: 17px;
  font-weight: 520;
  text-anchor: middle;
}

.scale-zones text:nth-child(n + 4) {
  fill: #64777d;
  font-size: 15px;
  font-weight: 400;
}

.score-weights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.score-weights span {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40,125,152,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.72);
  color: #34555f;
  text-align: center;
  line-height: 1.25;
}

.score-scale figcaption {
  margin-top: 14px;
  color: #64777d;
  font-size: 14px;
  text-align: center;
}

.method-cards {
  display: grid;
  gap: 16px;
}

.method-cards article {
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,241,201,.42)),
    linear-gradient(90deg, rgba(169,220,234,.18), transparent);
}

/* Lighter typography pass */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  color: #287d98;
  font-family: "Segoe Script", "Comic Sans MS", "Bradley Hand ITC", cursive;
  font-weight: 400;
  line-height: 1.12;
  overflow-wrap: normal;
  text-shadow: 0 2px 0 rgba(255,255,255,.78), 0 14px 34px rgba(40,125,152,.22);
}

.hero .eyebrow {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #287d98;
  background: none;
  box-shadow: none;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 520;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar h2,
.section-heading h2,
.method h2,
.test-intro h2,
.quiz h2,
.results h2 {
  font-weight: 520;
  line-height: 1.14;
}

.role-card h3,
.module-card h3,
.method h3 {
  font-weight: 520;
  line-height: 1.18;
}

.brand strong,
.button,
.text-button,
.role-meta,
.block-count,
.question-meta,
.test-facts span,
.status-card,
.identity-form label,
.score-circle strong {
  font-weight: 560;
}

.role-code {
  font-weight: 600;
}

.lead,
.role-card p,
.module-card p,
.method p,
.module-tasks,
.mistake-item p {
  font-weight: 400;
}

.eyebrow {
  font-weight: 500;
  letter-spacing: .08em;
}

.brand-mark,
.mini-mark,
.topbar nav,
.metric-grid b,
.metric-grid span,
.panel-header strong,
.identity-form h3 {
  font-weight: 520;
}

.role-icon {
  width: 38px;
  height: 38px;
  opacity: .86;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero .eyebrow {
    font-size: 16px;
  }

  .module-card--featured {
    grid-column: auto;
  }

  .module-visual--image {
    height: 138px;
  }
}

/* Method scale final layout */
.score-scale {
  min-width: 0;
  overflow: hidden;
}

.score-scale svg {
  max-width: 100%;
}

.score-weights span {
  min-width: 0;
}

@media (max-width: 640px) {
  .method-layout {
    grid-template-columns: 1fr;
  }

  .score-scale {
    padding: 18px;
  }

  .score-weights {
    grid-template-columns: 1fr;
  }

  .scale-labels text {
    font-size: 20px;
  }

  .scale-zones text {
    font-size: 18px;
  }

  .scale-zones text:nth-child(n + 4) {
    font-size: 16px;
  }
}

/* Softer footer and roomier calls to action */
footer {
  position: relative;
  overflow: hidden;
  color: #17343d;
  background:
    radial-gradient(circle at 88% 42%, rgba(255,205,116,.82) 0 32px, transparent 33px),
    radial-gradient(circle at 88% 42%, rgba(255,205,116,.2) 0 82px, transparent 83px),
    linear-gradient(90deg, rgba(238,249,253,.96), rgba(255,241,201,.88));
  border-top: 1px solid rgba(40,125,152,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

footer::before {
  right: clamp(28px, 8vw, 118px);
  top: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,146,72,.44);
  background: radial-gradient(circle, rgba(255,189,74,.8), rgba(255,189,74,.14) 64%, transparent 66%);
}

footer::after {
  content: "✻  ❄  ✻";
  left: clamp(180px, 27vw, 500px);
  top: 20px;
  width: auto;
  height: auto;
  color: rgba(40,125,152,.34);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: .18em;
  text-shadow: 0 1px 0 rgba(255,255,255,.86);
  background: none;
  opacity: 1;
}

footer strong,
footer span,
footer a,
.footer-credits {
  position: relative;
  z-index: 1;
}

footer strong {
  color: #287d98;
  font-family: "Segoe Script", "Comic Sans MS", "Bradley Hand ITC", cursive;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.82);
}

.footer-credits {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #31505a;
  font-size: 15px;
  line-height: 1.35;
  text-align: right;
}

.footer-credits a {
  color: #287d98;
  text-decoration: none;
  border-bottom: 1px solid rgba(40,125,152,.28);
}

.footer-credits a:hover {
  color: #1f6d86;
  border-bottom-color: currentColor;
}

.button {
  min-width: 142px;
  padding: 14px 24px;
  white-space: nowrap;
}

#start-test {
  min-width: 164px;
  padding-inline: 28px;
}

.status-card {
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

.status-card .mini-mark {
  flex: 0 0 38px;
}

.status-card span:last-child {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
