/* ASIDE */

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

aside {
    width: 20vw;
    min-width: 20vw;
    max-width: 20vw;
    height: 100%;
    background-color: #90bffc;
    background: linear-gradient(180deg, #0954b8 0%, #90bffc 100%);
    color: white;
    padding: 20px 15px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    margin: 0;
    border: none;
    float: none;
    display: block;
    /* Декоративные эффекты */
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* ===== ДОБАВЬТЕ ЭТО ПРАВИЛО ДЛЯ ЯРКОСТИ ТЕКСТА ===== */
.sidebar-header h3,
.nav-btn {
    /* Усиленная видимость текста */
    filter: brightness(1.2);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Заголовок боковой панели - шрифт Bad Script */
.sidebar-header h3 {
    font-family: "Bad Script", cursive !important;
    font-size: 2rem !important;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 8px rgba(0, 0, 0, 1) !important;
    font-weight: 700 !important;
    text-align: center;
    margin-bottom: 30px !important;
    padding: 10px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
    display: block;
}

.nav-btn {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow:
        -1.5px -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        1.5px 1.5px 0 #000,
        0 0 6px rgba(0, 0, 0, 0.9) !important;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 12px !important;
    height: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: 95% !important;
    max-width: 95% !important;
    font-family: "Comic Relief", "Comic Sans MS", "Comic Sans", cursive !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Эффект при наведении на кнопку */
.nav-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* Эффект при нажатии на кнопку */
.nav-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Контейнер для кнопок */
.sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 40px !important;
    transition: all 0.3s ease;
}

/* Ссылки-контейнеры для кнопок */
.sidebar-button {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    transition: all 0.3s ease;
}

*:not(aside):not(aside *) {
    margin-left: 6% !important;
    box-sizing: border-box;
    background-color: #d9fffe;
    transition: margin-left 0.3s ease;
}

/* Основные изменения - sidebar превращается в синюю полосу со стрелкой */
@media (max-width: 1201px) {
    aside {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        padding: 0 !important;
        overflow: hidden;
        cursor: pointer;
    }

    /* Скрываем ВСЁ содержимое в свернутом состоянии */
    .sidebar-header,
    .sidebar-nav,
    .sidebar-button,
    .nav-btn {
        display: none !important;
    }

    /* Показываем только стрелочку на синей полосе */
    aside::before {
        content: '❯';
        font-size: 24px;
        color: white;
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.3s ease;
        z-index: 1001;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }

    /* Меняем стрелку при открытии */
    aside.open::before,
    aside:hover::before {
        transform: translateX(-50%) rotate(180deg);
    }

    /* При открытии показываем всё содержимое */
    aside.open {
        width: 25vw !important;
        min-width: 25vw !important;
        max-width: 25vw !important;
        padding: 20px 15px !important;
        overflow-y: auto;
    }

    aside.open .sidebar-header,
    aside.open .sidebar-nav,
    aside.open .sidebar-button,
    aside.open .nav-btn {
        display: flex !important;
    }

    /* Адаптируем отступ для основного контента */
    *:not(aside):not(aside *) {
        margin-left: 50px !important;
    }

    aside.open ~ *:not(aside):not(aside *) {
        margin-left: 25vw !important;
    }

    /* Стили для открытого состояния */
    .sidebar-header h3 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }

    .nav-btn {
        font-size: 1rem !important;
        height: 50px !important;
        min-height: 50px !important;
    }
}

/* Hover эффект для раскрытия (опционально) */
@media (max-width: 1201px) {
    aside:hover {
        width: 25vw !important;
        min-width: 25vw !important;
        max-width: 25vw !important;
        padding: 20px 15px !important;
        overflow-y: auto;
    }

    aside:hover .sidebar-header,
    aside:hover .sidebar-nav,
    aside:hover .sidebar-button,
    aside:hover .nav-btn {
        display: flex !important;
    }

    aside:hover ~ *:not(aside):not(aside *) {
        margin-left: 25vw !important;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    aside {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }

    aside::before {
        font-size: 20px;
        top: 15px;
    }

    *:not(aside):not(aside *) {
        margin-left: 40px !important;
    }

    aside.open,
    aside:hover {
        width: 35vw !important;
        min-width: 35vw !important;
        max-width: 35vw !important;
    }

    aside.open ~ *:not(aside):not(aside *),
    aside:hover ~ *:not(aside):not(aside *) {
        margin-left: 35vw !important;
    }

    .sidebar-header h3 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }

    .nav-btn {
        height: 45px !important;
        min-height: 45px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    aside {
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
    }

    aside::before {
        font-size: 18px;
        top: 12px;
    }

    *:not(aside):not(aside *) {
        margin-left: 35px !important;
    }

    aside.open,
    aside:hover {
        width: 45vw !important;
        min-width: 45vw !important;
        max-width: 45vw !important;
    }

    aside.open ~ *:not(aside):not(aside *),
    aside:hover ~ *:not(aside):not(aside *) {
        margin-left: 45vw !important;
    }

    .sidebar-header h3 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
        padding: 5px !important;
    }

    .nav-btn {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    .sidebar-nav {
        gap: 12px !important;
        margin-top: 20px !important;
    }
}

/* Для очень широких экранов */
@media (min-width: 1600px) {
    aside {
        width: 18vw;
        min-width: 18vw;
        max-width: 18vw;
    }

    .sidebar-header h3 {
        font-size: 2.2rem !important;
    }

    .nav-btn {
        height: 65px !important;
        min-height: 65px !important;
        font-size: 1.2rem !important;
    }

    .sidebar-nav {
        gap: 25px !important;
    }
}




/* HISTORY */

/* Эффект при наведении */
ol li:hover {
    transform: translateX(5px) !important;
    border-left: 4px solid #073c8c !important;
}
ul {
    margin: 15px auto 25px 0% !important;
    width: calc(100% - 3%) !important;
    max-width: 97% !important;
    padding-left: 0 !important; /* Убираем padding слева у ul */
    font-family: "Comic Relief", system-ui !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    list-style: none !important;
}
/* Крупные гаечные ключи для списка */
ul li {
    margin-bottom: 20px !important;
    margin-left: 50px !important; /* Отступ слева для всего пункта */
    color: black !important;
    position: relative !important;
    margin-right: 50px !important; /* Добавляем padding слева для текста */
}
/* Гаечный ключ как маркер */
ul li::before {
    content: "🔧 " !important;
    position: absolute !important;
    left: -30px !important; /* Смещаем ключ левее от текста */
    top: 0 !important;
    font-size: 1.2rem !important;
    color: #0954b8 !important;
}








/* Стили для таблицы */

.table-container {
    margin: 30px auto 30px 1% !important;
    width: calc(100% - 6%) !important;
    max-width: 94% !important;
    overflow-x: auto !important; /* Добавляем горизонтальную прокрутку */
    -webkit-overflow-scrolling: touch !important; /* Плавная прокрутка на мобильных */
}

/* Сама таблица - теперь она может быть шире контейнера */
table {
    width: 100% !important; /* Занимает всю ширину или больше */
    min-width: 600px !important; /* Минимальная ширина для корректного отображения */
    margin: 0 auto !important; /* Центрируем таблицу */
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(9, 84, 184, 0.15) !important;
    font-family: "Comic Relief", system-ui !important;
    border: 2px solid #0954b8 !important;
}

/* Кастомная полоса прокрутки */
.table-container::-webkit-scrollbar {
    height: 10px !important;
    background-color: #f0f9ff !important;
    border-radius: 5px !important;
}

.table-container::-webkit-scrollbar-track {
    background-color: #f0f9ff !important;
    border-radius: 5px !important;
    margin: 2px !important;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #0954b8 !important;
    border-radius: 5px !important;
    border: 2px solid #f0f9ff !important;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background-color: #073c8c !important;
}

/* Для Firefox */
.table-container {
    scrollbar-width: thin !important;
    scrollbar-color: #0954b8 #f0f9ff !important;
}

/* Более темный цвет для границ */
:root {
    --border-color: #073c8c !important;
    --border-hover: #052a63 !important;
}

/* Заголовки таблицы - полностью синяя шапка */
thead {
    background: #0954b8 !important;
}

/* Скругление углов у первой и последней ячейки в шапке */
th:first-child {
    border-top-left-radius: 10px !important;
}

th:last-child {
    border-top-right-radius: 10px !important;
}

th {
    background: #0954b8 !important;
    color: white !important;
    padding: 18px 15px !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-shadow:
        -1px -1px 0 #0954b8,
        1px -1px 0 #0954b8,
        -1px 1px 0 #0954b8,
        1px 1px 0 #0954b8 !important;
    border-right: 1px solid var(--border-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
    position: relative !important;
    font-family: "Comic Relief", system-ui !important;
    white-space: nowrap !important; /* Заголовки не переносятся */
}

/* Убираем правую границу у последней ячейки в шапке */
th:last-child {
    border-right: none !important;
}

/* Ячейки таблицы с темно-синими границами */
td {
    padding: 16px 15px !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
    color: #1e3a8a !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    font-family: "Comic Relief", system-ui !important;
    font-weight: 400 !important;
    white-space: nowrap !important; /* Содержимое ячеек не переносится */
}

/* Убираем верхнюю границу у первой строки ячеек (после шапки) */
tbody tr:first-child td {
    border-top: none !important;
}

/* Убираем правую границу у последней ячейки в строке */
td:last-child {
    border-right: none !important;
}

/* Чередование строк для лучшей читаемости */
tr:nth-child(even) {
    background-color: #f0f9ff !important;
}

tr:nth-child(odd) {
    background-color: #ffffff !important;
}

/* Эффект при наведении на строку - темные границы остаются */
tr:hover {
    background-color: #e0f2fe !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(9, 84, 184, 0.1) !important;
}

/* Сохраняем все границы при наведении, делаем их еще темнее */
tr:hover td {
    border-top: 1px solid var(--border-hover) !important;
    border-bottom: 1px solid var(--border-hover) !important;
    border-right: 1px solid var(--border-hover) !important;
}

/* Для первой строки после шапки убираем верхнюю границу при наведении */
tbody tr:first-child:hover td {
    border-top: none !important;
}

/* Убираем правую границу у последней ячейки при наведении */
tr:hover td:last-child {
    border-right: none !important;
}

/* Последняя строка без нижней границы */
tr:last-child td {
    border-bottom: none !important;
}

/* Сохраняем отсутствие нижней границы при наведении на последнюю строку */
tr:last-child:hover td {
    border-bottom: none !important;
}

/* Для последней строки сохраняем верхнюю границу при наведении */
tr:last-child:hover td {
    border-top: 1px solid var(--border-hover) !important;
}

/* Скругляем нижние углы у последней строки */
tr:last-child td:first-child {
    border-bottom-left-radius: 10px !important;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px !important;
}

/* Заголовок для таблицы */
.table-container h2 {
    color: #0954b8 !important;
    margin-bottom: 20px !important;
    font-size: 1.8rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #90bffc !important;
    font-family: "Comic Relief", system-ui !important;
    font-weight: 700 !important;
}

/* Дополнительный стиль для первой ячейки в строке */
td:first-child {
    font-weight: 600 !important;
    font-family: "Comic Relief", system-ui !important;
}

th.param-name,
th.generation-header {
    font-size: 1.1rem !important;
    font-family: "Comic Relief", system-ui !important;
    font-weight: 700 !important;
}

ul {
    margin: 15px auto 25px 0% !important;
    width: calc(100% - 3%) !important;
    max-width: 97% !important;
    padding-left: 5px !important;
    font-family: "Comic Relief", system-ui !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    list-style: none !important;
}

/* Исключаем списки внутри таблиц */
table ul,
td ul,
th ul {
    margin: inherit !important;
    width: inherit !important;
    max-width: inherit !important;
    padding-left: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    list-style: inherit !important;
}

/* Основные стили для li */
ul li {
    margin-bottom: 20px !important;
    margin-left: 50px !important;
    color: black !important;
    position: relative !important;
    padding-left: 0 !important;
}

/* Исключаем li внутри списков в таблицах */
table ul li,
td ul li,
th ul li {
    margin-bottom: inherit !important;
    margin-left: inherit !important;
    color: inherit !important;
    position: inherit !important;
    padding-left: inherit !important;
}

/* Гаечный ключ для обычных списков */
ul li::before {
    content: "🔧 " !important;
    position: absolute !important;
    left: -40px !important;
    top: 0 !important;
    font-size: 1.2rem !important;
    color: #0954b8 !important;
    width: 30px !important;
    text-align: center !important;
}

/* Убираем гаечные ключи для списков в таблицах */
table ul li::before,
td ul li::before,
th ul li::before {
    content: "" !important;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .table-container {
        width: calc(100% - 4%) !important;
        max-width: 96% !important;
        margin-left: 2% !important;
    }

    table {
        min-width: 800px !important; /* На мобильных таблица будет прокручиваться */
    }

    .table-container h2 {
        font-size: 1.5rem !important;
    }
}




/* CSS классы для шрифтов */

.bad-script-regular {
  font-family: "Bad Script", cursive;
  font-weight: 400;
  font-style: normal;
}
.comic-relief-regular {
    font-family: "Comic Relief", system-ui !important;
    font-weight: 400 !important;
    font-style: normal !important;
}
.comic-relief-bold {
    font-family: "Comic Relief", system-ui !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

/* Дополнительные элементы */
h1, h2, h3, h4, h5, h6,
p, span, div:not(aside):not(aside *),
button, input, textarea, select {
    font-family: "Comic Relief", system-ui !important;
}
/* Для элементов вне aside применяем regular weight */
*:not(aside):not(aside *):not(th):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    font-weight: 400 !important;
}
/* Стили для страницы с интересными фактами */
#facts h1{
    color: black !important;
    margin: 30px auto 20px 7% !important;
    font-size: 2.2rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding-bottom: 10px !important;
    width: calc(100% - 6%) !important;
    max-width: 94% !important;
    font-family: "Comic Relief", system-ui !important;
    font-weight: 700 !important;
}





/* Стили для нумерованного списка */
ol {
    margin: 20px 100px 40px 0 !important;
    width: 100% !important;
    max-width: 90% !important;
    padding-left: 0 !important;
    font-family: "Comic Relief", system-ui !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    counter-reset: item !important;
    list-style-type: none !important;
}

/* Стили для пунктов списка - ТЕПЕРЬ С ЧЁРНЫМ ТЕКСТОМ */
ol li {
    margin-bottom: 20px !important;
    margin-left: 10px !important;
    padding: 15px 20px 15px 90px !important;
    color: #000000 !important; /* ← ЧЁРНЫЙ ТЕКСТ */
    position: relative !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
    border-left: 4px solid #0954b8 !important;
    box-shadow: 0 2px 8px rgba(9, 84, 184, 0.1) !important;
    transition: all 0.3s ease !important;
    counter-increment: item !important;
    width: calc(100% - 50px) !important;
}

/* Стили для номеров */
ol li::before {
    content: counter(item) !important;
    position: absolute !important;
    left: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #0954b8 !important;
    font-family: "Comic Relief", system-ui !important;
    background-color: #e0f2fe !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #0954b8 !important;
    box-shadow: 0 2px 4px rgba(9, 84, 184, 0.2) !important;
    z-index: 1 !important;
}

/* Делаем цифры белыми на синем фоне */
ol li::before {
    color: white !important;
    background-color: #0954b8 !important;
    border: 2px solid #0954b8 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Эффект при наведении */
ol li:hover {
    transform: translateX(5px) !important;
    background-color: rgba(224, 242, 254, 0.3) !important;
    box-shadow: 0 4px 12px rgba(9, 84, 184, 0.15) !important;
}

/* Эффект при наведении на номер */
ol li:hover::before {
    background-color: #073c8c !important;
    border-color: #073c8c !important;
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 3px 6px rgba(9, 84, 184, 0.3) !important;
}

/* Убираем стандартные маркеры */
ol li::marker {
    content: "" !important;
    display: none !important;
}

/* Медиа-запрос для мобильных */
@media (max-width: 768px) {
    ol {
        margin: 20px auto 30px 0 !important;
        width: 100% !important;
        font-size: 1rem !important;
    }

    ol li {
        margin-left: 20px !important;
        padding: 12px 15px 12px 60px !important;
        margin-bottom: 15px !important;
        width: calc(100% - 20px) !important;
    }

    ol li::before {
        left: 20px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
}

table td {
    color: #000000 !important; /* Чёрный цвет текста */
}
/* Для очень маленьких экранов */
@media (max-width: 480px) {
    ol li {
        margin-left: 10px !important;
        padding: 10px 12px 10px 55px !important;
        width: calc(100% - 10px) !important;
    }

    ol li::before {
        left: 15px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
    }
}









/* Картинка поколений */

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

body, html {
    margin: 0;
    padding: 0;
}

.image-interactive {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    outline: none !important;
    position: relative;
    display: block;
    max-width: 2000px;
    margin: 20px auto; /* ← auto по бокам центрирует */
    cursor: default;
}

/* Основное изображение - видно, но ПОД зонами для наведения */
.generations {
    max-width: 95%;
    min-width: 200px;
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 1; /* ПОД зонами */
}

/* Контейнер для невидимых зон - ПОВЕРХ изображения */
.hover-zones {
    position: absolute;
    top: 0;
    left: 30px;
    width: 95%;
    height: 100%;
    z-index: 2; /* Поверх изображения */
    /* Ключевое: делаем зоны НЕВИДИМЫМИ, но кликабельными */
    background: transparent ; /* Прозрачные! */
    margin-left: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Каждая зона - прозрачная, но реагирует на наведение */
.zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%;
    background: transparent !important;
    /* Для отладки можно добавить (потом убрать): */
    /* border: 1px dashed red; opacity: 0.3; */
    margin-left: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    outline: none !important;
}

/*
.zone:nth-child(1) { left: 0%; }
.zone:nth-child(2) { left: 20%; }
.zone:nth-child(3) { left: 40%; }
.zone:nth-child(4) { left: 60%; }
.zone:nth-child(5) { left: 80%; }
*/

/* Блок превью - появляется ПОВЕРХ всего */
.preview-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.3);
    /* ДОБАВЬТЕ: центрирование содержимого */
    display: flex;
    flex-direction: column;
    align-items: center; /* ← ВАЖНО: центрирует по горизонтали */
    justify-content: center; /* центрирует по вертикали (опционально) */
    padding-right: 25px;
}

/* Изображение внутри превью */
.preview-box img {
    width: 90%;
    max-width: 90%; /* Ограничиваем ширину */
    height: auto; /* Автоматическая высота */
    max-height: 300px; /* Максимальная высота */
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
    background: #f8f9fa;
    /* Убедитесь, что изображение не растягивается */
    align-self: center; /* Центрирует внутри flex-контейнера */
}

.preview-text {
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.preview-text h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.preview-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

/* ===== ПОКАЗ ПРЕВЬЮ ===== */
.zone:hover .preview-box {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}


/* Адаптивность */
@media (max-width: 768px) {
    .preview-box {
        width: 250px;
    }
    .preview-box img {
        height: 150px;
    }
}

.parent-container {
    font-size: 0; /* Убирает пробельные отступы */
}











/* ВИКТОРИНА */

.quiz-container {
    background-color: #80c9ff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    padding: 30px;
    margin: 30px auto !important; /* Центрируем контейнер */
}

/* Убираем глобальные отступы для всех элементов викторины */
.quiz-container * {
    margin-left: 0 !important;
}

.quiz-container h1 {
    color: #333;
    text-align: left !important; /* Изменяем с center на left */
    margin-bottom: 10px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0px;
    padding-left: 0 !important;
    background-color: #80c9ff;
}

/* Выравниваем все текстовые элементы по левому краю */
.question-container,
.question-number,
.question-text,
.answers-container,
.answer-btn,
.feedback,
.photo-description,
.results-container,
.results-title,
.score-text {
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.question-container {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 0 !important;
    background-color: #80c9ff;

}

.active {
    display: block;
}

.question-number {
    font-size: 1.2rem;
    color: #6a11cb;
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #80c9ff;
}

.question-text {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.4;
    background-color: #80c9ff;
}

.photo-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.photo-before {
    opacity: 1;
}

.photo-after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.photo-visible {
    opacity: 1;
}

.photo-hidden {
    opacity: 0;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: bold;
}

.answers-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 !important;
    background-color: #80c9ff;
}

@media (min-width: 600px) {
    .answers-container {
        grid-template-columns: 1fr 1fr;
    }
}

.answer-btn {
    padding: 18px 20px;
    background-color: #d9fffe;
    border: 2px solid black;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center !important; /* Принудительно по левому краю */
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    margin: 0 !important;
}

.answer-btn:hover {
    background-color: #72a5fc;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.answer-btn.selected {
    border-color: #6a11cb;
    background-color: rgba(106, 17, 203, 0.1);
    color: #6a11cb;
    font-weight: bold;
}

.answer-btn.correct {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
}

.answer-btn.incorrect {
    border-color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
    color: #C62828;
}

.next-btn {
    display: block;
    margin: 0 !important; /* Убираем auto для выравнивания по левому краю */
    margin-top: 20px !important;
    padding: 16px 40px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

.next-btn:active {
    transform: translateY(-1px);
}

.results-container {
    display: none;
    text-align: left !important; /* Изменяем с center на left */
    animation: fadeIn 0.8s ease;
    padding: 0 !important;
    background-color: #80c9ff;
}

.results-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: left !important;
    background-color: #80c9ff;
}

.score {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 30px 0;
    text-align: left !important;
}

.score-text {
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 40px;
    text-align: left !important;
    background-color: #80c9ff;
}

.restart-btn {
    padding: 18px 50px;
    background: linear-gradient(to right, #FF416C, #FF4B2B);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
    margin: 0 !important; /* Выравниваем по левому краю */
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.4);
}

.progress-bar {
    height: 8px;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #000; /* Добавляем границу */
    box-sizing: border-box; /* Учитываем границу в размерах */
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    width: 0%;
    transition: width 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feedback {
    text-align: left !important; /* Изменяем с center на left */
    font-size: 1.2rem;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.feedback.correct {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

.feedback.incorrect {
    background-color: rgba(244, 67, 54, 0.1);
    color: #C62828;
    border: 1px solid #F44336;
}

.photo-description {
    text-align: left !important; /* Изменяем с center на left */
    font-size: 1.1rem;
    color: #000;
    margin: 0px 0 20px 0;
    font-style: italic;
    min-height: 40px;
    padding: 0 !important;
    background-color: #80c9ff;
}










/* Модель 3д */

/* Стили для 3D модели */
.model-container {
    width: 95%;
    max-width: 1400px;
    margin: 30px 5%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.model-title {
    text-align: left;
    font-size: 24px;
    margin: 20px 0;
    color: #333;
}

#car-model {
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    margin-left: 0 !important;
}

.model-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    margin-left: 0 !important;
}

.model-btn {
    margin: 10px 0;
    padding: 10px 20px;
    background: #4a6ee0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.model-btn:hover {
    background: #3a5ed0;
}

.lastwrite {
    margin-bottom: 20px;
}

@media (max-width: 1201px) {
    *:not(aside):not(aside *) {
        margin-left: 2% !important;
    }
}


