:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142338;
  background: #f3f6f9;
  font-synthesis: none;
  --navy: #101d31;
  --ink: #142338;
  --muted: #4d6075;
  --line: #dce4ed;
  --accent: #76e3bc;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2474df; outline-offset: 4px; }
.wrap { width: min(100% - 48px, 1100px); margin-inline: auto; }
.masthead { background: var(--navy); color: #fff; border-bottom: 1px solid #35445b; }
.masthead .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 68px; }
.site-name { display: inline-flex; gap: .7rem; align-items: center; font-weight: 750; text-decoration: none; }
.site-name img { width: 32px; height: 32px; border-radius: 7px; }
.masthead nav a { color: #ecf4ff; font-size: .9rem; text-underline-offset: 4px; }
.hero { background: var(--navy); color: #fff; padding-block: clamp(32px, 5vw, 64px); }
.hero .wrap { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.05em; }
.hero p { max-width: 48ch; margin-top: 15px; color: #d3e0ee; }
.hero-link { flex-shrink: 0; display: inline-block; padding: .65rem .95rem; border: 1px solid #617187; border-radius: 8px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.hero-link:hover { background: #293a50; }
.list-section { padding-block: 30px 42px; }
.section-intro { margin-bottom: 16px; }
.section-intro h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); letter-spacing: -.025em; }
.section-intro p { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.offers { display: grid; gap: 12px; padding: 0; list-style: none; }
.offer {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1.36fr) minmax(206px, 1.4fr) minmax(130px, .85fr);
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 138px;
  padding: 15px clamp(12px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.offers > li:first-child .offer { border-color: #78bda9; box-shadow: inset 4px 0 #4eb79a; }
.brand { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 7px 8px; min-width: 0; }
.rank { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #eaf0f7; color: #304b68; font-size: .875rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.offers > li:first-child .rank { background: #d7f6ec; color: #085747; }
.brand h3 { font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.logo { grid-column: 2; display: grid; place-items: center; max-width: 126px; height: 46px; border-radius: 7px; background: #151e30; color: #e4ecf5; font-weight: 750; }
.logo--light { background: #eef2f8; }
.logo img { display: block; width: 100%; height: 46px; object-fit: contain; padding: 6px 9px; }
.label { color: var(--muted); font-size: .875rem; font-weight: 550; }
.bonus strong { display: block; margin-top: 4px; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.22; letter-spacing: -.025em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.facts > div { background: #f1f5f9; border-radius: 8px; padding: .38rem .55rem; }
.facts dd { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.action { display: grid; gap: 4px; text-align: center; }
.button { display: flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 8px; padding: .55rem .7rem; background: var(--accent); color: #08291f; text-decoration: none; font-weight: 780; }
.button:hover { background: #55d5a9; }
.terms { color: var(--muted); font-size: .8125rem; }
.guide { padding: 20px 0 42px; border-top: 1px solid var(--line); }
.guide h2 { margin: 4px 0 10px; font-size: 1.25rem; }
.guide details { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.guide summary { cursor: pointer; width: fit-content; font-weight: 650; }
.guide p { margin: 8px 0 4px; max-width: 68ch; color: var(--muted); }
.site-footer { background: var(--navy); color: #d3e0ee; padding-block: 23px; }
.site-footer p { font-size: .875rem; }
.error { padding-block: 55px; }
.error p { margin: 10px 0 18px; }
.error .button { display: inline-flex; }

@media (max-width: 850px) {
  .offer { grid-template-columns: minmax(110px, .9fr) minmax(132px, 1.15fr) minmax(176px, 1.25fr) minmax(115px, .8fr); }
  .wrap { width: calc(100% - 36px); }
}

@media (max-width: 705px) {
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .brand, .bonus { align-self: start; }
  .hero .wrap { align-items: start; flex-direction: column; gap: 16px; }
  .facts { grid-column: span 2; }
  .action { grid-column: span 2; }
  .logo { max-width: 116px; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 28px); }
  .masthead nav a { font-size: .8125rem; }
  .site-name { font-size: .875rem; gap: .45rem; }
  .site-name img { width: 26px; height: 26px; }
}
