/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Шапка */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.logo i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.8rem;
}

.project-info {
    text-align: center;
    flex-grow: 1;
}

.project-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.project-info p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Основной контент */
.main-content {
    padding: 40px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Видео-контейнер - УМЕНЬШЕН НА 10% */
.video-presentation {
    margin-bottom: 60px;
}

.video-container {
    background-color: #fff;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 75vw;
    /* Убираем фиксированные размеры */
}

.video-player {
    width: 100%;
    height: auto;  /* высота подстраивается под пропорции видео */
    display: block;
    background-color: #000;
    object-fit: contain; /* или cover — как вам нужно */
}

.video-controls-panel {
    background-color: #2c3e50;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.time-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    max-width: 540px; /* 600px - 10% */
    margin: 0 20px;
}

.time-controls span {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    min-width: 60px;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    -webkit-appearance: none;
    background-color: #34495e;
    border-radius: 4px;
    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3498db;
    cursor: pointer;
}

.volume-slider {
    width: 90px; /* 100px - 10% */
    height: 8px;
    -webkit-appearance: none;
    background-color: #34495e;
    border-radius: 4px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #3498db;
    cursor: pointer;
}

/* Детали проекта */
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1260px; /* 1400px - 10% */
    margin-left: auto;
    margin-right: auto;
}

.detail-card {
    background-color: white;
    border-radius: 10px;
    padding: 27px; /* 30px - 10% */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-9px); /* 10px - 10% */
}

.detail-card i {
    font-size: 2.25rem; /* 2.5rem - 10% */
    color: #3498db;
    margin-bottom: 18px; /* 20px - 10% */
}

.detail-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem; /* 1.5rem - 10% */
    color: #2c3e50;
    margin-bottom: 13.5px; /* 15px - 10% */
}

.detail-card ul {
    list-style-type: none;
}

.detail-card li {
    padding: 7.2px 0; /* 8px - 10% */
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.detail-card li:last-child {
    border-bottom: none;
}

/* Скриншоты */
.screenshots-section {
    margin-top: 60px;
    max-width: 1260px; /* 1400px - 10% */
    margin-left: auto;
    margin-right: auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); /* 300px - 10% */
    gap: 27px; /* 30px - 10% */
    margin-top: 27px; /* 30px - 10% */
}

.screenshot {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.screenshot-img {
    height: 180px; /* 200px - 10% */
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.screenshot p {
    padding: 13.5px; /* 15px - 10% */
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 45px 0 18px; /* 50px/20px - 10% */
    margin-top: 54px; /* 60px - 10% */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 36px; /* 40px - 10% */
    margin-bottom: 36px; /* 40px - 10% */
    max-width: 1260px; /* 1400px - 10% */
    margin-left: auto;
    margin-right: auto;
}

.footer h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.17rem; /* 1.3rem - 10% */
    margin-bottom: 18px; /* 20px - 10% */
    color: #ecf0f1;
}

.developer-info p, .contact-info p {
    margin-bottom: 9px; /* 10px - 10% */
    color: #bdc3c7;
    line-height: 1.8;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 13.5px; /* 15px - 10% */
}

.project-link {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px; /* 10px - 10% */
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2980b9;
}

.project-link i {
    font-size: 1.08rem; /* 1.2rem - 10% */
}

.footer-bottom {
    text-align: center;
    padding-top: 18px; /* 20px - 10% */
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.81rem; /* 0.9rem - 10% */
    max-width: 1260px; /* 1400px - 10% */
    margin-left: auto;
    margin-right: auto;
}

/* Адаптивность */
@media (max-width: 992px) {
    .video-player {
        height: 450px; /* 500px - 10% */
    }
    
    .video-controls-panel {
        flex-direction: column;
        gap: 13.5px; /* 15px - 10% */
    }
    
    .time-controls {
        max-width: 100%;
        width: 100%;
        margin: 9px 0; /* 10px - 10% */
    }
    
    .video-container {
        max-width: 90vw; /* адаптивная ширина */
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 18px; /* 20px - 10% */
    }
    
    .project-info h1 {
        font-size: 1.62rem; /* 1.8rem - 10% */
    }
    
    .video-container {
        width: 100%;
    }
    .video-player {
        height: 360px; /* 400px - 10% */
    }
    
    .section-title {
        font-size: 1.53rem; /* 1.7rem - 10% */
    }
    
    .control-group {
        gap: 9px; /* 10px - 10% */
    }
    
    .control-btn {
        width: 36px; /* 40px - 10% */
        height: 36px; /* 40px - 10% */
    }
    
    .project-details,
    .screenshots-section,
    .footer-content {
        max-width: 90vw;
    }
}

@media (max-width: 576px) {
    .video-container {
        width: 100%;
    }
    .video-player {
        height: 270px; /* 300px - 10% */
    }
    
    .video-controls-panel {
        padding: 13.5px; /* 15px - 10% */
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 18px; /* уменьшенный gap для мобильных */
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 18px; /* уменьшенный gap для мобильных */
    }
    
    .detail-card {
        padding: 20px; /* немного больше для мобильных */
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Дополнительные медиа-запросы для очень маленьких экранов */
@media (max-width: 400px) {
    .video-container {
        width: 100%;
    }
    .video-player {
        height: 200px;
    }
    
    .time-controls span {
        font-size: 0.9rem;
        min-width: 45px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}