/* === Hero Section === */
.hero-section {
    position: relative;
    padding: 120px 0;
    /* Убираем дублирование: background-size уже в background */
    background: url('/static/assets/img/hero-bg.jpg') center/cover no-repeat;
    /* Дополнительно: фиксируем фон при прокрутке (опционально) */
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Отключаем повторение */
    background-repeat: no-repeat;
    /* Гарантируем, что фон покрывает всю секцию */
    background-position: center;
    background-size: cover;
}

/* Полупрозрачный слой поверх фона */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Контейнер с контентом */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Заголовок */
.hero-header {
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    color: #e0e0e0;
}

/* Блок с основным текстом */
.hero-text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-main-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin: 0;
    font-weight: 400;
}

/* Социальные ссылки */
.hero-social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hero-social-links a span {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-social-links a:hover {
    color: #e74c3c;
}

/* Декоративные элементы */
.hero-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.2) 0%, rgba(72, 187, 120, 0) 70%);
    top: 20%;
    left: 10%;
    opacity: 0.6;
    filter: blur(20px);
}

.hero-decor-leaf {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.hero-decor.logo-decor {
    position: absolute;
    top: 0;
    left: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 10px; /* отступ от логотипа */
}

.leaf-1 {
    top: 30%;
    left: 5%;
    animation-delay: 0s;
}

.leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.leaf-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: auto;
        /* Убираем fixed на мобильных — может глючить */
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-main-title {
        font-size: 1.8rem;
    }

    .hero-main-desc {
        font-size: 1rem;
        padding: 15px;
    }

    .hero-social-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-social-links a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-main-title {
        font-size: 1.6rem;
    }

    .hero-main-desc {
        font-size: 0.95rem;
    }

    .hero-text-block {
        padding: 20px;
    }
}

.hero-title .logo {
    height: 200px; /* Подстройте под ваш логотип */
    width: auto;
    filter: brightness(1); /* Убирает затемнение */
    background-color: rgba(255, 255, 255, 0.5); /* <-- Добавляет белый фон */
    padding: 10px; /* По желанию: отступы вокруг логотипа */
    border-radius: 8px; /* По желанию: закруглённые углы */
}

/* Зелёный цвет для бренда */
.brand-green {
    color: #48bb78; /* Зелёный цвет, как в декор-круге */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(72, 187, 120, 0.2);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.3);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 40px rgba(39, 174, 96, 0.6);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(39, 174, 96, 0.6);
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.product-info {
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #2ecc71;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}


.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-details p {
    color: #666;
    font-size: 1rem;
}

.contact-details a {
    color: #2ecc71;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.whatsapp {
    font-style: italic;
    color: #888;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

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

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.contact-form button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #27ae60;
}


.contact-section iframe {
    margin-bottom: 30px;
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

.about-section.fresh {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-section {
    background: linear-gradient(120deg, #e8f5e9 0%, #fff 100%);
    padding: 80px 0 60px 0; /* Увеличен padding снизу */
    border-radius: 0 0 32px 32px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.06);
    margin-bottom: 60px; /* Увеличен margin-bottom */
    position: relative;
    overflow: hidden;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-icon {
    display: inline-block;
    margin-bottom: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    border-radius: 2px;
}

.about-title {
    font-size: 2.5rem; /* Увеличен размер */
    color: #27ae60; /* Цвет чуть темнее */
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.about-content {
    max-width: 800px; /* Ограничим ширину для лучшей читаемости */
    margin: 0 auto;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: #d1f0d8;
    border-color: #27ae60;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Важно: не обрезать иконку */
    max-width: 70px;
    max-height: 70px;
}

.feature-card:hover .feature-icon {
    stroke: #219150;
    stroke-width: 2.2;
}

/* Текст */
.feature-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: #34495e;
    margin: 0;
}

.about-desc {
    font-size: 1.1rem; /* Размер шрифта */
    color: #444; /* Цвет чуть темнее */
    line-height: 1.7;
    margin-bottom: 20px; /* Стандартный отступ между абзацами */
    text-align: left; /* Выравнивание по левому краю для текста */
}


/* Анимация появления */
.about-section.fresh.show .feature-card {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: #f0fff4;
    border-color: #a8e6a1;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 24px rgba(46, 204, 113, 0.15);
}

.about-quote {
    font-style: italic;
    font-weight: 500;
    color: #2c3e50;
    display: block; /* Чтобы цитата была на отдельной строке */
    margin: 10px 0;
    padding-left: 15px;
    border-left: 3px solid #2ecc71;
}

.about-link {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #2ecc71;
    transition: all 0.2s ease;
}

.about-link:hover {
    color: #27ae60;
    border-bottom: 1px solid #27ae60;
    text-decoration: none;
}

/* --- Блок с особенностями --- */
.about-features {
    background: rgba(255, 255, 255, 0.7); /* Полупрозрачный фон */
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin: 30px 0;
    backdrop-filter: blur(4px); /* Эффект размытия фона */
}

.feature-card:nth-child(n) {
    transition-delay: calc(0.1s + var(--delay));
}

/* Сетка карточек */
.features-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr); /* Ровно 3 колонки на больших экранах */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Заголовок */
.features-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.2;
}

.features-emphasis {
    color: #e74c3c;
    background: #fff5f5;
    padding: 4px 14px;
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Адаптивная сетка */
    gap: 12px;
}

.feature-item {
    font-size: 1.05rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px; /* Отступ между крестиком и текстом */
}

.feature-cross {
    color: #e74c3c; /* Цвет крестика */
    font-weight: bold;
}

/* --- Блок с обязательством --- */
.about-commitment {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(120deg, #d1f0d8 0%, #e8f5e9 100%); /* Лёгкий акцент */
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
    border-right: 4px solid #2ecc71;
}

.commitment-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
}

.commitment-highlight {
    color: #27ae60;
    text-decoration: underline;
}

.commitment-leaf {
    font-size: 1.4rem; /* Слегка увеличенный размер эмодзи */
    vertical-align: middle; /* Выравнивание по середине строки */
}


/* Адаптивность */
@media (max-width: 768px) {
   .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px; /* Ограничиваем ширину */
        margin: 0 auto;   /* Центрируем */
    }

    .feature-icon-wrapper {
        width: 56px;
        height: 56px;
        margin: 0 auto 12px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-label {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .features-title {
        font-size: 2.1rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr 1fr; /* Явно 2 колонки */
        gap: 16px;
    }

    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-label {
        font-size: 1.05rem;
    }

    .features-title {
        font-size: 1.8rem;
    }
}

/* Галерея */
.gallery-section {
    padding: 50px 0;
    background: #fafafa;
    text-align: center;
}

.gallery-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-item img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    transition: 0.3s;
}

.gallery-item img:hover {
    opacity: 0.8;
}


.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-item img:hover {
    transform: scale(1.05);
}


/* --- Секция контактов --- */
.contact-section {
    padding: 80px 0 60px 0;
    background: linear-gradient(to bottom, #ffffff, #f0f9f0);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #3498db);
}

/* --- Заголовок секции --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Карта --- */
.map-container {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
}

.map-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Основной контент контактов --- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 20px;
}

/* --- Левая колонка: Информация --- */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    /* Выравнивание по левому краю, как и у формы */
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-grow: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #d1f0d8);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.15);
}

.contact-icon {
    font-size: 1.8rem;
    text-align: center;
}

.contact-details {
    flex-grow: 1;
}

.contact-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0px;
}

.contact-item-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px dotted #2980b9;
}

.contact-link:hover {
    color: #1565c0;
    border-bottom: 1px solid #1565c0;
}

.whatsapp-badge {
    display: inline-block;
    background-color: #25D366;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: none;
}

.social-icon {
    fill: #e1306c; /* Цвет Instagram */
    transition: transform 0.2s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* --- Правая колонка: Форма контактов --- */
.contact-form-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: left; /* Выравнивание по левому краю */
}

/* --- Стилизованная форма --- */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.form-group {
    width: 100%;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box; /* Добавлено для корректного расчета ширины */
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    background-color: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
    letter-spacing: 0.5px;
    align-self: flex-start; /* Кнопка выравнивается по левому краю внутри flex-контейнера */
}

.form-button:hover {
    background: linear-gradient(90deg, #27ae60, #219653);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    transform: translateY(-3px) scale(1.02);
}

/* --- Сообщения формы --- */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    display: none; /* Скрываем по умолчанию */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    display: block;
    opacity: 1;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .contact-section {
        padding: 60px 0 50px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-title,
    .form-title {
        font-size: 1.5rem;
        text-align: center; /* Центрируем на планшетах/моб. для симметрии */
    }

    .contact-info-wrapper,
    .contact-form-wrapper {
        align-items: center; /* Центрируем элементы внутри */
    }

    .contact-item-title,
    .contact-item-text {
        text-align: center; /* Центрируем текст элементов */
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon-wrapper {
        margin-bottom: 3px;
    }

    .contact-form-wrapper {
        padding: 5px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-divider {
        width: 60px;
        height: 3px;
    }

    .map-container {
        margin-bottom: 40px;
    }

    .map-iframe {
        height: 300px;
    }

    .contact-item {
        gap: 5px;
    }

    .contact-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-item-title {
        font-size: 1.2rem;
    }

    .contact-item-text {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 0px 0px;
    }

    .form-input,
    .form-textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .form-button {
        font-size: 1rem;
        padding: 13px;
        align-self: stretch; /* Кнопка растягивается на всю ширину на мобильных */
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0 30px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .contact-icon {
        font-size: 1.3rem;
    }

    .contact-item-title {
        font-size: 1.1rem;
    }

    .map-iframe {
        height: 250px;
    }

    .whatsapp-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
        margin-left: 5px;
    }

    .form-title {
        font-size: 1.3rem;
    }

    /* Убедимся, что сообщения видны на маленьких экранах */
    .form-message {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

/* ====== BASE STYLES (unchanged) ====== */
/* ... весь твой существующий CSS остаётся здесь ... */

/* ====== Адаптивные сетки для карточек ====== */
.products-section .products,
.categories-section .categories,
.certificates-section .certificates,
.gallery-section .gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ====== Универсальные отступы для секций ====== */
.products-section,
.categories-section,
.certificates-section,
.gallery-section {
    padding: 2rem 1rem;
}

/* ====== Опциональные медиазапросы для мелких экранов ====== */
@media (max-width: 480px) {
    h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .section-title {
        margin-bottom: 1rem;
    }
}

/* ====== MOBILE ADAPTATION ====== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 0;
    }

    .hero-section {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-section .content,
    .hero-section .image {
        width: 100%;
        padding: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        display: none;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
    }

    nav .burger {
        display: block;
        cursor: pointer;
        padding: 1rem;
    }

    .products-section h2,
    .categories-section h2,
    .contact-section h2,
    .certificates-section h2,
    .about-section h2,
    .gallery-section h2 {
        font-size: 1.5rem;
        text-align: center;
    }


    .about-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .gallery-section .gallery img {
        height: auto;
        object-fit: cover;
    }

    footer {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ====== BURGER MENU SUPPORT ====== */
nav .burger {
    display: none;
}


