/* Главная locapp.ru. Палитра — как у Package Alerts; тема — системная (prefers-color-scheme) */
:root {
  color-scheme: light;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #e6e6ea;
  --border-strong: #d4d4da;
  --text: #16171b;
  --text-2: #3d4048;
  --muted: #6c707a;
  --accent: #5e6ad2;
  --accent-fg: #4b56c0;
  --shadow-md: 0 4px 16px rgb(16 17 20 / 8%), 0 1px 3px rgb(16 17 20 / 6%);
  --violet: #5e6ad2;
  --green: #1b8a4b;
  --orange: #c2560c;
  --blue: #1f6fd1;
  --radius-lg: 12px;
  --content: 1120px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0e10;
    --surface: #141518;
    --border: #25262b;
    --border-strong: #33343a;
    --text: #eceef1;
    --text-2: #c7c9cf;
    --muted: #8b8f99;
    --accent-fg: #9aa2ff;
    --shadow-md: 0 4px 16px rgb(0 0 0 / 40%), 0 1px 3px rgb(0 0 0 / 30%);
    --violet: #9aa2ff;
    --green: #3dd68c;
    --orange: #ff8b3e;
    --blue: #6aa8ff;
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 480px at 50% -120px, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.topbar,
.page,
.footer {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
}

.topbar {
  display: flex;
  align-items: center;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.page {
  flex: 1;
  padding-bottom: 72px;
}

.hero {
  max-width: 760px;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 62%, var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.section-title {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card h3 {
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

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

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 10px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
}

.card-icon-violet {
  --tone: var(--violet);
}

.card-icon-green {
  --tone: var(--green);
}

.card-icon-orange {
  --tone: var(--orange);
}

.card-icon-blue {
  --tone: var(--blue);
}

.card-tags {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-link {
  margin-top: 8px;
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 500;
}

.card-link::after {
  content: ' →';
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .hero {
    padding: 40px 0 36px;
  }

  .services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
