
/* Общие стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
}

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

/* Шапка сайта */
.header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

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

.logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007bff;
}

/* Главный раздел (Hero Section) */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/097b5103-261d-4d5a-a2d9-bfc538f5b0ac.png') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.hero-section h1 {
    font-size: 60px;
    margin: 0;
    line-height: 1.2;
}

.hero-section p {
    font-size: 20px;
    margin-top: 20px;
}

.logo img {
    max-height: 50px;
    max-width: 150px;
    display: block;
}

.cta-button {
    display: inline-block;
    background-color: #2c5f2d;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1e451f;
}

/* Разделы с контентом */
.section {
    padding: 80px 0;
}

.insights-section {
    background-color: #fff;
}

h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 50px;
    color: #2c5f2d;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #e3f2fd;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    font-size: 24px;
    color: #007bff;
}

.card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s;
}

.card-link:hover {
    color: #0056b3;
}

/* Футер */
.footer {
    text-align: center;
    padding: 40px 0;
    background-color: #2c5f2d;
    color: #fff;
}

/* Раздел "О нас" */
.page-section {
    padding-top: 150px;
}

.about-us-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-us-text h2 {
    text-align: left;
    margin-bottom: 20px;
    color: #2c5f2d;
}

.about-us-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mission-vision h3 {
    font-size: 24px;
    color: #2c5f2d;
    margin-bottom: 10px;
}

.about-us-image-wrapper {
    text-align: center;
}

.about-us-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Медиа-запрос для адаптации на мобильных устройствах */
@media (max-width: 768px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-us-text h2 {
        text-align: center;
    }
}

/* Дополнительные секции "О нас" с чередованием */
.alternating-layout { background-color: #f9f9f9; }
.alternating-layout:nth-child(even) { background-color: #ffffff; }

.about-us-grid.reversed {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}
.about-us-grid.reversed > * { direction: ltr; }
.about-us-grid.reversed .about-us-text { text-align: right; }

.alternating-layout .about-us-text h3 { text-align: left; }
.alternating-layout .about-us-text ul { padding-left: 20px; }
.alternating-layout .about-us-text li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.cta-button.small {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
}

/* Медиа-запрос для адаптации реверсивного макета на мобильных устройствах */
@media (max-width: 768px) {
    .about-us-grid.reversed {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .about-us-grid.reversed .about-us-text {
        text-align: left;
    }
}

/* Секция контактов */
.contact-section {
    padding-top: 150px;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-details h2, .contact-form h3 {
    text-align: left;
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 30px;
}

.detail-item h3 {
    font-size: 20px;
    color: #2c5f2d;
    margin-bottom: 5px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form .cta-button {
    align-self: flex-start;
}

/* Секция с картой */
.map-section {
    padding: 0 0 80px 0;
    text-align: center;
}

.map-title {
    margin-bottom: 40px;
    color: #2c5f2d;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Секция блога */
.blog-section {
    padding-top: 150px;
    background-color: #f9f9f9;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.blog-post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.blog-post-card:hover {
    transform: translateY(-10px);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-content h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c5f2d;
}

.blog-post-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-post-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.read-more-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: #0056b3;
}
