@font-face {
    font-family: 'Kantumruy Pro';
    src: url('/fonts/kantumruy/KantumruyPro-VariableFont_wght.woff2') format('woff2'),
         url('/fonts/kantumruy/KantumruyPro-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-V.woff2') format('woff2'),
         url('/fonts/inter/Inter-V.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #021834;
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

h1 {
    font-family: 'Kantumruy Pro', sans-serif;
}

header {
    left: 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 1. Задаем правила для главного контейнера лендинга */
.landing-wrapper {
    display: flex;
    flex-direction: column; /* Выстраивает все секции строго по вертикали */
    width: 100%;
}

/* .hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
} */

/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); 
    z-index: 2; 
    pointer-events: none;
} */
 
/* 
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.85);
    pointer-events: none;
} */

/* 2. Общие правила для ВСЕХ секций лендинга */
.landing-wrapper section,
#services,
#partners {
    /* 
       Убеждаемся, что секции находятся в нормальном потоке документа.
       Никаких position: absolute или position: fixed здесь быть не должно!
    */
    position: relative; 
    width: 100%;
    display: block;
    
    /* Задаем красивые отступы внутри секций, чтобы контент "дышал" */
    padding: 100px 0; 
    
    /* Обнуляем внешние отступы, чтобы секции стыковались без щелей */
    margin: 0; 
    
    /* Защита от наложения: секция сама расширяется под свой контент */
    height: auto; 
}

/* ==========================================
   КОМПАКТНОЕ СОСТОЯНИЕ (при прокрутке)
   ========================================== */

.site-header.header-scrolled {
    background-color: rgba(2, 24, 52, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: none;
    z-index: 3;
    opacity: 0.95;
}

.site-header.header-scrolled .header-content-logo img {
    height: 100px;
    width: 100px;
}

.site-header.header-scrolled .header-content-logo a {
    height: 100px;
}

.site-header.header-scrolled .header-content-logo {
    height: 100px;
}

.site-header.header-scrolled .header-content-middle {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.header-content-top {
    transition: padding 0.3s ease, border-color 0.3s ease;
}

.main-nav {
    display: flex;
    flex: 1;
    margin-right: 1rem;
    width: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav a {
    color: #ffffff;
    display: block;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(2, 24, 52, 0.6);
    transition: all 0.2s ease;
    margin: 0 5px;
    background-color: #021834;
    
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
    flex: 1;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.search-btn {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 0;
    padding: 0;
    border: none;
    outline: none;
    transition: width 0.4s ease, padding 0.4s ease;
    border-bottom: 2px solid #333;
    background: transparent;
    font-size: 16px;
    color: #ffffff;
}

.search-input.active {
    width: 430px;
    max-width: 60vw;
    padding: 5px 10px;
}

/* Подсветка найденного текста */
.highlight {
    background-color: yellow;
    color: black;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.search-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
}

/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================== */
@media (max-width: 1024px) {
    .landing-wrapper section,
    #services,
    #partners {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    header {
        position: static;
    }

    .wrapper {
        padding-top: 0 !important;
    }

    .landing-wrapper section,
    #services,
    #partners {
        padding: 60px 0;
    }
}