/* Общие стили сайта Lifeware Lab: главная, страницы приложений, документы.
   Цвет шапки страницы приложения задаётся классом body (app-<имя>). */
:root {
  --ink: #1c1d22;
  --muted: #5d6070;
  --bg: #ffffff;
  --card: #f5f6fa;
  --line: #e3e5ee;
  --link: #3F4A8A;
  --brand: #3F4A8A;
  --accent: #F5A623;
  --header: #23263a;
  --shadow: 0 12px 32px rgba(20, 24, 60, .14);
  --status-bg: rgba(245, 166, 35, .16);
  --status-ink: #8a5300;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9eaf0; --muted: #a4a7b6; --bg: #14151b; --card: #1d1f28; --line: #2c2f3b;
    --link: #a9b2ff; --brand: #a9b2ff; --shadow: 0 12px 32px rgba(0, 0, 0, .45);
    --status-ink: #f5c46b;
  }
}
body.app-car-checker { --header: #3F4A8A; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
/* Только боковые поля — вертикальные отступы задают main/footer. */
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap.narrow { max-width: 760px; }

/* Шапка */
header.top { background: var(--header); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; line-height: 1.2; }
.brand img, .brand svg { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand small { display: block; font-weight: 400; font-size: 12px; opacity: .75; }
.langs { margin-left: auto; display: flex; gap: 4px; }
.langs button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: #fff; color: var(--header); }

/* Текст */
main { padding: 32px 0 56px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; margin: 56px 0 16px; }
h3 { font-size: 18px; line-height: 1.3; margin: 12px 0 6px; }
p, ul, ol { margin: 8px 0; }
li { margin: 4px 0; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Телефон со скриншотом */
.phone { justify-self: center; width: min(290px, 82%); border-radius: 30px; border: 8px solid #101114; background: #101114; box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.phone img { display: block; width: 100%; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; justify-items: center; }
.shots figure { margin: 0; text-align: center; }
.shots .phone { width: min(240px, 100%); }
.shots figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature svg { width: 32px; height: 32px; color: var(--brand); }

/* Каталог приложений студии */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.app-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-card h3 { margin: 0 0 4px; }
.app-card p { margin: 0 0 10px; color: var(--muted); }
.status { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--status-bg); color: var(--status-ink); }

/* Подвал */
footer { border-top: 1px solid var(--line); padding: 20px 0 36px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

/* Без JavaScript видны все языки; с ним — только выбранный. */
html.js [data-lang]:not(.active) { display: none; }
