/* plinkoonline.shop — шаблон nixie: газоразрядные индикаторы, ns = nxi- */

:root {
  --nxi-bakelite: #1b1a1c;
  --nxi-bakelite-2: #232125;
  --nxi-bakelite-3: #2c292e;
  --nxi-glow: #ff8a3c;
  --nxi-glow-soft: rgba(255, 138, 60, 0.28);
  --nxi-glass: #a8b6c0;
  --nxi-glass-dim: #76838d;
  --nxi-anode: #4a4650;
  --nxi-paper: #e8e4de;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nxi-bakelite);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(255, 138, 60, 0.13), transparent 46%),
    radial-gradient(circle at 88% 22%, rgba(168, 182, 192, 0.09), transparent 40%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 4px);
  color: var(--nxi-glass);
  font-family: "Spectral", Georgia, serif;
  font-size: 17px;
  line-height: 1.72;
}

h1, h2, h3, .nxi-lamp__val, .nxi-digit {
  font-family: "Yeseva One", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a { color: var(--nxi-glow); text-decoration: none; border-bottom: 1px dotted var(--nxi-glow-soft); }
a:hover { border-bottom-style: solid; }

.nxi-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 64px;
}

/* ---------- каркас: рейка с колбами слева, текст справа ---------- */

.nxi-rail {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.nxi-tube {
  position: sticky;
  top: 18px;
  display: block;
  padding: 14px 0 18px;
  border-radius: 46px 46px 12px 12px;
  background:
    linear-gradient(180deg, rgba(168, 182, 192, 0.20), rgba(27, 26, 28, 0.05) 52%),
    var(--nxi-bakelite-2);
  border: 1px solid rgba(168, 182, 192, 0.24);
  box-shadow: inset 0 14px 26px rgba(255, 255, 255, 0.07), 0 10px 26px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.nxi-digit {
  display: block;
  font-size: 40px;
  line-height: 1;
  color: var(--nxi-glow);
  text-shadow: 0 0 6px var(--nxi-glow), 0 0 22px var(--nxi-glow-soft), 0 0 46px var(--nxi-glow-soft);
}

.nxi-digit--ghost { color: var(--nxi-anode); text-shadow: none; font-size: 22px; margin-top: 6px; }

.nxi-tube__base {
  margin: 14px 10px 0;
  height: 16px;
  border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(90deg, var(--nxi-anode) 0 3px, #17161a 3px 6px);
}

/* ---------- шапка ---------- */

.nxi-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 22px 0 10px;
  border-bottom: 1px solid rgba(168, 182, 192, 0.16);
}

.nxi-top__mark {
  font-family: "Yeseva One", serif;
  font-size: 21px;
  color: var(--nxi-glow);
  text-shadow: 0 0 10px var(--nxi-glow-soft);
}

.nxi-top__note { font-size: 14px; color: var(--nxi-glass-dim); }

/* ---------- hero ---------- */

.nxi-hero {
  margin: 30px 0 18px;
  padding: 30px 28px 26px;
  border: 1px solid rgba(168, 182, 192, 0.22);
  border-radius: 60px 60px 14px 14px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 138, 60, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(168, 182, 192, 0.14), transparent 44%),
    var(--nxi-bakelite-2);
  box-shadow: inset 0 20px 40px rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.55);
}

h1 {
  margin: 0 0 14px;
  font-size: 37px;
  line-height: 1.16;
  color: var(--nxi-paper);
}

.nxi-hero__lead { margin: 0 0 22px; font-size: 18.5px; color: #c3ced6; }

.nxi-lamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.nxi-lamp {
  padding: 16px 10px 12px;
  text-align: center;
  border: 1px solid rgba(168, 182, 192, 0.26);
  border-radius: 30px 30px 6px 6px;
  background:
    radial-gradient(90% 60% at 50% 12%, rgba(255, 138, 60, 0.20), transparent 70%),
    var(--nxi-bakelite-3);
  box-shadow: inset 0 10px 20px rgba(255, 255, 255, 0.06);
}

.nxi-lamp__val {
  display: block;
  font-size: 23px;
  color: var(--nxi-glow);
  text-shadow: 0 0 8px var(--nxi-glow), 0 0 26px var(--nxi-glow-soft);
}

.nxi-lamp__cap {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nxi-glass-dim);
}

.nxi-cta {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--nxi-glow);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 138, 60, 0.26), rgba(255, 138, 60, 0.07));
  color: var(--nxi-glow);
  font-family: "Yeseva One", serif;
  font-size: 17px;
  text-shadow: 0 0 10px var(--nxi-glow-soft);
  box-shadow: 0 0 24px var(--nxi-glow-soft);
}

.nxi-cta:hover { background: linear-gradient(180deg, rgba(255, 138, 60, 0.4), rgba(255, 138, 60, 0.14)); }

/* ---------- секции ---------- */

.nxi-sec {
  margin: 0 0 22px;
  padding: 24px 26px 20px;
  border: 1px solid rgba(168, 182, 192, 0.18);
  border-radius: 34px 34px 10px 10px;
  background:
    linear-gradient(180deg, rgba(168, 182, 192, 0.11), transparent 38%),
    var(--nxi-bakelite-2);
  box-shadow: inset 0 14px 28px rgba(255, 255, 255, 0.045), 0 8px 22px rgba(0, 0, 0, 0.4);
}

.nxi-sec--lit {
  border-color: rgba(255, 138, 60, 0.4);
  background:
    radial-gradient(130% 60% at 50% 0%, rgba(255, 138, 60, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(168, 182, 192, 0.1), transparent 40%),
    var(--nxi-bakelite-2);
}

h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.24;
  color: var(--nxi-paper);
}

h2 .nxi-mark { color: var(--nxi-glow); text-shadow: 0 0 12px var(--nxi-glow-soft); }

h3 {
  margin: 20px 0 8px;
  font-size: 18.5px;
  color: #d5dde2;
}

p { margin: 0 0 13px; }

.nxi-em { color: var(--nxi-glow); }
.nxi-num { color: var(--nxi-paper); letter-spacing: 0.02em; }

.nxi-strip {
  margin: 16px 0;
  padding: 13px 16px;
  border-left: 3px solid var(--nxi-glow);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 138, 60, 0.07);
  font-size: 16px;
}

.nxi-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.nxi-card {
  padding: 15px 17px;
  border: 1px dashed rgba(168, 182, 192, 0.3);
  border-radius: 20px 6px 20px 6px;
  background: rgba(44, 41, 46, 0.7);
}

.nxi-card__t {
  display: block;
  margin-bottom: 6px;
  font-family: "Yeseva One", serif;
  font-size: 16px;
  color: var(--nxi-glow);
}

.nxi-list { margin: 12px 0; padding: 0; list-style: none; }

.nxi-list li {
  position: relative;
  padding: 5px 0 5px 26px;
  border-bottom: 1px dotted rgba(168, 182, 192, 0.16);
}

.nxi-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nxi-glow);
  box-shadow: 0 0 9px var(--nxi-glow);
}

/* ---------- таблицы ---------- */

.nxi-tw { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 520px;
}

caption {
  caption-side: top;
  padding: 0 0 9px;
  text-align: left;
  font-size: 14px;
  color: var(--nxi-glass-dim);
}

th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid rgba(168, 182, 192, 0.16); }

thead th {
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nxi-glow);
  border-bottom: 1px solid rgba(255, 138, 60, 0.45);
}

tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }

td.nxi-td-lit { color: var(--nxi-glow); text-shadow: 0 0 7px var(--nxi-glow-soft); }

tfoot td { color: var(--nxi-paper); border-top: 1px solid rgba(255, 138, 60, 0.45); border-bottom: none; }

/* ---------- сетка множителей (горизонтальная линейка лунок) ---------- */

.nxi-board {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.nxi-slot {
  flex: 1 1 60px;
  padding: 9px 4px;
  text-align: center;
  border-radius: 6px 6px 16px 16px;
  background: var(--nxi-bakelite-3);
  border: 1px solid rgba(168, 182, 192, 0.2);
  font-size: 13.5px;
  color: var(--nxi-glass-dim);
}

.nxi-slot em {
  display: block;
  font-family: "Yeseva One", serif;
  font-style: normal;
  font-size: 16px;
  color: var(--nxi-glass);
}

.nxi-slot--hot { border-color: var(--nxi-glow); }
.nxi-slot--hot em { color: var(--nxi-glow); text-shadow: 0 0 10px var(--nxi-glow); }

/* ---------- клуб ---------- */

.nxi-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }

.nxi-step {
  padding: 14px 8px 11px;
  text-align: center;
  border: 1px solid rgba(168, 182, 192, 0.22);
  border-radius: 24px 24px 5px 5px;
  background: linear-gradient(180deg, rgba(168, 182, 192, 0.12), transparent 50%), var(--nxi-bakelite-3);
}

.nxi-step b, .nxi-step strong { font-weight: inherit; }

.nxi-step__n { display: block; font-family: "Yeseva One", serif; font-size: 15px; color: var(--nxi-paper); }

.nxi-step__p {
  display: block;
  margin-top: 5px;
  font-family: "Yeseva One", serif;
  font-size: 20px;
  color: var(--nxi-glow);
  text-shadow: 0 0 9px var(--nxi-glow-soft);
}

/* ---------- отзыв ---------- */

.nxi-quote {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid rgba(168, 182, 192, 0.22);
  border-radius: 8px 28px 8px 28px;
  background: rgba(44, 41, 46, 0.66);
}

.nxi-quote__who { display: block; margin-top: 9px; font-size: 14px; color: var(--nxi-glass-dim); }

/* ---------- FAQ ---------- */

details {
  margin: 0 0 9px;
  padding: 11px 16px;
  border: 1px solid rgba(168, 182, 192, 0.2);
  border-radius: 18px 18px 6px 6px;
  background: rgba(35, 33, 37, 0.85);
}

summary {
  cursor: pointer;
  font-family: "Yeseva One", serif;
  font-size: 16.5px;
  color: #dbe2e7;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "\25CF";
  margin-right: 10px;
  font-size: 11px;
  color: var(--nxi-anode);
}

details[open] summary::before { color: var(--nxi-glow); text-shadow: 0 0 9px var(--nxi-glow); }

details p { margin: 10px 0 2px; font-size: 16px; }

/* ---------- сноска источников + подвал ---------- */

.nxi-src {
  margin: 22px 0;
  padding: 20px 24px;
  border: 1px solid rgba(168, 182, 192, 0.16);
  border-radius: 10px;
  background: rgba(27, 26, 28, 0.9);
  font-size: 15px;
}

.nxi-src h3 { margin-top: 0; }

.nxi-end { text-align: center; margin: 26px 0 8px; }

.nxi-foot {
  margin-top: 30px;
  padding: 22px 0 6px;
  border-top: 1px solid rgba(168, 182, 192, 0.18);
  font-size: 14.5px;
  color: var(--nxi-glass-dim);
}

.nxi-foot p { margin: 0 0 8px; }

.nxi-foot__age {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255, 138, 60, 0.45);
  border-radius: 20px;
  color: var(--nxi-glow);
}

/* ---------- мобильный ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.68; }
  .nxi-shell { padding: 0 14px 44px; }
  .nxi-rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nxi-tube { position: static; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px; border-radius: 22px 22px 8px 8px; margin-bottom: 12px; }
  .nxi-digit { font-size: 26px; }
  .nxi-digit--ghost { margin-top: 0; font-size: 16px; }
  .nxi-tube__base { display: none; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  h3 { font-size: 17px; }
  .nxi-hero { padding: 22px 16px 20px; border-radius: 34px 34px 10px 10px; }
  .nxi-hero__lead { font-size: 16.5px; }
  .nxi-sec { padding: 18px 15px 15px; border-radius: 22px 22px 8px 8px; }
  .nxi-lamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxi-lamps .nxi-lamp:last-child { grid-column: span 2; }
  .nxi-grid2 { grid-template-columns: minmax(0, 1fr); }
  .nxi-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxi-cta { display: block; text-align: center; padding: 13px 16px; }
  .nxi-slot { flex: 1 1 44%; }
  table { min-width: 460px; }
}
