/* ИгроЛенд — общий стиль сайта */
:root {
  --bg: #0f1220;
  --bg-alt: #171b2e;
  --panel: #1c2138;
  --panel-2: #232a47;
  --text: #e7e9f5;
  --text-dim: #9aa0c0;
  --accent: #7c6cff;
  --accent-2: #ff6ca0;
  --accent-3: #40e0b0;
  --border: #2a3055;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #23294c 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 32, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
}

.logo .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow);
}

nav.main-nav {
  display: flex;
  gap: 6px;
}

nav.main-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--panel-2);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 14px;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 20px 0 60px;
}

.game-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #3a4270;
  box-shadow: var(--shadow);
}

.game-card .icon {
  font-size: 34px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--panel-2);
}

.game-card h3 { margin: 4px 0 0; font-size: 19px; }
.game-card p { margin: 0; color: var(--text-dim); font-size: 14px; flex-grow: 1; }

.game-card .play {
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--panel-2);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
}

.game-card:hover .play {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

/* Section headers */
.section-title {
  font-size: 22px;
  margin: 10px 0 4px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 18px;
}

/* Generic content pages */
.content {
  padding: 48px 0 70px;
}

.content h1 { font-size: 30px; margin-bottom: 6px; }
.content .lead { color: var(--text-dim); margin-bottom: 30px; }
.content h2 { font-size: 20px; margin: 34px 0 10px; }
.content p { line-height: 1.7; color: #cfd2e8; }
.content ul { line-height: 1.8; color: #cfd2e8; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.team-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.team-card .avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.team-card h4 { margin: 0 0 2px; font-size: 15px; }
.team-card span { color: var(--text-dim); font-size: 13px; }

/* Contact form */
form.contact-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

form.contact-form label {
  font-size: 13px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

form.contact-form textarea { min-height: 110px; resize: vertical; }

form.contact-form button {
  justify-self: start;
  padding: 11px 22px;
  border-radius: 9px;
  border: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 40px;
  color: var(--text-dim);
  font-size: 13px;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

footer.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site-footer .links a:hover { color: var(--text); }

/* Game page shell */
.game-shell {
  padding: 36px 0 60px;
}

.game-shell .back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 14px;
}

.game-shell .back:hover { color: var(--text); }

.game-shell h1 {
  font-size: 26px;
  margin: 0 0 4px;
}

.game-shell .sub {
  color: var(--text-dim);
  margin-bottom: 22px;
  font-size: 14px;
}

.game-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.game-hud {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.game-hud b { color: var(--text); font-size: 16px; }

.game-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover { border-color: #3a4270; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.hint {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  max-width: 420px;
}

@media (max-width: 640px) {
  nav.main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
