*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #111;
    color: #ddd;
    line-height: 1.6;
}

/* ===== ССЫЛКИ ===== */
a {
    color: #ffd700;
    text-decoration: none;
}

a:hover {
    color: #ffa500;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    gap: 24px;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;

    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
}

.sidebar details {
    margin-bottom: 8px;
}

.sidebar summary {
    cursor: pointer;
    font-weight: 600;
    color: #ffd700;
    list-style: none;
}

.sidebar summary::-webkit-details-marker {
    display: none;
}

.sidebar details[open] summary {
    color: #ffa500;
}

.sidebar a {
    display: block;
    padding: 4px 8px;
    margin-left: 10px;
    font-size: 14px;
    border-radius: 4px;
}

.sidebar a:hover {
    background-color: #333;
}

/* ===== КНОПКА "НА ГЛАВНУЮ" ===== */
.home-button {
    display: block;
    margin-bottom: 15px;
    padding: 8px 12px;

    font-size: 14px;
    font-weight: 600;
    text-align: center;

    color: #111;
    background-color: #ffd700;
    border-radius: 6px;
}

.home-button:hover {
    background-color: #ffa500;
    color: #111;
}

/* Кнопка "Дорожная карта" - выделенная */
.roadmap-button {
    display: block;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.15), rgba(64, 224, 208, 0.05));
    color: #40e0d0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(64, 224, 208, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roadmap-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.2), transparent);
    transition: left 0.5s ease;
}

.roadmap-button:hover::before {
    left: 100%;
}

.roadmap-button:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.25), rgba(64, 224, 208, 0.1));
    border-color: rgba(64, 224, 208, 0.7);
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.2);
    color: #6ef0e0;
}

/* Разделитель после кнопки дорожной карты */
.roadmap-button::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.3), transparent);
}

/* ===== КОНТЕНТ ===== */
#content {
    max-width: 100%;
    height: auto;
    display: block;
    flex: 1;
    min-width: 0;
}

/* ===== ЗАГОЛОВКИ ===== */
h1 {
    font-size: 32px;
    color: #1ad6aa;
    text-align: center;
    margin: 20px 0 30px;
}

h2 {
    font-size: 24px;
    color: #ffd700;
    margin: 25px 0 15px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

h3 {
    font-size: 20px;
    color: #ea5013;
    margin-top: 20px;
}

h4 {
    font-size: 16px;
    color: #64cd81;
    margin-top: 20px;
}

/* ===== КАРТОЧКИ ===== */
.update-card {
    background-color: #1a1a1a;
    border-left: 4px solid #ffd700;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;

    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.update-card:hover {
    overflow-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.15);
    border-left-color: #ffa500;
}

/* ===== СПИСКИ ===== */
ol {
    margin: 10px 0 10px 20px;
    padding: 0;
}

ol li {
    margin: 6px 0;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1001;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .lang-switch {
        top: 15px;
        right: 15px;
    }
    .lang-btn {
        padding: 3px 10px;
        font-size: 10px;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-left: 1px solid #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #2b2b2b;
    border-radius: 6px;
    border: 2px solid #0f0f0f;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #2b2b2b #0f0f0f;
}