/* Стили для страницы контактов */

:root {
    --primary-red: #2d5016;
    --primary-red-light: #3d6b1f;
    --primary-red-dark: #1e3a0f;
    --accent-orange: #6b4423;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Основная секция контактов */
.contacts {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(45, 80, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Сетка контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Блок информации */
.contacts-info {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contacts-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
}

.contacts-info:hover {
    border-color: var(--primary-red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contacts-info h2 {
    color: var(--primary-red);
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contacts-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
    border-radius: 2px;
}

/* Элементы контактов */
.contact-item {
    margin-bottom: 18px;
    padding: 15px;
    border-radius: 10px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    background: rgba(45, 80, 22, 0.05);
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: var(--font-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-md);
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-item a:hover {
    color: var(--primary-red-dark);
    transform: translateX(5px);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: var(--font-base);
}

/* Блок формы */
.contacts-form {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contacts-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-red));
}

.contacts-form:hover {
    border-color: var(--primary-red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contacts-form h2 {
    color: var(--primary-red);
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.contacts-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-red));
    border-radius: 2px;
}

/* Форма обратной связи */
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.callback-form input,
.callback-form textarea {
    padding: 18px 24px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: var(--font-base);
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

.callback-form input:focus,
.callback-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.1);
    transform: translateY(-2px);
}

.callback-form textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.callback-form button {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: var(--font-base);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.callback-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
}

.callback-form button:active {
    transform: translateY(-1px);
}

/* Иконки для контактов */
.contact-item::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-grid {
        gap: 40px;
    }
    
    .contacts-info,
    .contacts-form {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contacts {
        padding: 60px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-info h2,
    .contacts-form h2 {
        font-size: var(--font-2xl);
    }
    
    .contacts-info,
    .contacts-form {
        padding: 35px;
    }
    
    .contact-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .contacts {
        padding: 40px 0;
    }
    
    .contacts-container {
        padding: 0 15px;
    }
    
    .contacts-info,
    .contacts-form {
        padding: 25px;
    }
    
    .contacts-info h2,
    .contacts-form h2 {
        font-size: var(--font-2xl);
        margin-bottom: 30px;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .contact-item strong {
        font-size: var(--font-base);
    }
    
    .contact-item a {
        font-size: var(--font-xs);
    }
    
    .callback-form input,
    .callback-form textarea {
        padding: 15px 20px;
        font-size: var(--font-base);
    }
    
    .callback-form button {
        padding: 15px 30px;
        font-size: var(--font-base);
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacts-info,
.contacts-form {
    animation: fadeInUp 0.6s ease;
}

.contacts-info {
    animation-delay: 0.1s;
}

.contacts-form {
    animation-delay: 0.2s;
}


/* Дополнительные улучшения */
.callback-form textarea {
    font-family: inherit;
}

.callback-form input::placeholder,
.callback-form textarea::placeholder {
    color: #999;
}

/* Улучшенная типографика */
.contacts-info p,
.contacts-form p {
    line-height: 1.6;
}

/* Hover эффекты для контактных элементов */
.contact-item a {
    position: relative;
}

.contact-item a::after {
    content: '→';
    margin-left: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-item a:hover::after {
    opacity: 1;
    margin-left: 12px;
}

/* Стили для успешной отправки формы */
.form-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.form-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}



