/* ---------- tokens ---------- */

:root {
  --bg: #ffffff;  --panel: #fbfbfb;  --sunken: #f4f4f5;
  --line: #ebebed; --line-2: #e1e1e4; --line-3: #d4d4d8;
  --fg: #09090b;  --fg-2: #52525b;  --fg-3: #8b8b93;  --fg-4: #b4b4bb;
  --green: #1fbf6b;
  --brand: #0FB5FF;
  --primary-bg: #09090b; --primary-fg: #ffffff;
  --shadow-lg: 0 16px 48px -12px rgba(9,9,11,.18), 0 0 0 1px var(--line);
  --header-bg: rgba(255,255,255,.72);
}

/* ---------- base ---------- */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark { display: block; border-radius: 7px; }

.logo__word {
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav > a:not(.btn) {
  font-size: 14px;
  color: var(--fg-2);
  transition: color 150ms ease;
}

.nav > a:not(.btn):hover { color: var(--fg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.btn--primary {
  background: var(--primary-bg);
  color: var(--primary-fg);
}

.btn--primary:hover { opacity: .88; }

.btn--ghost {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--line-2);
}

.btn--ghost:hover { background: var(--sunken); }

.btn:active { transform: translateY(1px); }

.btn--sm { height: 34px; padding: 0 14px; border-radius: 6px; }
.btn--lg { height: 48px; padding: 0 28px; font-size: 15px; }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(340px, 460px) 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 640;
  line-height: 1.04;
}

.hero__lead {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 17px;
  color: var(--fg-2);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-2);
}

.hero__media { min-width: 0; }

.shot__img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* скриншот выходит за правый край — окно приложения крупнее */
@media (min-width: 1100px) {
  .hero__media { width: calc(100% + 96px); }
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section--pricing { background: var(--panel); }

.section__title {
  font-size: 32px;
  font-weight: 640;
}

/* ---------- cards ---------- */

.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card__icon { color: var(--fg-3); }

.card__title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p { margin-top: 6px; font-size: 14px; color: var(--fg-2); }

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.split__text .section__title { font-size: 28px; }

.split__text p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--fg-2);
  max-width: 46ch;
}

/* ---------- pricing ---------- */

.pricing { text-align: center; }

.plan {
  margin: 40px auto 0;
  max-width: 420px;
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.plan__amount {
  font-size: 44px;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan__period { font-size: 15px; color: var(--fg-2); }

.plan__lead {
  margin-top: 14px;
  font-size: 15px;
  color: var(--fg-2);
}

.plan .btn { margin-top: 24px; }

.plan__note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-2);
}

/* ---------- footer ---------- */

.footer {
  padding: 56px 0 40px;
  background: var(--panel);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__pitch {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  color: var(--fg-2);
}

.footer__head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.footer__col ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-2);
}

.footer__col a {
  color: var(--fg-2);
  transition: color 150ms ease;
}

.footer__col a:hover { color: var(--fg); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
}

.footer__bottom p {
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
  font-size: 13px;
  color: var(--fg-2);
}

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

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }

  .hero { padding: 72px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }

  .section { padding: 72px 0; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__media { order: -1; }
  .split__text p { max-width: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }

  .header__inner { height: 60px; gap: 12px; }
  .nav { gap: 14px; }
  .nav > a:not(.btn) { font-size: 13px; }

  .hero { padding: 56px 0; }
  .hero__inner { gap: 32px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { width: 100%; }

  .section { padding: 56px 0; }
  .section__title { font-size: 26px; }
  .cards { grid-template-columns: 1fr; margin-top: 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }

  .plan { padding: 28px 20px; }
  .plan .btn { width: 100%; }

}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
