/* Лендинг Crossette. Цвета и шрифты — токены docs/design/spec-v1.md §1. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/IBMPlexSans_400Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/IBMPlexSans_600SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/IBMPlexSans_700Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/IBMPlexMono_500Medium.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #f3f4f6;
  --paper: #ffffff;
  --text: #15171c;
  --text2: #4a5160;
  --accent: #2f55d4;
  --accent-soft: #eef2ff;
  --border: #d5d8de;
  --success: #1f7a4d;
  --shadow: 0 8px 24px rgba(21, 23, 28, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1c1f;
    --paper: #232428;
    --text: #f2f3f5;
    --text2: #a7aebb;
    --accent: #8aa2ff;
    --accent-soft: #0e1330;
    --border: rgba(255, 255, 255, 0.09);
    --success: #4cc38a;
    --shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.45 'IBM Plex Sans',
    system-ui,
    sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 19px;
  font-weight: 600;
}
p {
  margin: 0 0 12px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.muted {
  color: var(--text2);
}
.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
}

/* Шапка */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.lang {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 8px;
}

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0 48px;
}
.hero .lead {
  font-size: 19px;
  color: var(--text2);
  max-width: 34em;
}
.badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.shot {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #1b1c1f;
}
.shot-phone {
  max-width: 300px;
  margin: 0 auto;
}
.caption {
  font-size: 15px;
  color: var(--text2);
  margin-top: 10px;
  text-align: center;
}
@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.3fr 1fr;
    padding: 40px 0 64px;
  }
}

/* Разделы */
section {
  padding: 40px 0;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
}
.card ul {
  margin: 0;
  padding-left: 20px;
}
.card li + li {
  margin-top: 8px;
}
.status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.status.ready {
  color: var(--success);
}
.status.soon {
  color: var(--accent);
}

.ipad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.ipad .shot {
  border-radius: 20px;
  max-width: 560px;
}
@media (min-width: 820px) {
  .ipad {
    grid-template-columns: 1fr 1.2fr;
  }
}

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

details {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
}
details + details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  min-height: 48px;
}
details p {
  padding-bottom: 6px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 15px;
  color: var(--text2);
}
footer p {
  margin: 0 0 6px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.fig {
  margin: 0;
}
