/* ==== Стили для страницы "Контакты" ==== */

/* Герой */
.contacts-hero {
    background: linear-gradient(135deg, #1A3A5F 0%, #2c5384 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.contacts-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.contacts-subtitle {
    font-size: 1.2rem;
    color: #dfe6ee;
    letter-spacing: 2px;
}

/* Карточка персонального контакта */
.contact-card-section {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem 1rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 500px;
    width: 100%;
    border-top: 6px solid #1ABC9C;
}

.person-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A3A5F 0%, #1ABC9C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-card h2 {
    font-size: 1.6rem;
    color: #1A3A5F;
    margin-bottom: 0.4rem;
}

.person-role {
    color: #1ABC9C;
    font-weight: 600;
    margin-bottom: 1.8rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.person-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    color: #333;
}

.contact-line a {
    color: #1A3A5F;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-line a:hover {
    color: #1ABC9C;
}

.contact-icon {
    font-size: 1.2rem;
}

/* Email по направлениям */
.email-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.email-section h2 {
    font-size: 2.2rem;
    color: #1A3A5F;
    text-align: center;
    margin-bottom: 0.8rem;
}

.email-note {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.email-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.email-card {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 5px solid #1ABC9C;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-top-color: #1A3A5F;
}

.email-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.email-card h3 {
    font-size: 1.2rem;
    color: #1A3A5F;
    margin-bottom: 0.3rem;
}

.email-address {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #1ABC9C;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.email-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Советы по письму */
.letter-tips {
    background: #f5f7fa;
    padding: 4rem 2rem;
    text-align: center;
}

.letter-tips h2 {
    font-size: 2rem;
    color: #1A3A5F;
    margin-bottom: 2.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tip-item {
    background: white;
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #1ABC9C;
    text-align: left;
}

.tip-item h3 {
    color: #1A3A5F;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.tip-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Честное примечание */
.honest-note {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background: #FFF8E1;
    border-radius: 12px;
    border-left: 5px solid #FFB74D;
}

.honest-note p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* CTA */
.contacts-cta {
    background: linear-gradient(135deg, #1A3A5F 0%, #1ABC9C 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.contacts-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contacts-cta p {
    font-size: 1.1rem;
    color: #e6f4f1;
    margin-bottom: 2rem;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contacts-button {
    background: white;
    color: #1A3A5F;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.contacts-button:hover {
    background: #e8f5f2;
    transform: translateY(-2px);
}

.contacts-phone {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: 2px solid white;
    border-radius: 8px;
    transition: background 0.2s;
    display: inline-block;
}

.contacts-phone:hover {
    background: rgba(255,255,255,0.1);
}

/* Адаптив */
@media (max-width: 700px) {
    .contacts-hero h1 {
        font-size: 2rem;
    }
    .email-section h2,
    .letter-tips h2,
    .contacts-cta h2 {
        font-size: 1.6rem;
    }
    .contact-card {
        padding: 2rem 1.5rem;
    }
    .contact-line {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    .cta-contacts {
        flex-direction: column;
        gap: 1rem;
    }
}