/* contacts.css - Стили для страницы контактов с единой цветовой схемой */

:root {
    --primary-blue: #667eea;
    --primary-red: #c95252;
    --gradient-main: linear-gradient(135deg, #667eea, #c95252);
    --gradient-light: linear-gradient(135deg, rgba(221, 238, 253, 0.95), rgba(255, 225, 225, 0.95));
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-light: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-medium: 0 16px 48px rgba(0,0,0,0.15);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.2);
}

.contacts-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.contact-card {
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-heavy);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icons {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    object-fit: contain
}

.contact-icons::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-main);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-icons {
    transform: scale(1.1);
}

.contact-card:hover .contact-icons::before {
    opacity: 1;
}

.contact-icons svg {
    width: 35px;
    height: 35px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icons svg {
    color: var(--white);
    transform: scale(1.1);
}

.contact-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.contact-link {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    transition: left 0.4s ease;
    z-index: -1;
}

.contact-link:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-link:hover::before {
    left: 0;
}

.work-hours {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.hours-card {
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hours-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.hours-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hours-icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

.hours-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.hours-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hours-note {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.5;
}

/* Анимации */
@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-header {
        padding: 80px 20px 60px;
    }
    
    .contacts-header h1 {
        font-size: 2.8rem;
    }
    
    
    .contact-card {
        padding: 30px;
    }
    
    .hours-card {
        padding: 30px;
        max-width: 100%;
    }
    
    .form-title h3 {
        font-size: 2rem;
    }
    
    .title-icon {
        width: 80px;
        height: 80px;
    }
    
    .title-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .submit-button {
        width: 100%;
        min-width: auto;
    }
}

/* Адаптивность для экранов меньше 750px */
@media (max-width: 750px) {
    .contacts-content {
        padding: 60px 15px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .contact-card {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .contact-icons {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .contact-icons svg {
        width: 30px;
        height: 30px;
    }
    
    .contact-card h3 {
        font-size: 1.4rem;
    }
    
    .contact-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .contact-link {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .hours-card {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .hours-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .hours-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .hours-card h3 {
        font-size: 1.4rem;
    }
    
    .hours-text {
        font-size: 1.2rem;
    }
    
    .hours-note {
        font-size: 0.95rem;
    }
    
    .contact-form-section {
        margin: 0 15px 60px;
    }
    
    .form-container {
        padding: 40px 30px;
    }
    
    .form-title h3 {
        font-size: 1.8rem;
    }
    
    .form-title p {
        font-size: 1.1rem;
    }
}

/* Адаптивность для экранов меньше 480px */
@media (max-width: 480px) {
    .contacts-header {
        padding: 60px 15px 40px;
    }
    
    .contacts-header h1 {
        font-size: 2.2rem;
    }
    
    .contacts-header p {
        font-size: 1.1rem;
    }
    
    .contacts-content {
        padding: 40px 10px;
    }
    
    .contact-card {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .contact-icons {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .contact-icons svg {
        width: 25px;
        height: 25px;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-card p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .contact-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .hours-card {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .hours-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .hours-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .hours-card h3 {
        font-size: 1.2rem;
    }
    
    .hours-text {
        font-size: 1.1rem;
    }
    
    .hours-note {
        font-size: 0.9rem;
    }
    
    .contact-form-section {
        margin: 0 10px 40px;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .form-title h3 {
        font-size: 1.6rem;
    }
    
    .form-title p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contacts-header {
        padding: 60px 20px 40px;
    }
    
    .contacts-header h1 {
        font-size: 2.2rem;
    }
    
    .contacts-header p {
        font-size: 1.1rem;
    }
    
    .contacts-content {
        padding: 40px 20px;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .contact-icons {
        width: 60px;
        height: 60px;
    }
    
    .contact-icons svg {
        width: 30px;
        height: 30px;
    }
    
    .hours-card {
        padding: 25px;
    }
    
}

/* Плавные появления */
.contact-card,
.hours-card,
.form-title,
.form-group {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-section {
    margin-bottom: 80px;
}