:root {
  --bg: #000;
  --card: #171717;
  --border: #292929;
  --text: #fff;
  --muted: #aaa;
  --accent: #229ed9;
  --accent-hover: #168ac0;
  --glow: rgba(34, 158, 217, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

img { max-width: 100%; height: auto; }

header {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}

h1 {
  margin: 0 0 25px;
  font-size: 28px;
  color: var(--text);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Кнопки меню ===== */
.menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 10px 18px var(--glow));
}

.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn:active {
  transform: scale(0.96);
  filter: none;
  transition-duration: 0.08s;
}

footer {
  padding: 10px;
  color: #777;
  text-align: center;
  font-size: 14px;
}

footer p { margin: 0; }

/* ===== Анимации ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

header h1 { animation: fadeUp 0.7s ease-out backwards; }

/* backwards (а не both), чтобы после появления анимация не перебивала hover */
.btn { animation: fadeUp 0.7s ease-out backwards; }
.btn:nth-child(1) { animation-delay: 0.15s; }
.btn:nth-child(2) { animation-delay: 0.30s; }
.btn:nth-child(3) { animation-delay: 0.45s; }

/* ===== Компьютер ===== */
@media (min-width: 900px) {
  body { padding: 40px 32px 20px; font-size: 18px; }

  header { padding-top: 60px; }

  h1 { font-size: 48px; margin-bottom: 50px; }

  .menu {
    flex-direction: row;
    max-width: 1000px;
    gap: 24px;
  }

  .btn {
    flex: 1;
    min-height: 140px;
    border-radius: 20px;
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  body { padding: 12px; }
  h1 { font-size: 25px; }
  .btn { min-height: 72px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  header h1, .btn { animation: none; transition: none; }
  .btn:hover, .btn:focus-visible { transform: none; }
}

/* Логотип вместо текста в заголовке */
.logo { height: 56px; width: auto; max-width: 100%; vertical-align: middle; }
@media (min-width: 900px) { .logo { height: 72px; } }
