/* --------------------------------------------------------------------------
   X-LAB — design tokens (light)
   -------------------------------------------------------------------------- */

:root {
    --white: #ffffff;
    --surface: #f9f9f9;
    --black: #000000;
    --ink: #111111;
    --grey: #767676;
    --line: #e5e5e5;

    --font-main: 'Inter', Arial, Helvetica, sans-serif;

    --nav-toggle-color: var(--black);
    --nav-overlay-bg: #ffffff;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(16px, 4vw, 56px);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand { display: block; line-height: 0; }

.brand-logo {
    width: clamp(120px, 14vw, 168px);
    height: auto;
    filter: grayscale(1) brightness(0.18);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
}

.menu-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link:hover { color: var(--grey); }

.chevron {
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.menu-item:hover .sub-menu { opacity: 1; visibility: visible; }

.sub-menu a {
    padding: 12px 16px;
    text-decoration: none;
    color: var(--grey);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.sub-menu a + a { border-top: 1px solid var(--line); }
.sub-menu a:hover { background: var(--black); color: var(--white); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    padding-top: 85px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(48px, 5vw, 88px) clamp(20px, 5vw, 80px);
    border-right: 1px solid var(--line);
}

.eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
}

.hero-title {
    margin-top: 28px;
    font-size: clamp(2.6rem, 6.5vw, 5.6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--black);
}

.hero-quote {
    margin-top: 36px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    max-width: 520px;
}

.quote-text {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--grey);
}

.quote-author {
    margin-top: 12px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: clamp(40px, 6vw, 72px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 34px;
    border: 1px solid var(--black);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--black); color: var(--white); }

.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--white); color: var(--black); }

/* --------------------------------------------------------------------------
   Hero media
   -------------------------------------------------------------------------- */

.hero-media {
    position: relative;
    background: var(--surface);
    cursor: pointer;
    overflow: hidden;
}

.video-container {
    position: absolute;
    inset: 0;
}

.v-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

.media-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 3;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .hero-media {
        min-height: 44vh;
    }
}

@media (max-width: 767px) {
    .site-header { padding: 14px 16px; }

    .nav { gap: 28px; }

    .nav-link { font-size: 13px; }

    /* В бургере «Проекты» ведёт сразу на страницу — без подменю */
    .menu-item .sub-menu,
    .menu-item:hover .sub-menu {
        display: none !important;
    }

    .chevron { display: none; }

    .hero-actions { width: 100%; }

    .btn { flex: 1 1 auto; }

    .hero-media { min-height: 38vh; }
}
