/* Общие стили */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #E6F0FA;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Мобильное меню */
#mobileMenu {
    display: none;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form label {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

.modal-form input[type="tel"] {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    transition: border-color 0.2s ease;
}

.modal-form input[type="tel"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.modal-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}

.modal-submit {
    background: #3b82f6;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-submit:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.modal-submit:active {
    transform: translateY(0);
}

.required {
    color: #ef4444;
    font-size: 0.75rem;
}

/* Уведомления */
div.custom-notification {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 250px !important;
    max-width: 400px !important;
}

div.custom-notification.success {
    background: #10b981 !important;
}

div.custom-notification.error {
    background: #ef4444 !important;
}

div.custom-notification i {
    font-size: 20px !important;
}

div.custom-notification.show {
    display: flex !important;
    animation: slideIn 0.3s ease forwards, slideOut 0.3s ease 2.7s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Футер */
footer {
    background: linear-gradient(180deg, #353535 0%, #000000 100%);
    color: #FFFFFF;
    padding: 40px 0 15px;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about, .footer-emails, .footer-phones, .footer-nav {
    flex: 1;
    min-width: 220px;
}

.footer-about h3, .footer-emails h3, .footer-phones h3, .footer-nav h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
    position: relative;
}

.footer-about h3::after, .footer-emails h3::after, .footer-phones h3::after, .footer-nav h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 2px;
    background-color: #60A5FA;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #E5E7EB;
    max-width: 300px;
}

.contact-list, .nav-list {
    list-style: none;
    padding: 0;
}

.contact-list li, .nav-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #E5E7EB;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-list li:hover, .nav-list li:hover {
    color: #60A5FA;
    transform: translateX(4px);
}

.contact-list i {
    font-size: 16px;
    margin-right: 10px;
    color: #60A5FA;
    transition: color 0.3s ease;
}

.contact-list li:hover i {
    color: #FFFFFF;
}

.nav-list a {
    color: #E5E7EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #60A5FA;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    font-size: 12px;
    color: #D1D5DB;
}

/* Детали услуг (для services.html) */
#services-detail {
    padding: 80px 0;
    background: linear-gradient(180deg, #F9FAFB 0%, #E6F0FA 100%);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 50px;
}

.service-detail {
    margin-bottom: 60px;
}

.service-detail h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-detail h2 i {
    font-size: 40px;
    color: #007BFF;
}

.service-content {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-content:hover .service-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}

.service-description {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-description h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.service-description p {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.benefits-list li {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list li i {
    font-size: 20px;
    color: #007BFF;
}

.service-cta {
    display: inline-block;
    background-color: #007BFF;
    color: #FFFFFF;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}

.service-cta:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Общие адаптивные стили */
    footer {
        padding: 30px 0 10px;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .footer-about, .footer-emails, .footer-phones, .footer-nav {
        min-width: 100%;
        text-align: center;
    }
    .footer-about p {
        max-width: 100%;
    }
    .footer-about h3::after, .footer-emails h3::after, .footer-phones h3::after, .footer-nav h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-list li, .nav-list li {
        justify-content: center;
    }
    .footer-bottom {
        margin-top: 15px;
        padding-top: 10px;
    }

    /* Детали услуг */
    #services-detail {
        padding: 40px 0;
    }
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .service-detail {
        margin-bottom: 40px;
    }
    .service-detail h2 {
        font-size: 28px;
    }
    .service-detail h2 i {
        font-size: 32px;
    }
    .service-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .service-image {
        width: 100%;
        height: 250px;
    }
    .service-description h3 {
        font-size: 20px;
    }
    .service-description p {
        font-size: 15px;
    }
    .benefits-list li {
        font-size: 15px;
    }
    .service-cta {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Модальное окно */
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
    .modal-subtitle {
        font-size: 14px;
    }
    .modal-form input[type="tel"] {
        font-size: 14px;
        padding: 8px;
    }
    .modal-submit {
        font-size: 14px;
        padding: 10px;
    }

    /* Уведомления */
    div.custom-notification {
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
        font-size: 14px !important;
        padding: 10px 20px !important;
        min-width: 200px !important;
    }
}