/* === ИСПРАВЛЕННЫЕ СТИЛИ ГАЛЕРЕИ БЕЗ НАЗВАНИЙ И ТЕГОВ === */

/* Кнопка галереи */
.gallery-btn {
    background: linear-gradient(45deg, #9333ea, #7c3aed);
    animation: gallery-glow 2s ease-in-out infinite alternate;
    border: 3px solid #fff;
    font-size: 1.1rem;
}

.gallery-btn:hover {
    background: linear-gradient(45deg, #7c3aed, #9333ea);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(147, 51, 234, 0.6);
}

@keyframes gallery-glow {
    0% { box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4); }
    100% { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6); }
}

/* Модальное окно галереи */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.gallery-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 2rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.gallery-modal h2 {
    color: var(--light-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.gallery-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* Фильтры категорий */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3));
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, var(--light-blue), var(--accent-blue));
    color: var(--white);
    border-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Сетка галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* УПРОЩЕННЫЕ КАРТОЧКИ БЕЗ НАЗВАНИЙ И ТЕГОВ */
.gallery-item {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(37, 99, 235, 0.06) 50%, 
        rgba(29, 78, 216, 0.04) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    /* Упрощенная высота только для медиа */
    height: 250px;
    box-shadow: none;
}

.gallery-item::before {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* УПРОЩЕННЫЕ МЕДИА НА ВСЮ ВЫСОТУ */
.gallery-item-media {
    position: relative;
    width: 100%;
    height: 100%; /* Занимает всю высоту карточки */
    overflow: hidden;
    background: #1e293b;
    border-radius: 20px; /* Полное скругление на всю карточку */
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 20px; /* Полное скругление */
    background: #000;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.02);
}

.media-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.gallery-item[data-type="video"] .media-overlay {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    animation: none;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    box-shadow: none;
    backdrop-filter: blur(5px);
}

.video-play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* УБИРАЕМ ВСЕ СТИЛИ ДЛЯ КОНТЕНТА, НАЗВАНИЙ И ТЕГОВ */
.gallery-item-content {
    display: none; /* Полностью скрываем */
}

.gallery-item h3 {
    display: none;
}

.gallery-item-tags {
    display: none;
}

.tag {
    display: none;
}

/* Полноэкранный просмотр */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-content img,
.fullscreen-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
    background: #000;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    z-index: 4001;
}

.fullscreen-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 4001;
}

.fullscreen-nav:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

.fullscreen-info {
    display: none; /* Убираем информацию в полноэкранном режиме */
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .gallery-item {
        height: 230px;
    }
}

@media (max-width: 768px) {
    .gallery-modal-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
        padding: 1rem;
        border-radius: 20px;
    }

    .gallery-modal h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ ПОЛНОЭКРАННОГО РЕЖИМА */
    .fullscreen-content {
        max-width: 95%;
        max-height: 85%;
        margin: 0 auto;
    }

    .fullscreen-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .fullscreen-nav {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        padding: 0.5rem;
    }

    .fullscreen-prev {
        left: 15px;
    }

    .fullscreen-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-modal-content {
        padding: 0.5rem;
        border-radius: 15px;
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 15px;
        right: 20px;
    }
    
    .gallery-grid {
        gap: 0.8rem;
    }

    .gallery-item {
        height: 180px;
    }

    .video-play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* ЭКСТРА МОБИЛЬНАЯ АДАПТАЦИЯ */
    .fullscreen-content {
        max-width: 98%;
        max-height: 80%;
    }

    .fullscreen-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .fullscreen-nav {
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
        padding: 0.3rem;
    }

    .fullscreen-prev {
        left: 10px;
    }

    .fullscreen-next {
        right: 10px;
    }
}



/* === СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА "ПРО КОМПАНІЮ" === */

/* Модальное окно "Про компанію" */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(26, 54, 93, 0.95) 100%);
    padding: 3rem;
    border-radius: 25px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: slideInUp 0.4s ease;
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal h3 {
    color: var(--light-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.modal p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.modal strong {
    color: var(--light-blue);
    font-weight: bold;
}

.modal blockquote {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--light-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
}

.modal blockquote::before {
    
    font-size: 4rem;
    color: var(--light-blue);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

.modal blockquote em {
    color: var(--text-gray);
    font-style: italic;
    font-size: 1.2rem;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.close-modal:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        margin: 1rem;
        border-radius: 20px;
        max-height: 90vh;
    }

    .modal h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .modal p {
        font-size: 1rem;
    }

    .modal blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .modal blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 10px;
    }

    .modal blockquote em {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 15px;
    }

    .modal h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .modal p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 15px;
        right: 10px;
    }

    .modal blockquote {
        padding: 0.8rem;
        margin: 1rem 0;
    }

    .modal blockquote::before {
        font-size: 2.5rem;
        top: -2px;
        left: 8px;
    }

    .modal blockquote em {
        font-size: 1rem;
    }
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ === */
.services {
  background: url('img/нашиПослуги.png') center center/cover no-repeat;
}

.service-card {
  background: #111;
  color: #fff;
}
