/* ===== АДАПТИВ ДЛЯ ПОЛУЭКРАНА И ПЛАНШЕТОВ ===== */

 
@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;
    }
    
    /* Контейнер контактов */
   
    
    /* Секция контактов */
    .contact-section {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 3rem !important;
    }
    
    .contact-methods {
        font-size: 0.8rem !important;
    }
    
  


    

    
    
    


    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);
    }



    

    
        /* Скрываем футер в мобильной версии */
    footer {
        display: none !important;
    }

    /* Основной контент */
    .container {
        padding: 30px 15px 10px 15px !important;
        margin-top: 40px;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Секция контактов */
    .contact-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        margin-bottom: 15px !important;
    }

    .contact-group {
        background: white;
        padding: 20px 15px;
        border-radius: 12px;
        border-left: 4px solid #A8E551;
    }

    .contact-group h3 {
        font-size: 1rem !important;
        color: #1F0735;
        margin-bottom: 10px;
        text-align: center;
        font-weight: 700;
    }

    .contact-group p {
        font-size: 0.85rem !important;
        margin-bottom: 15px;
        text-align: center;
    }

    /* Телефоны */
    .contact-methods {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .phone-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8ffef;
        color: #1F0735;
        text-decoration: none;
        padding: 12px 15px;
        border-radius: 10px;
        font-size: 0.9rem !important;
        font-weight: 600;
        border: 1px solid #A8E551;
    }

    .phone-icon {
        width: 16px !important;
        height: 16px !important;
        margin-right: 8px !important;
    }

    /* Email блоки */
    .email-wrapper {
        text-align: center;
        margin-top: 15px;
    }

    .arrow-text {
        display: block;
        font-size: 0.8rem !important;
        margin-bottom: 8px;
    }

    .arrow-icon {
        width: 20px !important;
        height: 20px !important;
        padding-left: 10px;
    }

    .email-button {
        display: inline-block;
        text-decoration: none;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 0.8rem !important;
        font-weight: 600;
    }

        /* Секция адреса и карты - компактная */
    .address-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important; /* Уменьшили отступ между блоками */
        margin-top: -10px;
    }

    .address-info {
        background: white;
        padding: 10px 15px; /* Уменьшили паддинги */
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(31, 7, 53, 0.1);
        border-left: 3px solid #A8E551;
        order: 1 !important;
        padding-left: 45px !important;
    }

    .address-info p {
        font-size: 0.85rem !important;
        margin-bottom: 10px; /* Уменьшили отступ между параграфами */
        color: #333;
        line-height: 1.4;
    }

    .address-info strong {
        color: #1F0735;
        font-size: 0.9rem !important;
        display: block;
        margin-bottom: -5px; /* Уменьшили отступ */
    }

    /* Убираем фон и границу у телефонов в секции адреса */
.address-info .phone-link {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    justify-content: flex-start !important;
    margin-bottom: 2px !important;
}

    

    /* Компактные мессенджеры */
    .messengers {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0px !important; /* Уменьшили отступ */
        margin-top: -15px; /* Уменьшили отступ сверху */
    }

    .messenger-link {
        display: flex !important;
        align-items: center !important;
        padding: 10px 12px; /* Уменьшили паддинги */
        border-radius: 10px;
        text-decoration: none;
        color: #1F0735;
        font-size: 0.5rem !important;
        font-weight: 500;
    }

    /* Уменьшаем шрифт телефонов в мессенджерах */
.messenger-link span {
    font-size: 0.9rem !important;
}

    .contact-icon {
        width: 20px !important;
        height: 20px !important;
        margin-right: 8px !important;
    }

    /* Компактная карта */
    .address-map {
        width: 100% !important;
        height: 180px !important; /* Уменьшили высоту */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 15px rgba(31, 7, 53, 0.1);
        border: 2px solid #A8E551;
        order: 2 !important;
        position: relative;
    }

    .address-map::before {
        content: '📍 Наш офис';
        position: absolute;
        top: 8px;
        left: 8px;
        background: rgba(31, 7, 53, 0.9);
        color: white;
        padding: 4px 8px;
        border-radius: 15px;
        font-size: 0.65rem;
        font-weight: 600;
        z-index: 10;
    }

    
    
    /* Скрываем футер */
    footer {
        display: none !important;
    }

    
}
