/* Основной контейнер */
.contacts-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.contacts-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
}

.contacts-container h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

/* Способы связи */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e0e6ed;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 20px;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-card p {
    color: #5a6a7a;
    font-size: 1.1rem;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.contact-card a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Блок с интересным фактом */
.fun-fact {
    background: linear-gradient(135deg, #f8fafc, #e6f0fa);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    border-left: 5px solid #3498db;
    position: relative;
    overflow: hidden;
}

.fun-fact:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.fact-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #3498db;
}

.fun-fact h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.fun-fact p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-container {
        padding: 25px;
        margin: 30px 20px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fun-fact {
        padding: 30px 20px;
    }
}