css

:root {
    --bg-blue: #6078ad;
    --accent-blue: #0288d1;
    --dark-blue: #01579b;
    --white: #ffffff;
    --text-black: #222;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f7f9; /* Светлый фон */
    color: var(--text-black);
}

header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo strong {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-blue);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a:focus {
    color: var(--accent-blue);
}

/* Hero Screen */
.hero {
    height: 50vh;
    /* Используем фото из вашего основного сайта, если оно доступно. Иначе placeholder */
    background: linear-gradient(rgba(1, 87, 155, 0.7), rgba(1, 87, 155, 0.7)), 
                url('foto/bus.jpg') no-repeat center center/cover; /* Placeholder для фото */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slogan {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block; /* Облегает текст */
}

/* News Section */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: var(--dark-blue);
    font-size: 2rem;
    border-bottom: 3px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.news-grid {
    display: grid; /* Используем Grid для более гибкой сетки */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Минимум 300px, но может растягиваться */
    gap: 30px;
}

.news-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.news-card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.news-card p {
    line-height: 1.6;
    color: #444;
    font-size: 1rem;
}

.news-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    object-fit: cover; /* Чтобы фото заполняло рамку, но не искажалось */
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--dark-blue);
    color: white;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (480px и меньше) --- */
@media (max-width: 480px) {
    header { 
        padding: 10px 3%; /* Немного уменьшим padding */
        flex-direction: column; 
        text-align: center; 
    }
    nav { 
        margin-top: 8px; 
        flex-wrap: wrap; /* Позволим ссылкам переноситься */
        justify-content: center; /* Центрируем ссылки */
        gap: 5px; /* Небольшой зазор между ссылками */
    }
    nav a { 
        margin: 3px 6px; 
        font-size: 0.8rem; /* Меньше шрифт */
        white-space: nowrap; /* Не переносить текст ссылки */
    }
    
    .hero {
        height: 50vh; /* Чуть меньше высота hero-секции */
    }
    .hero-content h1 { 
        font-size: 1.8rem; /* Уменьшаем заголовок */
    }
    .slogan { 
        font-size: 1rem; /* Уменьшаем слоган */
        padding: 8px 15px;
    }
    
    .container {
        margin: 30px auto; /* Меньше отступ сверху/снизу */
        padding: 0 15px; /* Меньше горизонтальный padding */
    }

    .section-title { 
        font-size: 1.5rem; /* Уменьшаем заголовок секции */
        margin-bottom: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr; /* Все карточки новостей в одну колонку */
        gap: 20px; /* Уменьшаем зазор между карточками */
    }

    .news-card {
        padding: 20px; /* Уменьшаем padding карточки */
        margin: 0 10px; /* Добавим немного отступов по бокам, если нужно */
        word-wrap: break-word; /* Автоматический перенос длинных слов */
    }

    .news-card h3 {
        font-size: 1.1rem; /* Меньше шрифт заголовка новости */
    }

    .news-card p {
        font-size: 0.9rem; /* Меньше шрифт текста новости */
        line-height: 1.4;
    }

    footer {
        padding: 25px;
        font-size: 0.85rem;
    }
}