/* ===== АДАПТИВ ДЛЯ ПОЛУЭКРАНА И ПЛАНШЕТОВ ===== */

 
@media (max-width: 1200px) {
   
    
    /* Хедер */
    header {
        height: 5rem;
        padding: 0 1rem;
    }
    
    header .logo img {
        width: 7rem;
        padding-left: 2rem;
    }
    
    nav ul {
        gap: 2.5rem;
    }
    
    .header-button {
        right: 2rem;
    }
    
    .header-button .button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
   /* Intro Section */
    .intro-section {
        padding: 4rem 2rem;
        min-height: 60vh;
    }

    .intro-text h1 {
        font-size: 2.5rem;
        max-width: 80%;
        margin: 0 auto;
    }


    /* Values Section */
    .values-section {
        padding: 3rem 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .value-block {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .value-image {
        flex: 0 0 50%;
    }

    .value-image img {
        max-height: 300px;
        width: 100%;
        object-fit: cover;
        
    }

.value-block.reverse {
    display: flex;
    align-items: center;
    position: relative;
}

.value-block.reverse .movable-image {
    flex: 0 0 70%; /* Занимает 70% ширины */
    display: flex;
    justify-content: flex-start; /* Выравниваем по левому краю */
}

.value-block.reverse .movable-image img {
    width: 140% !important;
    max-height: 250px !important;
    margin-left: -200px !important; /* Сдвигаем влево */
    object-fit: cover;
}
    .value-content {
        flex: 0 0 40%;
    }

    .handwritten {
        font-size: 1.5rem;
    }

    .value-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Results Section */
    .results-section {
        padding: 4rem 2rem;
        min-height: 60vh;
    }

    /* Более агрессивный сдвиг */
.results-container h2.section-title {
    margin-left: -120px !important;
    padding-left: 0 !important;
}

    .results-container {
        max-width: 800px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .result-item .number {
        font-size: 3rem;
    }

    .number-text {
        font-size: 1.5rem;
    }

    .floating-image {
        width: 80px;
    }

    .floating-image.top {
        top: 5%;
        left: 60%;
    }

    .floating-image.bottom {
        bottom: 10%;
        right: 5%;
    }

    .running-text {
        font-size: 3rem;
        padding: 1rem 0;
    }

    /* Social Section */
    
    .social-title {
        font-size: 1.5rem;
    }

    .social-subtitle {
        font-size: 1rem;
    }

    .instagram-link {
       transform: scale(0.8);
    }
    
    


    footer .logo img {
        width: 7rem;
        padding-left: 50px;
    }
    
    footer nav ul {
        gap: 2rem;
       margin-left: 70px;
    }

   footer .social-icons a img {
    width: 1.8rem; 
    height: 1.8rem;
}
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ 360px ===== */
@media (max-width: 430px) {
    
    /* Базовые настройки */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Принудительно убираем все горизонтальные скроллы */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Хедер */
    header {
        height: 60px;
        padding: 0 15px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #A8E551;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    header .logo {
        position: static;
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    
    header .logo img {
        width: 60px;
        padding-left: 0;
        padding-right: 10px;
        margin: 0 auto;
    }
    
    /* Скрываем десктопное меню на мобильных */
    nav:not(.mobile-nav),
    .header-button {
        display: none;
    }
    
    /* Кнопка меню */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #F07800;
        font-size: 24px;
        cursor: pointer;
        order: 1;
        z-index: 1002;
        transition: transform 0.3s ease;
        padding: 5px;
    }

    .mobile-menu-btn:hover {
        transform: scale(1.1);
    }

    /* Затемнение фона */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(31, 7, 53, 0.7);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Мобильное меню - справа */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        height: 100%;
        background-color: #A8E551;
        z-index: 1002;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: block;
        right: 0;
    }

    /* Крестик закрытия справа */
    .menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #f9f7f2;
        font-size: 20px;
        cursor: pointer;
        z-index: 1003;
        transition: all 0.3s ease;
        padding: 5px;
    }

    .menu-close:hover {
        color: #F07800;
        transform: scale(1.1);
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 70px 0 0 0;
        display: flex;
        flex-direction: column;
        padding-left: 0;
    }

    .mobile-nav ul li {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .mobile-nav ul li a {
        display: block;
        color: #f9f7f2;
        text-decoration: none;
        font-size: 14px;
        padding: 0px 70px 0px 0px;
        transition: all 0.3s ease;
        font-weight: 500;
        border-bottom: none;
        line-height: 0.3;
        text-align: left;
        margin-left: 0;
    }

    .mobile-nav ul li a:hover {
        color: #F07800;
        text-decoration: none;
    }

    .mobile-nav ul li a.active {
        color: #F07800;
        font-weight: 700;
        text-decoration: none;
    }

    /* Иконка инстаграма */
    .mobile-instagram {
        display: flex;
        justify-content: left;
        margin-top: -20px;
        margin-left: 30px;
    }

    .mobile-instagram a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
       
    }

    .mobile-instagram a:hover {
        background: #F07800;
        transform: scale(1.1);
    }

    .mobile-instagram img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    /* Кнопка стать партнером - более округлая */
    .mobile-partner {
        display: block;
        background: transparent;
        color: #f9f7f2 !important;
        border: 2px solid #f9f7f2;
        border-radius: 20px;
        margin: 50px 10px;
        margin-left: 30px;
        font-weight: 500;
        text-align: center;
        padding: 10px 10px !important;
        transition: all 0.3s ease;
        text-transform: none;
        width: calc(100% - 70px); /* Сужаем ширину кнопки */
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-partner:hover {
        background: #f9f7f2;
        color: #1F0735 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(249, 247, 242, 0.3);
    }
    
    /* Адаптация остального контента для 360px */
   
.intro-section {
    padding: 30px 0px 0px 15px; 
    min-height: 100px !important;
    margin-top: 60px;
    margin-right: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    left: 0;
    transform: none;
}

.intro-text h1 {
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.3;
    margin: 0 auto 20px auto;
    max-width: 100%;
    padding: 0;
    font-weight: 500;
    width: 100%;
}

.truck {
    width: 120px !important;
}
    
.truck-animation {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        align-items: flex-end !important; /* Прижимаем к низу */
        height: 30px !important; /* Уменьшаем высоту контейнера */
    }
    
            /* Values Section - Современный дизайн */
    .values-section {
        padding: 40px 15px !important;
        padding-bottom: 10px !important;
       
    }

    .section-title {
        font-size: 0.8rem !important;
        text-align: center;
        margin-bottom: 30px !important;
        color: #1F0735 !important;
        font-weight: 700;
        position: relative;
    }

    .section-title::after {
        display: none;
    }

    .value-block {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
        margin-bottom: 15px !important;
        padding: 20px !important;
        background: white !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 20px rgba(31, 7, 53, 0.1) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }

    

    /* Исправляем картинку социальной ответственности */
    .value-image {
        flex: 0 0 80px !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .value-image img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 3px solid white !important;
        box-shadow: 0 4px 15px rgba(240, 120, 0, 0.3) !important;
        background: white !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

   

    /* Контент */
    .value-content {
        flex: 1 !important;
        padding: 0 !important;
        text-align: left !important;
        position: relative;
        z-index: 2;
    }

    .handwritten {
        font-size: 1rem !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin-bottom: 8px !important;
        display: block !important;
        font-weight: 500;
        
    }

    .value-text {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        color: #1F0735 !important;
        margin: 0 !important;
    }

    /* Блок социальной ответственности без картинки */
    .value-block.reverse .movable-image {
        display: none !important; /* Полностью скрываем картинку */
    }

    .value-block.reverse .value-content {
        flex: 1 0 100% !important; /* Занимает всю ширину */
        text-align: center !important;
        padding: 15px !important;
    }

    

        /* Results Section - Оригинальный дизайн, вертикально */

        /* Жесткий сброс всех вертикальных отступов между секциями */


    .results-section {
    padding: 0px 15px 40px 15px !important;
    text-align: center;
    position: relative;
    margin-top: 0;
    /* УБИРАЕМ display: flex и flex-direction */
}

.results-section .section-title {
    text-align: center !important;
    padding-right: 80px !important; /* Минимальный отступ */
    margin-left: 0 !important;
    margin-top: 20px;
}

.floating-image.top {
    width: 120px !important;
    float: right !important;
    margin-top: -30px!important;
    padding-left: 20px;
    z-index: 5;
}

.results-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    /* УБИРАЕМ order */
}

.result-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

.running-text {
    order: 4 !important; /* Добавляем порядок для бегущей строки */
}

    .number {
        font-size: 2.2rem !important;
        font-weight: 700 !important;
        color: #1F0735 !important;
        line-height: 1 !important;
    }

    .number-text {
        font-size: 0.9rem !important;
        color: #1F0735 !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
    }

    /* Убираем все плавающие картинки кроме верхней */
    .floating-image.bottom {
        display: none !important;
    }

    /* Бегущая строка */
    .running-text {
        font-size: 1.3rem !important;
        color: #1F0735 !important;
        font-weight: 700 !important;
        padding: 0px 0 !important;
    }

        /* Social Section - Полный редизайн */
    .social-section {
        padding: 20px 15px !important;
        text-align: center !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Убираем старую структуру */
    .media-grid {
        display: block !important;
    }

    /* Сначала текст и кнопка */
    .social-content {
        margin-bottom: 20px !important;
    }

    .social-title {
        font-size: 1.3rem !important;
        color: #1F0735 !important;
        margin-bottom: 8px !important;
        font-weight: 700;
    }

    .social-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .instagram-link {
    display: inline-block !important;
    background: linear-gradient(45deg, #405DE6, #833AB4, #E1306C) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 8px 15px !important; /* Еще компактнее */
    border-radius: 15px !important;
    font-size: 1.2rem !important;
    font-weight: 500;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
     max-width: 200px !important; /* Ограничиваем максимальную ширину */
}

    /* Простая линейка из 3 фото */
    .media-items {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        margin: 0 auto !important;
        max-width: 280px !important;
        padding-bottom: 30px;
    }

    .media-item {
        width: 120px !important;
        height: 230px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
        margin-bottom: 10px;
    }

    .media-preview {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .media-item.video-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 230px !important;
    }

    .media-item.video-item .media-preview {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

  





    /* Убираем все лишнее */
    .media-caption {
        display: none !important;
    }

        /* Скрываем футер в мобильной версии */
    footer {
        display: none !important;
    }

    
    
}
