/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #111827;
    color: #f3f4f6;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    font-size: 18px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #6b7280;
    font-size: 0.85rem;
}

/* ==========================================================================
   2. ТИПОГРАФИКА
   ========================================================================== */
h1 {
    font-size: 1.8rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 8px;
}

h3 {
    font-size: 1.25rem;
    color: #f3f4f6;
    margin-top: 25px;
    margin-bottom: 10px;
}

h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.1rem;
}

p {
    margin-top: 0;
    margin-bottom: 16px;
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
    margin-top: -10px;
    margin-bottom: 20px;
}

.hint-text {
    font-size: 0.9rem;
    color: #60a5fa;
    margin-bottom: 15px;
}

a {
    color: #60a5fa;
}

.nav-back {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #60a5fa;
    font-weight: 600;
}

.nav-back:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. КАРТОЧКИ И СПИСКИ
   ========================================================================== */
.card {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #374151;
}

ul {
    padding-left: 20px;
    margin: 10px 0 20px 0;
    text-align: left;
}

li {
    margin-bottom: 8px;
}

/* ==========================================================================
   4. ГЛАВНАЯ КНОПКА (Перейти в бота) — ОСНОВНОЙ АКЦЕНТ
   ========================================================================== */
.btn {
    display: block;
    width: 100%;
    background: #2563eb;
    color: #ffffff !important;
    text-align: center;
    padding: 20px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.35rem; /* Крупный и заметный размер */
    margin: 24px 0;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35); /* Красивое синее свечение */
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #1d4ed8;
}

.btn:active {
    transform: scale(0.98);
}

/* Кнопки импорта на 2-й странице (setup.html) */
.btn-link {
    display: block;
    width: 100%;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 12px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-link:last-child {
    margin-bottom: 0;
}

.btn-link:active {
    transform: scale(0.98);
}

.btn-outline {
    background-color: #059669;
}
.btn-outline:hover {
    background-color: #047857;
}

.btn-happ {
    background-color: #7c3aed;
}
.btn-happ:hover {
    background-color: #6d28d9;
}

/* ==========================================================================
   5. ВТОРАЯ КНОПКА НА ГЛАВНОЙ (Запасная)
   ========================================================================== */
.alt-access-container {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #374151;
    text-align: center;
}

.alt-access-title {
    color: #9ca3af;
    font-size: 1.05rem;
    margin-bottom: 14px;
    font-weight: 500;
}

a.btn-alt-key {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #1f2937;
    color: #f3f4f6 !important;
    border: 1.5px solid #38bdf8; /* Голубая контурная рамка */
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
    text-decoration: none !important;
    font-size: 1.15rem; /* Чуть меньше главной кнопки, но отлично читается */
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

a.btn-alt-key:hover {
    background-color: #374151;
    border-color: #60a5fa;
    color: #ffffff !important;
}

a.btn-alt-key:active {
    transform: scale(0.98);
}

/* ==========================================================================
   6. АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ
   ========================================================================== */
@media (max-width: 480px) {
    .btn {
        font-size: 1.4rem;
        padding: 20px;
    }
    
    .alt-access-title {
        font-size: 1.1rem;
    }
    
    a.btn-alt-key {
        font-size: 1.2rem;
        padding: 18px 16px;
    }
}
/* Контейнер блока */
.vpn-container {
  background-color: #121927; /* Темный фон блока */
  padding: 20px;
  border-radius: 16px;
  max-width: 400px;
  font-family: sans-serif;
}

.vpn-block {
  margin-bottom: 20px;
}

.vpn-block:last-child {
  margin-bottom: 0;
}

/* Заголовки над кнопками */
.vpn-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Стиль синей кнопки */
.vpn-button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background-color: #2b72d2; /* Основной синий цвет */
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

/* Эффект при наведении мышкой */
.vpn-button:hover {
  background-color: #235fb3;
}