:root {
  color-scheme: light;
  --ink: #1d2530;
  --muted: #657283;
  --line: #d9e1ea;
  --panel: #ffffff;
  --bg: #f5f7fa;
  --accent: #0f766e;
  --accent-2: #b45309;
  --good: #15803d;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
}

.home-hero {
  position: relative;
  min-height: min(560px, calc(100vh - 112px));
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 54px;
  padding: 56px;
  background: #1c3538 url("/assets/assessa-hero.png") center / cover no-repeat;
  border-radius: 8px;
}

.home-hero::before { content: ""; position: absolute; inset: 0; background: rgba(9, 27, 30, 0.38); }
.hero-copy { position: relative; width: min(560px, 58%); color: #fff; }
.hero-copy .eyebrow { color: #8de1d6; }
.hero-copy h1 { max-width: 560px; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.hero-copy p { max-width: 520px; color: #fff; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .secondary { background: rgba(255, 255, 255, 0.92); color: #173238; }
.catalog-section { scroll-margin-top: 24px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 32px; align-items: end; margin-bottom: 20px; }
.section-heading p { margin: 0; }
.hr-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 42px; padding: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hr-band p { max-width: 700px; margin-bottom: 0; }

.language select { width: auto; min-height: 34px; padding: 0 28px 0 9px; border-color: var(--line); background-color: transparent; color: var(--muted); font-size: 12px; }
.page-head { max-width: 760px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); }
.eyebrow, .category { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.test-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.test-card h3 a { color: var(--ink); text-decoration: none; }
.test-card h3 a:hover { color: var(--accent); }
.card-link { display: block; margin-top: 16px; }
.card-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.card-actions .card-link { margin-top: 0; }
.card-actions .start-card { flex: 0 0 auto; }
.campaign-panel { margin-top: 16px; }
.campaign-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px; gap: 10px; align-items: end; }
.campaign-form label { margin: 0; }
.campaign-form button { min-height: 42px; grid-column: 1 / -1; justify-self: start; }
.campaign-list { display: grid; gap: 10px; margin-top: 22px; }
.campaign-row { padding-top: 16px; border-top: 1px solid var(--line); }
.campaign-row p { margin: 4px 0 10px; }
.campaign-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.campaign-metrics span { color: var(--muted); font-size: 12px; }
.campaign-metrics b { display: block; color: var(--ink); font-size: 18px; }
.campaign-actions { display: flex; gap: 8px; margin-top: 12px; }
.test-start { width: 100%; margin-top: 16px; }
.sticky { position: sticky; top: 20px; }
.catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; margin-bottom: 18px; }
.catalog-tools label { margin: 0; color: var(--muted); font-size: 13px; }
.empty-catalog { padding: 24px 0; text-align: center; }
.telegram-band { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 42px; align-items: center; margin-top: 42px; padding: 34px; background: #eaf5f8; border: 1px solid #bfdde5; border-radius: 8px; }
.telegram-band p { max-width: 680px; }
.telegram-button { background: #168acb; }
.telegram-qr { display: grid; gap: 8px; justify-items: center; color: var(--ink); text-decoration: none; font-weight: 750; }
.telegram-qr img { width: 160px; height: 160px; padding: 8px; background: white; border: 1px solid #bfdde5; }
.test-detail { max-width: 860px; margin: 0 auto; }
.test-detail > header { padding: 48px 0 38px; border-bottom: 1px solid var(--line); }
.test-detail h1 { max-width: 760px; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; }
.test-lead { max-width: 720px; font-size: 19px; }
.back-link { display: inline-block; margin-top: 8px; }
.test-facts { display: grid; grid-template-columns: 120px 120px minmax(180px, 1fr); gap: 12px; margin: 28px 0; }
.test-facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.test-facts strong, .test-facts span { display: block; }
.test-facts strong { font-size: 22px; }
.test-facts span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.detail-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.dimension-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dimension-list span { padding: 10px 12px; background: white; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.seo-test-fallback { max-width: 760px; margin: 60px auto; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 22px;
}

.card {
  padding: 18px;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

button,
.button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.secondary,
.button.secondary {
  background: #e8eef5;
  color: var(--ink);
}

button:disabled { cursor: not-allowed; opacity: 0.5; }

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 650;
}

.question {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.question legend { display: flex; gap: 10px; font-weight: 750; }
.question legend > span { color: var(--accent); }

.option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  color: var(--ink);
}

.option input {
  width: auto;
  min-height: auto;
}

.metric {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric div {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e6f3f1;
  color: #115e59;
  font-weight: 750;
  margin: 4px 4px 0 0;
}

.tag.warm { background: #fff3df; color: #92400e; }
.status { color: var(--good); font-size: 13px; }
.note { font-size: 13px; }
.assessment { max-width: 780px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.assessment-head { margin-bottom: 24px; }
.invite-result, .result-card, .certificate-body { margin-top: 22px; padding: 20px; border-top: 3px solid var(--accent); background: #f8fafc; }
.certificate-identity { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.certificate-identity button { width: 100%; }
.copy { margin-top: 8px; }
.invite-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 16px; }
.invite-actions .telegram-button, .invite-actions .copy { width: auto; margin: 0; }
.profile-bars { display: grid; gap: 14px; margin: 20px 0; }
.profile-bars div { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.profile-bars progress { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.answer-review { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.answer-review-item { border-top: 1px solid var(--line); }
.answer-review-item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; cursor: pointer; }
.answer-review-item summary span { font-weight: 700; }
.answer-review-item summary strong { color: var(--good); font-size: 12px; }
.answer-review-item.is-incorrect summary strong { color: #b45309; }
.answer-review-item p { margin: 0 0 12px; }
.attempt-progress { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 0 -12px 18px; padding: 12px; background: color-mix(in srgb, var(--panel) 94%, transparent); border-bottom: 1px solid var(--line); }
.attempt-progress progress { width: 100%; accent-color: var(--accent); }
.attempt-progress strong { color: var(--muted); font-size: 13px; }
.certificate-actions { max-width: 900px; margin: 24px auto 12px; display: flex; justify-content: flex-end; }
.certificate { position: relative; max-width: 900px; min-height: 620px; margin: 0 auto 40px; padding: 58px; border: 1px solid #b9c9c7; border-top: 10px solid var(--accent); background: white; text-align: center; overflow: hidden; }
.certificate::after { content: ""; position: absolute; inset: 16px; border: 1px solid #dce5e4; pointer-events: none; }
.certificate-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); color: white; font-size: 24px; font-weight: 850; }
.certificate .verified { position: relative; z-index: 1; display: inline-block; margin: 8px 0 22px; padding: 8px 14px; color: #166534; background: #edf8f0; border: 1px solid #bde1c6; border-radius: 999px; }
.certificate-body { position: relative; z-index: 1; }
.certificate-body h2 { margin-top: 14px; font-size: 34px; }
.certificate-body h3 { color: var(--accent); font-size: 22px; }
.telegram-proof { margin: -2px 0 18px; color: var(--muted); font-size: 12px; }
.certificate-details { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; gap: 12px; margin: 28px 0; }
.certificate-details div { padding: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.certificate-details strong, .certificate-details span { display: block; }
.certificate-details strong { font-size: 24px; }
.certificate-details span { color: var(--muted); font-size: 12px; }
.certificate-verification { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; text-align: start; }
.certificate-verification img { width: 112px; height: 112px; }
.certificate-verification span, .certificate-verification strong, .certificate-verification small { display: block; }
.certificate-verification strong { max-width: 310px; overflow-wrap: anywhere; font-size: 14px; }
.certificate-verification span, .certificate-verification small { color: var(--muted); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.summary div { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.summary strong { display: block; font-size: 28px; }
.summary span { color: var(--muted); }
.text-link { color: var(--accent); font-weight: 750; }
.score-circle { display: grid; place-items: center; width: 120px; height: 120px; margin: 24px auto; border: 10px solid #b7e1dc; border-radius: 50%; color: var(--accent); font-size: 30px; font-weight: 850; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.plan-row span { display: block; color: var(--muted); font-size: 13px; }
.plan-row strong { display: block; margin-top: 4px; }
.panel > progress { width: 100%; margin-bottom: 14px; accent-color: var(--accent); }
.active-list { margin-top: 24px; }
.invite-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.invite-row p { margin: 4px 0 0; }
.empty-state { text-align: center; padding-block: 64px; }
.profile-summary { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.profile-summary > div { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.profile-summary h2 { margin-bottom: 4px; }
.profile-summary strong { display: block; font-size: 28px; }
.profile-summary span { color: var(--muted); }
.history-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; }
.history-row p { margin: 0; }
.auth-panel { max-width: 480px; margin: 30px auto; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.telegram-button { width: 100%; margin: 18px 0 8px; background: #2472a4; }
.form-error { color: #b91c1c; font-weight: 650; }
.telegram-nav { display: none; }

.linkbox {
  overflow-wrap: anywhere;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

body.telegram-app {
  --ink: #17212b;
  --muted: #667786;
  --line: #d8e0e7;
  --panel: #ffffff;
  --bg: #f1f4f7;
  --accent: #2481cc;
  --telegram-button: #2481cc;
  --telegram-button-text: #ffffff;
  --telegram-secondary: #e5edf3;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

body.telegram-app.telegram-dark {
  --ink: #f5f7fa;
  --muted: #aab6c2;
  --line: #354451;
  --panel: #202b36;
  --bg: #17212b;
  --accent: #64b5ef;
  --telegram-button: #2ea6ff;
  --telegram-button-text: #ffffff;
  --telegram-secondary: #2b3945;
  color-scheme: dark;
}

.telegram-app .catalog-section { margin: 0; }
.telegram-app .section-heading { display: block; }
.telegram-app .section-heading > p, .telegram-app .hr-band { display: none; }

.telegram-app .topbar { display: none; }
.telegram-app main { width: 100%; margin: 0; padding: 16px; }
.telegram-app .page-head { margin-bottom: 18px; }
.telegram-app .page-head h1 { font-size: 28px; }
.telegram-app .page-head p { margin-bottom: 0; }
.telegram-app .layout { display: block; }
.telegram-app .test-grid { grid-template-columns: 1fr; gap: 8px; }
.telegram-app .test-card { min-height: 0; padding: 16px; margin: 0; }
.telegram-app .test-card p { margin-block: 6px 12px; }
.telegram-app .telegram-start { width: 100%; margin-top: 12px; }
.telegram-app .sticky { position: static; margin-top: 16px; }
.telegram-app .assessment,
.telegram-app .auth-panel,
.telegram-app .certificate { border: 0; margin: 0; padding: 4px 0 20px; background: var(--bg); }
.telegram-app .card,
.telegram-app .panel,
.telegram-app .profile-summary > div,
.telegram-app .summary div { background: var(--panel); }
.telegram-app h1,
.telegram-app h2,
.telegram-app h3,
.telegram-app strong,
.telegram-app label,
.telegram-app .card,
.telegram-app .panel,
.telegram-app .profile-summary > div { color: var(--ink); }
.telegram-app .tag { background: #dcefeb; color: #115e59; }
.telegram-app.telegram-dark .tag { background: #294743; color: #a7ece2; }
.telegram-app .tag.warm { background: #fff0d4; color: #8a4609; }
.telegram-app.telegram-dark .tag.warm { background: #49391f; color: #ffd293; }
.telegram-app .result-card {
  --ink: #1d2530;
  --muted: #657283;
  --line: #d9e1ea;
  color: var(--ink);
  background: #f8fafc;
}
.telegram-app .result-card h2,
.telegram-app .result-card label,
.telegram-app .result-card .metric strong,
.telegram-app .result-card .metric span { color: var(--ink); }
.telegram-app .result-card p,
.telegram-app .result-card .note { color: var(--muted); }
.telegram-app .result-card .metric div { background: #ffffff; border-color: var(--line); }
.telegram-app .result-card input { background: #1d2936; color: #ffffff; border-color: #1d2936; }
.telegram-app .certificate {
  --ink: #1d2530;
  --muted: #657283;
  --line: #d9e1ea;
  --accent: #0f766e;
  color: var(--ink);
  background: #ffffff;
  border-top: 10px solid var(--accent);
  padding: 42px 28px;
}
.telegram-app .certificate h1,
.telegram-app .certificate h2,
.telegram-app .certificate strong { color: var(--ink); }
.telegram-app .certificate .certificate-body { background: #f8fafc; }
.telegram-app .certificate .certificate-mark { color: #ffffff; }
.telegram-app .certificate-actions { margin-top: 0; }
.telegram-app .certificate-actions button { width: 100%; }
.telegram-app input,
.telegram-app select { background: var(--panel); color: var(--ink); }
.telegram-app button,
.telegram-app .button { background: var(--telegram-button); color: var(--telegram-button-text); }
.telegram-app button.secondary,
.telegram-app .button.secondary { background: var(--telegram-secondary); color: var(--ink); }
.telegram-app p { color: var(--muted); }
.telegram-app .telegram-nav {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 58px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.telegram-app .telegram-nav a {
  display: grid;
  place-items: center;
  padding: 8px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.telegram-app .telegram-nav a.active { color: var(--accent); }

.pass {
  color: var(--good);
}

.test-studio { margin: 28px 0; border-block: 1px solid var(--line); padding: 28px 0; }
.studio-toolbar, .question-editor-head, .editor-section-head, .editor-savebar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.studio-toolbar h2, .editor-section-head h3 { margin: 2px 0 4px; }
.studio-toolbar p, .editor-section-head p { margin: 0; }
.studio-test-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.studio-tabs { display: flex; gap: 6px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.studio-tab { border-radius: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); }
.studio-tab.active { border-bottom-color: var(--accent); background: transparent; color: var(--ink); }
.studio-empty { padding: 26px 0; color: var(--muted); }
.studio-test-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 108px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.studio-test-row h3 { margin: 8px 0 4px; font-size: 17px; }
.studio-test-row p { margin: 0; font-size: 13px; }
.studio-scope { display: inline-block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.studio-scope.custom { color: var(--accent); }
.studio-lock { max-width: 170px; color: var(--muted); font-size: 12px; text-align: right; }
.test-editor-shell { margin-top: 24px; padding: 24px; border: 1px solid var(--ink); background: var(--panel); box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent) 18%, transparent); }
.test-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 30px; }
.test-settings .wide { grid-column: span 2; }
.question-editor { padding: 22px 0; border-top: 1px solid var(--line); }
.question-editor label, .test-settings label, .question-meta label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.question-editor textarea, .test-settings textarea { resize: vertical; }
.option-editor { display: grid; gap: 8px; margin: 16px 0 10px; }
.option-edit-row { grid-template-columns: 22px minmax(0, 1fr) 36px !important; align-items: center; }
.option-edit-row input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.icon-action { display: grid; place-items: center; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; }
.question-meta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.editor-section-head { margin-bottom: 6px; }
.editor-savebar { position: sticky; bottom: 0; z-index: 3; margin: 18px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--panel); }
.editor-savebar p { margin: 0; color: var(--accent); font-weight: 700; }

@media (max-width: 820px) {
  .layout,
  .metric,
  .test-grid,
  .summary,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 16px;
  }

  nav { gap: 8px; }
  .assessment, .certificate { padding: 20px; }
  nav > a { font-size: 13px; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row .text-link { grid-column: 1 / -1; }
  .home-hero { min-height: 500px; padding: 34px; background-position: 62% center; }
  .campaign-form { grid-template-columns: 1fr; }
  .campaign-form button { width: 100%; }
  .campaign-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: min(520px, 76%); }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .catalog-tools, .telegram-band { grid-template-columns: 1fr; }
  .telegram-qr { justify-self: start; }
  .invite-actions { grid-template-columns: 1fr; }
  .studio-test-list, .test-settings { grid-template-columns: 1fr; }
  .test-settings .wide { grid-column: auto; }
  .studio-test-row { grid-template-columns: 1fr; }
  .studio-lock { max-width: none; text-align: left; }
  .question-meta { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .topbar {
    height: auto;
    min-height: 92px;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 10px;
  }

  .brand {
    width: 100%;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav > a {
    font-size: 12px;
  }

  main {
    margin-top: 18px;
  }

  .home-hero { min-height: 520px; margin-inline: -16px; padding: 26px 20px; border-radius: 0; background-position: 66% center; align-items: end; }
  .home-hero::before { background: rgba(8, 25, 28, 0.56); }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy p { font-size: 16px; }
  .hr-band { align-items: flex-start; flex-direction: column; padding-inline: 0; }
  .test-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-facts div:last-child { grid-column: 1 / -1; }
  .telegram-band { margin-inline: -16px; padding: 24px 16px; border-radius: 0; }
  .certificate { min-height: auto; padding: 36px 24px; }
  .certificate::after { inset: 10px; }
  .certificate-body h2 { font-size: 28px; }
  .certificate-verification { flex-direction: column; text-align: center; }
}

@media print {
  .topbar, .telegram-nav, .certificate-actions { display: none !important; }
  body, main { background: white; margin: 0; width: 100%; }
  .certificate { margin: 0; max-width: none; min-height: 90vh; border-color: #839b98; }
}
