/* ========================================
   НОВЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ
   ======================================== */

/* Основные переменные */
:root {
    --primary-color: rgb(7, 60, 96);
    --primary-light: rgba(7, 60, 96, 0.8);
    --text-color: #666666;
    --bg-light: rgb(247, 249, 252);
    --bg-white: #FFFFFF;
    --border-radius: 12px;
    
    /* Premium Colors */
    --gold-1: #D4AF37;
    --gradient-premium: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #6366F1 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    --gradient-luxury: linear-gradient(135deg, #070F2B 0%, #1E3A8A 50%, #6366F1 100%);
}

/* Сброс стилей для контактов */
.contacts-main * {
    box-sizing: border-box;
}

/* Основной контейнер */
.contacts-main {
    min-height: calc(100vh - 70px);
    padding: 40px 0;
    overflow-x: hidden;
}

.contacts-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Заголовок страницы */
.contacts-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacts-header h1 {
    font-size: 2.5rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.contacts-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.contacts-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}


/* Контент */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Секция контактов */
.contact-section {
    background: #0C3F5F;
    padding: 50px;
    border-radius: var(--border-radius);
    color: var(--bg-white);
    box-shadow: 0 15px 40px rgba(7, 60, 96, 0.3);
    border: 2px solid rgba(255, 196, 0, 0.945);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--bg-white);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item > div:last-child {
    flex: 1;
    min-width: 0;
}

/* Fallback для браузеров без поддержки gap */
@supports not (gap: 15px) {
    .contact-item {
        gap: 0;
    }
    
    .contact-icon {
        margin-right: 10px;
    }
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 20px;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--bg-white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--bg-white);
}

.contact-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.contact-value:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Секция социальных сетей */
.social-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8fafc 100%);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.social-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    background: #374D63;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.social-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-item {
    margin-bottom: 0;
}

.social-item:last-child {
    margin-bottom: 0;
}

/* Desktop: 2 icons per row */
@media (min-width: 769px) {
    .social-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .social-item {
        flex: 1 1 calc(50% - 12.5px);
        margin-bottom: 0;
        min-width: 0;
    }
    
    .social-item:last-child {
        margin-bottom: 0;
    }
}

.social-item {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    background: var(--primary-color);
    width: 100%;
    justify-content: center;
}

.social-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-item svg {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    margin-right: 20px;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

/* Планшеты */
@media (max-width: 768px) {
    .contacts-container {
        padding: 0 20px;
    }
    
    .contacts-header h1 {
        font-size: 2rem;
    }
    
    .contacts-header p {
        font-size: 1rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-section,
    .social-section {
        padding: 35px;
    }
    
    .contact-section h2,
    .social-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .contact-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .contact-value {
        font-size: 1.3rem;
    }
    
    .social-item {
        padding: 25px 30px;
        font-size: 1.4rem;
    }
    
    .social-item svg {
        width: 35px;
        height: 35px;
        margin-right: 18px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .contacts-main {
        padding: 30px 0;
    }
    
    .contacts-container {
        padding: 0 15px;
    }
    
    .contacts-header {
        margin-bottom: 30px;
    }
    
    .contacts-header h1 {
        font-size: 1.8rem;
    }
    
    .contacts-header p {
        font-size: 0.9rem;
    }
    
    .contacts-content {
        gap: 20px;
    }
    
    .contact-section,
    .social-section {
        padding: 25px;
    }
    
    .contact-section h2,
    .social-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .contact-item {
        padding: 18px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }
    
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-label {
        font-size: 0.9rem;
    }
    
    .contact-value {
        font-size: 1.2rem;
    }
    
    .social-item {
        padding: 22px 25px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .social-item svg {
        width: 32px;
        height: 32px;
        margin-right: 15px;
    }
}

/* Специальные стили для Chrome на Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 690px) {
    .contact-item {
        gap: 0;
        padding: 15px;
    }
    
    .contact-item > div:last-child {
        flex: 1;
        min-width: 0;
    }
    
    .contact-icon {
        flex-shrink: 0;
        margin-right: 15px;
    }
    
    .social-list {
        gap: 0;
    }
    
    .social-item {
        margin-bottom: 15px;
        font-size: 1.3rem;
        padding: 22px 25px;
    }
    
    .social-item svg {
        width: 32px;
        height: 32px;
        margin-right: 15px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .contacts-container {
        padding: 0 10px;
    }
    
    .contacts-header h1 {
        font-size: 1.6rem;
    }
    
    .contacts-header p {
        font-size: 0.85rem;
    }
    
    .contact-section,
    .social-section {
        padding: 20px;
    }
    
    .contact-section h2,
    .social-section h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 15px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-label {
        font-size: 0.85rem;
    }
    
    .contact-value {
        font-size: 1.1rem;
    }
    
    .social-item {
        padding: 18px 22px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .social-item svg {
        width: 28px;
        height: 28px;
        margin-right: 12px;
    }
}
