/* 
   Файл стилей для страницы контактов
   Подключается отдельно в contacts.html
   Дополняет основной style.css
*/

/* Контейнер страницы контактов */
.contacts-container {
    max-width: 1000px;
    margin: -1500px auto 100px;
    padding: 0 20px;
}

/* Заголовок страницы контактов */
.contacts-title {
    color: #2c3e50;
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 40px;
    line-height: 1.3;
    padding: 0 20px;
    position: relative;
    padding-bottom: 40px;
}

/* Горизонтальная полоска под заголовком как на второй странице */
.contacts-title:after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
            #0a9e3c 0%,
            #00ff88 25%,
            #0a9e3c 50%,
            #00ff88 75%,
            #0a9e3c 100%);
    margin: 30px auto 0;
    border-radius: 3px;
    animation: wave 3s ease-in-out infinite;
    background-size: 200% 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(10, 158, 60, 0.3);
}

.contacts-title:after:hover {
    transform: scaleX(1.2);
}

/* Подзаголовок - Свяжитесь с нами... */
.contacts-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 60px;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(10, 158, 60, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.08);
    position: relative;
}

/* Вертикальная полоска для подзаголовка как на второй странице */
.contacts-subtitle:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0a9e3c, #3498db);
    border-radius: 0 2px 2px 0;
}

/* Сетка контактных карточек */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Карточка контакта - профессиональный стиль */
.contact-card {
    background: white;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
    border-color: #3498db;
}

.contact-card:hover:before {
    opacity: 1;
}

/* Иконка в карточке */
.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

/* Заголовок в карточке */
.contact-card h3 {
    color: #2c3e50;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.contact-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

/* Элемент контакта */
.contact-item {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background: #f1f7fd;
    transform: translateX(3px);
    border-color: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
}

/* Ссылки в контактах */
.contact-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.15em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
}

/* Время работы и ответа */
.contact-hours,
.response-time,
.social-hours {
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.95em;
    font-style: italic;
    padding: 8px 0;
    border-top: 1px solid #e0e6ed;
}

/* Основной блок описания */
.contact-description {
    background: white;
    border-radius: 10px;
    padding: 50px;
    margin-top: 60px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.contact-description:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2c3e50, #3498db);
}

/* Заголовок "Почему выбирают компанию" */
.contact-description h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 35px;
    font-weight: 700;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
}

.contact-description h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #3498db;
    border-radius: 1.5px;
}

/* Основной текст описания */
.contact-description p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 25px;
    text-align: justify;
    position: relative;
}

/* Первый абзац после заголовка */
.contact-description p:first-of-type {
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.9;
    padding-left: 20px;
    border-left: 3px solid #0a9e3c;
    position: relative;
}

/* Вертикальная полоска для первого абзаца как на второй странице */
.contact-description p:first-of-type:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0a9e3c, #3498db);
    border-radius: 0 2px 2px 0;
}

/* Убираем старую левую границу */
.contact-description p:first-of-type {
    border-left: none;
}

/* Заголовок "Наши ключевые преимущества:" */
.contact-description p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Преимущества */
.contact-description p:has(✅) {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    margin-left: 0;
    transition: all 0.3s ease;
    position: relative;
}

.contact-description p:has(✅):before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 10px;
    top: 18px;
}

.contact-description p:has(✅):hover {
    background: #f1f7fd;
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.05);
}

/* Эмодзи в преимуществах */
.contact-description p:has(✅) {
    padding-left: 40px;
}

/* Последний абзац перед миссией */
.contact-description p:last-of-type {
    font-size: 1.15em;
    color: #2c3e50;
    font-weight: 500;
    padding: 25px;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.02) 0%, rgba(52, 152, 219, 0.02) 100%);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.08);
}

/* Блок миссии компании */
.mission-statement {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 45px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    color: white;
}

.mission-statement:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.mission-statement h3 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.mission-statement h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
}

.mission-statement p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Выделение важных слов в миссии */
.mission-statement p strong {
    color: #3498db;
    font-weight: 600;
}

/* Анимация волны для полоски */
@keyframes wave {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacts-title,
.contacts-subtitle,
.contact-card,
.contact-description,
.mission-statement {
    animation: fadeInUp 0.6s ease-out;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-description { animation-delay: 0.4s; }
.mission-statement { animation-delay: 0.5s; }

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .contacts-container {
        margin: 150px auto 80px;
    }
    
    .contacts-title {
        font-size: 2.4em;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-description {
        padding: 40px;
    }
    
    .contact-description h2 {
        font-size: 1.8em;
    }
    
    .contact-description p {
        font-size: 1.1em;
    }
}

/* Адаптивность для мобильных (планшеты) */
@media (max-width: 768px) {
    .contacts-container {
        margin: 130px auto 60px;
        padding: 0 15px;
    }
    
    .contacts-title {
        font-size: 2em;
        padding: 0 15px 30px;
    }
    
    .contacts-subtitle {
        font-size: 1.15em;
        padding: 20px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 60px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-description {
        padding: 30px 20px;
    }
    
    .contact-description h2 {
        font-size: 1.7em;
    }
    
    .contact-description p:first-of-type {
        font-size: 1.15em;
        padding-left: 15px;
    }
    
    .mission-statement {
        padding: 35px 20px;
    }
}

/* Адаптивность для мобильных (телефоны) */
@media (max-width: 480px) {
    .contacts-container {
        margin: 100px auto 40px;
        padding: 0 10px;
    }
    
    .contacts-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .contacts-subtitle {
        font-size: 1.05em;
        padding: 15px;
        margin-bottom: 40px;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .contact-card h3 {
        font-size: 1.4em;
    }
    
    .contact-item a {
        font-size: 1.1em;
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-description p:has(✅) {
        padding: 15px 15px 15px 30px;
    }
    
    .contact-description p:has(✅):before {
        left: 5px;
        top: 15px;
    }
    
    .contact-description p:last-of-type {
        padding: 20px;
    }
    
    .mission-statement {
        padding: 30px 15px;
    }
    
    .mission-statement h3 {
        font-size: 1.5em;
    }
    
    .mission-statement p {
        font-size: 1em;
    }
}