/* Soos Labs — направление «Оптика».
   Хроматическая аберрация (голубая + пурпурная кайма) живёт ТОЛЬКО в логотипе
   и в большой линзе на главной. Больше нигде акцентные цвета не появляются —
   на этом весь приём и держится. Единственное исключение — кайма тоста
   с приглашением в бету: он временный и обязан быть замеченным. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jbmono-latin.woff2) format("woff2");
}

:root {
  --paper: #E9EDEE;
  --surface: #F4F7F7;
  --ink: #0B1013;
  --muted: #46565D;
  --faint: #7C8B92;
  --rule: #C9D1D3;
  --rule-soft: #D8DEDF;
  --cyan: #00A5B5;
  --magenta: #E0457B;

  --sans: "Manrope", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --col: 1080px;
  --prose: 68ch;
  --gutter: clamp(16px, 4vw, 28px);
  --section-gap: clamp(36px, 6vw, 64px);
  --content-gap: clamp(14px, 2.4vw, 24px);
  --page-end: clamp(48px, 8vw, 80px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1013;
    --surface: #121A1E;
    --ink: #E5EBEC;
    --muted: #A0AEB4;
    --faint: #71828A;
    --rule: #26333A;
    --rule-soft: #1D272C;
    --cyan: #2FC4D2;
    --magenta: #F0699A;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ─────────────────────────────────────────── шапка */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 22px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.brand { text-decoration: none; display: inline-flex; }

.wm { display: inline-flex; align-items: center; gap: 10px; }
.wm .mark { display: block; flex: none; }

.wmt {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.wmt::before,
.wmt::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  white-space: nowrap;
  pointer-events: none;
}
.wmt::before { left: -1.2px; color: var(--cyan); opacity: .55; }
.wmt::after  { left:  1.2px; color: var(--magenta); opacity: .5; }
.wmt > span { position: relative; z-index: 2; }

.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ─────────────────────────────────────────── общий контейнер */

main {
  max-width: var(--col);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sec-h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ═══════════════════════════════════════════ главная
   Направление — precision instruments: крупная типографика, сетка и фокусные
   метки, спокойный фон. Цвет живёт ТОЛЬКО внутри продуктового мира (--acc),
   аберрация остаётся фирменным знаком студии и в продукты не заходит. */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding-top: var(--section-gap);
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  max-width: 40ch;
  color: var(--muted);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.btn.btn-solid { background: var(--ink); color: var(--paper); }
.btn.btn-solid:hover { background: var(--muted); }
.btn.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.btn-line:hover { border-color: var(--ink); background: transparent; }

/* Фокусные метки вокруг кадра — приборная рамка, а не тень. */
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-shot, .shot { position: relative; }
.hero-shot::before, .hero-shot::after,
.shot::before, .shot::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.hero-shot::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.hero-shot::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
.shot::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.shot::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

.hero-shot img {
  display: block;
  width: 100%;
  max-width: 268px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--rule);
}
.hero-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }

/* ─── плитки продуктов 2×2 */

.sec-top { margin-bottom: var(--content-gap); }

.apps { scroll-margin-top: 16px; }
.apps, .langs, .why, .prin, .updates { padding-top: var(--section-gap); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--content-gap); }

.tile {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 18px;
  row-gap: 7px;
  align-content: start;
  padding: 18px 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
/* Цвет продукта появляется полосой сверху — ровно столько мира, сколько нужно. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--acc);
}
.tile.tile-text { grid-template-columns: 1fr; grid-template-rows: none; }
.tile-text .eyebrow { margin-bottom: 0; }
.tile-text > a { justify-self: start; margin-top: 6px; }
.tile-head { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-id { display: inline-flex; align-items: center; gap: 10px; }
.tile-id .glyph { color: var(--acc); flex: none; }
.tile-id b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

.pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.pill-live { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }

.tile-one { grid-column: 2; font-size: 14px; color: var(--muted); }

.shot {
  margin: 6px 0 4px;
  background: var(--tink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 5;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Компактная плитка: кадр узкой колонкой слева, текст справа.
   🚩 Обрезать портрет по верху нельзя — у Outside ключевая фраза-предложение
   сидит низко и уходила под обрез. Поэтому кадр не режем, а уменьшаем.
   На странице продукта .shot остаётся крупным. */
.tile .shot {
  grid-column: 1;
  grid-row: 1 / span 4;
  aspect-ratio: 4 / 5;
  align-self: start;
  margin: 2px 0 0;
}

.tile-blurb { grid-column: 2; font-size: 13.5px; line-height: 1.5; color: var(--faint); }

.tile-foot { grid-column: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.btn.btn-acc { background: var(--acc); color: var(--tink); }
.btn.btn-acc:hover { background: var(--acc); filter: brightness(1.08); }
.btn.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.btn-quiet:hover { border-color: var(--ink); background: transparent; }
.tile-foot .btn { padding: 8px 14px; font-size: 13.5px; }
.tile-meta { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* ─── языки */

.lang-list {
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.lang-list li { background: var(--paper); padding: 14px 16px; display: flex; align-items: baseline; gap: 8px; }
.lang-list b { font-size: 15.5px; font-weight: 500; }
.lang-list i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* ─── заметка студии */

.why-body { max-width: 66ch; margin-top: 18px; display: grid; gap: 18px; }
.why-body p { font-size: 17px; line-height: 1.62; color: var(--muted); }
.why-pull {
  font-size: 20px !important;
  line-height: 1.42 !important;
  color: var(--ink) !important;
  letter-spacing: -0.015em;
  padding-left: 20px;
  border-left: 2px solid var(--cyan);
}

/* ─── принципы */

.prin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 22px; }
.prin-item h3 { font-size: 17px; margin-bottom: 8px; }
.prin-item p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ─── обновления */

.upd-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.upd-list li {
  display: grid;
  grid-template-columns: 108px 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.upd-list time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.upd-list b { font-size: 15px; font-weight: 600; }
.upd-list span { font-size: 15px; color: var(--muted); }

/* ─── финальный призыв */

.endcta { padding: var(--section-gap) 0 var(--page-end); text-align: center; }
.endcta h2 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; font-weight: 600; }
.endcta p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.endcta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.endcta-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid var(--acc);
}
.endcta-app:hover { background: var(--surface); }

/* ─────────────────────────────────────────── страница продукта */

.prose, .prod { padding: var(--section-gap) 0 var(--page-end); }
.prose { max-width: var(--prose); overflow-wrap: anywhere; }

/* Шапка продукта: тот же приборный кадр, что на главной, плюс мир продукта. */
.phead { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--section-gap); align-items: center; }
.phead-text > p + p:not([class]) { margin-top: 12px; }
.phead-text { max-width: 46ch; }
.phead-text h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 600; }
.phead .eyebrow { margin-bottom: 14px; color: var(--acc); }
.phead-status { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.phead-status .tile-meta { margin-left: 0; }
.phead-art { display: flex; justify-content: center; }
.phead-art .shot {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--tink);
}

.prod .prod-one { font-size: 19px; color: var(--muted); margin-top: 12px; }
.prod .prod-lead { margin-top: 22px; font-size: 17.5px; line-height: 1.6; color: var(--muted); }
.prod .facts, .prod .feats, .prod .also { max-width: var(--prose); }
.prod .facts { margin-top: var(--section-gap); }

.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--content-gap); }
.crumb a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 6px; }

.prod-head { display: flex; flex-direction: column; gap: 10px; }
.prod-glyph { color: var(--muted); }
.prod-head h1 { font-size: clamp(34px, 5.5vw, 50px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.prod-one { font-size: 19px; color: var(--muted); }

.prod-lead { margin-top: 26px; font-size: 18px; line-height: 1.6; }

.prod-cta { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
}
.btn:hover { background: var(--muted); }
.btn-host { font-family: var(--mono); font-size: 12px; color: var(--faint); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 44px 0 0;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.facts > div { background: var(--paper); padding: 14px 16px; }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-size: 15px; }

.feats { display: grid; gap: var(--content-gap); margin-top: var(--section-gap); }
.feat h2 { font-size: 18px; margin-bottom: 7px; }
.feat p { font-size: 16px; line-height: 1.62; color: var(--muted); }

.also { margin-top: var(--section-gap); padding-top: var(--content-gap); border-top: 1px solid var(--rule); }
.also-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.nf .also-row { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
.also-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-decoration: none;
  padding: 14px 15px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.also-item:hover { background: var(--surface); }
.also-item .glyph { color: var(--muted); flex: none; }
.also-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.also-item b { font-size: 15px; font-weight: 600; }
.also-item i { font-style: normal; font-size: 12.5px; color: var(--faint); line-height: 1.4; }

/* ─────────────────────────────────────────── текстовые страницы */

.prose h1 { font-size: clamp(34px, 5.5vw, 50px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.prose .lead { margin-top: 22px; font-size: 19px; line-height: 1.55; }
.prose > p { margin-top: 20px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.prose .eff { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.prose a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.prose h2 { font-size: 18px; margin-top: 40px; }

.psec { margin-top: clamp(28px, 4vw, 40px); }
.prose .psec h2 { margin: 0 0 10px; }
.prose > p:first-child { margin-top: 0; margin-bottom: var(--content-gap); }
.psec p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.psec p:first-of-type { margin-top: 0; }

.prose .close { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule); color: var(--ink); }
.prose .prod-cta { margin-top: 26px; }

/* ─────────────────────────────────────────── сервисные страницы: журнальная раскладка
   Тот же язык, что на главной: eyebrow, крупный заголовок, секции с mono-метками.
   .prose остаётся только для Privacy (юридический текст) и 404. */

.page { padding-bottom: var(--page-end); }
.phero { padding-top: var(--section-gap); }
.phero .eyebrow { margin-bottom: 16px; }
.phero h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 600; }
.phero .hero-lead { margin-top: 18px; }
.psect { padding-top: var(--section-gap); }
.psect > .why-body:first-child, .psect > .tick-grid:first-child { margin-top: 0; }
.psect .facts { margin-top: 18px; }
.page a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.page .btn { text-decoration: none; color: var(--paper); }
.page .cform { max-width: var(--prose); }

.tick-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.tick-grid li { background: var(--paper); padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* При нечётном числе пунктов последний занимает весь ряд — иначе в сетке дыра цвета линейки */
.tick-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Свотч цвета в пресс-ките */
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--rule); margin-right: 9px; vertical-align: -1px; }

.page-note { margin-top: 22px; font-size: 14.5px; color: var(--faint); }

/* ─────────────────────────────────────────── форма обратной связи */

.formnote {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: 2px;
  font-size: 15.5px;
  line-height: 1.55;
  background: var(--surface);
}
.formnote-ok { border-left-color: var(--cyan); }
.formnote-bad { border-left-color: var(--magenta); }

.cform { margin-top: var(--content-gap); display: grid; gap: var(--content-gap); scroll-margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--content-gap); }

.cform label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.cform .opt { text-transform: none; letter-spacing: 0.04em; color: var(--faint); }

.cform input,
.cform select,
.cform textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s ease;
}
.cform textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.cform input:hover,
.cform select:hover,
.cform textarea:hover { border-color: var(--faint); }
.cform input:focus,
.cform select:focus,
.cform textarea:focus { border-color: var(--ink); outline-offset: 1px; }
.cform ::placeholder { color: var(--faint); opacity: 1; }

.cform-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.cform button { border: 0; cursor: pointer; font-family: inherit; }
.cform button[disabled] { opacity: .55; cursor: default; }
.cform-alt { font-size: 14px; color: var(--faint); }
.cform-alt a { color: var(--muted); }

/* Ловушка для ботов: убрана из потока и от скринридеров, но остаётся в DOM. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─────────────────────────────────────────── подвал */

.foot {
  border-top: 1px solid var(--rule);
}
.foot-cols {
  max-width: var(--col);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) clamp(24px, 5vw, 48px);
  display: grid;
  /* Четыре колонки: приложения, игры, студия и связь с заметкой. */
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  gap: 32px;
}
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.foot-col a { font-size: 15px; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-note p { font-size: 13.5px; line-height: 1.5; color: var(--faint); margin-top: 8px; max-width: 34ch; }

/* Переключатель языков: mono-ряд внизу подвала, та же страница на других языках */
.foot-langs {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(24px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.foot-langs a { color: var(--faint); text-decoration: none; border-bottom: 1px solid transparent; }
.foot-langs a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.foot-langs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ─────────────────────────────────────────── адаптив */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { align-items: flex-start; }
  .hero-shot img { max-width: 210px; }
  .tiles { grid-template-columns: 1fr; }
  .lang-list { grid-template-columns: repeat(2, 1fr); }
  .upd-list li { grid-template-columns: 1fr; gap: 4px; }
  .prin-grid { grid-template-columns: 1fr; gap: 26px; }
  .also-row, .nf .also-row { grid-template-columns: 1fr; }
  .phead { grid-template-columns: 1fr; gap: var(--content-gap); }
  .phead-art { justify-content: flex-start; }
  .phead-art .shot { max-width: 240px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Кадр ещё уже: иначе текстовая колонка сжимается до двух слов в строке */
  .tile { grid-template-columns: min(34%, 124px) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 13px; padding: 15px; }
  .tile-head { flex-wrap: wrap; gap: 4px 8px; }
  .tile-id b { font-size: 17px; }
  /* Кнопки — на всю ширину карточки: в узкой правой колонке они вставали
     друг под друга и добавляли карточке лишнюю высоту. */
  .tile-foot { grid-column: 1 / -1; padding-top: 12px; }
  .tile .shot { grid-row: 1 / span 3; }
  .bar { flex-wrap: wrap; gap: 8px 16px; }
  .nav { flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
  .facts { grid-template-columns: 1fr; }
  .tick-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .wmt { letter-spacing: 0.2em; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* тост-приглашение в беты */
/* Единственное место вне знака и линзы, где появляется акцентный цвет: тост
   зовёт в закрытый тест и обязан быть заметным на сером. Кайма голубая — та же,
   что в аберрации знака, поэтому яркость не выбивается из «Оптики». */
.beta-toast{position:fixed;left:50%;bottom:18px;transform:translate(-50%,12px);
  display:flex;align-items:center;gap:12px;width:max-content;max-width:min(560px,calc(100vw - 24px));
  background:var(--surface);border:1.5px solid var(--cyan);border-radius:14px;padding:12px 14px;
  box-shadow:0 12px 34px rgba(11,16,19,.18),0 0 0 4px color-mix(in srgb,var(--cyan) 16%,transparent);opacity:0;z-index:60;
  transition:opacity .25s ease,transform .25s ease}
.beta-toast.on{opacity:1;transform:translate(-50%,0)}
.beta-toast[hidden]{display:none}
.beta-toast .mark{flex:0 0 auto;color:var(--ink)}
.beta-toast-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.beta-toast-txt b{font-size:14px;letter-spacing:.01em}
.beta-toast-txt span{color:var(--muted);font-size:12.5px;line-height:1.4}
.beta-toast-join{flex:0 0 auto;background:var(--ink);color:var(--paper);border-radius:10px;
  padding:9px 16px;font-size:13px;font-weight:600;text-decoration:none}
.beta-toast-x{flex:0 0 auto;background:none;border:none;color:var(--muted);
  font-size:20px;line-height:1;cursor:pointer;padding:4px}
.beta-toast-x:hover{color:var(--ink)}
@media (prefers-reduced-motion: reduce){.beta-toast{transition:none}}
