/* Kennel Merge — публичные страницы. Один файл, без сборки. */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e7e2da;
  --text: #1b1916;
  --muted: #6d665c;
  --accent: #b1541f;
  --accent-soft: #fdf2e9;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1c1a17;
    --border: #2f2a24;
    --text: #f1ede7;
    --muted: #9d958a;
    --accent: #e58a44;
    --accent-soft: #251a11;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- шапка ---- */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex: none;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
  white-space: nowrap;
}

nav.site a:hover { color: var(--accent); }

/* ---- контент ---- */

main { padding: 48px 0 64px; }

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 4px;
}

h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

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

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
}

.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
}

.note :last-child { margin-bottom: 0; }

/* ---- таблицы ---- */

.scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 520px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--surface);
  white-space: nowrap;
}

tr:last-child td { border-bottom: 0; }

/* ---- главная ---- */

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero .mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 34px;
  margin: 0 auto 20px;
}

.hero h1 { font-size: 38px; }

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 460px;
  margin: 0 auto 32px;
}

.stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  min-width: 190px;
}

.store:hover { border-color: var(--accent); }

.store b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.store span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Магазинная ссылка до публикации: снять класс pending, когда листинг живой. */
.store.pending {
  opacity: 0.55;
  pointer-events: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  margin: 0;
}

.features b {
  display: block;
  margin-bottom: 4px;
}

.features span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- подвал ---- */

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  align-items: center;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

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

footer.site .copy { margin-left: auto; }

@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  h1 { font-size: 25px; }
  nav.site a { margin: 0 16px 0 0; }
  footer.site .copy { margin-left: 0; width: 100%; }
}
