/* Лендинг Stilo. Значения цветов, отступов и кеглей — из светлой и тёмной темы Consta, переписаны
   своими переменными --stilo-*: Consta целиком не подключаем, внешних шрифтов и скриптов нет. */

:root {
  /* цвет — светлая тема */
  --stilo-bg-default: #fff;
  --stilo-bg-secondary: #ecf1f4;
  --stilo-bg-border: rgba(0, 65, 102, .2);
  --stilo-bg-ghost: rgba(0, 32, 51, .08);
  --stilo-typo-primary: #002033;
  --stilo-typo-secondary: rgba(0, 32, 51, .72);
  --stilo-typo-link: #0071b2;
  --stilo-typo-link-hover: #005a8f;
  --stilo-control-bg-primary: #0071b2;
  --stilo-control-bg-primary-hover: #005a8f;
  --stilo-control-typo-primary: #fff;
  --stilo-control-bg-border-secondary: #0071b2;
  --stilo-control-typo-secondary: #0071b2;
  --stilo-control-bg-secondary-hover: rgba(0, 120, 210, .08);
  --stilo-control-bg-border-focus: #0091ff;
  --stilo-shadow-1: rgba(0, 32, 51, .04);
  --stilo-shadow-2: rgba(0, 32, 51, .12);
  --stilo-accent: #6d5bf6; /* цвет знака Stilo */

  /* отступы */
  --stilo-space-2xs: 4px;
  --stilo-space-xs: 8px;
  --stilo-space-s: 12px;
  --stilo-space-m: 16px;
  --stilo-space-l: 20px;
  --stilo-space-xl: 24px;
  --stilo-space-2xl: 32px;
  --stilo-space-3xl: 40px;
  --stilo-space-4xl: 48px;
  --stilo-space-5xl: 72px;
  --stilo-space-6xl: 96px;

  /* текст */
  --stilo-size-text-s: 14px;
  --stilo-size-text-m: 16px;
  --stilo-size-text-l: 18px;
  --stilo-size-text-xl: 20px;
  --stilo-size-text-2xl: 24px;
  --stilo-size-text-3xl: 32px;
  --stilo-size-text-4xl: 48px;
  --stilo-line-height-m: 1.5;
  --stilo-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* контролы */
  --stilo-control-radius: 4px;
  --stilo-control-height-s: 32px;
  --stilo-control-height-l: 48px;
  --stilo-radius-card: 12px;

  --stilo-content: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --stilo-bg-default: #22272b;
    --stilo-bg-secondary: #161a1d;
    --stilo-bg-border: hsla(0, 0%, 100%, .2);
    --stilo-bg-ghost: rgba(246, 251, 253, .1);
    --stilo-typo-primary: #fafafa;
    --stilo-typo-secondary: hsla(0, 0%, 100%, .72);
    --stilo-typo-link: #57bcff;
    --stilo-typo-link-hover: #8fd1ff;
    --stilo-control-bg-primary: #0071b2;
    --stilo-control-bg-primary-hover: #0085d1;
    --stilo-control-bg-border-secondary: #57bcff;
    --stilo-control-typo-secondary: #57bcff;
    --stilo-control-bg-secondary-hover: rgba(87, 188, 255, .12);
    --stilo-control-bg-border-focus: #0593ff;
    --stilo-shadow-1: rgba(0, 0, 0, .2);
    --stilo-shadow-2: rgba(0, 0, 0, .4);
  }
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--stilo-bg-default);
  color: var(--stilo-typo-primary);
  font-family: var(--stilo-font);
  font-size: var(--stilo-size-text-m);
  line-height: var(--stilo-line-height-m);
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

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

h1 { font-size: var(--stilo-size-text-4xl); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--stilo-size-text-3xl); line-height: 1.25; font-weight: 700; margin-bottom: var(--stilo-space-2xl); }
h3 { font-size: var(--stilo-size-text-xl); line-height: 1.3; font-weight: 600; }

.wrap {
  max-width: calc(var(--stilo-content) + 2 * var(--stilo-space-xl));
  margin: 0 auto;
  padding: 0 var(--stilo-space-xl);
}

:focus-visible {
  outline: 2px solid var(--stilo-control-bg-border-focus);
  outline-offset: 2px;
  border-radius: var(--stilo-control-radius);
}

.skip {
  position: absolute;
  left: var(--stilo-space-m);
  top: -100px;
  padding: var(--stilo-space-xs) var(--stilo-space-m);
  background: var(--stilo-bg-default);
  color: var(--stilo-typo-link);
  z-index: 10;
}
.skip:focus { top: var(--stilo-space-m); }

/* ── ссылки и кнопки ─────────────────────────────────────────── */
.link { color: var(--stilo-typo-link); text-decoration: none; }
.link:hover { color: var(--stilo-typo-link-hover); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--stilo-control-radius);
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn--s { height: var(--stilo-control-height-s); padding: 0 var(--stilo-space-s); font-size: var(--stilo-size-text-s); }
.btn--l { height: var(--stilo-control-height-l); padding: 0 var(--stilo-space-xl); font-size: var(--stilo-size-text-l); }
.btn--primary { background: var(--stilo-control-bg-primary); color: var(--stilo-control-typo-primary); }
.btn--primary:hover { background: var(--stilo-control-bg-primary-hover); }
.btn--secondary { border-color: var(--stilo-control-bg-border-secondary); color: var(--stilo-control-typo-secondary); }
.btn--secondary:hover { background: var(--stilo-control-bg-secondary-hover); }

/* ── шапка ───────────────────────────────────────────────────── */
.header { border-bottom: 1px solid var(--stilo-bg-border); }
.header__row {
  display: flex;
  align-items: center;
  gap: var(--stilo-space-2xl);
  min-height: 64px;
}
.logo { display: inline-flex; color: var(--stilo-typo-primary); }
.logo svg { display: block; }
.nav { display: flex; gap: var(--stilo-space-xl); }
.nav a { color: var(--stilo-typo-secondary); text-decoration: none; font-size: var(--stilo-size-text-s); }
.nav a:hover { color: var(--stilo-typo-primary); }
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--stilo-space-l);
  font-size: var(--stilo-size-text-s);
}

/* ── главный экран ───────────────────────────────────────────── */
.hero { padding: var(--stilo-space-5xl) 0 var(--stilo-space-6xl); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--stilo-space-4xl);
  align-items: center;
}
.lead {
  margin-top: var(--stilo-space-xl);
  font-size: var(--stilo-size-text-l);
  line-height: 1.6;
  color: var(--stilo-typo-secondary);
}
.hero__actions {
  margin-top: var(--stilo-space-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--stilo-space-xl);
}
.note { margin-top: var(--stilo-space-xl); font-size: var(--stilo-size-text-s); color: var(--stilo-typo-secondary); }

.shot {
  border: 1px solid var(--stilo-bg-border);
  border-radius: var(--stilo-radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 4px var(--stilo-shadow-1), 0 12px 32px var(--stilo-shadow-2);
}

/* ── разделы ─────────────────────────────────────────────────── */
.section { padding: var(--stilo-space-6xl) 0; }
.section--tint { background: var(--stilo-bg-secondary); }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stilo-space-2xl);
}
.step .shot { box-shadow: 0 2px 8px var(--stilo-shadow-1); }
.step h3 {
  margin-top: var(--stilo-space-xl);
  display: flex;
  align-items: center;
  gap: var(--stilo-space-s);
}
.step__n {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--stilo-accent);
  color: #fff;
  font-size: var(--stilo-size-text-s);
  font-weight: 700;
}
.step p { margin-top: var(--stilo-space-s); color: var(--stilo-typo-secondary); }

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stilo-space-xl);
}
.card {
  background: var(--stilo-bg-default);
  border: 1px solid var(--stilo-bg-border);
  border-radius: var(--stilo-radius-card);
  padding: var(--stilo-space-2xl);
}
.card p { margin-top: var(--stilo-space-s); color: var(--stilo-typo-secondary); }

.points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--stilo-space-m);
  max-width: 880px;
  counter-reset: point;
}
.points li {
  counter-increment: point;
  position: relative;
  padding: var(--stilo-space-l) var(--stilo-space-xl) var(--stilo-space-l) 64px;
  border: 1px solid var(--stilo-bg-border);
  border-radius: var(--stilo-radius-card);
  color: var(--stilo-typo-secondary);
}
.points li::before {
  content: counter(point);
  position: absolute;
  left: var(--stilo-space-xl);
  top: var(--stilo-space-l);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--stilo-bg-ghost);
  color: var(--stilo-typo-primary);
  font-size: var(--stilo-size-text-s);
  font-weight: 700;
}
.points strong { color: var(--stilo-typo-primary); font-weight: 600; }
.cta { margin-top: var(--stilo-space-3xl); }

/* ── подвал ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--stilo-bg-border); font-size: var(--stilo-size-text-s); color: var(--stilo-typo-secondary); }
.footer__row { display: flex; align-items: center; gap: var(--stilo-space-xl); min-height: 72px; }

/* ── раскладки ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 var(--stilo-space-m); }
  h1 { font-size: var(--stilo-size-text-3xl); }
  h2 { font-size: var(--stilo-size-text-2xl); margin-bottom: var(--stilo-space-xl); }
  .lead { font-size: var(--stilo-size-text-m); }
  .lead br, .card br { display: none; }
  .hero { padding: var(--stilo-space-3xl) 0 var(--stilo-space-5xl); }
  .section { padding: var(--stilo-space-5xl) 0; }
  .header__row { gap: var(--stilo-space-m); }
  .header__actions { gap: var(--stilo-space-m); }
  .card { padding: var(--stilo-space-xl); }
  .points li { padding: var(--stilo-space-m) var(--stilo-space-m) var(--stilo-space-m) 56px; }
  .points li::before { left: var(--stilo-space-m); top: var(--stilo-space-m); }
  .btn--l { width: 100%; }
}
