:root {
  color-scheme: light;
  --bg: #f1ece4;
  --paper: #fffaf2;
  --ink: #14151a;
  --soft: #716a62;
  --line: rgba(17, 19, 24, 0.13);
  --accent: #315fcb;
  --copper: #b96f42;
  --teal: #4db7a7;
  --plum: #7863a5;
  --shadow: 0 26px 90px rgba(17, 19, 24, 0.12);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(90deg, rgba(17,19,24,0.04) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(rgba(17,19,24,0.04) 1px, transparent 1px) 0 0 / 52px 52px,
    radial-gradient(circle at 82% 8%, rgba(185,111,66,0.22), transparent 28%),
    radial-gradient(circle at 8% 30%, rgba(49,95,203,0.13), transparent 24%),
    var(--bg);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 10px;
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(17, 19, 24, 0.08);
}

.brand, .back-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-glyph {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font: 900 20px/1 var(--mono);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font: 800 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.back-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
}

.hero {
  min-height: 690px;
  padding: 86px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #315c32;
  font: 900 15px/1.1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: #56606d;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.55;
  font-weight: 650;
}

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

.btn {
  min-height: 58px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  background: rgba(255,250,242,0.78);
}

.btn.primary {
  border-color: transparent;
  color: #fffaf2;
  background: var(--ink);
}

.btn.copper {
  border-color: transparent;
  color: #fffaf2;
  background: var(--copper);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,250,242,0.86);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--teal), var(--copper));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 56px;
  color: var(--soft);
  font: 900 13px/1 var(--mono);
  text-transform: uppercase;
}

.big-price {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.big-price span {
  color: var(--soft);
  font: 900 13px/1 var(--mono);
  text-transform: uppercase;
}

.price {
  font: 950 clamp(54px, 6vw, 84px)/0.95 var(--font);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  min-height: 96px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.stat b {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font: 900 12px/1 var(--mono);
  text-transform: uppercase;
}

.stat strong {
  font-size: 24px;
  line-height: 1.1;
}

.section {
  padding: 70px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  margin-bottom: 18px;
}

.section-head p {
  color: #56606d;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 620;
}

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

.feature, .step, .contact-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,250,242,0.78);
  box-shadow: 0 16px 42px rgba(17, 19, 24, 0.07);
}

.feature {
  padding: 24px;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.feature span, .step span {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(49,95,203,0.08);
  font: 900 15px/1 var(--mono);
}

.feature p, .step p {
  margin: 0;
  color: #56606d;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.contact-panel {
  padding: clamp(26px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-panel p {
  color: #56606d;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 620;
}

.form-grid {
  display: grid;
  gap: 12px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.74);
  color: var(--ink);
  padding: 15px 16px;
  outline: none;
}

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

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--soft);
  font-weight: 800;
}

.form-status.ok { color: #315c32; }
.form-status.error { color: #9b2f1f; }

.footer {
  padding: 34px 0 44px;
  color: var(--soft);
  font: 900 14px/1.2 var(--mono);
}

@media (max-width: 860px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }
  .back-link {
    width: 100%;
    justify-content: center;
  }
  .hero {
    min-height: auto;
    padding: 58px 0 42px;
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: clamp(42px, 12vw, 58px);
    overflow-wrap: anywhere;
  }
  .lead {
    font-size: 20px;
  }
  .hero-card {
    transform: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }
  .header {
    width: min(100% - 28px, 1180px);
  }
  .brand small {
    display: none;
  }
  .hero-actions, .modal-actions {
    display: grid;
  }
  .btn {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 46px 0;
  }
  .step {
    grid-template-columns: 1fr;
  }
}
