:root {
  --bg: #111313;
  --bg-deep: #0a0c0b;
  --side: #0c0f0e;
  --line: #1a1d1c;
  --frame: #0d0d0d;
  --acc: #6c6da3;
  --acc-soft: #666586;
  --acc-hot: #8384c2;
  --text: #dcdcdc;
  --muted: #787878;
  --white: #ffffff;
  --radius: 10px;
  --font: "Lexend", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(108, 109, 163, 0.18), transparent 60%),
    radial-gradient(700px 380px at 10% 20%, rgba(102, 101, 134, 0.12), transparent 55%),
    linear-gradient(180deg, #121515 0%, var(--bg) 40%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 8px;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, var(--acc), var(--acc-soft));
  z-index: 5;
  box-shadow: 0 0 24px rgba(108, 109, 163, 0.45);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px 16px 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 19, 0.86);
  backdrop-filter: blur(12px);
}

.brand { font-weight: 700; letter-spacing: 0.02em; font-size: 15px; }
.brand-a { color: var(--white); }
.brand-b { color: var(--acc-soft); }

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--white); }

.langs { display: flex; gap: 6px; }
.lang {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: #282a30;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.lang.is-on, .lang:hover { background: var(--acc); }
.lang:active { transform: scale(0.96); }

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

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 40px 64px 48px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 420px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--acc);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(108, 109, 163, 0.25);
}
.btn:hover { background: var(--acc-hot); }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--acc-soft); color: var(--white); }
.btn.wide { width: 100%; }

.hero-stage {
  position: relative;
  min-height: 420px;
  perspective: 1000px;
}

.float-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--frame);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s ease both;
}
.float-card img {
  display: block;
  width: 100%;
  height: auto;
}
.injector-card {
  width: min(320px, 70%);
  left: 8%;
  top: 12%;
  z-index: 2;
  animation-delay: 0.05s;
}
.menu-card {
  width: min(460px, 86%);
  right: 0;
  top: 28%;
  z-index: 1;
  animation-delay: 0.18s;
  transform: rotate(-2deg);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.section {
  padding: 72px 40px 80px 48px;
  border-top: 1px solid var(--line);
}
.section-head { max-width: 560px; margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--white);
  font-weight: 600;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--line);
  background: var(--side);
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.2s;
}
.tab.is-on, .tab:hover {
  color: var(--white);
  border-color: var(--acc);
  background: rgba(108, 109, 163, 0.15);
}

.preview-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #151818, #101212);
  padding: 16px;
  overflow: hidden;
}
.preview-pane { display: none; margin: 0; animation: fade 0.35s ease; }
.preview-pane.is-on { display: block; }
.preview-pane img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 8px;
  background: #0b0d0c;
  display: block;
}
.preview-pane figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.buy .calc {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.calc-side,
.calc-total {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 15, 14, 0.9);
  padding: 24px;
}

.mode-row { display: flex; gap: 8px; margin-bottom: 22px; }
.mode {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--frame);
  color: var(--muted);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.mode.is-on {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--white);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.row-between strong {
  color: var(--white);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}

#days {
  width: 100%;
  accent-color: var(--acc);
  cursor: pointer;
}
.hints {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.chips {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: var(--frame);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.2s;
}
.chip.is-on, .chip:hover {
  background: rgba(108, 109, 163, 0.25);
  border-color: var(--acc);
  color: var(--white);
}

.rate {
  margin: 18px 0 0;
  color: var(--acc-soft);
  font-size: 13px;
}

#daysBlock.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.2);
}

.chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calc-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(108, 109, 163, 0.18), transparent 55%),
    rgba(12, 15, 14, 0.95);
}
.total-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.total-price {
  margin: 8px 0 4px;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.total-price small {
  font-size: 22px;
  color: var(--acc-soft);
  font-weight: 500;
}
.total-meta {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}
.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 40px 28px 48px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.foot .muted { opacity: 0.85; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 20px 48px 28px; }
  .hero-stage { min-height: 340px; }
  .section, .foot, .top { padding-left: 28px; padding-right: 20px; }
  .buy .calc { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 560px) {
  .injector-card { width: 58%; }
  .menu-card { width: 78%; top: 38%; }
  .total-price { font-size: 44px; }
}
