.hero {
  position: relative;
  z-index: 1;
}

.hero-diagonal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  position: relative;
}

.hero-panel {
  position: relative;
  min-height: 320px;
}

.hero-panel--copy {
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  display: flex;
  align-items: center;
  padding: 48px 40px 48px 24px;
  z-index: 2;
}

.hero-panel--copy.scanline-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  clip-path: inherit;
}

.hero-panel--art {
  margin-left: -12%;
  background-image: url("/images/decorative/decor_1.webp");
  background-size: cover;
  background-position: center;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 8px 0 0 rgba(0, 0, 0, 0.35);
}

.hero-panel--art.glitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  mix-blend-mode: screen;
  opacity: 0.18;
  transform: translate(3px, -2px);
  clip-path: inherit;
  animation: glitch-shift 4s steps(2) infinite;
}

@keyframes glitch-shift {
  0%,
  90%,
  100% {
    transform: translate(0, 0);
  }
  92% {
    transform: translate(4px, -2px);
  }
  96% {
    transform: translate(-3px, 2px);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--text);
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-strip {
  background: var(--surface);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--secondary);
  padding: 14px 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
}

.hero-strip p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--accent);
  font-family: var(--font-body);
}

.offers-section {
  padding: 64px 0;
  position: relative;
  z-index: 1;
  background-image: url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 10, 0.88);
}

.offers-section .container {
  position: relative;
}

.offers-header {
  text-align: center;
  margin-bottom: 36px;
}

.offers-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.offers-header p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-section {
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.info-section:nth-child(even) {
  background: rgba(12, 26, 20, 0.55);
}

.info-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 14px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.info-section p {
  margin-bottom: 12px;
  font-size: 15px;
}

.info-cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--text);
  border: 2px solid var(--secondary);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.info-cta:hover {
  color: var(--accent);
}

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

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

.mini-card {
  background: var(--surface);
  border: 2px solid var(--secondary);
  padding: 14px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.mini-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 13px;
  margin: 0;
  color: var(--text);
}

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

.rail-bar {
  background: var(--primary);
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 12px 0;
}

.layout-stack-list ul {
  list-style: none;
  margin-top: 12px;
}

.layout-stack-list li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-left: 3px solid var(--secondary);
  margin-bottom: 8px;
  background: rgba(88, 129, 87, 0.08);
}

.layout-stack-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.layout-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 3px solid var(--secondary);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.layout-band__text {
  padding: 24px;
  background: var(--surface);
}

.layout-band__media {
  background-image: url("/images/decorative/decor_2.jpg");
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

.layout-quote {
  border: 3px solid var(--accent);
  background: var(--surface);
  padding: 24px 28px;
  margin: 18px 0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
}

.layout-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.layout-mosaic .decor-wrap:nth-child(2) {
  margin-top: 28px;
}

.layout-timeline {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin-top: 12px;
}

.layout-timeline .step {
  position: relative;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(12, 26, 20, 0.8);
  border: 1px solid var(--border);
}

.layout-timeline .step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border: 2px solid var(--accent);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.layout-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.layout-table th,
.layout-table td {
  border: 2px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.layout-table th {
  background: var(--primary);
  font-family: var(--font-display);
  color: var(--accent);
}

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

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

.zig-row:nth-child(even) {
  grid-template-columns: 140px 1fr;
}

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

.zig-media {
  height: 100px;
  background: var(--primary);
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  background-size: cover;
  background-position: center;
}

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

.stat-block {
  background: var(--surface);
  border: 2px solid var(--secondary);
  padding: 16px 12px;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.stat-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-block span {
  font-size: 12px;
  color: var(--muted);
}

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

.aside-panel {
  background: var(--primary);
  padding: 18px;
  border: 2px solid var(--accent);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text);
}

.layout-feature {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 3px solid var(--secondary);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.layout-feature::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(163, 177, 138, 0.12);
  transform: rotate(18deg);
}

.feature-media {
  margin-top: 16px;
  max-width: 420px;
}

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

.hero-title {
  animation: float-pixel 5s ease-in-out infinite;
}

.info-cta {
  transition: transform 0.15s steps(2);
}

.info-cta:hover {
  transform: translate(-2px, -2px);
}

@media (max-width: 900px) {
  .hero-diagonal {
    display: block;
  }

  .hero-panel--copy {
    clip-path: none;
    padding: 36px 20px;
  }

  .hero-panel--art {
    display: none;
  }

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

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

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

  .rail-bar {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 10px;
    min-height: auto;
  }

  .zig-row,
  .zig-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

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


@media (max-width: 375px) {
  .hero-diagonal,
  .hero-panel,
  .offers-section,
  .layout-band,
  .layout-feature,
  .decor-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-panel--art {
    margin-left: 0;
  }
}
