.hero {
  position: relative;
  background: var(--bg);
  padding: 60px 24px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.hero-bg img {
  width: min(720px, 90%);
  max-height: 420px;
  object-fit: contain;
  opacity: 0.18;
  filter: grayscale(1);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero .subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.offers-section {
  position: relative;
  padding: 56px 24px;
  background-image:
    linear-gradient(180deg, rgba(255, 241, 242, 0.88) 0%, rgba(255, 241, 242, 0.92) 100%),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(253, 186, 116, 0.2), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(251, 113, 133, 0.15), transparent 40%);
  pointer-events: none;
}

.offers-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.offers-inner > h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.offers-lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}

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

.offer-card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-8);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.offer-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.offer-card:nth-child(2) {
  transform: rotate(1.4deg);
}

.offer-card:nth-child(3) {
  transform: rotate(0.9deg);
}

.offer-card:nth-child(4) {
  transform: rotate(-1.6deg);
}

.offer-logo {
  width: 160px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.offer-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.offer-bonus-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.offer-bonus {
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  font-weight: 700;
  color: var(--primary);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  max-width: 100%;
}

.offer-terms {
  font-size: 11px;
  color: var(--muted);
}

.offer-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.offer-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 20px;
  background: var(--accent);
  color: #16352a;
  font-weight: 800;
  border-radius: 6px;
  box-shadow: var(--shadow-4);
  transition: transform 0.15s ease;
}

.offer-cta:hover {
  transform: scale(1.05);
  color: #16352a;
}

.info-block {
  position: relative;
  padding: 20px 0;
}

.info-block h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.info-block p {
  margin-bottom: 12px;
}

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

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

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

.mini-card {
  background: var(--surface);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-4);
  border: 1px solid var(--border);
}

.mini-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

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

.layout-band {
  background: linear-gradient(120deg, rgba(251, 113, 133, 0.12), rgba(253, 186, 116, 0.18));
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow-2);
}

.layout-quote {
  border-left: 4px solid var(--primary);
  padding: 8px 0 8px 20px;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 16px 0;
}

.layout-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.layout-checklist li {
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
  position: relative;
  padding-left: 36px;
}

.layout-checklist li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

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

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

.rail-mark {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
}

.layout-steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.layout-steps li {
  list-style: none;
  counter-increment: step;
  background: var(--surface);
  border-radius: 6px;
  padding: 14px 14px 14px 54px;
  position: relative;
  box-shadow: var(--shadow-4);
  border: 1px solid var(--border);
}

.layout-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.layout-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-4);
  margin: 12px 0;
}

.layout-table th,
.layout-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.layout-table th {
  background: rgba(251, 113, 133, 0.12);
}

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

.zig-item {
  background: var(--surface);
  padding: 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-8);
  border: 1px solid var(--border);
  max-width: 92%;
}

.zig-item:nth-child(even) {
  margin-left: auto;
  transform: rotate(1deg);
}

.zig-item:nth-child(odd) {
  transform: rotate(-1deg);
}

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

.stat-chip {
  background: var(--surface);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-4);
  border: 1px solid var(--border);
}

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

.stat-chip span {
  font-size: 0.8rem;
  color: var(--muted);
}

.bg-panel-a {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(253, 186, 116, 0.12)),
    var(--bg);
}

.bg-panel-b {
  background:
    radial-gradient(circle at 90% 20%, rgba(52, 211, 153, 0.12), transparent 40%),
    var(--bg);
}

.topic-hero {
  padding: 48px 24px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.topic-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.topic-hero p {
  color: var(--muted);
  max-width: 640px;
}

.topic-body {
  max-width: 1000px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.topic-body h2 {
  font-size: 1.35rem;
  margin: 28px 0 10px;
}

.topic-body h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.topic-body p {
  margin-bottom: 12px;
}

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

.topic-rail {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-8);
  border: 1px solid var(--border);
}

.pull-quote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 20px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.15), rgba(253, 186, 116, 0.2));
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--shadow-4);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-8);
}

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

.not-found {
  text-align: center;
  padding: 80px 24px;
}

.not-found h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

@keyframes paper-in {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shear-in {
  from {
    clip-path: inset(0 40% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.hero h1 {
  animation: paper-in 0.7s ease both;
}

.hero .subtitle {
  animation: paper-in 0.7s ease 0.12s both;
}

.offer-card {
  animation: float-soft 5s ease-in-out infinite;
}

.offer-card:nth-child(2) {
  animation-delay: 0.4s;
}

.offer-card:nth-child(3) {
  animation-delay: 0.8s;
}

.offer-card:nth-child(4) {
  animation-delay: 1.2s;
}

.info-block h2 {
  animation: shear-in 0.6s ease both;
}

@media (max-width: 900px) {
  .hero {
    padding: 32px 20px;
  }

  .hero-bg {
    display: none;
  }

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

  .offer-card,
  .offer-card:nth-child(n) {
    transform: none;
  }

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

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

  .layout-split,
  .layout-cards,
  .layout-mosaic,
  .layout-stat-row,
  .topic-split,
  .stat-band {
    grid-template-columns: 1fr;
  }

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

  .zig-item,
  .zig-item:nth-child(n) {
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }

  .topic-rail {
    position: static;
  }

  .decor-img {
    max-width: 100%;
    max-height: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .decor-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .paper-sheet.rot-1,
  .paper-sheet.rot-2,
  .paper-sheet.rot-3 {
    transform: none;
  }
}

@media (max-width: 375px) {
  .offer-logo {
    width: 120px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

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

  .decor-img {
    max-width: 100%;
    max-height: 180px;
  }

  .section-wrap,
  .topic-body,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}
