/* Contacts Section Styles */

.contacts {
    padding: 80px 0;
    background: linear-gradient(135deg, #056486 0%, #0A7FA3 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.map-overlay h4 {
    color: white;
}

.map-overlay p {
    color: white;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-white {
    color: white;
}

/* Contacts Content */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Contacts Wrapper */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Contact Info */
.contacts-info {
    display: grid;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-note {
    color: white;
}

.contact-link {
    color: white;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-card:hover::before {
    left: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.contact-text {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
    color: white;
}

.contact-text a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-text a:hover {
    opacity: 0.8;
}

.contact-description {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* CTA блок */
.contacts-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contacts-cta h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-call {
    background: white;
    color: #056486;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-call:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: #056486;
}

.btn-booking {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-booking:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: white;
    color: white;
}

/* Schedule */
.schedule {
    margin-bottom: 8px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.schedule-day {
    opacity: 0.9;
}

.schedule-time {
    font-weight: 700;
}

/* Contact Form */
.contacts-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    height: fit-content;
}

.form-container {
    width: 100%;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.form-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text .link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.checkbox-text .link:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: white;
    color: #056486;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    background: #f8fafc;
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
    width: 100%;
}

.btn-icon {
    font-size: 20px;
}

/* Map Section */
.contacts-map {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.map-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#yandex-map {
    width: 100% !important;
    height: 400px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #056486;
    margin: 0 0 5px 0;
}

.map-overlay p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.map-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.map-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.map-text {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.map-description {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Social Section */
.contacts-social {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 25px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    font-size: 24px;
}

.social-text {
    font-weight: 600;
    font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contacts {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-card {
        padding: 25px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-title {
        font-size: 18px;
    }
    
    .contacts-form {
        padding: 30px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contacts-cta {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .contacts-cta h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .map-container {
        padding: 15px;
    }
    
    #yandex-map {
        height: 350px !important;
    }
    
    .map-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 12px 15px;
    }
    
    .map-title {
        font-size: 20px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        padding: 15px 20px;
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    .contacts {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contacts-form {
        padding: 25px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
    
    .contacts-cta {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .contacts-cta h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .cta-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .map-container {
        padding: 10px;
    }
    
    #yandex-map {
        height: 300px !important;
    }
    
    .map-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 10px 12px;
    }
    
    .map-overlay h4 {
        font-size: 1rem;
    }
    
    .map-overlay p {
        font-size: 0.85rem;
    }
    
    .map-icon {
        font-size: 36px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
}