/* Сайт-визитка Kinstories: без скриптов, светлая и тёмная тема по системе */
:root {
  --bg: #fffaf7;
  --text: #1d1b22;
  --hint: #6b6575;
  --card: #ffffff;
  --line: rgba(29, 27, 34, 0.1);
  --accent-text: #ffffff;
  color-scheme: light dark;
  /* --accent и --brand (градиент) — в brand.css: генерируются из brand/brand.json (npm run brand) */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141217;
    --text: #f3f0f6;
    --hint: #a49eae;
    --card: #1e1b23;
    --line: rgba(255, 255, 255, 0.1);
    --accent-text: #1d1b22;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
a {
  color: var(--accent);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--card);
}
.top,
main,
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.top-nav {
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.big {
  padding: 14px 24px;
  font-size: 18px;
}
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--hint);
  font-size: 20px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
main > section {
  padding: 32px 0;
}
main h2 {
  margin: 0 0 20px;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}
.card h3,
.steps h3 {
  margin: 8px 0 6px;
  font-size: 19px;
}
.card p,
.steps p {
  margin: 0;
  color: var(--hint);
}
.card-emoji {
  font-size: 32px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
#faq {
  max-width: 760px;
  margin: 0 auto;
}
details {
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 10px 0 0;
  color: var(--hint);
}
.final {
  text-align: center;
}
.final p {
  color: var(--hint);
}
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 48px;
}
.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.doc h2 {
  margin: 32px 0 10px;
  font-size: 22px;
  text-align: left;
}
.doc li {
  margin-bottom: 6px;
}
.updated {
  margin-top: 0;
  color: var(--hint);
}
.foot {
  display: grid;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--hint);
  font-size: 15px;
}
.foot a {
  color: inherit;
}
.langs [aria-current] {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 520px) {
  .top-nav .ghost {
    display: none;
  }
  .lead {
    font-size: 18px;
  }
}
