:root {
  --bg: #f3f7f4;
  --surface: #ffffff;
  --text: #17241d;
  --muted: #5f7067;
  --line: #dde8e1;
  --primary: #1f8a5b;
  --primary-soft: #e3f3ea;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1511;
    --surface: #15201a;
    --text: #e4eee8;
    --muted: #8ea398;
    --line: #24332b;
    --primary: #5cc794;
    --primary-soft: #1a3326;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--primary); }

.wrap { max-width: 880px; margin: 0 auto; padding: 32px 16px 56px; }

header.top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
header.top img { width: 56px; height: 56px; border-radius: 14px; }
header.top .brand { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
header.top h1 { margin: 0; font-size: 28px; line-height: 1.15; }

.lang { margin-left: auto; font-size: 14px; white-space: nowrap; }
.lang a { text-decoration: none; padding: 6px 10px; border-radius: 10px; }
.lang a[aria-current="page"] { background: var(--primary-soft); font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 16px; }

.hero h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.hero p { margin: 0; color: var(--muted); }

h3.section { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 4px 12px; }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.app { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.app .head { display: flex; align-items: center; gap: 12px; }
.app img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.app h4 { margin: 0; font-size: 18px; line-height: 1.2; }
.app p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.app .links { display: flex; gap: 14px; font-size: 14px; font-weight: 700; }
.app .links a { text-decoration: none; }

footer { color: var(--muted); font-size: 14px; text-align: center; margin-top: 28px; }
