html {
    scroll-behavior: smooth;
}

.contacts-section {
    padding: 150px 0 40px;
    background: #F0F0F0;
}

.contacts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-title {
    font-family: 'TildaSans', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.contacts-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #990823;
    border-radius: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #990823;
    border-radius: 2px 0 0 2px;
}

.contact-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.contact-item:nth-child(even)::before {
    left: auto;
    right: 0;
    border-radius: 0 2px 2px 0;
}

.contact-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.contact-item:nth-child(even):hover {
    transform: translateX(-5px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #990823;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-family: 'TildaSans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.contact-text {
    font-family: 'TildaSans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.contact-link {
    color: #990823;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #c41e3a;
    text-decoration: underline;
}

.work-hours {
    background: #990823;
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 8px;
}

.work-hours .contact-text {
    color: white;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.contact-item:nth-child(even) .social-links {
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    color: #990823;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'TildaSans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #990823;
}

.social-link:hover {
    background: #990823;
    color: white;
    transform: translateY(-2px);
}

.social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fullscreen-map {
    width: 100%;
    height: 60vh;
    min-height: 320px;
    position: relative;
}

.fullscreen-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 1024px) {
    .contacts-section {
        padding: 120px 0 30px;
    }

    .contacts-container {
        max-width: 700px;
    }

    .contact-item {
        gap: 16px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 100px 0 20px;
    }

    .contacts-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .contact-list {
        gap: 18px;
        margin-bottom: 35px;
    }

    .contact-item {
        flex-direction: column !important;
        align-items: center;
        text-align: center !important;
        gap: 12px;
        padding: 18px 16px;
    }

    .contact-item::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        right: auto;
        border-radius: 2px 2px 0 0;
    }

    .contact-item:nth-child(even)::before {
        left: 0;
        right: auto;
        border-radius: 2px 2px 0 0;
    }

    .contact-item:hover,
    .contact-item:nth-child(even):hover {
        transform: none;
    }

    .contact-icon {
        margin-top: 0;
        width: 28px;
        height: 28px;
    }

    .contact-content {
        width: 100%;
    }

    .social-links {
        justify-content: center !important;
        gap: 10px;
    }

    .social-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .fullscreen-map {
        height: 50vh;
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .contacts-section {
        padding: 90px 0 15px;
    }

    .contacts-container {
        padding: 0 12px;
    }

    .contacts-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .contact-item {
        padding: 16px 12px;
        gap: 10px;
    }

    .contact-label {
        font-size: 0.95rem;
    }

    .contact-text {
        font-size: 0.95rem;
    }

    .work-hours {
        padding: 10px 12px;
    }

    .work-hours .contact-text {
        font-size: 0.85rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .social-link {
        width: 100%;
        max-width: 220px;
        justify-content: center;
        padding: 10px 12px;
    }

    .fullscreen-map {
        height: 45vh;
        min-height: 250px;
    }
}