/* vivaro-ru.com — the single stylesheet of this domain.
   Written for a skeleton that has no <div> at all: every rule below hangs off a
   semantic element or off one nbt- class, because there is no neutral box to
   hang it on. The filename carries a sha256 prefix of these bytes and .htaccess
   serves that one name immutable, so renaming it is part of editing it. */

:root {
  color-scheme: dark;
  --nbt-ink: #ece6f4;
  --nbt-dim: #a99dba;
  --nbt-back: #17141d;
  --nbt-slab: #211c2a;
  --nbt-edge: #362c45;
  --nbt-warm: #f0a04b;
  --nbt-cool: #63d3c1;
  --nbt-measure: 68rem;
  --nbt-step: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
}

*,
::before,
::after { box-sizing: border-box; }

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

body.nbt-page {
  margin: 0;
  background: var(--nbt-back);
  color: var(--nbt-ink);
  font: var(--nbt-step)/1.72 "Noto Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--nbt-cool); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--nbt-warm); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--nbt-warm); outline-offset: 3px; }

/* ---- header ------------------------------------------------------------- */

.nbt-top {
  display: grid;
  gap: 0.85rem 1.4rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: var(--nbt-measure);
  margin-inline: auto;
  padding: 1.1rem 1rem 1.3rem;
  border-bottom: 1px solid var(--nbt-edge);
}

.nbt-mark {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nbt-ink);
  text-decoration: none;
}

.nbt-mark em {
  font-style: normal;
  font-weight: 400;
  color: var(--nbt-dim);
}

.nbt-mark span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--nbt-dim);
}

/* The operator button. It sits in the header, above <main>, and on a phone it
   takes a whole row of its own rather than squeezing in beside the menu. */
.nbt-go {
  display: block;
  padding: 0.85rem 1.15rem;
  border: 1px solid #f3b877;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #f3ab5e, #de8a2e);
  color: #221505;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.45);
}

.nbt-go:hover { color: #221505; background: linear-gradient(180deg, #f8bb74, #e89536); }
.nbt-go strong { display: block; font-size: 1.07rem; letter-spacing: 0.01em; }
.nbt-go span { display: block; margin-top: 0.15rem; font-size: 0.78rem; opacity: 0.82; }

.nbt-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
  font-size: 0.92rem;
}

.nbt-menu strong { color: var(--nbt-warm); font-weight: 600; }
.nbt-menu a { color: var(--nbt-dim); text-decoration: none; }
.nbt-menu a:hover { color: var(--nbt-ink); text-decoration: underline; }

@media (min-width: 46rem) {
  .nbt-top { grid-template-columns: minmax(0, 1fr) auto; }
  .nbt-menu,
  .nbt-trail { grid-column: 1 / -1; }
}

/* ---- body --------------------------------------------------------------- */

.nbt-main {
  max-width: var(--nbt-measure);
  margin-inline: auto;
  padding: 1.6rem 1rem 2.4rem;
}

.nbt-trail {
  margin: 0;
  font-size: 0.82rem;
  color: var(--nbt-dim);
}
.nbt-trail a { color: var(--nbt-dim); }
.nbt-trail strong { font-weight: 400; color: var(--nbt-ink); }

.nbt-main h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.nbt-lede {
  margin: 0.9rem 0 0;
  max-width: 54ch;
  font-size: 1.07em;
  color: #cfc6dd;
}

.nbt-view { margin: 1.5rem 0 0; }

.nbt-view img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--nbt-edge);
  border-radius: 0.25rem;
}

.nbt-view figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--nbt-dim);
}

/* Body blocks. One <article> per subject, no wrapper around the set: the depth
   budget for this domain is five levels counted from <body>, and a second
   wrapper would spend the level the inline links need. */
.nbt-block { margin: 2.1rem 0 0; }

.nbt-block h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.22rem, 1.1rem + 0.6vw, 1.52rem);
  line-height: 1.28;
  color: var(--nbt-ink);
}

.nbt-block h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  margin-top: 0.45rem;
  border-top: 2px solid var(--nbt-warm);
}

.nbt-block h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.04rem;
  color: var(--nbt-cool);
}

.nbt-block p { margin: 0.75rem 0 0; }
.nbt-block strong { color: #fbe9d4; }
.nbt-block em { font-style: italic; color: var(--nbt-dim); }

/* The fact list of this domain: an <article> holding one <dl>. Pairs, not
   bullets — the reader is given a name and a value, never a bare item. */
.nbt-facts {
  margin: 1.8rem 0 0;
  padding: 1rem 1.1rem 1.2rem;
  background: var(--nbt-slab);
  border-left: 3px solid var(--nbt-cool);
  border-radius: 0 0.25rem 0.25rem 0;
}

.nbt-facts h2 { margin: 0 0 0.7rem; font-size: 1.1rem; }
.nbt-facts p { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--nbt-dim); }

.nbt-facts dl {
  display: grid;
  gap: 0.15rem 1.2rem;
  margin: 0;
}

.nbt-facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nbt-cool);
}

.nbt-facts dd { margin: 0 0 0.75rem; }

@media (min-width: 40rem) {
  .nbt-facts dl { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
  .nbt-facts dt { padding-top: 0.2rem; }
}

/* ---- questions ---------------------------------------------------------- */

.nbt-asks { margin: 2.4rem 0 0; }

.nbt-asks h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
}

.nbt-pairs { margin: 0; }

.nbt-pairs dt {
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--nbt-edge);
  font-weight: 650;
  color: var(--nbt-warm);
}

.nbt-pairs dd { margin: 0.4rem 0 0; }

.nbt-next {
  margin: 2.3rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--nbt-slab);
  border-radius: 0.25rem;
  font-size: 0.97rem;
}

/* ---- footer ------------------------------------------------------------- */

.nbt-foot {
  max-width: var(--nbt-measure);
  margin-inline: auto;
  padding: 1.6rem 1rem 3rem;
  border-top: 1px solid var(--nbt-edge);
  font-size: 0.86rem;
  color: var(--nbt-dim);
}

/* One line of links, not a second navigation block. */
.nbt-ways {
  margin: 0 0 1.1rem;
  line-height: 2;
  color: #6f6480;
}

.nbt-ways strong { color: var(--nbt-ink); font-weight: 600; }
.nbt-ways a { color: var(--nbt-dim); }
.nbt-foot p { margin: 0 0 0.7rem; max-width: 80ch; }
.nbt-foot p:last-child { margin: 1rem 0 0; color: var(--nbt-ink); letter-spacing: 0.05em; }

/* ---- age gate ----------------------------------------------------------- */

/* Native <dialog>: without the open attribute the browser keeps it
   display:none, so it costs nothing in layout and nothing in CLS. */
.nbt-gate {
  width: min(31rem, calc(100vw - 2rem));
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--nbt-edge);
  border-radius: 0.35rem;
  background: var(--nbt-slab);
  color: var(--nbt-ink);
}

.nbt-gate::backdrop { background: rgba(12, 9, 17, 0.82); }
.nbt-gate h2 { margin: 0 0 0.6rem; font-size: 1.28rem; }
.nbt-gate p { margin: 0 0 0.9rem; font-size: 0.94rem; color: #d6cde3; }

.nbt-gate-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}

.nbt-gate-row button {
  padding: 0.7rem 1rem;
  border: 1px solid var(--nbt-edge);
  border-radius: 0.2rem;
  background: #2c2437;
  color: var(--nbt-ink);
  font: inherit;
  font-size: 0.97rem;
  cursor: pointer;
}

.nbt-gate-row button[data-nbt="yes"] {
  border-color: #f3b877;
  background: linear-gradient(180deg, #f3ab5e, #de8a2e);
  color: #221505;
  font-weight: 600;
}

.nbt-gate-row button:hover { border-color: var(--nbt-cool); }
.nbt-gate-row button[data-nbt="yes"]:hover { border-color: #fff0dc; }

@media (min-width: 30rem) {
  .nbt-gate-row { flex-direction: row-reverse; justify-content: flex-start; }
  .nbt-gate-row button { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .nbt-go { transition: background 0.18s ease-out, box-shadow 0.18s ease-out; }
}
