/* Основной стиль страницы */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background: #f9f9f9;
}

/* Шапка */
header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.top-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 5px 0;
}
.top-bar a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
}
.top-bar a:hover, .top-bar a[aria-current="true"] {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
nav a:hover, nav a[aria-current="page"] {
    color: #ffd700;
}

/* Герой */
.hero {
    background: linear-gradient(135deg, #007bff, #00c4cc);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.hero h1 {
    font-size: 2.5em;
    margin: 0 0 10px;
}
.hero p {
    font-size: 1.2em;
    margin: 0 0 20px;
}
.cta-button {
    background: #ffd700;
    color: #0056b3;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}
.cta-button:hover {
    background: #ffca2c;
    transform: scale(1.05);
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
section {
    margin-bottom: 40px;
}
section h2 {
    color: #0056b3;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* Сетка функций */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.feature:hover {
    transform: translateY(-5px);
}
.feature h3 {
    margin-top: 0;
    color: #007bff;
}
.feature p {
    color: #666;
}

/* Сетка статей */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}
.post-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}
.post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.post-card h3 a {
    color: #007bff;
    text-decoration: none;
}
.post-card h3 a:hover {
    color: #0056b3;
}
.post-card time {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-bottom: 10px;
}
.post-card p {
    color: #333;
    margin: 0 0 10px;
}

/* Хлебные крошки */
.breadcrumbs {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    gap: 10px;
    color: #666;
}
.breadcrumbs li::after {
    content: ">";
    margin-left: 10px;
}
.breadcrumbs li:last-child::after {
    content: "";
}
.breadcrumbs li[aria-current="page"] {
    font-weight: bold;
    color: #0056b3;
}
.breadcrumbs a {
    color: #666;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #007bff;
}

/* Форма контакта */
.contact-form {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}
.contact-form button {
    background: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background: #0056b3;
}

/* Футер */
footer {
    background: #0056b3;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}
footer a {
    color: #ffd700;
    text-decoration: none;
}
footer a:hover {
    color: #ffca2c;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    nav a {
        margin: 10px 0;
    }
    .hero h1 {
        font-size: 2em;
    }
    .features-grid, .post-grid {
        grid-template-columns: 1fr;
    }
}