* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f0f;
    color: #eee;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0,0,0,0.8);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;           /* Важно! */
    height: 100vh;                /* На всю высоту экрана */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;             /* Обрезает видео, если нужно */
    color: white;
    text-align: center;
}

/* Само видео на фоне */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;             /* Чёрный фон, пока видео грузится */
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;            /* Самое важное свойство — видео заполняет весь блок */
}

/* Тёмный overlay, чтобы текст был читаемым */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);   /* Можно менять прозрачность */
    z-index: 2;
}

/* Контент поверх видео */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 30px;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #ff2a6d;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: 0.3s;
}

.btn:hover {
    background: #ff5e95;
    transform: scale(1.05);
}

/* Остальные секции */
.services, .portfolio, .contact {
    padding: 100px 5%;
}

h2, h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #1a1a1a;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #222;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact input, .contact textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-size: 1rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0f0f0f;
        padding: 20px;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}