@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes neon-pulse-white {
    0%, 100% {
        box-shadow: 0 0 8px #ffffff, 0 0 16px #ffffff, 0 0 25px rgba(255, 255, 255, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 12px #ffffff, 0 0 22px #ffffff, 0 0 32px rgba(255, 255, 255, 0.85);
        opacity: 0.85;
    }
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 8px #0055ff, 0 0 15px #0055ff, 0 0 25px rgba(0, 85, 255, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 14px #0055ff, 0 0 24px #0055ff, 0 0 38px rgba(0, 85, 255, 0.9);
        opacity: 0.85;
    }
}



.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 18px;
}

.mobile-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-contact .phone {
    display: block;
    font-size: 20px;
    margin-bottom: 15px;
}


@media (max-width: 1200px) {
    .hero-main {
        gap: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .main-nav {
        gap: 20px;
    }
    
    .header-right {
        gap: 20px;
    }
}


@media (max-width: 1024px) and (min-width: 769px) {
    .hero-card {
        width: 28%;
        padding: 10px 8px;
        border-bottom-width: 3px;
        border-radius: 8px;
    }
    
    .card-pattern-box {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }
}


@media (max-width: 992px) {
    .main-nav {
        display: none !important;
    }
    
    .dropdown {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-right .phone {
        display: none;
    }

    .header-phone .phone-text {
        display: none;
    }
    
    .header-phone {
        padding: 8px;
    }
    
    .hero-main {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        order: 2;
        max-width: 100%;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-section {
        order: 1;
    }
    
    .company-info {
        order: 2;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (min-width: 993px) {
    .dropdown-menu {
        display: block !important;
    }
}


@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-phone {
        display: none;
    }
    
    .btn-personal .btn-text {
        display: none;
    }
    
    .btn-personal {
        padding: 8px;
    }

    .btn-personal .btn-icon {
        margin: 0;
    }

    .btn-admin .admin-text {
        display: none;
    }
    
    .btn-admin {
        padding: 10px;
        margin-left: 5px;
    }
    
    .mobile-admin-btn {
        display: flex;
    }
    
    .mobile-menu {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .hero {
        min-height: auto;
    }

    .main-title {
        font-size: 36px;
    }

    .hero-visual {
        position: relative !important;
        display: block;
        width: 100%;
    }

    .hero-image-container {
        transform: none !important;
        margin-bottom: 0;
    }

    .hero-image-container:hover {
        transform: none !important;
    }
    
    .hero-image {
        height: 420px; 
    }

    .hero-card {
        position: absolute !important;
        width: calc(100% - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        
        padding: 8px 12px !important; 
        background-color: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 16px !important;
        
        transform: none !important;
        bottom: auto !important;
    }
    
    .hero-card:hover {
        transform: translateY(-1px) !important;
    }

    .card-gaz {
        top: 15% !important;
    }

    .card-water {
        top: 35% !important;
    }

    .card-thermal-energy {
        top: 55% !important;
    }

    .card-control {
        top: 75% !important;
    }

    .card-pattern-box {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        margin-bottom: 0 !important;
        margin-right: 10px;
    }

    .pattern-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hero-card .card-title {
        flex: 1;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: white !important;
        line-height: 1.2;
    }

    .map-badge.pos-logo-brand.company-about-fullwidth {
        position: relative;
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        margin-top: 20px;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .map-about-box-white {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .about-white-left, .about-white-right {
        flex: 1 1 100%;
    }

    .map-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 25px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 42px;
    }
}


@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .mobile-menu-btn {
        font-size: 24px;
    }

    .main-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .map-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   МАСШТАБИРОВАНИЕ ДЛЯ ЭКРАНОВ > 1920px
   ======================================== */
@media (min-width: 2000px) {
    /* ---- Общее масштабирование (запасной вариант) ---- */
    body {
        zoom: 1.05; /* лёгкое увеличение для всех элементов */
    }
    /* Для Firefox */
    @-moz-document url-prefix() {
        body {
            transform: scale(1.05);
            transform-origin: top center;
            width: 95.238%;
            margin: 0 auto;
        }
        body::before {
            transform: none;
            width: 100%;
            height: 100%;
            filter: blur(40px);
        }
    }
    

    /* ---- Контейнеры ---- */
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    .container-main {
        max-width: 1800px;
        padding: 0 50px;
    }

    /* ---- Заголовки ---- */
    .main-title {
        font-size: 72px;
        margin-bottom: 45px;
    }
    .main-title-centered {
        font-size: 72px;
        margin-bottom: 60px;
    }
    .section-title {
        font-size: 44px;
        margin-bottom: 55px;
    }
    .page-title {
        font-size: 3.5rem;
    }
    .page-description {
        font-size: 1.25rem;
    }

    /* ---- Блок героя (фичи) ---- */
    .hero-text {
        max-width: 700px;
    }
    .feature-item {
        font-size: 20px;
        padding: 22px 24px 22px 80px;
        border-radius: 12px;
    }
    .feature-dot {
        width: 14px;
        height: 14px;
        left: 36px;
    }

    /* ---- Карточки на герое ---- */
    .hero-card {
        width: 39%;
        padding: 15px 10px 10px;
        border-radius: 40px;
        border-bottom-width: 6px;
    }
    .hero-card .card-title {
        font-size: calc(19px + 0.4vw);
    }
    .card-pattern-box {
        max-width: 75%;
        margin-bottom: 16px;
    }

    /* ---- Секция карточек (преимущества, продукты) ---- */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
    }
    .card-content h3 {
        font-size: 24px;
    }
    .card-content p {
        font-size: 18px;
    }

    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    .advantage-title {
        font-size: 20px;
    }
    .advantage-description {
        font-size: 16px;
    }

    /* ---- Блок "О нас" ---- */
    .about-stats {
        gap: 40px;
    }
    .stat-value {
        font-size: 68px;
    }
    .stat-title {
        font-size: 24px;
    }
    .company-info h2 {
        font-size: 44px;
    }
    .company-features li {
        font-size: 18px;
        padding-left: 32px;
    }
    .company-features li::before {
        width: 12px;
        height: 12px;
    }

    /* ---- Карта на странице контактов ---- */
    .map-container {
        min-height: 450px;
    }
    .map-info-card {
        padding: 1rem 1.2rem;
        min-width: 260px;
        max-width: 320px;
    }
    .map-info-title {
        font-size: 1.2rem;
    }
    .map-address {
        font-size: 0.9rem;
    }
    .map-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* ---- Контактная информация (страница контактов) ---- */
    .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    .contact-item {
        padding: 1.2rem 1.5rem;
        border-left-width: 4px;
    }
    .contact-title {
        font-size: 1.1rem;
    }
    .contact-value {
        font-size: 1rem;
    }

    /* ---- Офисы ---- */
    .offices-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    .office-city {
        font-size: 1.4rem;
    }
    .office-content p {
        font-size: 1rem;
    }

    /* ---- Форма обратной связи ---- */
    .contact-form-section {
        padding: 2.5rem;
    }
    .form-title {
        font-size: 2rem;
    }
    .form-input,
    .form-textarea {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* ---- Футер ---- */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
    .footer-column h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .footer-links a,
    .contact-info p {
        font-size: 18px;
    }
    .social-link {
        width: 56px;
        height: 56px;
    }
    .social-link img {
        width: 28px;
        height: 28px;
    }
    .footer-bottom {
        font-size: 16px;
        padding-top: 40px;
    }
}