/**
 * Modern Contacts Module Styles
 * Файл: modern-contacts.css
 */

/* Modern Contacts Module */
.modern-contacts-module {
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.contacts-header {
    text-align: center;
    margin-bottom: 40px;
}

.contacts-title {
    font-family: 'Noto Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.contacts-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* Tabs */
.contacts-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
    background-color: #FBF5F2;
    border-radius: 28px;
    padding: 6px;
}

.contacts-tab {
    background: none;
    border: none;
    padding: 10px 24px;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 28px;
    position: relative;
}

.contacts-tab:hover {
    color: #D4BA8D;
    background: #ffffff;
}

.contacts-tab.active {
    color: #D4BA8D;
    background: #29291E;
}

.contacts-tab.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #D4BA8D;
    border-radius: 2px;
}

/* Content Panels */
.contacts-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.contacts-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Description */
.category-description,
.subcategory-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #FBF5F2;
    border-radius: 16px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Grid Layout for Services */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

/* Company Block */
.contacts-col {
    background: #FBF5F2;
    padding: 30px;
    border-radius: 24px;
    height: 100%;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
}

.contacts-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Icon */
.contact-icon {
    flex-shrink: 0;
}

.contact-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

/* Contact Content */
.contact-content {
    flex: 1;
}

.company-name {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.3;
}




.contact-position {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
    position: relative;
}

.contact-position::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 30%;
    height: 1px;
    background-color: #C09D5C;
}

.contact-block {
    margin-bottom: 0px;
}

.contact-block-title {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.contact-address {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
}

.contact-phone,
.contact-fax {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-phone a,
.contact-email a,
.contact-webpage a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: #22262a;
}

.contact-phone a:hover {
    color: #D4BA8D;
}

.contact-email {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 300;
}

.contact-email a {
    color: #22262a;
}

.contact-email a:hover {
    color: #d4a800;
    text-decoration: underline;
}

.contact-webpage a {
    color: #D4BA8D;
    text-decoration: none;
    word-break: break-all;
}

.contact-webpage a:hover {
    text-decoration: underline;
}

/* Contact phone/email icons */
.contact-phone img,
.contact-email img {
    flex-shrink: 0;
}

/* Regions Block */
.contact-regions {
    background: #FBF5F2;
    padding: 30px;
    border-radius: 24px;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-regions:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.regions-title {
    font-family: 'Urbanist', 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.regions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.regions-list li {
    margin-bottom: 12px;
}

.region-link {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.region-link::before {
    content: '→';
    color: #D4BA8D;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.region-link:hover {
    color: #D4BA8D;
    transform: translateX(5px);
}

.region-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Single Contact Card */
.contacts-single {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Noto Sans', sans-serif;
    background: #FBF5F2;
    border-radius: 24px;
}

.contact-person-card {
    background: #FBF5F2;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.person-name {
    font-family: 'Urbanist', 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.person-position {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    color: #D4BA8D;
    margin-bottom: 20px;
}

.person-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.person-phone {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.person-email {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.person-email a {
    color: #D4BA8D;
    text-decoration: none;
}

.person-email a:hover {
    text-decoration: underline;
    color: #d4a800;
}

/* Subcategory Section */
.subcategory-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.subcategory-title {
    font-family: 'Urbanist', 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* No Contacts Message */
.no-contacts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-family: 'Noto Sans', sans-serif;
    background: #FBF5F2;
    border-radius: 24px;
}

/* Icons */
.contact-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1200px) {
    .contacts-grid {
        gap: 25px;
    }
    
    .contacts-col {
        padding: 25px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .contacts-title {
        font-size: 2rem;
    }
    
    .contacts-tabs {
        justify-content: center;
    }
    
    .contacts-grid {
        gap: 20px;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .contact-icon img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .modern-contacts-module {
        padding: 30px 15px;
    }
    
    .contacts-title {
        font-size: 1.8rem;
    }
    
    .contacts-subtitle {
        font-size: 0.9rem;
    }
    
    .contacts-tabs {
        border-radius: 20px;
    }
    
    .contacts-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contacts-col {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-icon {
        margin-bottom: 15px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .contact-block-title {
        text-align: center;
    }
    
    .contact-phone,
    .contact-email,
    .contact-address {
        justify-content: center;
        text-align: center;
    }
    
    .contact-person-card {
        padding: 30px 20px;
    }
    
    .person-name {
        font-size: 1.2rem;
    }
    
    .person-phone {
        font-size: 1rem;
    }
    
    .person-email {
        font-size: 0.9rem;
    }
    
    .subcategory-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .modern-contacts-module {
        padding: 20px 15px;
    }
    
    .contacts-tabs {
        flex-direction: column;
        align-items: stretch;
        background: none;
        padding: 0;
    }
    
    .contacts-tab {
        text-align: center;
        background: #FBF5F2;
    }
    
    .contacts-tab.active::after {
        display: none;
    }
    
    .contacts-tab.active {
        background: #29291E;
        color: #D4BA8D;
    }
    
    .contacts-grid {
        gap: 15px;
    }
    
    .contacts-col {
        padding: 15px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .contact-phone,
    .contact-email,
    .contact-address {
        font-size: 0.85rem;
    }
    
    .contact-icon img {
        width: 40px;
        height: 40px;
    }
    
    .person-phone {
        font-size: 0.9rem;
    }
    
    .regions-title {
        font-size: 1.1rem;
    }
    
    .region-link {
        font-size: 0.9rem;
    }
}

/* Анимация при загрузке */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-contacts-module {
    animation: slideUp 0.6s ease;
    max-width: 1290px;
}

/* Стили для карточек с сеткой */
.contacts-col:nth-child(even) {
    animation-delay: 0.1s;
}

.contacts-col:nth-child(odd) {
    animation-delay: 0.2s;
}