:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.16);
  --line-dim: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --dim: #5f5f5f;
  --blood: #9f111c;
  --blood-dark: #4b070c;
  --paper: #f7f7f0;
  --shadow: #151515;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(159, 17, 28, 0.18) 0%, transparent 34%),
    linear-gradient(245deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%),
    linear-gradient(145deg, #080808 0%, #030303 45%, #0b0506 100%);
  font-family: "Courier New", Consolas, ui-monospace, monospace;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

body::selection {
  background: transparent;
  color: inherit;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  user-select: text;
  -webkit-user-select: text;
}

button,
.pixel-button,
.lang-btn,
.choose-package,
.brand,
.preview-services span {
  user-select: none;
  -webkit-user-select: none;
}

.noise,
.scanlines,
.pixel-grid,
.blood-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: -5;
  opacity: 0.08;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.3) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  image-rendering: pixelated;
}

.scanlines {
  z-index: -4;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
}

.pixel-grid {
  z-index: -3;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 78%);
}

.blood-layer {
  z-index: -2;
  overflow: hidden;
}

.blood-drop {
  position: absolute;
  top: -12vh;
  width: var(--size);
  height: calc(var(--size) * var(--height));
  background: linear-gradient(var(--blood), var(--blood-dark));
  opacity: var(--alpha);
  image-rendering: pixelated;
  box-shadow:
    calc(var(--size) * -1) calc(var(--size) * 2) 0 rgba(159, 17, 28, 0.65),
    calc(var(--size) * 1) calc(var(--size) * 4) 0 rgba(75, 7, 12, 0.8);
  transform-origin: 50% 0;
  animation: bloodWorm var(--speed) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes bloodWorm {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(calc(var(--tilt) * -0.45));
  }
  12% {
    transform: translate3d(calc(var(--wiggle) * 0.55), 2vh, 0) rotate(calc(var(--tilt) * 0.65));
  }
  25% {
    transform: translate3d(calc(var(--wiggle) * -0.35), 18vh, 0) rotate(calc(var(--tilt) * -0.75));
  }
  38% {
    transform: translate3d(calc(var(--wiggle) * 0.75), 35vh, 0) rotate(calc(var(--tilt) * 0.9));
  }
  52% {
    transform: translate3d(calc(var(--wiggle) * -0.65), 54vh, 0) rotate(calc(var(--tilt) * -0.85));
  }
  66% {
    transform: translate3d(calc(var(--wiggle) * 0.42), 73vh, 0) rotate(calc(var(--tilt) * 0.55));
  }
  82% {
    transform: translate3d(calc(var(--wiggle) * -0.22), 96vh, 0) rotate(calc(var(--tilt) * -0.35));
  }
  100% {
    transform: translate3d(calc(var(--wiggle) * 0.2), 124vh, 0) rotate(calc(var(--tilt) * 0.25));
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 56px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line-dim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: clamp(1rem, 2.1vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--bg);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--blood);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.lang-btn {
  min-width: 42px;
  height: 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dim);
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line);
  transform: translateY(-1px);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: clamp(54px, 8vw, 110px) 0 40px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.8rem, 9vw, 7.7rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.glitch-title {
  position: relative;
  display: block;
  color: var(--paper);
  text-shadow: 5px 5px 0 var(--blood-dark);
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.glitch-title::before {
  color: var(--blood);
  transform: translate(4px, -2px);
  clip-path: inset(0 0 55% 0);
}

.glitch-title::after {
  color: #d9d9d9;
  transform: translate(-3px, 3px);
  clip-path: inset(55% 0 0 0);
}

.title-line {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.35rem, 4vw, 3.6rem);
  line-height: 1;
  color: #d7d7d7;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blood);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-text,
.section-head p:not(.eyebrow),
.field span,
.site-footer {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 0;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.pixel-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.pixel-button:hover,
.pixel-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--blood-dark);
}

.pixel-button.primary {
  color: #090909;
  background: var(--paper);
  border-color: var(--paper);
}

.pixel-button.ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.025);
}

.showcase-card,
.price-card,
.order-zone {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(6, 6, 6, 0.82);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8) inset,
    12px 12px 0 rgba(75, 7, 12, 0.7);
}

.showcase-card {
  align-self: stretch;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
}

.preview-browser {
  position: relative;
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 8px),
    #101010;
  overflow: hidden;
}

.preview-browser::before {
  content: "";
  position: absolute;
  right: -26px;
  bottom: 34px;
  width: 88px;
  height: 190px;
  background:
    linear-gradient(var(--blood), var(--blood-dark));
  opacity: 0.45;
  box-shadow:
    -28px -36px 0 rgba(159, 17, 28, 0.22),
    34px 46px 0 rgba(159, 17, 28, 0.28);
}

.preview-browser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.03) 9px 10px);
  pointer-events: none;
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line-dim);
  background: rgba(255, 255, 255, 0.045);
}

.preview-top span {
  width: 10px;
  height: 10px;
  background: var(--dim);
}

.preview-top span:first-child {
  background: var(--blood);
}

.preview-top strong {
  margin-left: auto;
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.preview-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(24px, 5vw, 42px);
  z-index: 1;
}

.preview-art {
  position: relative;
  width: min(150px, 36vw);
  aspect-ratio: 1;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.pixel-face {
  position: absolute;
  inset: 15%;
  background:
    linear-gradient(#f4f4f4 0 0) 25% 28% / 18% 18% no-repeat,
    linear-gradient(#f4f4f4 0 0) 66% 28% / 18% 18% no-repeat,
    linear-gradient(var(--blood) 0 0) 35% 68% / 42% 12% no-repeat,
    #070707;
  border: 8px solid var(--paper);
  box-shadow:
    10px 10px 0 var(--blood-dark),
    -10px -10px 0 rgba(255, 255, 255, 0.12);
}

.pixel-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blood);
  box-shadow: 10px 0 0 var(--blood), 0 10px 0 var(--blood);
}

.spark-a {
  top: 2%;
  right: 12%;
}

.spark-b {
  bottom: 6%;
  left: 0;
}

.spark-c {
  top: 54%;
  right: 0;
  background: var(--paper);
  box-shadow: 10px 0 0 var(--paper), 0 10px 0 var(--paper);
}

.preview-copy {
  max-width: 260px;
}

.preview-copy p {
  margin: 0;
  color: var(--blood);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-copy h2 {
  margin: 10px 0;
  color: var(--paper);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.preview-copy small {
  display: block;
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.preview-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 0 clamp(24px, 5vw, 42px) 18px;
}

.preview-lines span {
  display: block;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-lines span:nth-child(2) {
  width: 72%;
}

.preview-lines span:nth-child(3) {
  width: 48%;
  background: rgba(159, 17, 28, 0.55);
}

.preview-services {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 clamp(24px, 5vw, 42px) clamp(24px, 5vw, 42px);
}

.preview-services span {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.section-head {
  padding: 58px 0 24px;
  text-align: center;
}

.section-head.compact {
  padding: 0;
  text-align: start;
}

.section-head h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.section-head p:not(.eyebrow) {
  max-width: 660px;
  margin: 16px 0 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.section-head:not(.compact) p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(159, 17, 28, 0.8) 50% 65%, transparent 66%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 6px, transparent 6px 12px);
  opacity: 0.7;
}

.price-card.selected {
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    12px 12px 0 rgba(159, 17, 28, 0.9),
    0 0 28px rgba(159, 17, 28, 0.2);
  transform: translate(-2px, -2px);
}

.price-card.selected::before {
  opacity: 1;
}

.price-index {
  color: var(--blood);
  font-weight: 900;
}

.price-card h3 {
  margin: 18px 0 0;
  color: var(--paper);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.price {
  margin: 18px 0 0;
  color: var(--paper);
  font-size: 3.2rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card p {
  margin: 18px 0 0;
  color: #bcbcbc;
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blood);
}

.choose-package {
  width: 100%;
  margin-top: auto;
}

.choose-package[aria-pressed="true"] {
  color: var(--paper);
  background: var(--blood);
  border-color: var(--blood);
}

.order-zone {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 54px);
  margin: 72px 0 46px;
  padding: clamp(22px, 5vw, 42px);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.wide,
.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-dim);
  outline: none;
  padding: 14px;
  border-radius: 0;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--paper);
  box-shadow: 0 0 0 2px rgba(159, 17, 28, 0.45);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

.form-status.ok {
  color: #d9ffd9;
}

.form-status.error {
  color: #ffb6b6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
}

[dir="rtl"] .feature-list li {
  padding-right: 20px;
  padding-left: 0;
}

[dir="rtl"] .feature-list li::before {
  right: 0;
  left: auto;
}

@media (max-width: 920px) {
  .hero-shell,
  .price-grid,
  .order-zone {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .showcase-card {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 15vw, 4.1rem);
  }

  .hero-actions,
  .order-form {
    grid-template-columns: 1fr;
  }

  .pixel-button {
    width: 100%;
  }

  .price-card,
  .showcase-card,
  .order-zone {
    box-shadow: 7px 7px 0 rgba(75, 7, 12, 0.7);
  }

  .preview-stage {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
