:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-alt: #edf3ef;
  --text: #132019;
  --muted: #58665f;
  --line: #cdd8d1;
  --accent: #00885b;
  --accent-two: #e75c4d;
  --on-accent: #ffffff;
  --header: #ffffff;
  --header-text: #132019;
  --max: 1220px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body[data-theme="sokrates"] {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --surface-alt: #e7ebef;
  --text: #151515;
  --muted: #5d6167;
  --line: #c8cbd0;
  --accent: #d52d3e;
  --accent-two: #167a9b;
  --on-accent: #ffffff;
  --header: #111214;
  --header-text: #ffffff;
}

body[data-theme="xyz"] {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #16181d;
  --surface-alt: #111318;
  --text: #f6f8f9;
  --muted: #aeb5bd;
  --line: #383d45;
  --accent: #35e6d4;
  --accent-two: #f4d44d;
  --on-accent: #07110f;
  --header: #0b0c0f;
  --header-text: #f6f8f9;
}

body[data-theme="xyz"] .button--secondary {
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.age-bar {
  background: var(--accent-two);
  color: #ffffff;
  font-size: 12px;
}

body[data-theme="xyz"] .age-bar {
  color: #111111;
}

.age-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-bar strong {
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  color: var(--header-text);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.brand__name {
  font-size: 18px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  white-space: nowrap;
  padding: 9px 11px;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

.intro {
  padding: 52px 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body[data-theme="sokrates"] .intro {
  border-top: 8px solid var(--accent);
}

body[data-theme="xyz"] .intro {
  border-left: 8px solid var(--accent);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.intro h1 {
  max-width: 970px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-theme="sokrates"] .intro h1 {
  font-family: Georgia, "Times New Roman", serif;
}

body[data-theme="xyz"] .intro h1 {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.intro__lead {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button--secondary {
  background: transparent;
  color: var(--text);
}

.collection {
  padding: 46px 0 58px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.collection--archive {
  background: var(--surface-alt);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  align-items: end;
  gap: 32px;
  margin-bottom: 20px;
}

.section-heading h2,
.content-band h2,
.faq-section h2,
.final-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

body[data-theme="xyz"] .section-heading h2,
body[data-theme="xyz"] .content-band h2,
body[data-theme="xyz"] .faq-section h2,
body[data-theme="xyz"] .final-cta h2 {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.source-notice {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-left: 4px solid var(--accent-two);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.source-notice strong {
  color: var(--text);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-theme="sokrates"] .offers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: 300px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.offer-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.offer-card__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.offer-card__media {
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

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

.offer-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
}

.offer-card__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.offer-card__cta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.section-action {
  margin-top: 22px;
  text-align: center;
}

.content-band {
  padding: 54px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.content-band--alt {
  background: var(--surface-alt);
}

.prose {
  max-width: 920px;
}

.prose h2 {
  max-width: 820px;
}

.prose > p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  max-width: 850px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 13px 10px 13px 31px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 950;
}

.table-wrap {
  max-width: 920px;
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent);
  color: var(--on-accent);
}

tr:last-child td {
  border-bottom: 0;
}

.faq-section {
  padding: 56px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 52px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 17px 40px 17px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0 0 18px;
  color: var(--muted);
}

.final-cta {
  padding: 42px 0;
  background: var(--accent-two);
  color: #ffffff;
}

body[data-theme="xyz"] .final-cta {
  color: #111111;
}

.final-cta .eyebrow {
  color: currentColor;
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.final-cta p {
  margin: 8px 0 0;
}

.site-footer {
  padding: 48px 0 24px;
  background: var(--header);
  color: var(--header-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 44px;
}

.brand--footer {
  margin-bottom: 15px;
}

.footer-grid p {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid h2 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
}

.footer-grid nav a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.footer-grid nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.error-page {
  width: min(680px, calc(100% - 36px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  place-content: center;
  justify-items: start;
}

.error-page h1 {
  margin: 0;
  font-size: 44px;
}

.error-page p:not(.eyebrow) {
  color: var(--muted);
}

@media (max-width: 980px) {
  .offers-grid,
  body[data-theme="sokrates"] .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-row {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
  }

  .nav {
    width: 100%;
    margin-left: 0;
  }

  .nav a {
    padding-inline: 8px;
  }

  .section-heading,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .age-bar__inner {
    padding: 6px 0;
  }

  .intro {
    padding: 38px 0 30px;
  }

  .intro h1 {
    font-size: 35px;
  }

  .intro__lead {
    font-size: 17px;
  }

  .intro__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .offers-grid,
  body[data-theme="sokrates"] .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .offer-card__body {
    display: grid;
    gap: 2px;
    min-height: 60px;
  }

  .offer-card__cta {
    text-align: left;
  }

  .section-heading h2,
  .content-band h2,
  .faq-section h2,
  .final-cta h2 {
    font-size: 28px;
  }

  .collection,
  .content-band,
  .faq-section {
    padding: 38px 0;
  }

  .prose > p:not(.eyebrow) {
    font-size: 16px;
  }

  .final-cta__inner,
  .footer-bottom {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 390px) {
  .offers-grid,
  body[data-theme="sokrates"] .offers-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
