/* 1xbet9c (домен lol) — премиум-лендинг 1xBet / 1хБет. Концепт «Икс-Энигма»: роторная шифромашина (ink-indigo + electric-violet + cipher-mint) */

:root {
  --bg: #0a0c14;
  --bg-2: #121524;
  --bg-3: #1b2034;
  --line: #262c40;
  --line-2: #384268;
  --txt: #eef1f8;
  --txt-d: #aab2c6;
  --txt-dd: #6f7894;
  --vio: #7b6bff;
  --mint: #43d6a6;
  --vio-d: #5a48d6;
  --hot: #ff7a52;
  --r: 12px;
  --r-s: 8px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font: 16px/1.64 "Brygada 1918", Georgia, "Times New Roman", ui-serif, serif;
  color: var(--txt);
  background:
    radial-gradient(1020px 600px at 90% -12%, rgba(123, 107, 255, .16) 0%, transparent 62%),
    radial-gradient(840px 600px at -10% 58%, rgba(67, 214, 166, .08) 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--mint); text-decoration: none }
a:hover { text-decoration: underline }

h1, h2, h3, h4,
.cipherbar__t, .rotorrow__num, .glyphtag, .keyspace-kpi__num,
.keycard__step, .keycard__pct, .cribrow__num, .codecard__cover,
.rotorbox__name, .substbar span, .keyslot__cover, .keyspace-times__n,
.keyrack__col h4 {
  font-family: "Seymour One", "Brygada 1918", Georgia, ui-serif, serif;
  font-weight: 400;
}

.cipherjump {
  position: absolute; top: -42px; left: 8px;
  padding: 8px 12px; background: var(--mint); color: #06140d;
  border-radius: 6px; z-index: 100; font-weight: 700;
}
.cipherjump:focus { top: 8px }

/* ===== TOP BAR ===== */
.cipherbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 20, .84);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.cipherbar__logo { display: flex; align-items: center; gap: 11px; color: var(--txt) }
.cipherbar__logo:hover { text-decoration: none }
.cipherbar__svg {
  width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 0 10px rgba(123, 107, 255, .6));
}
.cipherbar__t { line-height: 1; letter-spacing: -.2px; font-size: 17px }
.cipherbar__sub {
  display: block; font-size: 10px; color: var(--txt-d);
  letter-spacing: 2.2px; font-weight: 600; margin-top: 5px;
  text-transform: uppercase; font-family: "Brygada 1918", serif;
}
.cipherbar__nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap }
.cipherbar__nav a {
  color: var(--txt-d); font-size: 14px; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.cipherbar__nav a:hover { color: var(--vio); border-bottom-color: var(--vio); text-decoration: none }

/* ===== CTA / SCRAMBLE BUTTON ===== */
.scramblebtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 8px;
  font-family: "Brygada 1918", serif;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer; letter-spacing: .1px;
}
.scramblebtn:hover { text-decoration: none; transform: translateY(-1px) }
.scramblebtn--small { background: var(--bg-3); color: var(--txt); border-color: var(--line) }
.scramblebtn--small:hover { background: var(--bg-2); border-color: var(--vio) }
.scramblebtn--big { padding: 15px 28px; font-size: 15px; border-radius: 10px }
.scramblebtn--hot {
  background: linear-gradient(120deg, #8a78ff 0%, #5a44d6 100%);
  color: #0d0a1c; border: 0;
  box-shadow: 0 12px 30px -10px rgba(123, 107, 255, .75);
}
.scramblebtn--hot:hover { box-shadow: 0 16px 38px -8px rgba(123, 107, 255, .95) }
.scramblebtn--ghost { background: transparent; color: var(--txt); border-color: var(--line) }
.scramblebtn--ghost:hover { border-color: var(--mint); color: var(--mint) }

/* ===== AGGREGATE COUNTER STRIP ===== */
.rotorrow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(123, 107, 255, .05), rgba(67, 214, 166, .03));
  font-size: 13px;
}
.rotorrow__cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 14px;
  border-right: 1px solid var(--line);
  align-items: flex-start;
}
.rotorrow__cell:last-child { border-right: 0 }
.rotorrow__num { font-size: 15px; color: var(--mint); letter-spacing: -.2px }
.rotorrow__lbl { font-size: 11px; color: var(--txt-d); letter-spacing: .6px; text-transform: uppercase }

/* ===== HERO ===== */
.enigmarow {
  display: grid; grid-template-columns: 1.18fr 1fr; gap: 36px;
  padding: 48px 22px 32px;
  max-width: 1240px; margin: 0 auto;
  align-items: center;
}
.glyphtag {
  display: inline-block;
  font-size: 11px; letter-spacing: 1.4px; color: var(--mint);
  background: rgba(67, 214, 166, .08);
  border: 1px solid rgba(67, 214, 166, .25);
  padding: 6px 12px; border-radius: 4px;
  margin: 0 0 18px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(27px, 4vw, 44px); line-height: 1.12;
  margin: 0 0 18px; letter-spacing: -.4px;
}
.litaccent { color: var(--vio) }
.enigmarow__sub { color: var(--txt-d); font-size: 16px; margin: 0 0 14px; line-height: 1.68 }
.enigmarow__btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px }
.enigmarow__pic { margin: 0 }
.enigmarow__pic-svg {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--line);
  background:
    radial-gradient(420px 320px at 28% 32%, rgba(123, 107, 255, .26), transparent 60%),
    radial-gradient(360px 280px at 78% 76%, rgba(67, 214, 166, .18), transparent 65%),
    linear-gradient(135deg, #0c0f1c 0%, #141a2e 100%);
  aspect-ratio: 16 / 11;
  box-shadow: 0 24px 64px -22px rgba(123, 107, 255, .44);
}
.enigmarow__pic figcaption {
  margin-top: 12px; font-size: 12px; color: var(--txt-dd);
  font-style: italic; text-align: right;
}

/* KPI inline */
.keyspace-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 18px 0 0; border-top: 1px solid var(--line);
}
.keyspace-kpi__item { display: flex; flex-direction: column; gap: 2px }
.keyspace-kpi__num { font-size: 24px; color: var(--vio); letter-spacing: -.4px }
.keyspace-kpi__lbl { font-size: 11px; color: var(--txt-d); text-transform: uppercase; letter-spacing: 1.2px }

/* ===== SECTIONS GENERAL ===== */
section {
  max-width: 1240px; margin: 0 auto;
  padding: 56px 22px;
}
section.enigmarow, section.keyladder { padding-top: 36px }
.cribline {
  display: inline-block;
  font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--mint); font-weight: 700;
  margin: 0 0 10px; font-family: "Brygada 1918", serif;
}
h2 {
  font-size: clamp(22px, 3vw, 32px); line-height: 1.22;
  margin: 0 0 16px; letter-spacing: -.3px;
}
h3 {
  font-size: clamp(16px, 1.9vw, 20px); line-height: 1.34;
  margin: 26px 0 10px; color: var(--vio);
}
p { margin: 0 0 14px; color: var(--txt) }
.plaintext { color: var(--txt-d); font-size: 16px; margin-bottom: 24px; max-width: 790px }

/* ===== WELCOME ===== */
.keyladder {
  background:
    radial-gradient(720px 360px at 82% 28%, rgba(67, 214, 166, .07) 0%, transparent 70%),
    rgba(18, 21, 36, .55);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px;
  max-width: none;
}
.keycard-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 22px 0 24px;
}
.keycard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.keycard:hover { border-color: var(--vio); transform: translateY(-2px) }
.keycard::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(123, 107, 255, .07), transparent 60%);
  pointer-events: none;
}
.keycard__step {
  font-size: 11px; color: var(--mint);
  letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase;
}
.keycard__pct {
  font-size: 28px; line-height: 1;
  color: var(--vio); letter-spacing: -.6px; margin-bottom: 8px;
}
.keycard__title { font-family: "Brygada 1918", serif; font-weight: 700; font-size: 15px; margin-bottom: 6px }
.keycard__sub { font-size: 13px; color: var(--txt-d); line-height: 1.5 }

/* ===== THREE STEPS ===== */
.cribrow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.cribrow {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  position: relative;
}
.cribrow__num {
  position: absolute; top: 14px; right: 22px;
  font-size: 52px; line-height: 1; color: var(--bg-3);
}
.cribrow__head { font-family: "Brygada 1918", serif; font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--mint) }
.cribrow p { color: var(--txt-d); font-size: 14px; margin: 0 }

/* ===== SLOT GRID ===== */
.codecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin: 24px 0;
}
.codecard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.codecard:hover {
  transform: translateY(-3px);
  border-color: var(--vio);
  box-shadow: 0 18px 36px -14px rgba(123, 107, 255, .42);
}
.codecard__cover {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: rgba(238, 241, 248, .92);
  text-align: center; padding: 14px;
  letter-spacing: -.2px; line-height: 1.18;
  position: relative; overflow: hidden;
}
.codecard__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,.38) 100%);
  pointer-events: none;
}
.glyphbox-1 { background: linear-gradient(135deg, #1a1640 0%, #7b6bff 100%) }
.glyphbox-2 { background: linear-gradient(135deg, #06342a 0%, #43d6a6 100%); color: #051611 }
.glyphbox-3 { background: linear-gradient(135deg, #2a0f3a 0%, #b070ff 100%) }
.glyphbox-4 { background: linear-gradient(135deg, #082838 0%, #4db8ff 100%) }
.glyphbox-5 { background: linear-gradient(135deg, #3a1505 0%, #ff7a52 100%) }
.glyphbox-6 { background: linear-gradient(135deg, #14163a 0%, #5a48d6 100%) }
.glyphbox-7 { background: linear-gradient(135deg, #06342a 0%, #2fe0b0 100%); color: #051611 }
.glyphbox-8 { background: linear-gradient(135deg, #2a0820 0%, #ff5a90 100%) }
.glyphbox-9 { background: linear-gradient(135deg, #1a1640 0%, #43d6a6 100%) }
.glyphbox-10 { background: linear-gradient(135deg, #052838 0%, #43d6a6 100%) }
.glyphbox-11 { background: linear-gradient(135deg, #2a0f3a 0%, #7b6bff 100%) }
.glyphbox-12 { background: linear-gradient(135deg, #3a2205 0%, #ffb84d 100%); color: #100b02 }

.codecard h3 { font-family: "Brygada 1918", serif; font-size: 15px; margin: 12px 14px 4px; color: var(--txt); font-weight: 700 }
.codecard p { font-size: 12px; color: var(--txt-d); margin: 0 14px 12px; line-height: 1.4 }
.codecard__btn {
  display: block; padding: 10px;
  margin: auto 12px 12px;
  background: var(--bg-3); color: var(--txt);
  text-align: center; border-radius: 6px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); transition: all .15s;
  font-family: "Brygada 1918", serif;
}
.codecard__btn:hover { background: var(--vio); border-color: var(--vio); color: #0d0a1c; text-decoration: none }

.seedrow { margin: 22px 0 0 }
.seedrow__title { font-size: 12px; color: var(--mint); margin-bottom: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700 }
.seedrow__list { display: flex; flex-wrap: wrap; gap: 8px }
.seedrow__list span {
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px; color: var(--txt-d);
}

/* ===== LOYALTY ===== */
.cryptbox-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 22px;
}
.cryptbox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: border-color .2s;
}
.cryptbox:hover { border-color: var(--mint) }
.cryptbox__h { font-family: "Brygada 1918", serif; font-weight: 700; font-size: 17px; margin-bottom: 10px; color: var(--mint) }
.cryptbox p { color: var(--txt-d); font-size: 14px; margin: 0; line-height: 1.62 }

/* VIP-разряды как стек ступеней (staircase 0/-7/-14/-22/-29/-38) */
.rotorbox {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; margin-top: 14px;
}
.rotorbox__step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  position: relative;
}
.rotorbox__step:nth-child(1) { transform: translateY(0) }
.rotorbox__step:nth-child(2) { transform: translateY(-7px) }
.rotorbox__step:nth-child(3) { transform: translateY(-14px) }
.rotorbox__step:nth-child(4) { transform: translateY(-22px); border-color: var(--vio); background: var(--bg-2) }
.rotorbox__step:nth-child(5) { transform: translateY(-29px); border-color: var(--vio); background: var(--bg-2) }
.rotorbox__step:nth-child(6) { transform: translateY(-38px); border-color: var(--mint); background: linear-gradient(135deg, var(--bg-2), rgba(67, 214, 166, .1)) }
.rotorbox__name {
  font-size: 12px; color: var(--txt);
  display: block; line-height: 1; margin-bottom: 5px;
}
.rotorbox__cb { font-size: 11px; color: var(--txt-d) }
.rotorbox__step:nth-child(6) .rotorbox__name { color: var(--mint) }

/* ===== TOUR ===== */
.bombe {
  background:
    radial-gradient(640px 360px at 50% 50%, rgba(123, 107, 255, .11) 0%, transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px; max-width: none;
  text-align: center;
}
.bombe__btns { margin: 22px 0 28px }
.substbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 22px;
}
.substbar > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.substbar span { font-size: 22px; color: var(--vio); margin-bottom: 4px; letter-spacing: -.3px }
.substbar em { font-family: "Brygada 1918", serif; font-size: 14px; font-weight: 700; color: var(--txt); font-style: normal }
.substbar i { font-size: 12px; color: var(--txt-d); font-style: normal; line-height: 1.4 }

/* ===== LIVE GALLERY ===== */
.keyslot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-top: 22px;
}
.keyslot {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transition: transform .15s, border-color .2s, box-shadow .25s;
}
.keyslot:hover {
  transform: translateY(-3px);
  border-color: var(--hot);
  box-shadow: 0 18px 36px -14px rgba(255, 122, 82, .42);
}
.keyslot__cover {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: rgba(238, 241, 248, .94);
  padding: 12px; text-align: center; letter-spacing: -.2px; line-height: 1.18;
  position: relative; overflow: hidden;
}
.keyslot-cv-1 { background: linear-gradient(135deg, #14163a 0%, #7b6bff 100%) }
.keyslot-cv-2 { background: linear-gradient(135deg, #06342a 0%, #43d6a6 100%); color: #051611 }
.keyslot-cv-3 { background: linear-gradient(135deg, #2a0f3a 0%, #b070ff 100%) }
.keyslot-cv-4 { background: linear-gradient(135deg, #3a1505 0%, #ff7a52 100%) }
.keyslot-cv-5 { background: linear-gradient(135deg, #082838 0%, #4db8ff 100%) }
.keyslot-cv-6 { background: linear-gradient(135deg, #1a1640 0%, #5a48d6 100%) }

.keyslot__b { padding: 14px 16px 16px; position: relative }
.keyslot__t { font-family: "Brygada 1918", serif; font-weight: 700; font-size: 16px; margin-bottom: 4px }
.keyslot__s { font-size: 12px; color: var(--txt-d); margin-bottom: 10px }
.keyslot__m { font-size: 13px; color: var(--mint); font-weight: 600; margin-bottom: 4px }
.keyslot__p { font-size: 12px; color: var(--txt-dd) }
.keyslot__live {
  position: absolute; top: 12px; right: 16px;
  background: var(--hot); color: #15090a;
  padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}

/* ===== BRAND OVERVIEW ===== */
.vigenere h3 {
  border-left: 3px solid var(--vio);
  padding-left: 14px; margin-top: 30px;
}
.vigenere p { color: var(--txt); line-height: 1.72 }
.cribtag-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.cribtag-bdg {
  padding: 7px 13px;
  background: var(--bg-2);
  border: 1px solid var(--vio);
  border-radius: 4px;
  font-size: 12px; color: var(--txt);
  letter-spacing: .4px;
}

/* ===== REVIEWS ===== */
.digraph-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.digraph__box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.digraph__stars { color: var(--mint); font-size: 16px; letter-spacing: 4px }
.digraph__stars--four .star-off { color: var(--line-2) }
.digraph__q { font-size: 14px; line-height: 1.62; color: var(--txt); margin: 0 }
.digraph__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--txt-d);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.digraph__a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--vio), var(--mint));
  border-radius: 50%; color: #06140d; font-weight: 700; font-size: 14px;
  flex: none; font-family: "Brygada 1918", serif;
}

/* ===== PAYMENTS ===== */
.keyspace-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin: 22px 0 22px;
}
.nullbox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.nullbox__n { font-family: "Brygada 1918", serif; font-size: 15px; color: var(--txt); font-weight: 700 }
.nullbox i { font-size: 11px; color: var(--txt-d); font-style: normal; text-transform: uppercase; letter-spacing: 1px }

.keyspace-times {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 8px;
}
.keyspace-times > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.keyspace-times__n { font-size: 16px; color: var(--vio); font-weight: 700 }
.keyspace-times span:not(.keyspace-times__n) { font-size: 12px; color: var(--txt-d) }

/* ===== FINAL CTA ===== */
.lastrotor {
  text-align: center; padding: 56px 22px;
  background:
    radial-gradient(620px 320px at 50% 50%, rgba(123, 107, 255, .16) 0%, transparent 70%),
    var(--bg-2);
  border-radius: var(--r);
  margin: 32px 22px;
  border: 1px solid var(--line);
  max-width: none;
}
.lastrotor h2 { margin-bottom: 10px }
.lastrotor p { color: var(--txt-d); margin-bottom: 24px }

/* ===== AUTHOR NOTE ===== */
.saltbox {
  max-width: 1240px; margin: 8px auto 0;
  padding: 28px 22px 0;
}
.saltbox__h { font-size: clamp(18px, 2vw, 22px); margin-bottom: 10px }
.saltbox p { color: var(--txt-dd); font-size: 13px; line-height: 1.66; max-width: 900px }

/* ===== FAQ ===== */
.crackset h2 { margin-bottom: 22px }
details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 16px 20px;
  margin: 0 0 10px;
  transition: border-color .2s;
}
details[open] { border-color: var(--vio) }
summary {
  cursor: pointer; font-weight: 700; list-style: none;
  position: relative; padding-right: 32px;
  display: flex; align-items: center; min-height: 24px;
  font-family: "Brygada 1918", serif;
}
summary::-webkit-details-marker { display: none }
summary::after {
  content: "↻"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--mint); font-size: 13px;
  transition: transform .25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(90deg); border-color: var(--vio) }
details p { margin: 12px 0 0; color: var(--txt-d); font-size: 15px; line-height: 1.66 }

/* ===== FOOTER ===== */
.keyrack {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(10, 12, 20, .6);
}
.keyrack__top {
  max-width: 1240px; margin: 0 auto;
  padding: 42px 22px 26px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 36px;
}
.keyrack__brand { font-size: 14px; color: var(--txt-d); line-height: 1.65 }
.keyrack__logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.keyrack__logo span { display: flex; flex-direction: column; line-height: 1.1 }
.keyrack__name { color: var(--txt); font-size: 16px; font-weight: 700; margin-bottom: 2px; font-family: "Seymour One", serif }
.keyrack__legal { font-size: 12px; color: var(--txt-dd); margin: 0; line-height: 1.65 }
.keyrack__nv { color: var(--mint); font-weight: 700 }
.keyrack__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.keyrack__col h4 {
  font-size: 12px; color: var(--mint); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  margin: 0 0 12px;
}
.keyrack__col ul { list-style: none; padding: 0; margin: 0 }
.keyrack__col li {
  font-size: 13px; color: var(--txt-d);
  padding: 4px 0; cursor: default;
  transition: color .15s;
}
.keyrack__col li:hover { color: var(--txt) }
.keyrack__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--txt-dd);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .keycard-grid { grid-template-columns: repeat(2, 1fr) }
  .keyspace-grid { grid-template-columns: repeat(3, 1fr) }
  .substbar { grid-template-columns: repeat(2, 1fr) }
  .digraph-grid { grid-template-columns: 1fr }
  .keyrack__top { grid-template-columns: 1fr }
  .rotorrow { grid-template-columns: repeat(3, 1fr) }
  .rotorrow__cell:nth-child(4), .rotorrow__cell:nth-child(5) { border-top: 1px solid var(--line); padding-top: 8px }
  .rotorbox { grid-template-columns: repeat(3, 1fr) }
  .rotorbox__step { transform: none !important }
}

@media (max-width: 880px) {
  .enigmarow { grid-template-columns: 1fr; gap: 24px; padding-top: 32px }
  .enigmarow__pic { order: -1 }
  .cipherbar__nav { display: none }
  .cipherbar { padding: 11px 14px }
  section { padding: 36px 16px }
  .keyladder, .bombe, .lastrotor { padding: 36px 18px; margin: 22px 14px }
  .cribrow-grid { grid-template-columns: 1fr }
  .cryptbox-grid { grid-template-columns: 1fr }
  .keyrack__top { padding: 30px 16px 22px; gap: 22px }
  .keyrack__cols { grid-template-columns: repeat(2, 1fr); gap: 18px }
  .rotorrow { padding: 8px 14px; grid-template-columns: repeat(2, 1fr); font-size: 12px }
  .rotorrow__cell { padding: 4px 10px }
  .keyspace-times { grid-template-columns: 1fr }
  .keyspace-kpi { grid-template-columns: repeat(2, 1fr) }
  .saltbox { padding: 20px 16px 0 }
}

@media (max-width: 480px) {
  .codecard-grid { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .keyslot-grid { grid-template-columns: 1fr }
  .keycard-grid { grid-template-columns: 1fr }
  .codecard h3 { font-size: 13px }
  .codecard p { font-size: 11px }
  .codecard__cover { font-size: 15px }
  .enigmarow__btns { flex-direction: column; align-items: stretch }
  .scramblebtn--big { width: 100% }
  .keyspace-grid { grid-template-columns: repeat(2, 1fr) }
  .substbar { grid-template-columns: 1fr }
  .keyrack__cols { grid-template-columns: 1fr }
  .rotorbox { grid-template-columns: repeat(2, 1fr) }
}
