:root {
  --color-heading: #1e3a5f;
  --color-primary: #2563eb;
  --color-accent: #059669;
  --primary: #2563eb;
  --primary-dark: #1e3a5f;
  --accent: #034ea2;
  --accent-soft: #dce8f2;
  --success: #00796b;
  --warning: #c77800;
  --danger: #b91c1c;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-muted: #eef6f8;
  --border: #d0dbe8;
  --text: #333333;
  --text-muted: #555555;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 2px 8px rgba(0, 51, 102, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 51, 102, 0.12);
  --sidebar-w: 240px;
  --header-h: 68px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ——— Header ——— */
.site-header {
  background: var(--color-heading);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover .brand-title {
  color: #ffffff;
  opacity: 0.95;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0;
  line-height: 1.2;
  transition: opacity 0.2s;
}

.brand-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  border-radius: 1px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ——— Layout ——— */
.wrapper {
  flex: 1;
  display: flex;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - var(--header-h) - 56px);
}

.wrapper nav {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--color-primary);
  border: none;
  border-radius: 0;
  padding: 1.5rem 1rem;
  box-shadow: none;
  position: sticky;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 0.75rem 0.35rem;
  margin: 0;
}

.nav-label--secondary {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wrapper nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.wrapper nav a:hover,
.wrapper nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

.wrapper nav a.active {
  font-weight: 600;
}

main {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: none;
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
}

@media (min-width: 769px) {
  .wrapper {
    padding: 1rem 1rem 1rem 0;
    gap: 0;
  }

  main:not(.chat-main) {
    margin: 1rem 1rem 1rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  main.chat-main {
    margin: 1rem;
    box-shadow: none;
    background: transparent;
  }

  .wrapper nav {
    margin: 1rem 0 1rem 1rem;
    border-radius: var(--radius);
  }
}

main h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

main p,
main li {
  color: var(--text);
  line-height: 1.65;
}

main ul {
  margin-left: 1.25rem;
}

.page-intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 60ch;
  font-size: 1.02rem;
}

.section-title {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0;
}

.section-title:first-child {
  margin-top: 0;
}

/* ——— Hero ——— */
.hero-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-primary) 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero-banner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.hero-banner h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  font-size: 1rem;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #047857;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface-muted);
  border-color: var(--color-primary);
  color: var(--color-heading);
}

/* ——— Cards & stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 0.75rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0;
}

.stat-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--color-heading);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.45rem 0 1rem;
  line-height: 1.55;
}

.service-card a {
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* ——— Home: mídia, passos, split ——— */
.media-section {
  margin-top: 0.5rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.media-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.media-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.media-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.media-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.45), transparent 55%);
  pointer-events: none;
}

.media-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(30, 58, 95, 0.82);
  border-radius: var(--radius-pill);
}

.media-card img {
  display: block;
  width: 100%;
  height: 160px;
  max-height: 180px;
  object-fit: cover;
}

.media-card figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.45;
}

.media-card-link:hover figcaption {
  color: var(--color-primary);
}

@media (min-width: 481px) and (max-width: 900px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps-section {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.steps-list {
  margin: 0 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.steps-list li {
  padding-left: 0.25rem;
}

.steps-note {
  font-size: 0.88rem;
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-banner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-image {
    max-height: 280px;
  }
}

.split-text h2 {
  font-size: 1.25rem;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.split-text p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 240px;
}

.faq-teaser {
  margin-top: 2rem;
}

.faq-teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-teaser-list a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  color: var(--color-heading);
}

.faq-teaser-list a:hover {
  border-color: var(--color-primary);
  background: var(--surface-muted);
}

.sobre-hero-img {
  max-width: 640px;
  margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 1.35rem;
  }

  .hero-image {
    max-height: 200px;
  }

  .media-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-right: -0.35rem;
  }

  .media-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
  }

  .media-card img {
    height: 140px;
    max-height: 150px;
  }

  .media-card figcaption {
    font-size: 0.78rem;
    padding: 0.55rem 0.65rem;
  }

  main {
    padding: 1.25rem;
  }
}

.highlight-box {
  margin-top: 2rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 4px solid var(--color-primary);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.highlight-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.highlight-box p {
  color: var(--text-muted);
}

.tool-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 2rem;
}

.tool-box .section-title {
  margin-top: 0;
}

.tool-box label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tool-box input[type="date"] {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  min-width: 200px;
}

.tool-box input[type="date"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.validade-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.validade-result:empty {
  display: none;
}

.validade-result--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.validade-result--warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.validade-result--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.steps-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--warning);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
}

.info-box h3 {
  margin-top: 0;
  font-size: 0.95rem;
  color: #92400e;
}

.info-box p {
  font-size: 0.9rem;
  color: #78350f;
}

.faq-list {
  margin-top: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  background: #fafafa;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.95rem;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item.open .faq-question {
  background: var(--surface-muted);
  border-left: 3px solid var(--color-primary);
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1.15rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--surface-muted);
}

.contact-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.content-table th,
.content-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table th {
  background: var(--surface-muted);
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

button.option-button {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  margin: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: var(--color-heading);
  color: white;
  font-family: inherit;
  font-weight: 500;
}

button.option-button:hover {
  background: var(--color-primary);
}

/* ——— Aviso de transparência ——— */
.disclaimer-banner {
  background: #fff8e6;
  border: 1px solid #e6d5a8;
  border-left: 4px solid var(--warning);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #5c4a1f;
  border-radius: var(--radius-sm);
}

.disclaimer-banner strong {
  color: #3d3214;
}

/* ——— Footer ——— */
footer {
  background: var(--color-heading);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 1.35rem 1rem;
  font-size: 0.88rem;
  margin-top: auto;
}

.site-footer-links {
  margin-top: 0.65rem;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0.65rem;
  text-decoration: none;
  font-size: 0.85rem;
}

.site-footer-links a:hover {
  color: white;
  text-decoration: underline;
}

#cookie-consent {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 2rem));
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 9999;
  text-align: left;
}

#cookie-consent p {
  margin: 0 0 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

#cookie-consent a {
  color: var(--accent);
}

#cookie-consent button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
}

#cookie-consent button:hover {
  background: var(--color-heading);
}

.link-more {
  margin-top: 1rem;
  font-weight: 600;
}

.page-actions {
  margin-top: 2rem;
}

.tool-actions {
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 769px) {
  .hero-banner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 2.25rem 2rem;
  }

  .hero-media .hero-image {
    max-height: 240px;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
    min-height: 56px;
  }

  .logo {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .brand-tagline {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  footer {
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    text-align: left;
  }

  footer .lp-legal-stamp {
    font-size: 0.75rem !important;
    line-height: 1.45;
    text-align: left;
  }

  .site-footer-links {
    margin-top: 0.75rem;
    line-height: 1.6;
  }

  .site-footer-links a {
    display: inline-block;
    margin: 0.15rem 0.45rem 0.15rem 0;
    font-size: 0.8rem;
  }

  .wrapper {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .wrapper nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    border-radius: 0;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .wrapper nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  main {
    padding: 1.35rem 1.15rem;
  }

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