* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b1528;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-size: 1.2rem;
}

/* Основний текст і списки */
.container p,
.container li {
    font-size: 18px;
    line-height: 1.6;
    /* для кращої читабельності */
}

/* Головний заголовок */
.main-title {
    font-size: 32px;
}

/* Заголовки розділів */
.section-title {
    font-size: 24px;
}

/* Кнопки та посилання */
.back-btn,
.more-link {
    font-size: 18px;
}

/* Кнопка Назад */
.back-btn {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 32px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:hover,
.back-btn:active {
    color: rgba(255, 255, 255, 0.95);
}

.back-btn svg {
    margin-right: 8px;
}

/* Заголовки */
.main-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #ffffff;
}

.subtitle {
    font-size: 16px;
    color: rgb(255, 255, 255);
    font-family: monospace;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(222, 242, 255, 0.9);
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

/* Текст та списки */
p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    text-align: justify;
}

ul {
    list-style: none;
    margin-bottom: 16px;
}

li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

/* Стильний маркер */
li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(180, 210, 240, 0.6);
    font-size: 18px;
    line-height: 1;
}

/* Посилання внизу */
.more-link {
    display: inline-block;
    margin-top: 24px;
    color: rgba(180, 210, 240, 0.8);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(180, 210, 240, 0.3);
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.more-link:hover,
.more-link:active {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.05);
}


/* Прев'ю зображення */
.image-lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 100%;
}

.image-lightbox summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.image-lightbox summary::-webkit-details-marker {
    display: none;
}

.image-lightbox summary img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.image-lightbox summary img:hover {
    /* opacity: 0.9; */
    transform: scale(1.02);
}

/* Модальне вікно при відкритті */
.image-lightbox[open] {
    position: relative;
}

.image-lightbox[open] summary {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Позиціонування точно по центру вікна */
    width: auto;
    height: auto;
    background: transparent;
    /* Без чорного фону */
    z-index: 9999;
    cursor: zoom-out;
}

/* Зображення у відкритому модальному вікні */
.image-lightbox[open] summary img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;

    /* Рамка та обводка */
    border: 3px solid #b4d2f0;
    /* Можна змінити колір під ваш дизайн */
    box-sizing: border-box;

    /* Глибока тінь замість чорного фону для виділення на сторінці */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.image-lightbox[open] summary::before {
    content: '';
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: transparent;
    /* Плівка залишається повністю прозорою */
    z-index: -1;
    /* Розміщується під самією картинкою */
}

/* Допоміжний контейнер більше не потрібен у HTML */
/* .lightbox-modal {
    display: contents;
} */