:root {
    --bg: #0b0f14;
    --card: #111827;
    --accent: #4f8cff;
    --accent2: #00c2a8;
    --text: #e6edf3;
    --muted: #9aa4b2;
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(11, 15, 20, 0.6);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    max-width: 1300px;
    margin: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .5px;
}

.logo span {
    color: var(--accent)
}

.menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: .2s;
    color: #d5d5d5;
}

.menu a:hover {
    color: #fff
}

.nav-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 12px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.burger {
    display: none;
    font-size: 30px
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at 20% 20%, #1a2a3a, transparent 40%),
        radial-gradient(circle at 80% 0%, #0f3d5e, transparent 40%),
        #0b0f14;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero p {
    color: var(--muted);
    font-size: 20px;
    max-width: 720px;
    margin: auto;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 16px 28px;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.btn-secondary {
    border: 1px solid var(--border);
    padding: 16px 28px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
}

/* SECTION */
.section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.section p.lead {
    color: var(--muted);
    max-width: 700px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.card {
    background: var(--card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: .25s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card h3 {
    margin-bottom: 12px
}

.card p {
    color: var(--muted);
    padding-bottom: 30px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

/* MOBILE */
@media(max-width:900px) {
    .grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:700px) {
    .menu {
        position: fixed;
        top: 80px;
        right: -100%;
        background: #0b0f14;
        height: 100vh;
        width: 260px;
        flex-direction: column;
        padding: 40px;
        transition: .3s;
    }

    .menu.open {
        right: 0
    }

    .burger {
        display: block
    }

    .grid {
        grid-template-columns: 1fr
    }
}

.lang-switcher {
    position: relative;
}

.lang-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #111827;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    min-width: 120px;
}

.lang-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    text-decoration: none;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

/* =========================
   VIDEO BACKGROUND HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
}

/* убираем старый background hero */
.hero {
    background: none;
}

.hero video.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

/* затемнение чтобы текст читался */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}


.hero-buttons {
  transition: all 0.3s ease;
}

.hero-buttons:hover {
  transform: scale(1.05);

}


/* === SCROLL ANIMATION === */

.card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}


.hero {
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    from { background-size: 100%; }
    to { background-size: 110%; }
}


.menu a {
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}



.experts-hero {
    opacity: 0;
    animation: heroFade 1.2s ease forwards;
}

@keyframes heroFade {
    to { opacity: 1; }
}

/* SERVICES GRID */

.services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
    max-width:1200px;
    margin:auto;
    width: 100%;
}

