/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Шапка */
header {
    background-color: #2c3e50;
    padding: 20px 0;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.container2{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.container2 img{
    height: 500px;
    border-radius: 15px;
}

/* Логотип */
.logo img {
    height: 60px;
}

/* Навигационное меню */
.nav-menu {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f39c12;
}

/* Контакты */
.header-contacts a {
    color: #ecf0f1; /* Изменен цвет на цвет кнопок */
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

.header-contacts a:hover {
    color: #f39c12  ; /* Изменен цвет при наведении на цвет кнопок */
}



/* Мобильное меню: скрываем изначально */
.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: #ecf0f1;
    cursor: pointer;
}

#nav-menu {
    display: flex;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #2c3e50;
    }

    #nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .header-contacts {
        display: none;
    }
}

/* Фиксированная шапка при прокрутке */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.sticky + main {
    padding-top: 80px; /* Отступ для основного контента, чтобы не перекрывался шапкой */
}
/* Картинка после шапки */
.header-image {
    max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  object-position: top center;
}
.header-image img {
    max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  object-position: top center;
}
.main-photo img{
    max-inline-size: 100%;
    block-size: auto;
    aspect-ratio: 2/1;
    object-fit: cover;
    object-position: top center;
}

/* Основное содержимое страницы */
section {
    padding: 60px 0;
    text-align: center;
    background-color: #f4f4f4;
}

h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d35400;
}

.program-list,
.news-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.program,
.news-item {
    background-color: #ecf0f1;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    width: 45%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Контактная информация */
#contacts ul {
    list-style: none;
    padding: 0;
}

#contacts li {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

#contacts a {
    color: #fff; /* Цвет изменен на белый */
    text-decoration: none;
}

#contacts a:hover {
    text-decoration: underline;
}

#contacts li a {
    color: #f39c12; /* Цвет для info@bpk.kz */
}

#contacts li a:hover {
    color: #d35400; /* Цвет при наведении для info@bpk.kz */
}
