:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5c6068;
  --line: #ded8cc;
  --red: #c1121f;
  --red-dark: #780000;
  --blue: #005f73;
  --dark: #101114;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark,
.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #343842;
  font-size: 14px;
  font-weight: 700;
}

.menu a:hover,
.menu a.active {
  background: white;
  color: var(--red);
}

.actions {
  display: flex;
  gap: 8px;
}

.btn,
.icon-btn {
  border: 0;
  min-height: 44px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
}

.btn {
  padding: 12px 16px;
  background: var(--red);
  color: white;
}

.btn.secondary {
  background: #141414;
}

.btn.ghost {
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: white;
  color: var(--ink);
}

.icon-btn {
  width: 44px;
  background: white;
  border: 1px solid rgba(20, 20, 20, 0.12);
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  background: #101114;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.96), rgba(16, 17, 20, 0.76), rgba(16, 17, 20, 0.25)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=80") center/cover;
}

.hero-grid {
  position: relative;
  min-height: 74vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 34px;
  padding: 52px 0;
}

.eyebrow {
  color: #ffccd2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.lead {
  max-width: 660px;
  color: #e7e2d8;
  font-size: 18px;
  line-height: 1.7;
}

.selector,
.card,
.article-card,
.panel {
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(20, 20, 20, 0.08);
}

.selector {
  padding: 20px;
  color: var(--ink);
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d2ccbf;
  border-radius: 6px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: #eee9de;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

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

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

.stat {
  padding: 20px 0;
}

.stat strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
}

.card,
.panel {
  padding: 22px;
}

.article-card {
  overflow: hidden;
}

.article-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-body {
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--red);
  color: white;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.answer {
  margin: 16px 0;
  border-radius: 6px;
  background: #f1eee7;
  padding: 14px;
  color: #262a31;
  line-height: 1.6;
}

.article-hero {
  padding: 54px 0 28px;
  background: #101114;
  color: white;
}

.article-hero .lead {
  color: #e7e2d8;
}

.article-main-img {
  display: block;
  width: 100%;
  margin-top: 24px;
  border-radius: 8px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

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

.article-content {
  max-width: 860px;
  font-size: 18px;
  line-height: 1.78;
}

.article-content h2 {
  margin-top: 34px;
  font-size: 30px;
}

.article-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.side-card,
.native-ad,
.content-block,
.ad-preview {
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  background: white;
  padding: 20px;
}

.native-ad {
  margin: 26px 0;
  background: #f7f3eb;
}

.native-ad span,
.ad-preview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-block {
  margin-top: 30px;
}

.faq-item {
  border-top: 1px solid #e3ddd2;
  padding: 14px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
}

.sources p,
.sources li span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.sources a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ad-preview.tower {
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #f8f7f4, #ece6da);
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature strong {
  display: block;
  margin-bottom: 4px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: white;
}

.table th,
.table td {
  border-bottom: 1px solid #e5dfd4;
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #141414;
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.flash {
  margin-bottom: 18px;
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 800;
}

.flash.success {
  background: #e6f4ea;
  color: #17643a;
}

.flash.error {
  background: #fde7e9;
  color: #8a1220;
}

.footer {
  background: #101114;
  color: white;
  padding: 44px 0;
}

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

.footer a,
.footer p {
  color: #d2d4d8;
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .hero-grid,
  .split,
  .article-layout,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .selector-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

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