/* ABAT site — abat.inghub.ru */
:root {
  --bg: #0f1419;
  --bg2: #1a2332;
  --bg3: #243044;
  --text: #e8ecf1;
  --muted: #8b9cb3;
  --accent: #4da3ff;
  --accent2: #7c5cff;
  --border: #2e3d52;
  --card: #1e2a3a;
  --font-abat: "ABAT", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: linear-gradient(135deg, var(--bg2) 0%, #152030 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.site-header .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-logo span { color: var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.site-nav a { color: var(--muted); padding: 0.25rem 0; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 60ch; }

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-glyph {
  font-family: var(--font-abat);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-glyph { font-size: 2.5rem; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #071018;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: var(--bg3); color: var(--text); }

.alpha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.alpha-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.alpha-card header {
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.alpha-card header code {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.alpha-glyphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.alpha-glyphs .glyph-box {
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.alpha-glyphs .abat {
  font-family: var(--font-abat);
  font-size: 2.75rem;
  line-height: 1;
  color: #111;
}

.alpha-glyphs img { max-width: 100%; max-height: 72px; object-fit: contain; }
.alpha-glyphs label { font-size: 0.7rem; color: var(--muted); margin-top: 0.35rem; }

.alpha-meta { padding: 0 1rem 1rem; font-size: 0.82rem; color: var(--muted); }
.alpha-meta audio { width: 100%; margin-top: 0.5rem; height: 32px; }

.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.note {
  background: var(--bg2);
  border-left: 3px solid var(--accent2);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #071018;
  border-radius: 50%;
  text-align: center;
  line-height: 1.75rem;
  font-weight: 700;
  font-size: 0.85rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
}
table.data th { background: var(--bg2); color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@font-face {
  font-family: "ABAT";
  src: url("../fonts/ABAT-Regular.ttf") format("truetype");
  font-display: swap;
}
