:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --primary: #334155;
  --secondary: #E2E8F0;
  --accent: #475569;
  --border: rgba(15,23,42,0.1);
  --max: 1200px;
  --pill: 999px;
  --rounded: 16px;
  --soft-curves: 28px;
  --friendly: 1.65;
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --glow-accents: 0 0 28px rgba(71, 85, 105, 0.28);
  --offer-bg: #141414;
  --offer-border: #2c2c2c;
  --offer-name: #ffffff;
  --offer-bonus: #ffd700;
  --offer-cta-bg: #16a34a;
  --offer-cta-text: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: ui-rounded, ui-sans-serif, system-ui, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 0% -8%, rgba(71, 85, 105, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 8%, rgba(51, 65, 85, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #EEF2F7 45%, var(--bg) 100%);
  line-height: var(--friendly);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(226, 232, 240, 0.35) 0%, transparent 40%);
  background-size: 18px 18px, 100% 100%;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--smooth);
}

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

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.wrap,
.offers-inner,
.footer-inner,
.legal-page,
.subpage,
.go-page,
.page-404 {
  max-width: 100%;
}

.disclosure-banner {
  position: relative;
  z-index: 30;
  width: 100%;
}

.disclosure-inner {
  max-width: 800px;
  margin: 10px auto;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: #0F172A;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.nav-inner {
  max-width: 1200px;
  height: 52px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--surface);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-lockup:hover {
  color: var(--secondary);
}

.brand-lockup img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: var(--pill);
}

.nav-cta {
  margin-left: auto;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--glow-accents);
}

.nav-cta:hover {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.2);
}

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-burger {
  width: 42px;
  height: 42px;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--surface);
  border-radius: var(--pill);
  transition: transform 0.3s var(--smooth), opacity 0.3s var(--smooth);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--smooth);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  background: #0F172A;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s var(--smooth);
  padding: 72px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.35);
  overflow-y: auto;
}

.nav-drawer a {
  color: var(--surface);
  padding: 12px 16px;
  border-radius: var(--pill);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
}

.nav-check:checked ~ .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

.nav-check:checked ~ .nav-drawer {
  transform: translateX(0);
}

.nav-check:checked ~ .site-nav .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-check:checked ~ .site-nav .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav-check:checked ~ .site-nav .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero {
  position: relative;
  min-height: 350px;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.72)),
    url("/images/decorative/decor_1.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -40px 18%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(71, 85, 105, 0.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  padding: 40px;
  border-radius: var(--rounded);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--surface);
  animation: softRise 0.8s var(--smooth) both;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-card h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: var(--pill);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  box-shadow: var(--glow-accents);
}

.hero-card p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.88);
  max-width: 36em;
  margin-inline: auto;
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 12px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: var(--glow-accents);
  animation: glowPulse 3.2s var(--smooth) infinite;
}

.offers-section {
  position: relative;
  padding: 56px 0;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.92)),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.offers-section::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  max-width: 100%;
  border-radius: var(--pill);
  background: rgba(71, 85, 105, 0.25);
  filter: blur(40px);
  top: -60px;
  right: 0;
}

.offers-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.offers-section .section-title {
  color: var(--surface);
}

.offers-lead {
  color: rgba(248, 250, 252, 0.78);
  max-width: 42em;
  margin: 0 0 28px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.offer-card {
  background: var(--offer-bg);
  border: 1px solid var(--offer-border);
  border-radius: var(--soft-curves);
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--smooth);
  overflow: hidden;
  min-width: 0;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.offer-logo {
  width: 200px;
  height: 80px;
  min-width: 200px;
  min-height: 80px;
  max-width: 200px;
  max-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d0d0d;
  border-radius: var(--rounded);
  flex-shrink: 0;
}

.offer-card .offer-logo img,
.offer-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-name {
  color: var(--offer-name);
  text-align: center;
  margin: 0;
  font-size: 1.12rem;
}

.offer-bonus-group {
  text-align: center;
}

.offer-bonus {
  color: var(--offer-bonus);
  font-weight: 700;
  font-size: clamp(0.78rem, 2.2vw, 1.02rem);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.offer-terms {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.offer-description {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

.offer-cta {
  display: block;
  margin-top: auto;
  padding: 12px 18px;
  background: var(--offer-cta-bg);
  color: var(--offer-cta-text);
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--pill);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.35);
}

.offer-cta:hover {
  color: var(--offer-cta-text);
  filter: brightness(1.08);
}

.info-section {
  position: relative;
  padding: 52px 0;
  overflow: hidden;
  max-width: 100%;
}

.info-section:nth-child(even) {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.35), transparent);
}

.info-section p {
  color: var(--text);
  margin: 0 0 14px;
}

.info-section ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--text);
}

.info-section li {
  margin-bottom: 6px;
}

.layout-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.layout-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.layout-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--soft-curves);
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.layout-rail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: start;
}

.rail-mark {
  width: 72px;
  height: 72px;
  border-radius: var(--pill);
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--glow-accents);
  transform: rotate(-8deg);
}

.layout-zigzag {
  display: grid;
  gap: 20px;
}

.zig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.zig-row:nth-child(even) .zig-visual {
  order: -1;
}

.decor-frame {
  width: 100%;
  max-width: 500px;
  max-height: 320px;
  overflow: hidden;
  border-radius: var(--soft-curves);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.decor-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: cover;
}

.layout-band {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 40px 16px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(51, 65, 85, 0.08), rgba(71, 85, 105, 0.04)),
    radial-gradient(600px 200px at 20% 50%, rgba(226, 232, 240, 0.9), transparent);
}

.layout-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.layout-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.pull-quote {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--rounded);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.layout-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.mosaic-aside {
  background: var(--surface);
  border-radius: var(--soft-curves);
  padding: 22px;
  border: 1px solid var(--border);
  transform: translateY(18px);
}

.layout-steps {
  display: grid;
  gap: 14px;
}

.step-pill {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--pill);
  padding: 14px 18px;
  border: 1px solid var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.layout-asym {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: end;
}

.asym-panel {
  background: linear-gradient(160deg, var(--surface), var(--secondary));
  border-radius: var(--soft-curves) var(--soft-curves) var(--soft-curves) 8px;
  padding: 24px;
  border: 1px solid var(--border);
  transform: rotate(-1.2deg);
}

.layout-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.check-block {
  background: var(--surface);
  border-radius: var(--rounded);
  padding: 20px;
  border: 1px solid var(--border);
}

.check-block h3 {
  margin: 0 0 10px;
}

.topic-cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--surface);
  font-weight: 700;
  box-shadow: var(--glow-accents);
}

.topic-cta:hover {
  color: var(--surface);
  filter: brightness(1.08);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: #0F172A;
  color: rgba(248, 250, 252, 0.86);
  padding: 48px 0 28px;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--surface);
  font-weight: 700;
}

.footer-brand:hover {
  color: var(--secondary);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--pill);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a,
.footer-links button {
  color: rgba(248, 250, 252, 0.8);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--surface);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--rounded);
  padding: 8px 10px;
}

.footer-badges img {
  display: block;
  max-height: 48px;
  width: auto;
}

.footer-note,
.footer-updated,
.footer-requisites,
.footer-copy {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(248, 250, 252, 0.7);
  max-width: 70em;
}

.footer-note a {
  color: rgba(226, 232, 240, 0.95);
  text-decoration: underline;
}

.legal-page,
.subpage,
.go-page,
.page-404 {
  width: min(100% - 32px, 860px);
  margin: 36px auto 56px;
}

.subpage.wide {
  max-width: min(1100px, 100%);
  width: min(100% - 32px, 1100px);
}

.legal-page h1,
.subpage h1,
.page-404 h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.legal-page h1::after,
.subpage h1::after,
.page-404 h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 12px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: var(--glow-accents);
}

.legal-page h2,
.subpage h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.legal-page h3,
.subpage h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.legal-page p,
.subpage p,
.page-404 p {
  margin: 0 0 14px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--soft-curves);
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--rounded);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

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

.contact-form button {
  justify-self: start;
  padding: 12px 22px;
  border: none;
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--surface);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--glow-accents);
}

.field-error {
  display: none;
  margin: -4px 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.field-error.is-on {
  display: block;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--rounded);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.3);
  font-weight: 600;
}

.form-success.is-on {
  display: block;
}

.is-hidden {
  display: none !important;
}

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.age-overlay.is-on {
  display: flex;
}

.age-dialog {
  width: min(100%, 420px);
  background: var(--surface);
  border-radius: var(--soft-curves);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  text-align: center;
}

.age-dialog h2 {
  margin: 0 0 10px;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.btn-confirm,
.btn-decline,
.cookie-actions button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: var(--pill);
  padding: 10px 18px;
}

.btn-confirm {
  background: var(--primary);
  color: var(--surface);
}

.btn-decline {
  background: var(--secondary);
  color: var(--text);
}

.age-blocked {
  display: none;
  color: var(--surface);
  font-weight: 700;
  text-align: center;
}

.age-blocked.is-on {
  display: block;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
}

.cookie-banner.is-on {
  display: block;
}

.cookie-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--soft-curves);
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.cookie-inner p {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-accept {
  background: var(--primary);
  color: var(--surface);
}

#cookie-reject {
  background: var(--secondary);
  color: var(--text);
}

.go-page {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border-radius: var(--soft-curves);
  border: 1px solid var(--border);
}

.go-ad {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.go-spinner {
  width: 48px;
  height: 48px;
  margin: 22px auto;
  border-radius: var(--pill);
  border: 3px solid var(--secondary);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.go-compliance {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.sub-hero {
  margin: 0 0 28px;
  padding: 36px 28px;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--soft-curves);
  background:
    linear-gradient(135deg, rgba(51, 65, 85, 0.92), rgba(71, 85, 105, 0.78)),
    var(--sub-hero-img, none);
  background-size: cover;
  background-position: center;
  color: var(--surface);
}

.sub-hero h1 {
  color: var(--surface);
  margin: 0 0 8px;
}

.sub-hero h1::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
}

.sub-hero p {
  margin: 0;
  color: rgba(248, 250, 252, 0.88);
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.sub-rail {
  position: sticky;
  top: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--soft-curves);
  padding: 18px;
}

.sub-rail h2 {
  margin-top: 0;
  font-size: 1rem;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat-pill {
  background: var(--surface);
  border-radius: var(--pill);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-pill strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
}

.split-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
  align-items: center;
}

.image-rail {
  display: flex;
  gap: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.image-rail .decor-frame {
  flex: 1;
}

.page-404 {
  text-align: center;
  background: var(--surface);
  border-radius: var(--soft-curves);
  border: 1px solid var(--border);
  padding: 48px 24px;
}

.page-404 a.home-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--surface);
  font-weight: 700;
}

@media (max-width: 900px) {
  .layout-split,
  .layout-band .wrap,
  .layout-mosaic,
  .layout-asym,
  .layout-checklist,
  .zig-row,
  .sub-grid,
  .split-visual,
  .layout-cards {
    grid-template-columns: 1fr;
  }

  .zig-row:nth-child(even) .zig-visual {
    order: 0;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .mosaic-aside {
    transform: none;
  }

  .offer-logo {
    width: 200px;
    height: 80px;
    min-width: 200px;
    min-height: 80px;
    max-width: 200px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-card .offer-logo img,
  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}

@media (max-width: 720px) {
  .hero-card {
    max-width: 90%;
    padding: 24px;
  }

  .nav-cta {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .layout-rail {
    grid-template-columns: 1fr;
  }

  .layout-quote {
    grid-template-columns: 1fr;
  }

  .hero,
  .offers-section,
  .info-section,
  .sub-hero,
  .layout-band,
  .image-rail,
  .split-visual {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-frame,
  .decor-frame img {
    max-width: 100%;
  }

  .offer-logo {
    width: 200px;
    height: 80px;
    min-width: 200px;
    min-height: 80px;
    max-width: 200px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-card .offer-logo img,
  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}

@media (max-width: 375px) {
  .wrap,
  .offers-inner,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .hero,
  .offers-section,
  .info-section,
  .sub-hero,
  .layout-band,
  .image-rail,
  .split-visual,
  .decor-frame {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-frame {
    max-height: 200px;
  }

  .decor-frame img {
    max-width: 100%;
    max-height: 200px;
    height: auto;
  }

  .offer-logo {
    width: 160px;
    height: 64px;
    min-width: 160px;
    min-height: 64px;
    max-width: 160px;
    max-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-card .offer-logo img,
  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}
