/* =========================================
   Mers-Game — Базовые стили (Тёмная тема, голубой акцент)
   ========================================= */

:root {
  --bg: #0a0e17;
  --bg-2: #121826;
  --card: #161e2e;
  --border: #2a3441;
  --text: #e0e0e0;
  --muted: #8892a0;
  --accent: #00c8ff;
  --accent-hover: #33d6ff;
  --success: #00ff88;
  --error: #ff4d4d;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Шапка ===== */
.header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  color: var(--accent);
  font-size: 24px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

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

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
}

/* ===== Карточки ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ===== Формы ===== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--accent);
}

/* ===== Футер ===== */
.footer {
  background: #05080f;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 60px;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Утилиты ===== */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* =========================================
   Тарифы — горизонтальная сетка
   ========================================= */
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tariff-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}

.tariff-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tariff-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 16px;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.tariff-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.tariff-features li:last-child {
    border-bottom: none;
}

/* Адаптив: на мобильных — в столбик */
@media (max-width: 768px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Тарифы — горизонтальная сетка
   ========================================= */
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tariff-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}

.tariff-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tariff-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 16px;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.tariff-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.tariff-features li:last-child {
    border-bottom: none;
}

/* Адаптив: на мобильных — в столбик */
@media (max-width: 768px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
}
