

/* Start:/local/components/solveself/news/templates/projects/style.css?176399020911175*/
/* Стили для блока проектов */
.projects {
    background: #fff;
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #2c5aa0, #1e3f73);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #f8f9fa;
    color: #2c5aa0;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.project-duration {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: #1e3f73;
}

/* Исправленные стили модального окна */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.project-modal-overlay.active {
    display: flex;
}

.project-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    color: white;
    position: relative;
    flex-shrink: 0;
}

.project-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    line-height: 1.3;
}

.project-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.project-modal-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Галерея */
.project-gallery {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.project-gallery-main {
    flex: 1;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.project-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 2;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2c5aa0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.project-gallery-thumbnails {
    display: flex;
    padding: 15px;
    gap: 10px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #2c5aa0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Детали проекта */
.project-details {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    min-width: 0;
    max-width: 500px;
    background: #fff;
    border-left: 1px solid #e9ecef;
}

.project-full-description {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #333;
}

.project-full-description p {
    margin-bottom: 15px;
}

.project-full-description strong {
    color: #2c5aa0;
}

.project-features {
    margin-bottom: 25px;
}

.project-features h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: "✓";
    color: #2c5aa0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    color: #6c757d;
    font-size: 0.8rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-tag {
    background: #f8f9fa;
    color: #2c5aa0;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .project-modal-content {
        flex-direction: column;
        max-height: none;
    }

    .project-gallery-main {
        height: 300px;
        min-height: 300px;
    }

    .project-details {
        max-width: none;
        border-left: none;
        border-top: 1px solid #e9ecef;
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-modal-overlay {
        padding: 10px;
    }

    .project-modal-header {
        padding: 20px;
    }

    .project-modal-title {
        font-size: 1.3rem;
        padding-right: 15px;
    }

    .project-details {
        padding: 20px;
        max-height: 50vh;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .project-gallery-main {
        height: 250px;
        min-height: 250px;
    }

    .gallery-thumb {
        width: 70px;
        height: 50px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .project-modal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .project-modal-title {
        padding-right: 0;
    }

    .project-gallery-main {
        height: 200px;
        min-height: 200px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
}

/* Анимации */
.project-modal {
    animation: modalAppear 0.3s ease;
}

.project-card {
    animation: itemAppear 0.5s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes itemAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скрытие скроллбара для Webkit браузеров */
.project-details::-webkit-scrollbar {
    width: 6px;
}

.project-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.project-details::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.project-details::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Предотвращение выделения текста в галерее */
.project-gallery {
    user-select: none;
    -webkit-user-select: none;
}

/* Плавное появление изображений */
.project-gallery-main img {
    opacity: 0;
    animation: imageFadeIn 0.5s ease forwards;
}

@keyframes imageFadeIn {
    to {
        opacity: 1;
    }
}

/* Ховер эффекты */
.gallery-thumb:hover {
    transform: scale(1.05);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-tag:hover {
    background: #2c5aa0;
    color: #fff;
    transform: translateY(-1px);
}

/* Задержки анимаций для карточек */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
/* End */
/* /local/components/solveself/news/templates/projects/style.css?176399020911175 */
