@font-face {
    font-family: 'LivewiredExpanded';
    src: url('fonts/LivewiredExpandedItalic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.4;
    color: #fff;
}

/* ========== ЧЁРНАЯ ШАПКА, ПОЯВЛЯЮЩАЯСЯ ПРИ ПРОКРУТКЕ ========== */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #000;
    z-index: 98;
    transform: translateY(-100%);     /* скрыта по умолчанию */
    transition: transform 0.3s ease;  /* плавное появление */
}

.header-bar.visible {
    transform: translateY(0);         /* показываем */
}

/* Отступ для контента, чтобы он не прятался под шапкой */
body.has-header {
    padding-top: 60px;
}

/* ========== ЭКРАН 1: ГЕРОЙ (красный фон) ========== */
.hero {
    height: 100vh;
    background-color: #c10c0a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* stD — ПОД стеклом */
.hero-back {
    position: relative;
    z-index: 1;
    text-align: center;
    white-space: nowrap;
}

/* СТЕКЛО — градиентное затемнение */
.hero-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 2;
}

/* STD-ELECTRONICS — НАД стеклом, под stD по вертикали */
.hero-front {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    margin-top: 360px;  /* отступ вниз, чтобы текст был под stD */
    width: 100%;
}

/* Стили для stD */
.hero-title {
    font-family: 'LivewiredExpanded', 'Segoe UI', 'Roboto', sans-serif;
    font-size: clamp(10rem, 24vw, 20rem);
    font-weight: normal;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    color: #dcdcdc;
    white-space: nowrap;
}

.hero-title .capital-d {
    font-size: 1.4em;
    display: inline-block;
}

/* Стили для STD-ELECTRONICS */
.hero-subtitle {
    font-family: 'LivewiredExpanded', 'Segoe UI', 'Roboto', sans-serif;
    font-size: clamp(1rem, 8vw, 4rem);
    background: linear-gradient(
        to bottom,
        #412e2e 0%,      /* тёмный сверху */
        #888 100%     /* светлый снизу */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    /*filter: drop-shadow(0 1px 1px rgba(100, 100, 100, 0.5));*/
}

/* ========== ЭКРАН 2: КОНЦЕПЦИЯ ========== */
.concept {
    background-color: #000;           /* чёрный фон */
    color: #fff;                      /* белый текст */
    padding: 100px 0;
    text-align: left;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    /*min-height: 150vh;   временно — 150% высоты экрана */
}

.concept-container {
    max-width: 1200px;
    margin: 0;
    padding-left: 8%;
    padding-right: 20px;
}

.concept-slogan {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 2.5rem;
    color: #fff;                     /* белый */
}

.concept-text {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    max-width: 800px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;                     /* белый */
    font-weight: 500;
}

.concept-text p {
    margin-bottom: 1.2rem;
}

/* ========== ПЛАВНАЯ ПРОКРУТКА ========== */
html {
    scroll-behavior: smooth;        /* плавная анимация прокрутки */
}

/* ========== МЕНЮ В ПРАВОМ ВЕРХНЕМ УГЛУ ========== */
.top-menu {
    position: fixed;
    top: 11px;
    right: 5%;
    z-index: 100;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
}

.menu-container {
    display: flex;
    gap: 65px;
    align-items: center;
}

/* Кнопка ПРОДУКТЫ */
.dropbtn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    padding: 8px 0;
    transition: opacity 0.3s;
}

.dropbtn:hover {
    opacity: 0.7;
}

/* Контейнер для выпадающего списка */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Выпадающий список (скрыт по умолчанию) */
.dropdown-content {
    display: none;        /* скрыт по умолчанию */
    position: absolute;   /* позиционируется относительно .dropdown */
    top: -10px;               /* прижимаем к верху кнопки */
    /* ИЗМЕНИЛ: сдвигаем влево на 50px */
    left: -20px;          /* было left: 0 */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    min-width: 140px;     /* минимальная ширина */
    border-radius: 0;     /* без закруглений */
    padding: 8px 0;       /* отступы внутри списка */
    margin-top: 0;        /* убрал отступ от кнопки */
    z-index: 101;         /* поверх меню */
    padding-top: 47px;    /* отступ сверху, чтобы накрыть кнопку */
    text-align: left;     /* текст прижат к левому краю */
}

/* Стили для пунктов выпадающего списка */
.dropdown-content a {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Показываем выпадающий список при наведении на кнопку ПРОДУКТЫ */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Кнопка КОНТАКТЫ */
.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: opacity 0.3s;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
}

.contact-link:hover {
    opacity: 0.7;
}

/* ========== МОБИЛЬНЫЙ РЕЖИМ ДЛЯ МЕНЮ ========== */
.dropdown.mobile-mode .dropdown-content {
    display: none;
}

.dropdown.mobile-mode.open .dropdown-content {
    display: block;
}

/* Отключаем hover на телефонах */
.dropdown.mobile-mode .dropbtn:hover {
    opacity: 1;
}

/* ========== ЭКРАН 3: MULTIHACK ========== */
.multihack {
    background-color: #d1d1d1;        /* светло-серый фон */
    padding: 100px 0;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
}

.multihack-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 200px;
}

.multihack-content {
    flex: 1;
}

.multihack-title {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #000;
}

.multihack-text {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.multihack-text p {
    margin-bottom: 1.2rem;
}


/* ========== ЭКРАН 4: SELECTOR ========== */
.selector {
    background-color: #dfdfdf;        /* светло-серый фон */
    padding: 100px 0;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
}

.selector-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 200px;
}

.selector-content {
    flex: 1;
}

.selector-title {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #000;
}

.selector-text {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.selector-text p {
    margin-bottom: 1.2rem;
}

/* Планшеты и небольшие ноутбуки (до 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(8rem, 18vw, 14rem);
    }
    
    .hero-front {
        margin-top: 300px;
    }
}

@media (min-width: 769px) {
    .multihack-images img {
        width: auto !important;
        max-width: 80%;
    }
    .selector-images img {
        width: auto !important;
        max-width: 80%;
    }
}

/* ========== ТЕЛЕФОНЫ (до 768px) ========== */
@media (max-width: 768px) {
    /* === МЕНЮ === */
    .top-menu {
        top: 15px;
        right: 15px;
    }
    .menu-container {
        gap: 40px;
    }
    .dropbtn, .contact-link {
        font-size: 0.85rem;
    }
    .dropdown-content {
        left: -17px;    
        min-width: 80px;
    }
    .dropdown-content a {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    .dropbtn:active,
    .dropbtn:focus,
    .dropbtn:hover {
        opacity: 1 !important;
        background: none !important;
        outline: none !important;
    }
    .dropbtn:active {
        transform: none;
    }
    /* === ПЕРВЫЙ ЭКРАН (HERO) === */
    .hero-back {
        position: relative;
        top: -84px;
    }
    .hero-title {
        font-size: clamp(8.45rem, 20.28vw, 13.52rem);
        margin-bottom: 0;
    }
    .hero-front {
        margin-top: 0;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .hero-subtitle {
        font-size: clamp(1.56rem, 8.45vw, 3.38rem);
        white-space: normal;
        text-align: center;
        word-break: keep-all;
        margin-top: 115px;
    }
    /* === ВТОРОЙ ЭКРАН (CONCEPT) === */
    .concept-container {
        padding-left: 5%;
        padding-right: 15px;
    }
    .concept-slogan {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    .concept-text {
        font-size: 0.95rem;
    }
    /* === ТРЕТИЙ ЭКРАН (МУЛЬТИХАКЕР) === */
    .multihack {
        padding: 60px 0;
    }
    .multihack-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 5%;
    }
    .multihack-content {
        text-align: left;
        width: 100%;
    }
    .multihack-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    .multihack-text {
        font-size: 0.95rem;
    }
    .multihack-text p {
        margin-bottom: 1rem;
    }
    /* === ЧЕТВЁРТЫЙ ЭКРАН (СЕЛЕКТОР) === */
    .selector {
        padding: 60px 0;
    }
    .selector-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 5%;
    }
    .selector-content {
        text-align: left;
        width: 100%;
    }
    .selector-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    .selector-text {
        font-size: 0.95rem;
    }
    .selector-text p {
        margin-bottom: 1rem;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .hero-back {
        top: -58px;                    /* было -48, увеличил на 20% */
    }
    
    .hero-title {
        font-size: clamp(5.85rem, 16.9vw, 8.45rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.3rem, 7.54vw, 2.08rem);
        margin-top: 86px;              /* было 72, увеличил на 20% */
    }
}
