/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5vh auto 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: appear 0.3s ease-out;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff6b00;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-modal {
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff6b00;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b00;
    outline: none;
}

.cta-btn {
    background: #ff6b00;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.cta-btn:hover {
    background: #e05d00;
    transform: scale(1.02);
}

/* Адаптация */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
}

/* Добавьте в конец файла style.css */

/* Стили для десктопов */
@media (min-width: 1024px) {
    /* Баннер */
    .banner {
        padding: 120px 0;
    }
    
    .banner h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    .banner-subtitle {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        padding: 18px 45px;
        font-size: 1.1rem;
    }

    /* Модальное окно */
    .modal-content {
        max-width: 768px;
        padding: 40px;
    }
    
    .modal-header h3 {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 18px;
        padding: 15px;
    }
    
    .cta-btn {
        font-size: 18px;
        padding: 16px 40px;
    }

    /* Преимущества */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .benefit-item {
        padding: 30px;
        text-align: center;
    }
    
    .benefit-item img {
        width: 64px;
        height: 64px;
        margin-bottom: 15px;
    }

    /* Галерея */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .gallery img {
        height: 400px;
        object-fit: cover;
    }

    /* Отзывы */
    .review-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .review-item {
        padding: 30px;
    }

    /* Подвал */
    footer {
        padding: 40px 0;
        font-size: 1.1rem;
    }
    
    footer a {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    body {
        font-size: 18px;
    }
}

.container {
    max-width: 1366px;
    padding: 0 40px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.benefit-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.benefit-item:hover {
    background: #fff3e0;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cta-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Плавающая кнопка */
.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #ff6b00;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    z-index: 1050;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.floating-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

/* Анимация пульсации */
.pulse {
    width: 20px;
    height: 20px;
    background: #ff6b00;
    border-radius: 50%;
    margin-left: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Адаптация */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .pulse {
        width: 16px;
        height: 16px;
    }
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Модальное окно изображения */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1050;
}

.modal-image-container {
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    position: relative;
}

#modalImage {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Адаптация */
@media (max-width: 768px) {
    .gallery-item {
        height: 150px;
    }
    
    .modal-image-container {
        max-width: 95%;
    }
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Секция about */
.about {
    padding: 60px 0;
}

.about .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.about-image {
    flex: 1 1 45%;
    position: relative;
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Адаптация */
@media (max-width: 768px) {
    .about .container {
        flex-direction: column;
    }
    
    .about-content {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .about-image {
        flex: 1 1 100%;
        margin-top: 20px;
    }
    
    .responsive-image {
        border-radius: 8px;
    }
}

/* Дополнительные улучшения */
@media (min-width: 1024px) {
    .responsive-image {
        height: 400px;
        object-fit: cover;
    }
    
    .about-image:hover .responsive-image {
        transform: scale(1.05);
    }
}

/* Добавьте для продвинутой адаптации */
.responsive-image {
    aspect-ratio: 16/9; /* Сохраняет пропорции */
}

/* Для нестандартных размеров экранов */
@media (max-width: 480px) {
    .responsive-image {
        height: 250px;
        object-position: center 30%; /* Смещение фокуса */
    }
}

/* Преимущества */
.benefits {
    padding: 60px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.benefit-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Адаптация для десктопов */
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .benefit-item {
        padding: 35px;
    }
    
    .benefit-item img {
        width: 80px;
        height: 80px;
    }
    
    .benefit-item p {
        font-size: 20px;
    }
    
    .benefit-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px;
    }
}