:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --accent-color: #8bc34a;
    --light-color: #f1f8e9;
    --dark-color: #1b5e20;
    --text-color: #444;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fbf8;
    color: #333;
}

/* Шапка */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--accent-color);
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    color: #333;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.city-selector {
    display: flex;
    align-items: center;
}

.city-selector i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.city-btn {
    background: none;
    border: none;
    font-weight: 500;
    color: var(--dark-color);
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.city-btn:hover {
    color: var(--primary-color);
}

.city-dropdown {
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.city-item {
    padding: 8px 15px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.city-item:hover {
    background-color: var(--light-color);
}

.city-item.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 500;
}

.detected-city {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--light-color);
    border-bottom: 1px solid #ddd;
    font-weight: 500;
    color: var(--dark-color);
}

/* Общие стили секций */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Блок 2: Виды микрозелени */
.microgreens-section {
    padding: 80px 0;
    background-color: #fff;
}

.microgreen-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.microgreen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.microgreen-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.card-text {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.order-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: white;
}

.order-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    color: white;
}

.order-btn i {
    margin-left: 8px;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.show-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.hidden-card {
    display: none;
}

/* Блок 3: Карта с точками продаж */
.map-section {
    padding: 80px 0;
    background-color: #f9fbf8;
    position: relative;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 600px;
    position: relative;
}

#yandexMap {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 300px;
}

.map-overlay h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.map-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.map-search {
    flex-grow: 1;
    margin-right: 15px;
    position: relative;
}

.map-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    padding-left: 45px;
}

.map-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.add-company-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.add-company-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

.add-company-btn i {
    margin-right: 8px;
}

.point-counter {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.balloon-content {
    padding: 15px;
}

.balloon-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.balloon-address {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.balloon-contacts {
    margin-bottom: 10px;
}

.balloon-contacts div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.balloon-contacts i {
    color: var(--secondary-color);
    margin-right: 8px;
    width: 20px;
}

.balloon-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.balloon-btn:hover {
    background-color: var(--dark-color);
}

/* Блок 4: Блог */
.blog-section {
    padding: 80px 0;
    background-color: #fff;
}

.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

.card-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card-date i {
    margin-right: 8px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--dark-color);
    transform: translateX(5px);
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-btn-container {
    text-align: center;
    margin-top: 40px;
}

.blog-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.blog-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Блок 5: Футер */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo {
    font-weight: 700;
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo i {
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-logo:hover {
    color: var(--light-color);
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 10px;
    transition: transform 0.3s;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    min-width: 20px;
}

.disclaimer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

.footer-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.05;
    font-size: 12rem;
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
}



/* Адаптивность */
@media (max-width: 992px) {
    .navbar-collapse {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .city-selector {
        margin-top: 15px;
        justify-content: center;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .footer-title {
        margin-bottom: 20px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .map-container {
        height: 500px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 350px;
    }
    
    .map-container {
        height: 400px;
    }
    
    .map-controls {
        flex-direction: column;
    }
    
    .map-search {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-top {
        padding-bottom: 30px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

        .related-card {
            border: 1px solid #e9e9e9;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }
        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        }
        .related-card img {
            height: 350px;
            object-fit: cover;
            width: 100%;
        }
        .related-card .card-body {
            padding: 15px;
        }

       /* Блог */

        /* SEO-оптимизированная структура: h2 для блока, h3 для статей */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Кнопки категорий */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.category-button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: 600;
}

.category-button:hover {
    background-color: #eee;
}

.category-button.active {
    background-color: #007bff; /* Активный цвет */
    color: white;
    border-color: #007bff;
}

/* Сетка статей */
.blog-posts-grid {
    display: grid;
    /* 3 статьи в ряд */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Карточка статьи */
.post-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-image-wrapper {
    height: 200px; /* Фиксированная высота для изображений */
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обеспечивает покрытие области без искажений */
    transition: transform 0.3s;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card-title {
    padding: 15px;
    font-size: 1.2em;
    margin: 0;
    line-height: 1.4;
}

/* Кнопка "Показать еще" */
.load-more-wrapper {
    text-align: center;
}

.load-more-button {
    padding: 12px 30px;
    font-size: 1.1em;
    background-color: #28a745; /* Зеленый цвет */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-button:hover {
    background-color: #218838;
}