/* soft4human.com — один файл стилей на обе языковые версии. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --fg: #0e1217;
  --muted: #5a6470;
  --faint: #8a939e;
  --line: #e2e5ea;
  --accent: #1e6fd9;
  --accent-hover: #155bb8;
  --on-accent: #ffffff;
  --mark-bg: #0e1217;
  --mark-fg: #6fb1ff;
  --shadow: 0 1px 2px rgb(14 18 23 / 0.04), 0 12px 32px -8px rgb(14 18 23 / 0.14);
  /* Цвета линии профиля — та же шкала, что у раскраски трека в GeoStartRec. */
  --ridge-1: #46327e;
  --ridge-2: #277f8e;
  --ridge-3: #4ac16d;
  --ridge-fill: 0.16;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e13;
    --surface: #12161d;
    --fg: #e8edf3;
    --muted: #9aa5b1;
    --faint: #6b7682;
    --line: #232a34;
    --accent: #5aa2ff;
    --accent-hover: #82b9ff;
    --on-accent: #06101f;
    --mark-bg: #e8edf3;
    --mark-fg: #1e6fd9;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.6);
    --ridge-1: #7b62d6;
    --ridge-2: #2fa3b3;
    --ridge-3: #5fd884;
    --ridge-fill: 0.12;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* ---------- Шапка ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand b,
.wordmark b {
  color: var(--accent);
  font-weight: inherit;
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.mark rect {
  fill: var(--mark-bg);
}
.mark path {
  stroke: var(--mark-fg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.9375rem;
}
.nav > a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav > a:hover {
  color: var(--fg);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang a,
.lang span {
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.5;
}
.lang a {
  color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.lang a:hover {
  color: var(--fg);
  background: var(--line);
}
.lang [aria-current] {
  background: var(--fg);
  color: var(--bg);
}

@media (max-width: 560px) {
  .nav > a {
    display: none;
  }
}

/* ---------- Первый экран ---------- */

.hero {
  padding-top: clamp(48px, 11vh, 132px);
  padding-bottom: clamp(32px, 6vh, 64px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ridge-3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ridge-3) 22%, transparent);
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 38rem;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.btn:hover svg.out {
  transform: translate(2px, -2px);
}
.btn:hover svg.down {
  transform: translateY(2px);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.ghost:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--faint);
}

/* Линия профиля под первым экраном: настоящий профиль высоты кольца Sella Ronda
   со скриншота ниже, растянутый на всю ширину. */
.ridge {
  width: 100%;
  height: clamp(64px, 10vw, 140px);
  margin-top: clamp(24px, 5vh, 56px);
  animation: reveal 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
}
.ridge .line {
  fill: none;
  stroke: url(#ridge-stroke);
  stroke-width: 2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ridge .area {
  fill: url(#ridge-fill);
}
.ridge stop {
  stop-color: var(--ridge-1);
}
.ridge stop:nth-child(2) {
  stop-color: var(--ridge-2);
}
.ridge stop:nth-child(3) {
  stop-color: var(--ridge-3);
}
.ridge #ridge-fill stop:first-child {
  stop-color: var(--ridge-2);
  stop-opacity: var(--ridge-fill);
}
.ridge #ridge-fill stop:last-child {
  stop-color: var(--ridge-2);
  stop-opacity: 0;
}

@keyframes reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Секции ---------- */

.section {
  padding-block: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.count {
  color: var(--faint);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* ---------- Проект ---------- */

.project-head {
  display: grid;
  gap: 20px 48px;
  align-items: end;
}
@media (min-width: 880px) {
  .project-head {
    grid-template-columns: 5fr 6fr;
  }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.meta .num {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.meta .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ridge-3) 16%, transparent);
  color: color-mix(in srgb, var(--ridge-3) 70%, var(--fg));
  font-weight: 600;
  font-size: 0.8125rem;
}
.meta .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

h3 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.125rem;
}

.project-desc p {
  color: var(--muted);
  text-wrap: pretty;
}
.project-desc .actions {
  margin-top: 24px;
}
.url {
  color: var(--faint);
  font-size: 0.875rem;
}

.shot {
  margin: clamp(32px, 5vw, 56px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
}
.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.shot-bar span {
  flex: 1;
  margin-right: 46px;
  color: var(--faint);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot picture {
  display: block;
}
/* Пропорции берутся из width/height у <img> и <source>: на узких экранах
   другой кадр (760x860), на широких — 1360x850. */
.shot img {
  width: 100%;
  height: auto;
}
@media (prefers-color-scheme: dark) {
  .shot img {
    filter: brightness(0.92);
  }
}
/* У кадра со своей тёмной версией приглушать нечего. */
.shot.themed img {
  filter: none;
}
.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8125rem;
}

.features {
  display: grid;
  gap: 0 40px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.features li {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}
.features b {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.features span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Следующий проект отделён от предыдущего воздухом и линией. */
.project + .project {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

/* Цвет проекта: подсветка сцены со скриншотами и значок статуса. */
.project.gattzeq {
  --p: #ff6a13;
}

.meta .soon {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--p, var(--accent)) 14%, transparent);
  color: color-mix(in srgb, var(--p, var(--accent)) 75%, var(--fg));
  font-weight: 600;
  font-size: 0.8125rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.gallery {
  margin: 0;
}

/* Сцена с телефонами: экраны в рамках, низ уходит за край. */
.stage {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 56px);
  height: clamp(340px, 58vw, 600px);
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: clamp(28px, 5vw, 64px) clamp(12px, 4vw, 56px) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, var(--p) 26%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.phone {
  flex: none;
  width: min(280px, 43%);
  height: max-content;
  padding: clamp(4px, 0.8vw, 7px);
  border-radius: clamp(20px, 3.4vw, 34px);
  background: #0c0c0d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 18px 40px -16px rgb(0 0 0 / 0.5);
}
.phone + .phone {
  margin-top: clamp(28px, 6vw, 72px);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: clamp(16px, 2.8vw, 28px);
}
.stage-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.8125rem;
}

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.next b {
  color: var(--fg);
  font-weight: 600;
}
.next .num {
  color: var(--faint);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Подход ---------- */

.principles {
  display: grid;
  gap: 0 40px;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.principles li {
  padding: 24px 0 28px;
  border-top: 2px solid var(--fg);
}
.principles li:nth-child(1) {
  border-color: var(--ridge-1);
}
.principles li:nth-child(2) {
  border-color: var(--ridge-2);
}
.principles li:nth-child(3) {
  border-color: var(--ridge-3);
}
.principles b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.principles span {
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Подвал ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}
.foot .brand {
  font-size: 1rem;
  color: var(--fg);
}
.foot .mark {
  width: 24px;
  height: 24px;
}
.foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* ---------- 404 ---------- */

.oops {
  min-height: calc(100vh - 72px - 96px);
  min-height: calc(100svh - 72px - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
}
.oops h1 {
  max-width: none;
}
.oops p {
  margin-top: 14px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ridge {
    animation: none;
  }
  .btn,
  .btn svg {
    transition: none;
  }
}
