/* ==========================================
   АНИМАЦИИ ЗАГРУЗКИ СТРАНИЦЫ
   ========================================== */

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра */
    --primary-color: #2c5f2d;
    --primary-hover: #1f4620;
    --secondary-color: #97c93d;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #dc3545;
    --success-color: #28a745;
    
    /* Типографика */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    
    /* Отступы и размеры */
    --container-max-width: 1200px;
    --header-height: 100px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* Радиусы скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Адаптивные медиа по умолчанию — не дают контенту вылезать за экран */
img,
video,
iframe {
    max-width: 100%;
}

/* ==========================================
   КОНТЕЙНЕР
   ========================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   ШАПКА САЙТА
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(160deg, #f6f9f6 0%, #d5e3d5 50%, #36ad3c 100%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
    overflow: hidden;
    animation: slideDownFade 0.8s ease-out;
}

/* Декоративные растительные элементы */
.header-decoration {
    position: absolute;
    bottom: 0;
    width: 300px;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
}

.header-decoration-left {
    left: -50px;
    background: radial-gradient(ellipse at bottom left, 
        rgba(46, 125, 50, 0.4) 0%, 
        rgba(46, 125, 50, 0.2) 30%, 
        transparent 70%);
    transform: rotate(-10deg);
}

.header-decoration-right {
    right: -50px;
    background: radial-gradient(ellipse at bottom right, 
        rgba(46, 125, 50, 0.4) 0%, 
        rgba(46, 125, 50, 0.2) 30%, 
        transparent 70%);
    transform: rotate(10deg);
}

/* Лепестки */
.leaf {
    position: absolute;
    pointer-events: none;
    opacity: 0.3;
}

.leaf::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 50%, #66bb6a 100%);
    border-radius: 0 100% 0 100%;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.2);
}

.leaf-1 {
    top: 10px;
    left: 15%;
    transform: rotate(-25deg);
    animation: leafFloat1 3s ease-in-out infinite;
}

.leaf-2 {
    top: 20px;
    left: 25%;
    transform: rotate(35deg) scale(0.8);
    animation: leafFloat2 3.5s ease-in-out infinite 0.5s;
}

.leaf-3 {
    top: 15px;
    right: 20%;
    transform: rotate(-45deg) scale(0.9);
    animation: leafFloat3 4s ease-in-out infinite 1s;
}

.leaf-4 {
    top: 25px;
    right: 12%;
    transform: rotate(20deg) scale(0.7);
    animation: leafFloat4 3.2s ease-in-out infinite 0.3s;
}

.leaf-5 {
    top: 30px;
    left: 35%;
    transform: rotate(-15deg) scale(0.85);
    animation: leafFloat5 3.8s ease-in-out infinite 0.8s;
}

.leaf-6 {
    top: 12px;
    left: 45%;
    transform: rotate(50deg) scale(0.75);
    animation: leafFloat6 3.3s ease-in-out infinite 1.2s;
}

.leaf-7 {
    top: 22px;
    right: 35%;
    transform: rotate(-30deg) scale(0.9);
    animation: leafFloat7 3.6s ease-in-out infinite 0.6s;
}

.leaf-8 {
    top: 8px;
    right: 28%;
    transform: rotate(40deg) scale(0.65);
    animation: leafFloat8 3.4s ease-in-out infinite 1.5s;
}

.leaf-9 {
    top: 18px;
    left: 8%;
    transform: rotate(-40deg) scale(0.8);
    animation: leafFloat9 3.7s ease-in-out infinite 0.4s;
}

.leaf-10 {
    top: 28px;
    right: 8%;
    transform: rotate(25deg) scale(0.7);
    animation: leafFloat10 3.5s ease-in-out infinite 1.1s;
}

/* Вьющиеся стебли */
.vine {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 100%;
    pointer-events: none;
    opacity: 0.2;
}

.vine::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, 
        #2e7d32 0%, 
        #43a047 50%, 
        transparent 100%);
    border-radius: 50% 50% 0 0;
    animation: vineGrow 10s ease-in-out infinite;
}

.vine-1 {
    left: 10%;
    transform: rotate(15deg);
    animation: vineSway1 4s ease-in-out infinite;
}

.vine-2 {
    right: 15%;
    transform: rotate(-15deg);
    animation: vineSway2 4.5s ease-in-out infinite 0.5s;
}

.vine-3 {
    left: 50%;
    transform: rotate(5deg);
    animation: vineSway3 4.2s ease-in-out infinite 1s;
}

/* Анимации */
@keyframes leafFloat1 {
    0%, 100% { transform: rotate(-25deg) translateY(0); }
    50% { transform: rotate(-20deg) translateY(-8px); }
}

@keyframes leafFloat2 {
    0%, 100% { transform: rotate(35deg) scale(0.8) translateY(0); }
    50% { transform: rotate(40deg) scale(0.8) translateY(-10px); }
}

@keyframes leafFloat3 {
    0%, 100% { transform: rotate(-45deg) scale(0.9) translateY(0); }
    50% { transform: rotate(-40deg) scale(0.9) translateY(-9px); }
}

@keyframes leafFloat4 {
    0%, 100% { transform: rotate(20deg) scale(0.7) translateY(0); }
    50% { transform: rotate(25deg) scale(0.7) translateY(-11px); }
}

@keyframes leafFloat5 {
    0%, 100% { transform: rotate(-15deg) scale(0.85) translateY(0); }
    50% { transform: rotate(-10deg) scale(0.85) translateY(-7px); }
}

@keyframes leafFloat6 {
    0%, 100% { transform: rotate(50deg) scale(0.75) translateY(0); }
    50% { transform: rotate(55deg) scale(0.75) translateY(-10px); }
}

@keyframes leafFloat7 {
    0%, 100% { transform: rotate(-30deg) scale(0.9) translateY(0); }
    50% { transform: rotate(-25deg) scale(0.9) translateY(-8px); }
}

@keyframes leafFloat8 {
    0%, 100% { transform: rotate(40deg) scale(0.65) translateY(0); }
    50% { transform: rotate(45deg) scale(0.65) translateY(-12px); }
}

@keyframes leafFloat9 {
    0%, 100% { transform: rotate(-40deg) scale(0.8) translateY(0); }
    50% { transform: rotate(-35deg) scale(0.8) translateY(-9px); }
}

@keyframes leafFloat10 {
    0%, 100% { transform: rotate(25deg) scale(0.7) translateY(0); }
    50% { transform: rotate(30deg) scale(0.7) translateY(-11px); }
}

@keyframes vineSway1 {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(20deg); }
}

@keyframes vineSway2 {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-10deg); }
}

@keyframes vineSway3 {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(10deg); }
}

@keyframes vineGrow {
    0%, 100% { height: 80%; }
    50% { height: 95%; }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--spacing-md);
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Навигация */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(44, 95, 45, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    height: 2px;
    background-color: var(--primary-color);
}

/* Кнопка обратного звонка в шапке */
.callback-btn {
    padding: 12px 24px;
    background-color: #2e7d32;
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInRight 1s ease-out 0.5s both;
}

.callback-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   HERO СЕКЦИЯ
   ========================================== */

.hero {
    margin-top: var(--header-height);
    padding: 0;
    background: url('../images/дом\ 1.jpg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: flex-start;
    position: relative;
    animation: fadeIn 1.5s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, 
            rgba(46, 125, 50, 0.7) 0%, 
            rgba(0, 0, 0, 0.4) 20%,
            rgba(0, 0, 0, 0.4) 80%,
            rgba(46, 125, 50, 0.7) 100%);
    z-index: 0;
    animation: fadeIn 1.5s ease-out;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.hero-layout {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: var(--spacing-xl) var(--spacing-xl);
}

.hero-content {
    max-width: 550px;
    text-align: left;
    margin: 0;
    padding: var(--spacing-xl) 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    flex: 1;
    width: 100%;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out both;
}

.category-card:nth-child(1) {
    animation-delay: 0.8s;
}

.category-card:nth-child(2) {
    animation-delay: 0.9s;
}

.category-card:nth-child(3) {
    animation-delay: 1s;
}

.category-card:nth-child(4) {
    animation-delay: 1.1s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
    border-color: var(--primary-color);
}

.category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all var(--transition-base);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 var(--spacing-md);
    flex: 1;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: var(--spacing-md);
    margin: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: rgba(46, 125, 50, 0.1);
    justify-content: center;
}

.category-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateX(5px);
}

/* Вертикальная карточка дополнительных услуг */
.additional-services-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    width: 280px;
    flex-shrink: 0;
    transition: all var(--transition-base);
    overflow: hidden;
    animation: fadeInRight 1s ease-out 1.2s both;
}

.additional-services-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
    border-color: var(--primary-color);
}

.additional-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all var(--transition-base);
}

.additional-services-card:hover .additional-image {
    transform: scale(1.1);
}

.additional-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: var(--spacing-md) var(--spacing-lg);
    text-align: center;
}

.services-list {
    list-style: none;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-item {
    display: flex;
}

.service-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    width: 100%;
}

.service-link:hover {
    color: var(--primary-color);
    background: rgba(46, 125, 50, 0.1);
    transform: translateX(5px);
}

/* ==========================================
   КНОПКИ
   ========================================== */

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #429143;
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
   color: #ffffff;
    border: 2px solid #379339;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО
   ========================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.modal-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

/* ==========================================
   ФОРМА ОБРАТНОГО ЗВОНКА
   ========================================== */

.callback-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-group input.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--success-color);
    border-radius: var(--radius-md);
    color: var(--success-color);
    font-weight: 500;
}

.success-message.show {
    display: flex;
}

.success-message svg {
    flex-shrink: 0;
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-max-width: 960px;
    }

    .nav-list {
        gap: var(--spacing-md);
    }

    /* На планшетах фиксированная боковая карточка не помещается в ряд —
       раскладываем hero в колонку (карточки категорий остаются в 2 столбца) */
    .hero-layout {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: var(--spacing-lg);
    }

    .hero-content {
        max-width: 100%;
    }

    .additional-services-card {
        width: 100%;
    }
}

/* Планшеты и большие телефоны (до 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }
    
    .logo-image {
        height: 55px;
    }
    
    /* Скрываем декоративные элементы на планшетах */
    .leaf,
    .vine {
        display: none;
    }
    
    .header-decoration {
        opacity: 0.08;
    }
    
    /* На мобильных background-attachment: fixed работает некорректно
       (фон «обрезается» по высоте экрана и виден только зелёный оверлей) */
    .hero {
        background-attachment: scroll;
    }

    /* Адаптация hero секции */
    .hero-layout {
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: auto;
        gap: var(--spacing-lg);
    }

    .hero-content {
        max-width: 100%;
        padding: var(--spacing-lg) 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .additional-services-card {
        width: 100%;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #a5d6a7 0%, #81c784 100%);
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        padding: var(--spacing-md);
        /* отключаем входную анимацию: её fill-mode both перебивает
           translateX(-100%) и меню остаётся видимым на мобильных */
        animation: none;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .callback-btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
    :root {
        --header-height: 70px;
        --spacing-md: 16px;
        --spacing-lg: 20px;
        --spacing-xl: 24px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-image {
        height: 50px;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .modal-content {
        padding: var(--spacing-md);
    }
    
    .modal-content h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Очень маленькие устройства (до 360px) */
@media (max-width: 360px) {
    .callback-btn {
        display: none;
    }
}

/* ==========================================
   СЕКЦИЯ КАРКАСНЫХ ДОМОВ С КАРУСЕЛЬЮ
   ========================================== */

.houses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e9 100%);
    opacity: 0;
    animation: fadeInSection 0.4s ease-out forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
    }
}

.houses-section .container {
    max-width: 100%;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(-30px);
    animation: titleAppear 0.5s ease-out 0.1s forwards;
}

@keyframes titleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout с меню категорий */
.catalog-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
    position: relative;
}

/* Боковое меню категорий */
.category-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 180px;
    flex-shrink: 0;
}

.category-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    opacity: 0;
    transform: translateX(-30px);
    animation: menuSlideIn 0.4s ease-out forwards;
}

.category-menu-item:nth-child(1) {
    animation-delay: 0.2s;
}

.category-menu-item:nth-child(2) {
    animation-delay: 0.3s;
}

.category-menu-item:nth-child(3) {
    animation-delay: 0.4s;
}

.category-menu-item:nth-child(4) {
    animation-delay: 0.5s;
}

.category-menu-item:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes menuSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-menu-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.category-menu-item.active {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    border-color: #1b5e20;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
    transform: translateX(5px);
}

.category-menu-item.active .category-name {
    color: var(--text-light);
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color var(--transition-base);
}

/* Обертка карусели */
.carousel-wrapper {
    flex: 1;
    min-width: 0; /* позволяет flex-элементу сжиматься, иначе карусель растягивает страницу */
    position: relative;
    padding: 0;
    opacity: 0;
    animation: carouselFadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes carouselFadeIn {
    to {
        opacity: 1;
    }
}

/* Контейнер карусели */
.carousel-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 100%;
}

.carousel-track {
    display: none;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
    gap: 25px;
    padding: 0 40px;
}

.carousel-track.active {
    display: flex;
}

/* Карточка дома */
.house-card {
    min-width: 420px;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-base);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: cardPopIn 0.4s ease-out forwards;
}

.house-card:nth-child(1) {
    animation-delay: 0.5s;
}

.house-card:nth-child(2) {
    animation-delay: 0.6s;
}

.house-card:nth-child(3) {
    animation-delay: 0.7s;
}

.house-card:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes cardPopIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.house-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.3);
}

.house-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.house-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.house-card:hover .house-image {
    transform: scale(1.15);
}

.house-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 250px;
}

.house-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.house-specs {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 18px;
    line-height: 1.6;
    height: 1.9rem;
    overflow: hidden;
}

.house-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 20px;
    height: 2rem;
}

.house-btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    margin-top: auto;
}

/* Карточка индивидуального проекта */
.custom-project-card .house-image-wrapper {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.custom-project-card .house-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.custom-project-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.custom-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.custom-project-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-project-content p {
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.custom-project-card:hover .custom-icon {
    animation: bounce 0.5s ease-in-out infinite;
}

/* Кнопки навигации карусели - вынесены за пределы wrapper */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 125, 50, 0.98);
    border: 3px solid rgba(255, 255, 255, 0.8);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    background: #1b5e20;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

.carousel-btn-prev {
    left: 200px;
}

.carousel-btn-prev:hover {
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
}

.carousel-btn-next {
    right: 10px;
}

.carousel-btn-next:hover {
    transform: translateY(-50%) scale(1.1) rotate(5deg);
}

.carousel-btn span {
    line-height: 1;
    margin-top: -5px;
}

/* Точки навигации */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    opacity: 0;
    animation: dotsFadeIn 0.4s ease-out 0.8s forwards;
}

@keyframes dotsFadeIn {
    to {
        opacity: 1;
    }
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c8e6c9;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot:hover {
    background: #81c784;
    transform: scale(1.3);
}

.carousel-dot.active {
    background: #2e7d32;
    width: 40px;
    border-radius: 7px;
    animation: dotPulse 0.4s ease-out;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Адаптивность карусели */
@media (max-width: 1024px) {
    .catalog-layout {
        gap: 15px;
    }
    
    .category-menu {
        width: 160px;
        gap: 8px;
    }
    
    .category-menu-item {
        padding: 10px 12px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
    
    .house-card {
        min-width: calc(45% - 18px);
        max-width: calc(45% - 18px);
    }
    
    .carousel-wrapper {
        padding: 0 60px;
    }
    
    .carousel-btn {
        width: 55px;
        height: 55px;
        font-size: 2.5rem;
    }
    
    .house-image-wrapper {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .houses-section {
        padding: 60px 0;
    }
    
    .houses-section .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .catalog-layout {
        flex-direction: column;
        align-items: stretch; /* иначе дочерние блоки тянутся по контенту и ломают ширину */
    }

    .category-menu {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .category-menu-item {
        flex-shrink: 0;
        min-width: 130px;
        padding: 10px 14px;
    }
    
    .category-menu-item:hover {
        transform: translateY(-3px);
    }
    
    .category-menu-item.active {
        transform: translateY(-3px);
    }
    
    .carousel-wrapper {
        padding: 0;
    }

    .carousel-container {
        width: 100%;
    }

    .carousel-track {
        padding: 0;
        gap: 0;
    }

    .house-card {
        min-width: 100%;
        max-width: 100%;
    }

    /* На телефоне листаем свайпом и точками — стрелки убираем,
       чтобы они не перекрывали карточку */
    .carousel-btn {
        display: none;
    }

    .house-image-wrapper {
        height: 260px;
    }

    .house-info {
        padding: 20px;
    }
    
    .house-name {
        font-size: 1.4rem;
    }
    
    .house-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .houses-section .container {
        padding: 0 10px;
    }
    
    .carousel-wrapper {
        padding: 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .house-image-wrapper {
        height: 220px;
    }
    
    .category-menu-item {
        min-width: 110px;
        padding: 8px 12px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
}

/* ==========================================
   СЕКЦИЯ ПРОЧИЕ УСЛУГИ
   ========================================== */

.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e9 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-top: -30px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.2);
    border-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    transform: scale(1.1) rotate(10deg);
}

.service-icon {
    font-size: 3rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Адаптивность секции услуг */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-top: -20px;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .services-cta {
        margin-top: 40px;
    }
    
    .btn-large {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}

/* ==========================================
   СЕКЦИЯ О КОМПАНИИ
   ========================================== */

.about-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e9 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Статистика */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.4);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Адаптивность секции О компании */
@media (max-width: 1024px) {
    .about-content {
        gap: 40px;
    }
    
    .about-subtitle {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .feature-item {
        padding: 15px;
    }
}

/* ==========================================
   СЕКЦИЯ КОНТАКТЫ
   ========================================== */

.contacts-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.contact-item:hover {
    background: #e8f5e9;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-link {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: #1b5e20;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Кнопки мессенджеров */
.messenger-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.messenger-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.messenger-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
}

.messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.messenger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.telegram-btn {
    background: #2AABEE;
}

.telegram-btn:hover {
    background: #229ED9;
}

.messenger-icon {
    font-size: 1.5rem;
}

.messenger-name {
    flex: 1;
    text-align: left;
}

/* Карта */
.map-container {
    margin-top: 50px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container #yandexMap {
    display: block;
    width: 100%;
    height: 400px;
}

/* Запасная ссылка, если карта не загрузилась (нет API-ключа) */
.map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: var(--spacing-xs);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e9 100%);
    transition: background var(--transition-fast);
}

.map-fallback:hover {
    background: #dcecdd;
}

/* Адаптивность секции контактов */
@media (max-width: 1024px) {
    .contacts-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 60px 0;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-item {
        padding: 18px;
    }
    
    .messenger-title {
        font-size: 1.3rem;
    }
    
    .messenger-grid {
        max-width: 100%;
    }
    
    .messenger-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .map-container #yandexMap {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        gap: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ==========================================
   ФУТЕР
   ========================================== */

.footer {
    background: linear-gradient(135deg, #1f4620 0%, #2c5f2d 50%, #1f4620 100%);
    color: var(--text-light);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #66bb6a 20%, 
        #43a047 50%, 
        #66bb6a 80%, 
        transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Колонки футера */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25D366;
}

.social-link.telegram:hover {
    background: #2AABEE;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #66bb6a;
}

.footer-links,
.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-link:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.footer-contacts li {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright,
.footer-dev {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Адаптивность футера */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo-image {
        height: 70px;
        margin: 0 auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .footer-contacts {
        align-items: center;
    }
    
    .footer-contacts li {
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-logo-image {
        height: 60px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
