/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* КЛЮЧЕВО: убирает горизонтальный скролл */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0b0b0b;
    color: #e5e5e5;
    line-height: 1.6;
}

/* =========================
   LINKS
========================= */
a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* =========================
   HEADER
========================= */
.site-header {
    background-color: #000;
    border-bottom: 1px solid #1a1a1a;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    height: 40px;
}

.site-title {
    margin-left: 12px;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 600;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* =========================
   NAVIGATION
========================= */
.main-nav a {
    margin-left: 25px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================
   MAIN CONTENT
========================= */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9b9b9b;
    margin-bottom: 60px;
}

/* =========================
   PHOTO GRID
========================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.photo-card {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 14px;
}

/* =========================
   CTA BAR
========================= */
.cta-bar {
    background-color: #000;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    width: 100%;
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text {
    font-size: 18px;
    letter-spacing: 3px;
}

.cta-button {
    border: 1px solid #fff;
    padding: 14px 28px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #fff;
    color: #000;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #000;
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
    width: 100%;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    margin: 0 10px;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-copy a {
    color: #777;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    h1 {
        font-size: 34px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .cta-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================
   VIDEO GRID (SAFE)
========================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;

    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* CARD */
.video-card {
    position: relative;
    background: #000;
    overflow: hidden;
}

/* THUMB */
.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* стабильная сетка */
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover img {
    transform: scale(1.05);
}

/* LABEL */
.photo-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.65);
    padding: 6px 10px;
}

/* =========================
   RESPONSIVE (NO OVERFLOW)
========================= */

@media (max-width: 768px) {
    .video-grid {
        gap: 20px;
    }
}
