/* ================================================================
   ICS Security Lab — стилі
   ================================================================ */

/* --- Базові налаштування --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Шапка --- */
header {
    background: linear-gradient(135deg, #002147 0%, #004080 100%);
    color: white;
    border-bottom: 4px solid #00b4d8;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logos {
    display: flex;
    gap: 25px;
    align-items: center;
}

.logos img {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.lab-title-small {
    color: #00b4d8;
    font-size: 0.85em;
    font-weight: 800;
    text-align: right;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Навігація --- */
nav {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-content {
    padding: 12px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: #00b4d8;
}

/* --- Карусель --- */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 33, 71, 0.7);
    color: white;
    border: none;
    padding: 15px 12px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: #00b4d8;
}

.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* --- Основний контент --- */
main {
    padding: 20px 0;
}

h1, h2, h3 {
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    border-left: 5px solid #00b4d8;
    padding-left: 15px;
}

section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

/* --- Картки --- */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Статистика --- */
.stats-container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.stats-number {
    flex: 0 0 auto;
    text-align: center;
    min-width: 120px;
}

.stats-number span {
    font-size: 3em;
    font-weight: 800;
    color: #004080;
    display: block;
    line-height: 1;
}

.stats-label {
    text-transform: uppercase;
    font-size: 0.75em;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
}

.stats-text {
    flex: 1;
    min-width: 280px;
    border-left: 1px solid #e2e8f0;
    padding-left: 25px;
}

/* --- Події --- */
.event-item {
    border-left: 6px solid #004080;
}

.event-date {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* --- Посилання та кнопки --- */
.details-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.03);
}

.form-box {
    text-align: center;
    margin-top: 30px;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

/* --- Перемикач мови --- */
.language-switcher {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: #00b4d8;
    border-color: #00b4d8;
    color: #ffffff;
}

/* --- Адаптив --- */
@media (max-width: 800px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .lab-title-small {
        text-align: center;
    }

    nav ul {
        gap: 15px;
    }

    .carousel-slide img {
        height: 250px;
    }

    .stats-text {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 15px;
    }
}
