/* 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;
}

@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: 22px 28px;
  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: 0 28px;
}

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

/* ─────────────────────────────────────────── главная: герой */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 88px 0 76px;
}

.hero h1 {
  font-size: clamp(46px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  max-width: 36ch;
  color: var(--ink);
}

.hero-sub {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
  max-width: 42ch;
}

.hero-art { display: flex; justify-content: center; }

/* Линза наводится на резкость: --focus 0 = резко, 1 = расфокус.
   🚩 Наводка при загрузке — ЧИСТЫЙ CSS, без JS. Раньше её делал скрипт через
   requestAnimationFrame, а он не срабатывает, пока вкладка не видна, и линза
   залипала мутной. Теперь худший случай (нет JS, старый браузер) = резко. */
@property --focus {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.lens {
  width: 100%;
  max-width: 230px;
  height: auto;
  color: var(--ink);
  --focus: 0;
  filter: blur(calc(var(--focus) * 1.6px));
}
.lens .ab { transform: translateX(calc(var(--focus) * -4px)); }
.lens .ab-m { transform: translateX(calc(var(--focus) * 4px)); }

@media (prefers-reduced-motion: no-preference) {
  .lens { animation: lens-intro .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes lens-intro {
    from { --focus: 1; }
    to { --focus: 0; }
  }
}
/* Плавный возврат в покой; при движении мыши класс снимается, иначе линза
   тянется за курсором с задержкой. */
.lens-settle { transition: --focus .7s cubic-bezier(.2,.7,.2,1); }

/* Заголовок ловит фокус вместе с линзой. */
@media (prefers-reduced-motion: no-preference) {
  .pull { animation: pull-focus .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes pull-focus {
    from { filter: blur(7px); opacity: .3; }
    to { filter: blur(0); opacity: 1; }
  }
}

/* ─────────────────────────────────────────── цифры */

.nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 78px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.num { background: var(--paper); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.num b { font-size: 42px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.num span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.num i { font-style: normal; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ─────────────────────────────────────────── главная: карточки */

.apps { padding-top: 8px; scroll-margin-top: 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 20px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 22px 26px;
  background: var(--paper);
  text-decoration: none;
  transition: background .15s ease;
}
.card:hover { background: var(--surface); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
/* Наводка курсором расщепляет глиф на голубую и пурпурную кайму — тот же
   оптический приём, что в знаке, но здесь он появляется только по наведению. */
.card .glyph { color: var(--muted); flex: none; transition: filter .18s ease, color .18s ease; }
.card:hover .glyph {
  color: var(--ink);
  filter: drop-shadow(-1.2px 0 var(--cyan)) drop-shadow(1.2px 0 var(--magenta));
}
.card-host { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

.card-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card-one { font-size: 14px; color: var(--muted); }
.card-blurb { font-size: 13.5px; line-height: 1.5; color: var(--faint); margin-top: 4px; }

.card-go {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.arr { transition: transform .15s ease; }
.card:hover .arr, .btn:hover .arr { transform: translateX(3px); }

/* ─────────────────────────────────────────── главная: принципы */

.prin { padding: 72px 0 96px; }
.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); }

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

.prod, .prose { max-width: var(--prose); padding: 44px 0 96px; }

.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 34px; }
.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: 30px; margin-top: 52px; }
.feat h2 { font-size: 18px; margin-bottom: 7px; }
.feat p { font-size: 16px; line-height: 1.62; color: var(--muted); }

.also { margin-top: 72px; padding-top: 34px; 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; }

.rules { display: grid; gap: 28px; margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--rule); }
.rule h2 { font-size: 17px; margin: 0 0 7px; }
.rule p { font-size: 16px; line-height: 1.62; color: var(--muted); }

.psec { margin-top: 40px; }
.psec h2 { margin: 0 0 10px; }
.psec p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.psec p:first-of-type { margin-top: 0; }

.ticks { margin: 16px 0 0; padding-left: 20px; }
.ticks li { font-size: 16px; line-height: 1.6; color: var(--muted); margin-top: 9px; }

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

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

.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: 34px; display: grid; gap: 20px; scroll-margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.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);
  margin-top: 40px;
}
.foot-cols {
  max-width: var(--col);
  margin: 0 auto;
  padding: 44px 28px 64px;
  display: grid;
  grid-template-columns: 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; }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 60px 0 56px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .lens { max-width: 150px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nums { grid-template-columns: 1fr; margin-bottom: 56px; }
  .prin-grid { grid-template-columns: 1fr; gap: 26px; }
  .also-row, .nf .also-row { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { padding: 18px 20px; }
  main { padding: 0 20px; }
  .nav { gap: 18px; font-size: 13.5px; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; padding: 34px 20px 52px; }
  .wmt { letter-spacing: 0.2em; font-size: 14px; }
}

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