:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --text: #1b2420;
  --muted: #5a6761;
  --line: #dde5e0;
  --green-900: #163f30;
  --green-700: #1f5c45;
  --green-600: #2a7457;
  --green-100: #e6f0eb;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
}

a { color: var(--green-700); }

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

/* Top bar */
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  font-weight: 600;
  color: var(--green-900);
  text-decoration: none;
  letter-spacing: .01em;
}
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--green-700); color: #fff; }
.lang button:focus-visible { outline: 2px solid var(--green-600); outline-offset: -2px; }

/* Intro */
.intro { padding: 48px 0 8px; }
h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.2;
  color: var(--green-900);
  letter-spacing: -.01em;
}
.lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 17px; }

.section-h {
  margin: 40px 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Apps */
.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.app-link {
  display: flex;
  gap: 16px;
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
a.app-link:hover { border-color: var(--green-600); box-shadow: 0 2px 8px rgba(22, 63, 48, .08); }
a.app-link:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.app-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
}
.app-icon svg, .contacts svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-name { font-size: 18px; font-weight: 600; color: var(--green-900); }
.app-desc { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.app-cta { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; color: var(--green-700); }
.soon .app-cta { color: var(--muted); }

/* About */
.about-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--green-100);
}
.about-name { margin: 0; font-size: 18px; font-weight: 600; color: var(--green-900); }
.about-text { margin: 4px 0 12px; color: var(--muted); }
.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
}
.contacts a:hover { text-decoration: underline; }
.contacts svg { width: 18px; height: 18px; }

/* Footer */
.foot { padding-top: 40px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 560px) {
  .intro { padding-top: 32px; }
  .apps { grid-template-columns: 1fr; }
  .app-link { padding: 16px; gap: 14px; }
  .about-card { flex-direction: column; align-items: center; text-align: center; }
  .contacts { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
