/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные переменные */
:root {
    --primary-color: #cbcbcb;
    --text-color: #ffffff;
    --text-hover: #6e6e6e;
    --mobile-bg: #445764;
    --dark-text: #333333;
    --font-family: 'Victor Mono', monospace;
}

/* Базовые стили */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--primary-color);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Логотип для мобильной версии */
.logo-mobile {
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(calc(-50% + 5px));
}

.logo-mobile img {
    height: 40px;
    width: auto;
}

/* Навигация для десктопа */
.nav-desktop {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--text-hover);
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Выпадающие меню */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn img {
    height: 24px;
    width: auto;
}

/* Мобильное меню (полноэкранное) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-bg);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-dropdown-menu {
    list-style: none;
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    opacity: 1;
    max-height: 200px;
}

.mobile-dropdown-menu li {
    margin: 10px 0;
}

.mobile-dropdown-menu a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Основной контент */
.main-content {
    flex: 1;
}

/* Секция героя */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top ce
}

.hero-logo {
    position: absolute;
    bottom: 30%;
    left: 20%;
    z-index: 10;
}

.hero-logo img {
    height: 132px;
    width: auto;
}

.hero-content {
    position: absolute;
    bottom: 30px;
    left: 150px;
    z-index: 10;
    color: var(--dark-text);
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 300px;
}

/* Секция преимуществ */
.advantages-section {
    padding: 80px 0;
    background: var(--primary-color);
}

.container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 60px;
    color: var(--dark-text);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.advantage-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Подвал */
.footer {
    background: var(--dark-text);
    color: var(--text-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Стили ссылок в блоке footer-info */
.footer-info a,
.footer-info a:visited {
    color: #ffffff;
    text-decoration: none;
}

.footer-info a:hover {
    color: #b9b9b9;
    text-decoration: none;
}

.footer-info p,
.footer-contacts p {
    color: #b9b9b9;
    font-size: 14px;
    margin-bottom: 5px;
}
.footer-contacts a,
.footer-contacts a:visited {
    color: #ffffff;
    text-decoration: none;
}

.footer-contacts a:hover {
    color: #b9b9b9;
    text-decoration: none;
}

/* Footer menu links (duplicated main menu in footer) */
.footer-menu a,
.footer-menu a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px !important;
}

.footer-menu a:hover {
    color: #b9b9b9 !important;
    text-decoration: none !important;
}

/* Responsive footer duplicated menu */
.footer-menu .nav-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.footer-menu .nav-list li {
    display: inline-flex;
}

.footer-menu .nav-list a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.footer-menu .nav-list a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .hero-content {
        left: 120px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    /* Скрываем десктопное меню */
    .nav-desktop {
        display: none;
    }
    
    /* Показываем мобильные элементы */
    .logo-mobile {
        display: block;
        /* опустить на 14px относительно текущего положения */
        transform: translateY(calc(-50% + 19px));
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        /* опустить на 14px относительно базовых 5px */
        transform: translateY(calc(-50% + 19px));
        z-index: 1100;
    }
    
    /* Адаптируем шапку */
    .header {
        padding: 15px 20px;
    }
    
    /* Адаптируем секцию героя */
    .hero-section {
        height: 100vh;
    }
    
    .hero-logo {
        bottom: 20px;
        left: 20px;
    }
    
    .hero-logo img {
        height: 60px;
    }
    
    .hero-content {
        bottom: 20px;
        left: 100px;
    }
    
    .hero-title {
        font-size: 16px;
    }
    
    .hero-subtitle {
        font-size: 11px;
        max-width: 200px;
    }
    
    /* Адаптируем секцию преимуществ */
    .advantages-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-item {
        padding: 20px 15px;
    }
    
    .advantage-item h3 {
        font-size: 16px;
    }
    
    .advantage-item p {
        font-size: 13px;
    }
    
    /* Адаптируем подвал */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Улучшение видимости фоновой картинки на мобильных */
@media (max-width: 768px) {
    .hero-bg-image {
        object-position: center top;
    }
    /* Используем безопасные единицы высоты в мобильных браузерах */
    .hero-section {
        height: 100svh;
        min-height: 100svh;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    
    .hero-logo {
        bottom: 15px;
        left: 15px;
    }
    
    .hero-logo img {
        height: 50px;
    }
    
    .hero-content {
        bottom: 15px;
        left: 80px;
    }
    
    .hero-title {
        font-size: 14px;
    }
    
    .hero-subtitle {
        font-size: 10px;
        max-width: 150px;
    }
    
    .container-content {
        padding: 0 15px;
    }
    
    .advantages-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .advantage-item {
        padding: 15px 10px;
    }
    
    .advantage-item h3 {
        font-size: 14px;
    }
    
    .advantage-item p {
        font-size: 12px;
    }
}

/* Дополнительные стили для улучшения UX */
.nav-link,
.mobile-nav-list a {
    position: relative;
    overflow: hidden;
}

.nav-link::after,
.mobile-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-hover);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.mobile-nav-list a:hover::after {
    width: 100%;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Скрытие скроллбара для мобильного меню */
.mobile-menu-overlay {
    overflow-y: auto;
}

.mobile-menu-overlay::-webkit-scrollbar {
    display: none;
}

.mobile-menu-overlay {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


