:root {
  --bg: #ddd8cb;
  --ink: #17150f;
  --muted: #5a564c;
  --orange: #ff4b00;
  --line: #c9c2b2;
  --card: #e8e3d7;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Golos Text", system-ui, sans-serif; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 36px;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.nav nav {
  display: flex;
  gap: 18px;
  flex: 1;
}
.nav nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-right { display: flex; gap: 8px; margin-left: auto; }
.chip {
  border: 0;
  background: #e8e3d7;
  color: var(--ink);
  min-width: 36px;
  height: 28px;
  font-size: 11px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  padding: 36px 64px 28px;
  align-items: start;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.kicker i {
  width: 18px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}
h1, h2 {
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 0 0 22px;
  max-width: 520px;
}
h1 em { font-style: normal; color: var(--orange); }
.lead {
  max-width: 620px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
}
.lead.wide { max-width: 820px; }
.cta-row { display: flex; gap: 10px; margin: 28px 0 12px; flex-wrap: wrap; }
.under { color: var(--muted); font-size: 13px; }
.key-plate {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 520px;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.key-plate input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
  outline: none;
}
.key-plate input::placeholder { color: #9a9488; }
.key-plate .btn {
  flex: 0 0 auto;
}

.btn {
  border: 0;
  border-radius: 0;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.btn.black { background: #17150f; color: #fff; }
.btn.ghost { background: #e8e3d7; color: var(--ink); }

.side { display: grid; gap: 12px; }
.term {
  background: #fff;
  padding: 16px;
}
.term-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 12px;
}
.term-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.line {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
}
.line b { color: var(--orange); font-weight: 600; }
.line em { color: #999; font-style: normal; text-align: right; }
.term pre {
  background: #17150f;
  color: #ece7df;
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  padding: 16px;
}
.stats b { display: block; font-family: Unbounded, sans-serif; font-size: 26px; }
.stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #7a7468;
}
.marquee div { white-space: nowrap; animation: slide 28s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { padding: 72px 64px; }
h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 28px; max-width: 18ch; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards article {
  background: var(--card);
  padding: 22px;
}
h3 { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 18px; margin: 0 0 10px; }
.cards p, .faq p, .about p { color: var(--ink); line-height: 1.55; margin: 0; }

.big { padding-top: 20px; padding-bottom: 20px; }
.big h2 { font-size: clamp(36px, 5vw, 64px); max-width: none; }

.faq { display: grid; gap: 18px; }
.faq article { padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.about h2 { max-width: 22ch; }
.about p { max-width: 820px; margin-bottom: 16px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 64px 40px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,21,15,.35);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.overlay[hidden] { display: none; }
.panel {
  width: min(560px, 100%);
  background: var(--bg);
  padding: 32px;
  position: relative;
}
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}
.hint { color: var(--muted); line-height: 1.5; }
#key-form { display: grid; gap: 12px; margin-top: 18px; }
#key-input {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
}
.error { color: #b42318; }
.tabs { display: flex; gap: 8px; margin: 18px 0; }
.tab {
  border: 1px solid var(--line);
  background: #e8e3d7;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  cursor: pointer;
}
.tab.on { background: #17150f; color: #fff; }
.remain { font-family: Unbounded, sans-serif; font-size: 34px; margin: 8px 0; }

@media (max-width: 980px) {
  .hero, .cards, .cards.four, .cards.three { grid-template-columns: 1fr; }
  .nav, .hero, section, footer { padding-left: 20px; padding-right: 20px; }
  .nav nav { display: none; }
  .key-plate { max-width: none; flex-wrap: wrap; }
  .key-plate input { width: 100%; }
  .key-plate .btn { width: 100%; }
}
