body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1b1e22;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin: 30px 0;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f3a223;
}

header p {
    color: #8a94a6;
    font-size: 1rem;
}

/* Сетка карточек на главной */
.maps-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    padding-bottom: 50px;
}

.map-card {
    background-color: #24282e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(243, 162, 35, 0.25);
}

.map-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

/* Картинки всех карт */
.mirage { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_mirage.jpg'); }
.inferno { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_inferno.jpg'); }
.nuke { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_nuke.jpg'); }
.dust2 { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_dust2.jpg'); }
.ancient { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_ancient.jpg'); }
.anubis { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_anubis.jpg'); }
.vertigo { background-image: url('https://raw.githubusercontent.com/afonsocrg/cs2-maps-assets/main/images/de_vertigo.jpg'); }

.map-info {
    padding: 15px 20px;
}

.map-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.status.active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Стили для отдельных страниц карт */
.page-container {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
}

.back-btn {
    display: inline-block;
    color: #f3a223;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
    transition: 0.2s;
}

.back-btn:hover {
    color: #fff;
}

.map-header {
    height: 220px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 30px;
}

.map-header-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.map-header-overlay h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

/* Вкладки гранат */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #2e343d;
    padding-bottom: 10px;
}

.tab-btn {
    background-color: #24282e;
    border: none;
    color: #8a94a6;
    font-size: 1.1rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.tab-btn:hover {
    color: #fff;
    background-color: #2e343d;
}

.tab-btn.active {
    color: #fff;
    background-color: #f3a223;
    font-weight: bold;
}

/* Переключение видимости вкладок */
.tab-content {
    display: none;
    background-color: #24282e;
    padding: 25px;
    border-radius: 12px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-top: 0;
    color: #f3a223;
    font-size: 1.5rem;
    border-bottom: 1px solid #3a3f47;
    padding-bottom: 10px;
}

.grenade-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.grenade-list li {
    padding: 12px 15px;
    background-color: #1b1e22;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #f3a223;
    font-size: 1.05rem;
    color: #e1e4e8;
}
/* Выпадающий список раскидок */
.grenade-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.grenade-item {
    background-color: #1b1e22;
    border-radius: 8px;
    border-left: 4px solid #f3a223;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.grenade-item[open] {
    background-color: #17191c;
}

/* Шапка с названием гранаты (кликабельная) */
.grenade-title {
    padding: 14px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: #e1e4e8;
}

.grenade-title:hover {
    color: #f3a223;
}

/* Бейджи типа броска (Jumpthrow / ЛКМ) */
.badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.jumpthrow {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge.static {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* Блок с Медиа (Гифка + описание) */
.grenade-media {
    padding: 0 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grenade-media img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #2e343d;
}

.grenade-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #a0aab8;
    line-height: 1.4;
}