/* Общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #121212;
    color: #ffffff;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка и Навигация */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e50914;
}
nav a {
    color: #bbb;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: #fff;
    border-bottom: 2px solid #e50914;
}

/* Главный блок (Hero) */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.jpg') no-repeat center center/cover;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ccc;
}
.btn {
    display: inline-block;
    background-color: #e50914;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover {
    background-color: #b80710;
}

/* Услуги */
.services, .portfolio {
    padding: 80px 0;
}
h2, .portfolio h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}
.subtitle {
    text-align: center;
    color: #aaa;
    margin-top: -30px;
    margin-bottom: 40px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}
.card h3 {
    margin-bottom: 15px;
    color: #e50914;
}

/* Сетка Портфолио и Видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: start;
}
.video-item {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}
.video-item video {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 16/9;
    background-color: #000;
}
/* Адаптивность для YouTube iframe */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}
/* Стили для вертикальных видео */
.video-item.vertical video {
    aspect-ratio: 9/16;
    max-height: 500px;
    display: block;
    margin: 0 auto;
}
.video-item h3 {
    margin: 15px 0 5px 0;
    font-size: 18px;
}
.video-item p {
    color: #aaa;
    font-size: 14px;
}

/* Подвал */
footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 30px 0;
    color: #666;
    border-top: 1px solid #222;
}
