:root {
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --primary: #e67e22;
    --primary-hover: #d35400;
    --apple-maps: #007af5;
    --apple-maps-hover: #0063c6;
    --text: #2c3e50;
    --muted: #8a99a6;
    --success: #2ecc71;
    --border-radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: 40px;
}

/* ПРОКАЧАННАЯ ШАПКА */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.25);
}

/* Декоративные светящиеся круги на фоне для объема */
header::before, header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}
header::before {
    width: 200px; height: 200px;
    top: -50px; left: -50px;
}
header::after {
    width: 250px; height: 250px;
    bottom: -80px; right: -60px;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

header p {
    color: #e0e6ed;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* СЕТКА КАРТОЧЕК */
.city-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.city-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(234, 237, 241, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}

/* Приятный отклик на нажатие в телефоне */
.city-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    background-color: #fafbfc;
}

.city-info {
    flex: 1;
}

.city-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.city-info p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.35;
}

/* ФИКС ТЕКСТА И ВЫРАВНИВАНИЯ БЭЙДЖА */
.city-badge {
    background-color: #eef2f7;
    color: #4a5568;
    width: 64px;
    height: 64px;
    border-radius: 50%; /* Делаем его идеально круглым */
    display: flex;
    flex-direction: column; /* Текст в две строки */
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    flex-shrink: 0; /* Не даем ему сжиматься */
}

/* Стилизация цифры внутри бэйджа для акцента */
.city-badge span {
    font-size: 1.15rem;
    display: block;
    color: var(--text);
}

/* ОСТАЛЬНЫЕ СТИЛИ СТРАНИЦЫ QUEST (ОСТАВЛЯЕМ БЕЗ ИЗМЕНЕНИЙ) */
.teaser-card {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(230,126,34,0.2);
}
.teaser-card.blue {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 4px 12px rgba(41,128,185,0.2);
}
.teaser-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eaeded;
}
.step-card.completed { border-left: 5px solid var(--success); }
.step-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; width: 100%; }
.step-title { font-size: 1.15rem; font-weight: 700; color: var(--text); flex: 1; }
.step-number { background-color: #edf2f7; color: var(--text); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; white-space: nowrap; flex-shrink: 0; }
.step-card.completed .step-number { background-color: var(--success); color: white; }
.step-description { font-size: 0.95rem; color: var(--muted); margin-bottom: 15px; }
audio { width: 100%; margin-bottom: 15px; border-radius: 8px; }
.task-box { background-color: #f8f9fa; border-radius: 10px; padding: 12px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; cursor: pointer; border: 1px dashed #cbd5e0; }
.task-box input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--success); }
.task-text { font-size: 0.9rem; font-weight: 500; }
.nav-group { display: flex; gap: 10px; width: 100%; }
.nav-btn { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; color: white; text-decoration: none; padding: 10px 6px; border-radius: 10px; font-weight: bold; font-size: 0.85rem; text-align: center; }
.nav-btn.google { background-color: var(--primary); }
.nav-btn.apple { background-color: var(--apple-maps); }
.step-card.completed .task-text { text-decoration: line-through; color: var(--muted); }