@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Manrope:wght@500;700;800&display=swap');
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('/Images/background.png'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    
    
    background-color: #fdfbff; 

    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    color: #1d1d1f; 
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.4); 
    z-index: -1;
}

.main-header-image{
    width: 150px;
    height: auto;
}

/* Главный заголовок */
.main-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 56px 30px 56px;
}

.main-header-right{
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: #4A5157;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.main-header-right button {
    background-color: #4b118b;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px; 
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.main-header-right button:hover {
    background-color: #3a0d6d;
}

.main-header-right button:active {
    transform: translateY(0);
}

.nav-link {
    text-decoration: none;
    color: #4A5157;
    position: relative;
    padding-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}


.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4b118b;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}


.nav-link:hover {
    color: #4b118b;
}

.nav-link:hover::after {
    transform: scaleX(1);
}


/* Контейнер страницы */
.projects-page {
    padding: 100px 56px;
    width: 100%;
    box-sizing: border-box; 
    margin: 0 auto;
}

/* Заголовок страницы */
.page-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 42px;
    margin-bottom: 40px;
    color: #1d1d1f;
}

.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: opacity 0.3s ease; /* Плавное появление */
    cursor: pointer;
}

/* Убедимся, что постер (превью) заполняет все пространство */
video[poster] {
    object-fit: cover;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px 30px; 
    width: 100%;
}

/* Стили карточки */
.full-project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.full-project-card:hover {
    transform: translateY(-8px);
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; 
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #eee;
}

.image-wrapper img, 
.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Детали текста под видео */
.project-details {
    padding: 0 5px;
}

.project-details h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.project-details p {
    font-size: 16px;
    color: #4A5157;
    margin: 0;
    opacity: 0.8;
}


/* Адаптив для мобилок */

@media (max-width: 1024px) {
    .projects-page {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Переключаем в одну колонку */
        gap: 40px;
    }
    .projects-page {
        padding: 0 20px;
    }
    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .projects-page {
        padding: 20px;
    }
}

.image-wrapper img, 
.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Фикс для видео, если браузер добавляет свои рамки */
.image-wrapper video {
    outline: none;
    border: none;
}

/* --- Контакты снизу --- */
.main-footer {
    padding: 60px 0 0 0; 
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05); 
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
}


.footer-content {
    max-width: 100%;
    padding: 0 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.2); 
}

/* Логотип */
.footer-logo img {
    width: 220px;
    height: auto;
    display: block;
    margin-bottom: 0; 
}
/* Блок контактов */
.footer-contacts {
    display: flex;
    flex-direction: column; 
    gap: 25px;
    text-align: left;
}


.footer-logo img {
    width: 200px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.contact-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4b118b;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-item .label {
    margin-bottom: 2px; 
}

.contact-item p {
    margin-top: 0;      
    margin-bottom: 0;   
}

.contact-item p, .contact-item a {
    font-size: 16px;
    color: #4A5157;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #4b118b;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    color: #aaa;
    font-size: 13px;
}








/* --- Адаптив --- */

.burger-menu {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2000;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #4b118b;
    transition: 0.3s;
}
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .main-header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%; 
        height: 100vh;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
        z-index: 1500;
    }

    
    .main-header-right.active {
        right: 0;
    }


    .burger-menu.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


@media (max-width: 650px) {
    .hero-section {
        padding: 0 20px; 
    }
    
    .video-container {
        height: 30vh; 
        border-radius: 30px; 
    }
}


/* --- Адаптив для проектов и футера --- */
@media (max-width: 768px) {
    .projects-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 30px;
    }
    
    .project-video-wrapper {
        height: 250px;
        border-radius: 30px;
    }
}