/* ===== УБИРАЕМ ОТСТУПЫ ===== */
body { margin: 0; padding: 0; }
main { margin: 0; padding: 0; }

/* ===== ГЛОБАЛЬНЫЕ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== ПО УМОЛЧАНИЮ: ДЕСКТОП ===== */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* ===== HERO / СЛАЙДЕР ===== */
.hero-full {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: 750px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-slider-full {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.hero-text {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.altium-block { text-align: center; width: 100%; }
.kompas-block { text-align: center; width: 100%; padding-left: 0; }

.line1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}
.line1 span { color: #7AB8FF; }

.vs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 12px 0;
    max-width: 300px;
    width: 100%;
}

.vs-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.vs-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.line3 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #7AB8FF;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    margin-bottom: 28px;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 350px;
    width: 100%;
}

.hero-stats .stat-item { text-align: center; }

.hero-stats .stat-item .number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #7AB8FF;
}

.hero-stats .stat-item .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

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

.slider-dots { display: flex; gap: 10px; }

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: #7AB8FF;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(122, 184, 255, 0.4);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
.container-mobile {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.hero-content-mobile {
    width: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-mobile {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.hero-buttons-mobile {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 14px;
    justify-content: center;
    width: 100%;
    max-width: 260px;
}

.btn-primary-mobile {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
    background: #2A4A7A;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.btn-secondary-mobile {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.hero-stats-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 240px;
    width: 100%;
}

.hero-stats-mobile .stat-item-mobile { text-align: center; }

.hero-stats-mobile .stat-item-mobile .number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #7AB8FF;
}

.hero-stats-mobile .stat-item-mobile .label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== ПЕРЕКЛЮЧЕНИЕ ВЕРСИЙ ===== */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    .hero-full {
        height: 65vh;
        min-height: 400px;
        max-height: none;
        margin: 0;
        padding: 0;
        margin-top: -1px;
    }

    .line1 { font-size: 30px; }
    .line3 { font-size: 30px; }

    /* Стрелки — внутри баннера */
    .slider-controls {
        bottom: 15px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .slider-dots .dot {
        width: 9px;
        height: 9px;
    }
}