/* ========== СБРОС И БАЗА ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
    background: #010101;   /* глубокий тёмный фон */
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== HEADER ========== */
.header {
    background: #010101;           /* чуть светлее фона, чтобы выделить шапку */
    opacity: 0.95;              /* лёгкая прозрачность для эффекта глубины */
    position: sticky;              /* или fixed — смотри пояснения ниже */
    top: 0;
    z-index: 1000;
    padding: 24px 0;
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ====== ЛОГОТИП (НИК) ====== */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #f5f5f5;
    transition: opacity 0.2s;
}
.logo:hover {
    opacity: 0.8;
}

/* ====== КНОПКА СВЯЗИ ====== */
.contact-link {
    color: #f5f5f5;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 200;
    font-size: 1.2rem;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, color 0.2s;
}
.contact-link:hover {
    opacity: 0.7;
    color: #f5f5f5; /* остаётся белым, меняется только прозрачность */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Иконки соцсетей */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;          /* или подгони под размер иконок */
    height: 23px;
    transition: opacity 0.2s;
}
.social-icon:hover {
    opacity: 0.7;
}

.icon {
    width: 100%;
    height: 100%;
    display: block;
}


/* ========== СЕКЦИЯ ========== */
.section {
    padding: 30px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 0.9;
    text-align: left;
    color: #ebebeb;
    margin-bottom: 8px;
}

/* ========== СЕТКА ВИДЕО ========== */
.video-grid.vertical {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1320px;   /* 4 колонки */
    margin: 0 auto;
    gap: 18px;
}

@media (max-width: 992px) {
    .video-grid.vertical {
        grid-template-columns: repeat(2, 1fr);  /* 2 колонки на планшетах */
    }
}
@media (max-width: 600px) {
    .video-grid.vertical {
        grid-template-columns: 1fr;             /* 1 колонка на телефонах */
    }
}

.video-caption {
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #ccc;
    font-weight: 500;
}



/* ========== КАРТОЧКА ВИДЕО ========== */
.video-card {
    border-radius: 2px;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    background: #0a0a0a;
    transition: transform 0.3s;
    cursor: pointer;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;   /* чтобы клик проходил сквозь видео на карточку */
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;          /* вертикальное соотношение */
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* видео заполнит блок, сохраняя пропорции */
    border: none;
    outline: none;
}

.video-grid.horizontal {
    display: grid;
    grid-template-columns: 1fr;        /* одна колонка */
    max-width: 900px;                 /* ограничим ширину, чтобы не растягивалось на всю */
    margin: 0 auto;
    gap: 18px;                        /* побольше отступ между видео */
}

/* Обёртка видео для горизонтальных карточек — соотношение 16:9 */
.video-grid.horizontal .video-wrapper {
    aspect-ratio: 16 / 9;
}

/* На мобильных можно чуть уменьшить отступы */
@media (max-width: 600px) {
    .video-grid.horizontal {
        max-width: 100%;
        gap: 20px;
    }
}

/* ====== АДАПТИВ ====== */
@media (max-width: 480px) {
    .contact-text {
        display: none;   /* на телефонах показывает только иконку чата */
    }
    .contact-btn {
        padding: 10px 14px;
        border-radius: 50%;  /* круглая кнопка-иконка */
    }
    .logo {
        font-size: 1.5rem;
    }

}
/* ====== ГЛАВНЫЙ ЗАГОЛОВОК ЛЕКА ====== */
.hero-name {
    text-align: center;
    padding: 20px 0 20px;   /* отступы сверху и снизу */
}

.big-name {
    font-family: Segoe UI, 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 600;
    font-size: 6rem;         /* крупно, но без агрессии */
    letter-spacing: -1px;
    color: #fcfcfc;
    margin: 0;
    opacity: 0.9;
}

.tagline {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #888;
    margin-top: 16px;
    opacity: 0.8;
}

/* Адаптив: уменьшаем размер на мобильных */
@media (max-width: 600px) {
    .big-name {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    .tagline {
        font-size: 1rem;
        letter-spacing: 3px;
    }
}