@import url('./fonts/manrope.css');

/* ============================================================== tokens == */

:root {
  --violet: #0007cb;
  --cream: #faf9f6;
  --linen: #f1eee9;
  --stone: #d3cec6;
  --hairline: #dedbd6;
  --ink: #111111;
  --carbon: #000000;
  --iron: #414141;
  --graphite: #585858;
  --smoke: #888888;
  --ash: #a0a0a0;
  --silver: #b8b8b8;
  --white: #ffffff;

  --surface: var(--cream);
  --surface-2: var(--linen);
  --surface-3: var(--stone);
  --text: var(--ink);
  --text-2: var(--iron);
  --text-3: var(--graphite);
  --text-4: var(--smoke);
  --line: var(--hairline);
  --line-2: rgba(17, 17, 17, 0.08);

  --r: 4px;

  --f: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --w-max: 1200px;
  --pad-x: clamp(20px, 5vw, 56px);
  --gap-section: clamp(64px, 9vw, 112px);
}

[data-theme='dark'] {
  --cream: #121211;
  --linen: #1b1b19;
  --stone: #2a2926;
  --hairline: #34332f;
  --ink: #f4f2ed;
  --iron: #d6d2ca;
  --graphite: #a8a49b;
  --smoke: #8b877e;
  --ash: #6f6b64;
  --silver: #55524c;
  --white: #1b1b19;
  --violet: #6f7dff;
  --line-2: rgba(244, 242, 237, 0.1);
  --surface: var(--cream);
  --surface-2: var(--linen);
  --text: var(--ink);
  --text-2: var(--iron);
  --text-3: var(--graphite);
  --line: var(--hairline);
  color-scheme: dark;
}

/* ============================================================== reset === */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--f);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection { background: var(--violet); color: #fff; }

a { color: inherit; }

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Мобильные: гасим всё постоянно мигающее. iOS Safari иначе дёргает
   repaint на каждом кадре анимации. */
@media (max-width: 900px), (hover: none) {
  .hero__pulse,
  .hero__ip.is-skeleton,
  .ua__str .sk,
  #rawJson .sk,
  .scroll-cue::after {
    animation: none !important;
  }
  .hero__pulse { opacity: 0.9; }
  .sk { opacity: 0.6; }
}

/* ============================================================== layout == */

.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-4);
  margin: 0;
}

.label--ink { color: var(--text-3); }
.label--violet { color: var(--violet); }

/* ============================================================== nav ===== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 62px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  margin-right: auto;
}

.brand__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  align-self: center;
  flex: none;
}

.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.brand__tld { color: var(--text-4); font-weight: 400; }

.nav__links { display: flex; gap: 4px; }

.nav__link {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--r);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav__link:hover { color: var(--text); background: var(--line-2); }
.nav__link.is-active { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text-2);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--ash); background: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================================== buttons = */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--carbon); color: var(--white); }
[data-theme='dark'] .btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: #2a2a2a; }
[data-theme='dark'] .btn--primary:hover { background: #fff; }

.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { color: var(--text); background: var(--line-2); }

.btn--outline {
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { background: var(--text); color: var(--surface); }

.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }

/* ============================================================== hero ==== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 32px;
  background: var(--surface);
  overflow: hidden;
}

.hero__wash {
  position: absolute;
  inset: auto -10% -35% 40%;
  height: 62%;
  background: var(--surface-2);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 60% 100%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 60% 100%, #000 0%, transparent 72%);
}
[data-theme='dark'] .hero__wash { opacity: 0.5; }

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.55;
}

.notice {
  border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--line));
  background: color-mix(in srgb, var(--violet) 5%, var(--surface));
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: clamp(20px, 3vw, 30px);
  max-width: 720px;
}
.notice[hidden] { display: none; }
.notice__t {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.25px;
  margin: 8px 0 6px;
}
.notice__b { font-size: 14px; line-height: 1.5; color: var(--text-3); margin: 0; }
.notice__b code {
  font-size: 12.5px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-2);
}

.hero__in { position: relative; z-index: 1; }

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero__body { grid-template-columns: 1fr; align-items: start; gap: 34px; }
}

.hero__spec {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  align-self: end;
}
.spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec__k { font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-4); flex: none; }
.spec__v {
  font-size: 13.5px;
  color: var(--text);
  text-align: right;
  word-break: break-word;
  font-weight: 400;
}
@media (max-width: 980px) {
  .hero__spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .spec__row:nth-child(2) { border-bottom-color: var(--line); }
}
@media (max-width: 560px) {
  .hero__spec { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero__ip {
  font-size: clamp(34px, 9.6vw, 138px);
  font-weight: 250;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--text);
  word-break: break-all;
  overflow-wrap: anywhere;
  font-feature-settings: 'tnum' 1;
  min-height: 0.9em;
}
.hero__ip.is-skeleton {
  color: var(--silver);
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }

.hero__ip--v6 { font-size: clamp(26px, 6.4vw, 92px); letter-spacing: -0.035em; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(20px, 3vw, 34px);
}

.hero__where {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero__where b { font-weight: 500; color: var(--text); }

.flag { font-size: 20px; line-height: 1; }
/* В списках (dl) эмодзи-флаг на 20px ломал строку, особенно на айфоне. */
.dl .flag { font-size: 15px; margin-right: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--white);
  white-space: nowrap;
}
.chip--accent { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 32%, var(--line)); }
.chip--solid { background: var(--text); color: var(--surface); border-color: var(--text); }

.chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(24px, 3.4vw, 40px);
}

.hero__foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(32px, 5vw, 60px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero__note {
  font-size: 13px;
  color: var(--text-4);
  max-width: 46ch;
  line-height: 1.45;
}

.clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.clock__t {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--ash));
  overflow: hidden;
  pointer-events: none;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--violet);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ============================================================== lookup = */

.lookup {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.lookup__in {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lookup__label { flex: none; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
  min-width: 220px;
  height: 40px;
  padding: 0 4px 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.16s ease;
}
.field:focus-within { border-color: var(--text); }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.field input::placeholder { color: var(--text-4); }
.field__go {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r);
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  font-weight: 500;
  flex: none;
}
.lookup__msg {
  font-size: 12px;
  color: var(--violet);
  min-height: 16px;
  flex: none;
}
.lookup__msg[data-ok='0'] { color: var(--text-4); }

/* ============================================================== section = */

.section { padding-block: var(--gap-section); }
.section--2 { background: var(--surface-2); }
.section--3 { background: var(--surface-3); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-title {
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 10px 0 0;
}
.sec-lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-3);
  margin: 0;
  max-width: 44ch;
  font-weight: 300;
}
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

/* data list -------------------------------------------------------- */

.dl {
  border-top: 1px solid var(--line);
}
.dl__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.dl__k {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-4);
}
.dl__v {
  font-size: 15px;
  overflow-wrap: anywhere;
  color: var(--text);
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl__v--mono { font-size: 14px; letter-spacing: -0.2px; }
.dl__flagtext { margin-left: 8px; }
.dl__v--muted { color: var(--text-4); }
.dl__sub { font-size: 12.5px; color: var(--text-4); }

.copy-mini {
  border: 1px solid var(--line);
  border-radius: var(--r);
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--text-4);
  flex: none;
  transition: color 0.16s, border-color 0.16s;
}
.copy-mini:hover { color: var(--violet); border-color: var(--violet); }
.copy-mini svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.dl--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 760px) { .dl--2 { grid-template-columns: 1fr; } }

/* stat tiles -------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 720px) {
  .tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tile {
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 104px;
}
.section--2 .tile { background: var(--surface-2); }
.section--3 .tile { background: var(--surface-3); }
.tile__v {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: -0.028em;
  line-height: 1.05;
  word-break: break-word;
}
.tile__s { font-size: 12.5px; color: var(--text-4); margin-top: auto; }

/* geo plate --------------------------------------------------------- */

.geo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
@media (max-width: 900px) { .geo { grid-template-columns: 1fr; } }

.plate {
  position: relative;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
/* Карта — равновеликая проекция 360×180, поэтому блок держит пропорцию 2:1.
   С фиксированной min-height карта на телефоне сжималась по высоте и
   обрезалась сверху. */
.plate__map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
}
@media (max-width: 900px) {
  .plate { min-height: 0; padding: 14px; }
}
.section:not(.section--3) .plate { background: var(--linen); }
/* Правая колонка с данными длиннее карты. Если дать плашке растянуться
   (grid по умолчанию), под картой появляется пустое поле в половину
   высоты. Прижимаем блок к верху — он живёт своей высотой. */
.geo .plate { align-self: start; }

.plate__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate__land {
  fill: var(--text-3);
  fill-opacity: 0.2;
  stroke: var(--text-4);
  stroke-opacity: 0.5;
  stroke-width: 0.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.plate__equator { stroke: var(--text-4); stroke-width: 0.4; opacity: 0.22; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.plate__ticks text { fill: var(--text-4); font-size: 8px; font-family: var(--f); letter-spacing: 0.2px; opacity: 0.5; }
/* Прежние .plate__vignette и .plate::after рисовали поверх карты
   вертикальную полосу и радиальное затемнение — на телефоне это читалось
   как артефакт, а не как оформление. Оставляем только лёгкое скругление. */
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent);
}

.plate__marker {
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 1.5px var(--surface-3), 0 0 0 2.5px var(--violet);
  z-index: 1;
}
/* Статичное кольцо вместо бесконечной ripple-анимации: на iOS Safari
   постоянно перерисовывающийся ::before давал заметное «мигание» всей
   плашки и жег батарею. */
.plate__marker::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  opacity: 0.45;
}

.plate__top, .plate__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.plate__coords {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.plate__coords span { color: var(--text-4); }

/* tabs -------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--text-4);
  white-space: nowrap;
  transition: color 0.16s ease;
}
.tab:hover { color: var(--text-2); }
.tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.tab[aria-selected='true'] { color: var(--text); }
.tab[aria-selected='true']::after { transform: scaleX(1); }

.panel[hidden] { display: none; }
.panel { animation: fade 0.32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* feature tags ------------------------------------------------------ */

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-3);
  letter-spacing: -0.1px;
}
.section--2 .tag { background: var(--surface); }
.tag--on { color: var(--text); border-color: var(--ash); }
.tag--on::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet);
  margin-right: 7px;
  vertical-align: 1.5px;
}
.tag--off { color: var(--text-4); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ua block ---------------------------------------------------------- */

.ua {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section--2 .ua { background: var(--surface); }
.ua__str {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  word-break: break-all;
  letter-spacing: -0.05px;
}

/* raw json ---------------------------------------------------------- */

.raw {
  position: relative;
  background: var(--text);
  border-radius: var(--r);
  padding: 20px;
  overflow: hidden;
}
[data-theme='dark'] .raw { background: #080807; border: 1px solid var(--line); }
.raw pre {
  margin: 0;
  max-height: 460px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--surface-2);
  white-space: pre;
  letter-spacing: 0;
  font-variant-ligatures: none;
}
.raw .k { color: #8ba4ff; }
.raw .s { color: #9fe0b0; }
.raw .n { color: #f0c98a; }
.raw .b { color: #d69fe0; }
.raw__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.raw__bar .label { color: rgba(255, 255, 255, 0.5); }
.raw__btns { display: flex; gap: 6px; }
.raw__btns button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  transition: background-color 0.16s, color 0.16s;
}
.raw__btns button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* toast ------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 90;
  background: var(--carbon);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme='dark'] .toast { background: var(--ink); color: var(--cream); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* skeleton ---------------------------------------------------------- */

.sk {
  display: inline-block;
  height: 0.7em;
  background: var(--line-2);
  border-radius: 2px;
  animation: sk 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes sk { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ticker ------------------------------------------------------------ */

.ticker {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: clamp(20px, 4vw, 64px);
  flex-wrap: wrap;
}
.ticker__i { display: flex; flex-direction: column; gap: 4px; }
.ticker__v { font-size: 15px; font-weight: 400; }

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

.foot {
  background: var(--text);
  color: var(--surface);
  padding-block: clamp(40px, 5vw, 64px);
}
.foot__in {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.foot__big {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 250;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 12px;
}
.foot .label { color: color-mix(in srgb, var(--surface) 55%, transparent); }
.foot__a { color: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 14px; text-decoration: none; }
.foot__a:hover { color: var(--surface); text-decoration: underline; text-underline-offset: 3px; }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* reveal ------------------------------------------------------------ */

.rv { opacity: 0; transform: translateY(14px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* Плашка координат рисуется через SVG с preserveAspectRatio="none" и
   постоянно перерисовывается при анимации маркера. На iOS это выглядело
   как дёрганье всей секции. Изолируем слой и убираем повторный repaint:
   анимации маркера больше нет, а will-change держит compositing на GPU. */
.plate { will-change: auto; contain: paint; }
.plate__svg { pointer-events: none; }
@media (max-width: 900px), (hover: none) {
  /* Секции с внутренними SVG/скролл-контентом показываем сразу —
     иначе на телефоне при скролле элементы «дожигались» до opacity 0. */
  .geo.rv, .section--2 .rv { opacity: 1; transform: none; transition: none; }
}
