:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #626660;
  --line: #dedfd9;
  --soft-line: #ecece6;
  --soft: #f0f2ec;
  --accent: #2f6fdf;
  --accent-ink: #ffffff;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(24, 28, 22, 0.08);
  --max: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 223, 217, 0.8);
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  font-size: 13px;
  letter-spacing: 0;
}

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

.nav-links a {
  border-radius: 7px;
  color: #323530;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--paper);
  outline: none;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 54px;
  min-height: 620px;
  align-items: center;
  padding: 74px 0 62px;
}

.hero-copy {
  min-width: 0;
  max-width: 600px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.94;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.15;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #171717;
  border-radius: 7px;
  background: #171717;
  color: #ffffff;
  font-size: 14px;
  font-weight: 740;
  line-height: 1;
  padding: 0 17px;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button.app-store {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.catalog-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--soft-line);
  padding: 18px;
}

.catalog-title {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.catalog-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
}

.mini-app-list {
  display: grid;
  gap: 0;
}

.app-row,
.app-card {
  --accent: #2f6fdf;
}

.app-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
  padding: 18px;
}

.app-row:last-child {
  border-bottom: 0;
}

.app-icon {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent), #ffffff 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-row-main {
  min-width: 0;
}

.app-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.app-row h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.genre {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.app-row p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-link {
  border-bottom: 1px solid rgba(23, 23, 23, 0.18);
  color: #252822;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: currentColor;
  outline: none;
}

.section {
  padding: 84px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
}

.app-card .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app-card p {
  color: var(--muted);
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
  align-items: center;
  min-height: 610px;
  padding: 76px 0 62px;
}

.app-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.app-title-wrap .app-icon {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 20px;
}

.app-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
}

.app-visual {
  min-width: 0;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), #ffffff 78%), #ffffff 48%),
    var(--paper);
  box-shadow: var(--shadow);
  padding: 28px;
}

.device-frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 240px;
  height: 382px;
  margin: 0 auto;
  border: 10px solid #171717;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
  padding: 24px 18px;
}

.device-icon {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 20px;
}

.device-lines {
  display: grid;
  gap: 10px;
}

.device-lines span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), #ffffff 62%);
}

.device-lines span:nth-child(2) {
  width: 76%;
}

.device-lines span:nth-child(3) {
  width: 56%;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.feature-dot {
  width: 12px;
  height: 12px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent);
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 30px;
}

.document-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  padding: 70px 0 90px;
}

.doc-aside {
  position: sticky;
  min-width: 0;
  top: 100px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.doc-aside h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.doc-aside p {
  color: var(--muted);
  font-size: 14px;
}

.doc-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(28px, 5vw, 56px);
}

.doc-content h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.doc-content h2 {
  margin-top: 38px;
  font-size: 26px;
  line-height: 1.1;
}

.doc-content p,
.doc-content li {
  color: #3d403a;
  overflow-wrap: anywhere;
}

.doc-content ul,
.doc-content ol {
  padding-left: 22px;
}

.app-directory-list {
  display: grid;
  gap: 14px;
}

.directory-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .app-hero,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .app-hero {
    min-height: 0;
    padding-top: 56px;
  }

  .app-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .section-header,
  .support-band,
  .footer-inner,
  .directory-item {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .doc-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-inline: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-links a {
    flex: 1 1 0;
    padding-inline: 0;
  }

  .page {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 44px);
    line-height: 1;
  }

  .hero-copy h1 {
    max-width: 330px;
  }

  .lead {
    font-size: 18px;
    max-width: 330px;
  }

  .app-row,
  .app-card,
  .app-title-wrap {
    grid-template-columns: 1fr;
  }

  .doc-content {
    width: 100%;
    padding-inline: 28px;
  }

  .doc-content h1 {
    max-width: 300px;
    font-size: 36px;
  }

  .doc-content p,
  .doc-content li {
    max-width: 300px;
  }

  .catalog-panel,
  .doc-aside,
  .doc-content,
  .support-band {
    max-width: calc(100vw - 36px);
  }

  .app-title-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-row-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .device-frame {
    width: min(100%, 230px);
  }
}
