:root {
  --bg: #e8f0ec;
  --bg-2: #d5e6df;
  --ink: #0f2a3a;
  --ink-soft: #3a5564;
  --muted: #5f7582;
  --panel: #f7fbf9;
  --panel-2: #eef6f2;
  --stroke: rgba(15, 42, 58, 0.12);
  --primary: #1f8a70;
  --primary-deep: #146554;
  --primary-soft: rgba(31, 138, 112, 0.14);
  --accent: #e2a12b;
  --accent-deep: #b87a12;
  --danger: #b42318;
  --ok: #147a4b;
  --shadow: 0 18px 50px rgba(15, 42, 58, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-display: "Syne", "Trebuchet MS", "Segoe UI", sans-serif;
  --font: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 138, 112, 0.18), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(226, 161, 43, 0.16), transparent 55%),
    linear-gradient(180deg, #f3f8f5 0%, var(--bg) 40%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 42, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 58, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

a {
  color: var(--primary-deep);
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 249, 0.86);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #0f2a3a, #1f8a70);
  color: #f7fbf9;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 42, 58, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
}

.nav-links a:hover {
  color: var(--primary-deep);
}

.sitemap-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.sitemap-list li {
  padding: 0.75rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.sitemap-list a {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.sitemap-list a:hover {
  color: var(--primary-deep);
}

.alias-note {
  border-left: 4px solid var(--accent);
}

.nav-links a.active {
  color: var(--primary-deep);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
  background: var(--ink);
  color: #f7fbf9 !important;
  box-shadow: 0 10px 24px rgba(15, 42, 58, 0.2);
}

.nav-cta:hover {
  background: var(--primary-deep);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero,
.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-top: 0.7rem;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.25rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.float-card {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  animation: floatY 5.5s ease-in-out infinite;
}

.float-card.main {
  inset: 18% 8% auto 4%;
  z-index: 2;
}

.float-card.score {
  right: 4%;
  top: 8%;
  animation-delay: 0.6s;
}

.float-card.timer {
  right: 10%;
  bottom: 8%;
  animation-delay: 1.1s;
}

.float-equation {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.35rem 0;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(226, 161, 43, 0.18);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill.ok {
  background: rgba(20, 122, 75, 0.15);
  color: var(--ok);
}

.muted {
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 700;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.cookie-decline-link:focus-visible,
.footer-cookie-settings:focus-visible,
.choice-btn:focus-visible,
.history-item:focus-visible,
.chip:focus-visible {
  outline: 3px solid rgba(31, 138, 112, 0.45);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #1f8a70, #146554);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 138, 112, 0.28);
}

.btn-accent {
  background: linear-gradient(135deg, #e2a12b, #c88612);
  color: #1a1405;
  box-shadow: 0 12px 28px rgba(226, 161, 43, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--stroke);
  color: var(--ink);
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 1.6rem 0 2.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 10px 30px rgba(15, 42, 58, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: riseIn 0.55s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Calculator shell */
.calc-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 14px 40px rgba(15, 42, 58, 0.06);
}

.panel + .panel {
  margin-top: 0.9rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tabs button {
  border: 1px solid var(--stroke);
  background: var(--panel-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tabs button.active {
  background: var(--ink);
  color: #f7fbf9;
  border-color: var(--ink);
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.mode-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  font-weight: 750;
  font-size: 0.92rem;
}

.mode-row input {
  accent-color: var(--primary);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.field label {
  font-weight: 750;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea,
.settings select,
.settings input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.result-card {
  background: linear-gradient(160deg, #0f2a3a, #164a45 70%);
  color: #e8f3ef;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  min-height: 160px;
}

.result-card.error {
  background: linear-gradient(160deg, #4a1a16, #7a2a22);
}

.result-label {
  margin: 0;
  opacity: 0.75;
  font-size: 0.9rem;
}

.result-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0.35rem 0 0.8rem;
  word-break: break-word;
}

.result-numeric {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.15rem 0 0.85rem;
  opacity: 0.92;
}

.read-as {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.read-as code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  line-height: 1.05;
  margin: 0 0.15rem;
}

.frac-n {
  border-bottom: 2px solid currentColor;
  padding: 0 0.35rem 0.1rem;
}

.frac-d {
  padding: 0.1rem 0.35rem 0;
}

.examples-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.examples-bar .chip {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
}

.step-n {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(226, 161, 43, 0.9);
  color: #1a1405;
  font-weight: 800;
  font-size: 0.78rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 14px;
  border: 1px solid var(--stroke);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--panel);
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}

.data-table th {
  background: var(--panel-2);
  font-family: var(--font-display);
  font-weight: 700;
}

.data-table tr:hover td {
  background: rgba(31, 138, 112, 0.06);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.result-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

#log-graph {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--panel-2);
}

.history-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
  font: inherit;
}

.history-item:hover {
  border-color: rgba(31, 138, 112, 0.45);
}

.history-item strong {
  color: var(--primary-deep);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
}

.chip.active,
a.chip:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-color: transparent;
}

.table-controls,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.content-block {
  background: rgba(247, 251, 249, 0.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 1.25rem;
}

.content-block h2,
.content-block h3 {
  margin-top: 1.2rem;
}

.content-block h2:first-child,
.content-block h3:first-child {
  margin-top: 0;
}

.content-block ul,
.content-block ol {
  padding-left: 1.2rem;
}

.formula-box {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: #0f2a3a;
  color: #d7efe7;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  margin: 0.9rem 0;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-display);
}

.faq p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.stat {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.feedback {
  min-height: 1.4rem;
  font-weight: 750;
}

.feedback.ok {
  color: var(--ok);
}

.feedback.bad {
  color: var(--danger);
}

.choices {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.choice-btn {
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.choice-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.answer-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.answer-input {
  flex: 1;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.question-eq {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0.4rem 0;
}

.trainer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.9rem;
}

.settings .btn {
  margin-top: 0.55rem;
  width: 100%;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding: 2rem 0 1.5rem;
  background: #0f2a3a;
  color: #d5e4ec;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #9fd3c7;
  text-decoration: none;
  font-weight: 650;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.copy {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* Author info block */
.author-info-block {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.85rem 0;
  background: linear-gradient(90deg, rgba(31, 138, 112, 0.16), rgba(226, 161, 43, 0.14));
  border-bottom: 1px solid var(--stroke);
}

.author-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.author-info-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f2a3a, #1f8a70);
  color: #f7fbf9;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.author-info-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.author-info-text p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.author-info-by {
  margin-top: 0.25rem !important;
  color: var(--primary-deep) !important;
  font-size: 0.92rem !important;
}

.footer-legal {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.footer-legal-links a,
.footer-cookie-settings {
  color: #9fd3c7;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.footer-legal-links a:hover,
.footer-cookie-settings:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal-note {
  margin: 0;
  max-width: 72rem;
  color: rgba(213, 228, 236, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-legal-note a {
  color: #c9f0e4;
  font-weight: 800;
}

/* Cookie banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(15, 42, 58, 0.96);
  color: #e8f3ef;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
}

.cookie-consent-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-consent-copy {
  min-width: 0;
  flex: 1;
}

.cookie-consent-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.cookie-consent-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(232, 243, 239, 0.88);
}

.cookie-consent-copy a {
  color: #9fe7e4;
  font-weight: 800;
  text-underline-offset: 2px;
}

.cookie-consent-copy a:hover {
  color: #fff;
}

.cookie-decline-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #f0c56a;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-accept-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 960px) {
  .hero,
  .calc-shell,
  .trainer,
  .cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 220px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem 1rem;
    background: rgba(247, 251, 249, 0.98);
    border-bottom: 1px solid var(--stroke);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    justify-content: center;
  }

  .cards,
  .stats {
    grid-template-columns: 1fr;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-accept-btn {
    width: 100%;
  }

  .author-info-inner {
    gap: 0.65rem;
  }

  .answer-row {
    flex-direction: column;
  }
}

@media print {
  .cookie-consent-banner,
  .author-info-block,
  .site-header,
  .nav-toggle,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .panel,
  .content-block,
  .card {
    box-shadow: none;
  }
}
