@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/geologica-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/geologica-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg-0: #F6F3EE;
  --bg-1: #FCFBF9;
  --bg-2: #EFECE6;
  --bg-3: #E6E1D8;
  --ink-0: #141210;
  --ink-1: #3E3A35;
  --ink-2: #666058;
  --accent: #E8601C;
  --accent-hover: #D25214;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(232, 96, 28, 0.12);
  --glacier: #0EA5E9;
  --glacier-soft: rgba(14, 165, 233, 0.12);
  --glass: rgba(246, 243, 238, 0.92);
  --sticky-shadow: 6px 0 12px -6px rgba(20, 18, 16, 0.12);
  --nav-h: 56px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Geologica', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root.dark, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg-0: #121110;
  --bg-1: #1C1A18;
  --bg-2: #262320;
  --bg-3: #312D29;
  --ink-0: #F5F2EC;
  --ink-1: #CBC5BC;
  --ink-2: #9C958B;
  --accent: #E8601C;
  --accent-hover: #F26E2B;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(232, 96, 28, 0.2);
  --glacier: #38BDF8;
  --glacier-soft: rgba(56, 189, 248, 0.16);
  --glass: rgba(18, 17, 16, 0.92);
  --sticky-shadow: 6px 0 14px -6px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg-0);
}
body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 0;
}
body::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0 0 auto;
  height: 300px;
  z-index: -1;
  background:
    radial-gradient(50% 85% at 18% 0%, rgba(232, 96, 28, 0.13) 0%, rgba(232, 96, 28, 0) 72%),
    radial-gradient(46% 80% at 82% 0%, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 72%);
}
:root.dark body::before, :root[data-theme="dark"] body::before {
  background:
    radial-gradient(50% 85% at 18% 0%, rgba(232, 96, 28, 0.18) 0%, rgba(232, 96, 28, 0) 72%),
    radial-gradient(46% 80% at 82% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 72%);
}

a {
  color: var(--ink-0);
  text-decoration: underline;
  text-decoration-color: var(--bg-3);
  text-underline-offset: 3px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.site-nav a:not(.cta-small) {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:not(.cta-small):hover,
.site-nav a:not(.cta-small)[aria-current="page"] {
  color: var(--ink-0);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lang-switch,
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-2);
  color: var(--ink-0);
  border: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.lang-switch:hover,
.theme-btn:hover {
  background: var(--bg-3);
  color: var(--ink-0);
}
.cta-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms var(--ease);
}
.cta-small:hover { background: var(--accent-hover); color: var(--on-accent); }

/* Layout */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 88px;
  width: 100%;
}
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 13px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink-0); }
.crumbs span { opacity: 0.6; }

h1 {
  margin: 0 0 14px;
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  margin: 44px 0 14px;
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--nav-h) + 18px);
}
h3 {
  margin: 22px 0 8px;
  color: var(--ink-0);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 20px; }
li { margin: 0 0 8px; }
strong { color: var(--ink-0); font-weight: 600; }

.lede {
  color: var(--ink-1);
  font-size: 17.5px;
  line-height: 1.55;
  max-width: 72ch;
  margin: 0 0 24px;
}

/* Badges & Meta chips */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-2);
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.chip-accent {
  background: var(--accent-soft);
  color: var(--ink-0);
}
.chip-price {
  white-space: nowrap;
  font-weight: 600;
}

/* Hero CTA bar */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms var(--ease);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--bg-2);
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--bg-3); color: var(--ink-0); }

/* Section jumps */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.section-nav a {
  padding: 7px 14px;
  background: var(--bg-1);
  color: var(--ink-0);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.section-nav a:hover { background: var(--bg-2); color: var(--accent); }

/* Facts / Callouts */
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.facts li {
  background: var(--bg-1);
  padding: 16px 18px;
  margin: 0;
  font-size: 14.5px;
}

/* Tables: horizontal scroll + sticky first column + nowrap prices + zero 1px borders */
.table-scroll-hint {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 12px;
  background: var(--bg-2);
  color: var(--ink-1);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-1);
  margin: 0 0 24px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 14px;
  background: var(--bg-1);
  font-variant-numeric: tabular-nums;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
  border: 0;
}
thead th {
  background: var(--bg-2);
  color: var(--ink-0);
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:nth-child(even) td {
  background: var(--bg-0);
}
tbody tr:nth-child(odd) td {
  background: var(--bg-1);
}
th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 168px;
  max-width: 280px;
  box-shadow: var(--sticky-shadow);
}
thead th:first-child {
  z-index: 3;
  background: var(--bg-2);
}
tbody tr:nth-child(even) td:first-child {
  background: var(--bg-0);
}
tbody tr:nth-child(odd) td:first-child {
  background: var(--bg-1);
}
td.num, th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-val {
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
}
.row-note {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 3px;
}
.model-link {
  color: var(--ink-0);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--bg-3);
  white-space: nowrap;
}
.model-link:hover { color: var(--accent); }

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.spec-card {
  background: var(--bg-1);
  padding: 16px 18px;
  min-width: 0;
}
.spec-label {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  margin: 0 0 6px;
}
.spec-val {
  color: var(--ink-0);
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
  margin: 0;
}

/* Visuals gallery */
.visuals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.visual-card {
  margin: 0;
  background: var(--bg-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-2);
}
.visual-card figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.45;
}

/* Prompt cards */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.prompt-card {
  background: var(--bg-1);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prompt-title {
  margin: 0;
  color: var(--ink-0);
  font-size: 14.5px;
  font-weight: 600;
}
.prompt-body {
  margin: 0;
  padding: 12px;
  background: var(--bg-2);
  color: var(--ink-0);
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

/* Comparison cards & Model catalog cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.card {
  background: var(--bg-1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.card-link:hover h3 { color: var(--accent); }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-1); line-height: 1.5; }
.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Curated prose box */
.prose-box {
  background: var(--bg-1);
  padding: 24px 26px;
  margin: 0 0 28px;
}
.prose-box p:last-child,
.prose-box ul:last-child { margin-bottom: 0; }

/* FAQ list */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
}
.faq-item {
  background: var(--bg-1);
  padding: 18px 20px;
}
.faq-item h3 { margin: 0 0 8px; font-size: 15.5px; }
.faq-item p { margin: 0; font-size: 14px; color: var(--ink-1); }

/* Related guides */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
}
.guide-card {
  background: var(--bg-1);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card:hover .guide-title { color: var(--accent); }
.guide-title {
  color: var(--ink-0);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.guide-desc {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Bottom CTA */
.cta-box {
  margin: 40px 0 0;
  padding: 28px;
  background: var(--bg-1);
}
.cta-box h2 { margin: 0 0 10px; }
.cta-box p { margin: 0 0 18px; max-width: 64ch; }

/* Footer */
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 52px;
  background: var(--bg-0);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}
.foot-inner {
  background: var(--bg-1);
  padding: 24px;
}
.foot-brand {
  margin: 0 0 8px;
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.site-footer p { max-width: 60ch; margin: 0 0 14px; }
.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink-0); }

@media (max-width: 900px) {
  .facts,
  .visuals-grid,
  .prompts-grid,
  .cards-grid,
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site { padding: 0 12px; gap: 8px; }
  .site-nav { gap: 8px; }
  .site-nav a.nav-hide-sm { display: none; }
  .cta-small { padding: 0 10px; font-size: 12px; height: 32px; }
  .wrap { padding: 26px 14px 64px; }
  .facts,
  .specs-grid,
  .visuals-grid,
  .prompts-grid,
  .cards-grid,
  .cards-grid-2,
  .faq-list,
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .prose-box, .cta-box { padding: 18px 16px; }
  .site-footer { padding: 20px 14px 44px; }
  .foot-inner { padding: 18px 16px; }
  .table-scroll-hint { display: flex; }
  th, td { padding: 10px 10px; font-size: 13px; }
  th:first-child,
  td:first-child {
    min-width: 142px;
    max-width: 185px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
