:root {
    --bg-main: #050f19;       /* Глибокий темний мілітарі-синій */
    --bg-card: #091929;       /* Світліший синій для карток */
    --accent-orange: #f28f00; /* Вогняний помаранчевий контур шеврона */
    --text-light: #e2e8f0;    /* Світлий текст */
    --text-muted: #94a3b8;    /* Приглушений текст */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-dark {
    background-color: #030a12;
}

.text-center {
    text-align: center;
}

/* Навігація */
.navbar {
    background-color: rgba(5, 15, 25, 0.95);
    border-bottom: 2px solid var(--accent-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(5, 15, 25, 0.85), rgba(5, 15, 25, 0.97)), url('logo.jpg') no-repeat center center;
    background-size: contain;
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(242, 143, 0, 0.15);
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 30px auto;
}

/* Кнопки */
.btn-main {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #000000;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-main:hover {
    transform: translateY(-2px);
    background-color: #ff9d0a;
}

.btn-card {
    display: inline-block;
    margin-top: auto;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-card:hover {
    color: #ff9d0a;
}

/* Заголовки секцій */
.section-title {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-block p {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 950px;
}

/* Сітки (Grids) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Картки */
.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(242, 143, 0, 0.08);
    padding: 35px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: rgba(242, 143, 0, 0.4);
    transform: translateY(-3px);
}

.card h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.direction-num {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(242, 143, 0, 0.2);
    margin-bottom: 10px;
}

/* Картки курсів */
.course-card {
    position: relative;
    padding-top: 60px;
}

.badge {
    position: absolute;
    top: 20px;
    left: 35px;
    background-color: rgba(242, 143, 0, 0.1);
    color: var(--accent-orange);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid rgba(242, 143, 0, 0.3);
    text-transform: uppercase;
}

.philosophy-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #ffffff;
    line-height: 1.7;
}

/* Сторінки деталей курсу */
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-muted);
    text-decoration: none;
}
.back-link:hover {
    color: var(--accent-orange);
}
.course-meta {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-orange);
}
.course-meta p {
    margin-bottom: 5px;
}
.course-meta strong {
    color: var(--accent-orange);
}
.content-block {
    margin-bottom: 40px;
}
.content-block h3 {
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(242, 143, 0, 0.1);
    padding-bottom: 5px;
}
.content-block ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
.content-block li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* Футер */
.footer {
    background-color: #02070d;
    text-align: center;
    padding: 35px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(242, 143, 0, 0.1);
}

/* Адаптивність */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links a {
        margin: 0 10px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Блок партнерів */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: start;
    text-align: center;
    margin-top: 40px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partner-item img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%) brightness(90%);
    transition: filter 0.3s, transform 0.3s;
}

.partner-item:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.05);
}

.partner-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 200px;
}

/* Нові стилі для зображень на сторінках */
.course-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(242, 143, 0, 0.1);
}

.page-main-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 35px;
    border: 1px solid rgba(242, 143, 0, 0.2);
}

.inline-content-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 6px;
    margin: 25px 0;
    border: 1px solid rgba(242, 143, 0, 0.15);
}