/*
Theme Name: Networks Engineering Theme
Description: Кастомная тема для сайта Networks Engineering
Author: Ваше имя
Version: 1.0
License: GPL v2 or later
Text Domain: anime-theme
*/
/* Мобильные стили для шапки */

/* Скрытие мобильного телефона в десктопной версии */
.mobile-phone-center {
    display: none;
}

/* Скрытие бургер меню в десктопной версии */
.mobile-burger {
    display: none;
}

/* Скрытие мобильного меню в десктопной версии */
.mobile-menu {
    display: none;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 980px) {
    /* Показ мобильного телефона */
    .mobile-phone-center {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .logo-block {
        margin-top: 0px;
    }
    
    /* Переключение логотипов для мобильной версии */
    .logo-desktop {
        display: none;
    }
    
    .logo-mobile {
        display: block;
    }
    
    /* Показ бургер меню */
    .mobile-burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 14px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }
    
    /* Изменение высоты шапки для мобильной версии */
    .header {
        height: 70px;
        padding: 10px 15px;
        transition: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Фиксированная шапка для мобильной версии */
    .header-fixed {
        height: 60px;
        padding: 10px 20px;
        transition: none;
    }
    
    /* Отключение анимации логотипа в мобильной версии */
    .header-fixed .logo-image {
        transition: none;
        transform: scale(0.8);
    }
    
    /* Отключение анимации контактной информации в мобильной версии */
    .contact-info-hidden {
        transition: none;
    }
    
    /* Контейнер для мобильной версии */
    .container-1400 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Логотип в мобильной версии */
    .logo-image {
        height: 55px;
    }
    
    /* Скрытие стандартной навигации на мобильных */
    .navigation-block {
        display: none;
    }
    
    /* Скрытие контактной информации в шапке на мобильных */
    .contact-info {
        display: none;
    }
    
    .mobile-phone {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 12px;
        color: rgba(77, 77, 79, 1);
        text-decoration: none;
    }
    
    .burger-line {
        width: 100%;
        height: 2px;
        background-color: rgba(77, 77, 79, 1);
        transition: all 0.25s ease;
        position: relative;
        transform-origin: center;
    }
    
    /* Анимация бургер меню при открытии - быстрое превращение в крестик */
    .mobile-burger.active .burger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-burger.active .burger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-burger.active .burger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    /* Скрытие стандартного логотипа на мобильных */
    .logo-block {
        margin-right: 0;
    }
    
    /* Скрытие правой секции на мобильных */
    .right-section {
        display: none;
    }
    
    /* Отступ для основного контента под фиксированной шапкой */
    body {
        padding-top: 70px;
    }
    
    /* Стили для мобильного меню */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #FFFFFF;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        transform: scale(0.98);
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    
    /* Скрытие шапки при открытом мобильном меню */
    .mobile-menu.active ~ .header,
    .mobile-menu.active + .header {
        display: none;
    }
    
    /* Альтернативный способ скрытия шапки */
    body.mobile-menu-open .header {
        display: none;
    }
    
    /* Заголовок мобильного меню */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.2s ease;
        transition-delay: 0.05s;
    }
    
    .mobile-menu.active .mobile-menu-header {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-logo {
        display: flex;
        align-items: center;
    }
    
    .mobile-logo {
        width: 50px;
        height: 35px;
    }
    
    .mobile-menu-close {
        width: 24px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
    }
    
    .close-line {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #4D4D4F;
        top: 50%;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .close-line:first-child {
        transform: rotate(45deg);
    }
    
    .close-line:last-child {
        transform: rotate(-45deg);
    }
    
    /* Навигация мобильного меню */
    .mobile-menu-nav {
        padding: 20px 0;
        flex: 1;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s ease;
        transition-delay: 0.1s;
    }
    
    .mobile-menu.active .mobile-menu-nav {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-menu-item {
        border-bottom: none;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.15s ease;
    }
    
    .mobile-menu.active .mobile-menu-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Анимация для каждого пункта меню с задержкой */
    .mobile-menu.active .mobile-menu-item:nth-child(1) { transition-delay: 0.15s; }
    .mobile-menu.active .mobile-menu-item:nth-child(2) { transition-delay: 0.17s; }
    .mobile-menu.active .mobile-menu-item:nth-child(3) { transition-delay: 0.19s; }
    .mobile-menu.active .mobile-menu-item:nth-child(4) { transition-delay: 0.21s; }
    .mobile-menu.active .mobile-menu-item:nth-child(5) { transition-delay: 0.23s; }
    .mobile-menu.active .mobile-menu-item:nth-child(6) { transition-delay: 0.25s; }
    
    .mobile-menu-link {
        display: block;
        padding: 12px 20px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
        color: #4D4D4F;
        text-decoration: none;
    }
    
    /* Футер мобильного меню - в самом низу */
    .mobile-menu-footer {
        border-top: none;
        margin-top: auto;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s ease;
        transition-delay: 0.3s;
    }
    
    .mobile-menu.active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-contact-btn {
        display: block;
        width: 80%;
        margin: 0 auto 0 auto;
        padding: 15px;
        background-color: #4D4D4F;
        color: #FFFFFF;
        text-align: center;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
        border-radius: 0;
        transition: all 0.15s ease;
    }
    
    .mobile-contact-btn:hover {
        background-color: #3a3a3c;
        transform: translateY(-1px);
    }
    
    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    
    .mobile-phone-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        background-color: rgba(148, 182, 56, 1);
        border-radius: 0;
        width: 100%;
        transition: all 0.15s ease;
    }
    
    .mobile-phone-bar:hover {
        background-color: rgba(128, 162, 46, 1);
        transform: translateY(-1px);
    }
    
    .mobile-phone-number {
        color: #FFFFFF;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
        text-align: center;
    }
    
    .mobile-email-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px;
        width: 100%;
        transition: all 0.15s ease;
    }
    
    .mobile-email-info:hover {
        transform: translateY(-1px);
    }
    
    .mobile-email-icon {
        width: 17px;
        height: 14px;
    }
    
    .mobile-email-text {
        color: #4D4D4F;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        text-align: center;
    }
    
    /* Мобильные стили для главной секции */
    .main-section {
        height: 300px;
        padding: 30px 0;
    }
    
    .main-section h1 {
        font-size: 34px;
        text-align: center;
        max-width: 100%;
        margin: 0 auto 20px auto;
    }
    
    .main-description {
        font-size: 14px;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Мобильные стили для контейнера главной секции */
    .container-main-1160 {
        margin: 50px 15px;
    }
    
    /* Мобильные стили для секции 1 */
    .section-1 .container-1160 {
        display: flex;
        flex-direction: column;
    }
    
    .section-1-left {
        order: 2;
    }

    .section-1-title.animate{
        margin-left: 15px;
    }

    .section-1-description.animate {
        margin-left: 15px;
    }
    
    .section-1-right {
        order: 1;
        margin-bottom: 30px;
    }
    
    .section-1-title {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 28px;
        text-align: left;
        max-width: 100%;
    }
    
    .section-1-description {
        margin-bottom: 30px;
        font-size: 16px;
        text-align: left;
        max-width: 100%;
    }
    
    .section-1-btn {
        width: 100%;
        height: 50px;
        font-size: 18px;
        margin: 0;
        display: block;
    }

    .section-5-list.animate {
        margin-left: 10px;
    }
    
    /* Мобильные стили для карточек статистики */
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 0;
    }
    
    .stat-card {
        width: 100%;
        height: auto;
        min-height: 120px;
        border-right: 1px solid rgba(201, 208, 211, 1);
        border-bottom: 1px solid rgba(201, 208, 211, 1);
    }
    
    .stat-card:nth-child(even) {
        border-right: none;
    }
    
    .stat-card:nth-child(5),
    .stat-card:nth-child(6) {
        border-bottom: none;
    }

    .stat-description {
        max-width: 120px;
    }
    
    .stat-number {
        font-size: 22px;
        max-width: 100%;
    }
    
    .stat-card:nth-child(5) .stat-number,
    .stat-card:nth-child(6) .stat-number {
        font-size: 16px;
    }
    
    .section-1-title {
        font-size: 30px;
    }
    
    /* Мобильные стили для секции 2 */
    .section-2-title {
        font-size: 30px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .section-2-description-1 {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .section-2-description-2{
        margin-left: 15px;
        margin-right: 15px; 
    }
    
    .description-btn-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    /* Мобильные стили для карточек услуг */
    .service-card {
        padding: 10px 5px;
        height: 70px;
        gap: 1px;
    }
    
    .service-icon {
        width: 21px;
        height: 21px;
        margin-right: 5px;
    }
    
    .service-icon img {
        width: 15px;
        height: 15px;
    }
    
    .service-content h3 {
        font-size: 16px;
        margin-bottom: 5px;
        max-width: 120px;
        line-height: 1.2;
    }
    
    .service-content p {
        font-size: 12px;
        max-width: 60%;
        margin-right: 0;
    }
    
    /* Скрываю десктопную кнопку в мобильной версии */
    .section-2-btn {
        display: none !important;
    }

    /* Показываю мобильную кнопку в мобильной версии */
    .section-2-btn-mobile {
        display: block !important;
    }

    /* Стили для мобильной кнопки в конце секции */
    .section-2-btn-mobile {
        width: 100%;
        height: 44px;
        background-color: rgba(148, 182, 56, 1);
        border: none;
        color: rgba(255, 255, 255, 1);
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        flex-shrink: 0;
        margin: 0 0 10px 0;
    }
    
    /* Перемещение кнопки вниз секции через order */
    .section-2 .container-1160 {
        display: flex;
        flex-direction: column;
    }
    
    /* Мобильные стили для метрик */
    .metrics-cards {
        display: block;
        margin-top: 15px;
    }
    
    .metric-card {
        width: 100%;
        margin: 0 auto 15px auto;
        padding: 20px;
        display: block;
    }
    
    .metric-card:last-child {
        margin-bottom: 0;
    }
    
    .metric-number {
        margin-bottom: 8px;
    }
    
    .metric-description {
        line-height: 1.2;
    }

    .section-2 {
        padding-top: 100px;
    }
    
    /* Мобильные стили для секции 3 */
    .section-3-header {
        display: block;
        margin-left: 15px;
        margin-right: 15px;
    }

    .section-3 {
        padding-top: 50px;
        height: 100%
    }
    
    .section-3-title {
        font-size: 30px !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }
    
    .section-3-descriptions {
        margin-bottom: 10px !important;
        margin-top: 20px !important;
        gap: 5px !important;
    }
    
    .section-3-description-1,
    .section-3-description-2 {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }

    /* Мобильные стили для горизонтальных блоков */
    .horizontal-block {
        height: 80px; /* Увеличиваю высоту для мобильной версии */
        padding: 20px 15px; /* Уменьшаю отступы */
        margin-bottom: 15px; /* Увеличиваю отступ между блоками */
        width: calc(100% - 30px); /* Ширина под мобильное разрешение с отступами */
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .horizontal-blocks {
        margin-top: 10px;
    }

    .horizontal-block h3 {
        font-size: 18px !important; /* Уменьшаю размер шрифта заголовка */
        line-height: 1.2 !important;
    }

    .horizontal-content h3 {
        font-size: 18px !important; /* Уменьшаю размер шрифта заголовка */
        line-height: 1.2 !important;
        max-width: 40%;
    }

    .horizontal-content p {
        font-size: 14px !important; /* Уменьшаю размер шрифта описания */
        line-height: 1.3 !important;
        margin-right: 0 !important; /* Убираю правый отступ */
        max-width: 35% !important; /* Максимальная ширина под мобильное разрешение */
    }

    .check-icon {
        width: 15px; /* Уменьшаю размер иконки */
        height: 15px;
        margin-right: 10px; /* Уменьшаю отступ справа от иконки */
    }

    .service-box:nth-child(6){
        grid-column: 2;
    }

    .service-box:nth-child(7) {
        height: auto;
    }
    
    /* Стили для CTA кнопки в мобильной версии */
    .cta-box {
        grid-column: 1 / -1; /* Занимает всю ширину от первого до последнего столбца */
        width: 100%;
    }
    
    /* Мобильные стили для квадратных карточек услуг */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 8px;
        margin: 10px 8px 0 8px;
    }
    
    .service-box {
        padding: 12px;
        height: auto;
        min-height: 140px;
        width: 100%;
    }
    
    .service-box h3 {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .service-box p {
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .service-number {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Мобильные стили для секции 5 */
    .section-5-content {
        display: grid;
        grid-template-areas: 
            "title"
            "description"
            "list"
            "logos";
        gap: 20px;
    }

    .contact-info-block {
        width: 100%;
    }
    
    .section-5-title {
        grid-area: title;
        margin-bottom: 20px;
    }
    
    .section-5-description {
        grid-area: description;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .section-5-list {
        grid-area: list;
        margin-bottom: 5px;
    }

    .logo {
        height: 52px;
        width: 73px;
    }
    
    .logos-grid {
        grid-area: logos;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 столбца вместо 3 */
        grid-template-rows: repeat(3, auto); /* 3 строки с автоматической высотой */
        justify-items: center; /* Центрирую элементы по горизонтали */
        align-items: center; /* Центрирую элементы по вертикали */
    }

    .logo-item {
        width: 100%; /* Полная ширина ячейки */
        height: auto; /* Автоматическая высота */
        min-height: 80px; /* Минимальная высота */
        padding: 15px; /* Уменьшенные отступы */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #FFFFFF;
        border-radius: 5px; /* Скругленные углы */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тень для лучшего вида */
    }

    .logo-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        width: auto;
        height: auto;
    }

    /* Уменьшенные размеры логотипов для мобильной версии */
    .logo-item:nth-child(1) img {
        width: 80px;
        height: 40px;
    }

    .logo-item:nth-child(2) img {
        width: 70px;
        height: 64px;
    }

    .logo-item:nth-child(3) img {
        width: 55px;
        height: 60px;
    }

    .logo-item:nth-child(3){
        padding: 10px 46px;
    }

    .logo-item:nth-child(4) img {
        width: 55px;
        height: 62px;
    }

    .logo-item:nth-child(5) img {
        width: 70px;
        height: 55px;
    }

    .logo-item:nth-child(6) img {
        width: 80px;
        height: 37px;
    }

    .section-6{
        padding-bottom: 10px;
    }

    /* Границы для мобильной сетки 2x3 */
    .logo-item:nth-child(1),
    .logo-item:nth-child(2) {
        border-bottom: 1px solid rgba(201, 208, 211, 1);
    }

    .logo-item:nth-child(3),
    .logo-item:nth-child(4) {
        border-bottom: 1px solid rgba(201, 208, 211, 1);
    }

    .logo-item:nth-child(1),
    .logo-item:nth-child(3),
    .logo-item:nth-child(5) {
        border-right: 1px solid rgba(201, 208, 211, 1);
    }

    /* Убираю дублирующиеся стили */
    .section-5-left,
    .section-5-right {
        max-width: 100%;
    }

    .section-5 {
        padding: 100px 0 80px 0;
    }

    /* Мобильные стили для текста в section-5-content */
    .section-5-title {
        font-size: 30px !important; /* Уменьшаю размер заголовка */
       margin: 0 15px 0 15px;
       margin-bottom: 20px;
    }

    /* Мобильное описание под заголовком */
    .section-5-description-mobile {
        display: block !important; /* Показываю на мобильных */
        font-size: 14px !important;
        margin-bottom: 20px !important;
        color: rgba(77, 77, 79, 1);
        margin: 0 15px 0 15px;
    }

    /* Скрываю десктопное описание на мобильных */
    .section-5-description {
        display: none !important;
    }

    .section-5-list li {
        margin-bottom: 12px; /* Уменьшаю отступ между элементами списка */
    }

    .section-5-list li span {
        font-size: 16px !important; /* Уменьшаю размер шрифта в списке */
        line-height: 1.4 !important;
    }

    .section-5-description {
        margin: 0 15px 0 15px;
    }

    .check-icon-green {
        width: 15px; /* Уменьшаю размер иконки */
        height: 15px;
    }
    
    /* Мобильные стили для секции 6 */
    .section-6-header {
        display: flex;
        align-items: center;
        text-align: left !important;
        margin: 0px 0 20px 0;
        gap: 20px;
    }
    
    .section-6-title {
        font-size: 30px;
        margin: 80px 15px 0 15px;
        text-align: left;
    }
    
    .section-6-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Скрываю навигацию в заголовке на мобильных */
    .section-6-header .section-6-navigation {
        display: none !important;
    }

    /* Показываю навигацию под карточками в мобильной версии */
    .section-6-content .section-6-navigation {
        display: flex !important;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }
    
    .section-6-left {
        order: 2;
        max-width: 100%;
        margin: 0 15px 0 15px;
    }

    .section-6-text {
        margin-top: 0px;
    }
    
    /* Мобильные стили для секции 4 */
    .section-4 {
        padding: 25px 0; /* Уменьшаю вертикальные отступы */
    }

    .section-4 .container-1160 {
        flex-direction: column; /* Располагаю элементы вертикально */
        gap: 20px; /* Отступ между элементами */
        text-align: center; /* Центрирую содержимое */
    }

    .section-4-title {
        font-size: 32px !important; /* Уменьшаю размер заголовка */
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }

    .section-4-contact {
        gap: 15px; /* Отступ между элементами */
        align-items: center;
    }

    .phone-icon {
        width: 24px; /* Уменьшаю размер иконки */
        height: 24px;
        margin-left: 0 !important; /* Убираю левый отступ */
        margin-bottom: 5px;
    }

    .phone-number {
        font-size: 20px !important; /* Уменьшаю размер номера телефона */
        margin-right: 0 !important; /* Убираю правый отступ */
        margin-bottom: 10px;
    }

    .section-4-btn {
        width: 120px; /* Уменьшаю ширину кнопки */
        height: 40px; /* Уменьшаю высоту кнопки */
        font-size: 14px !important; /* Уменьшаю размер шрифта кнопки */
    }

    /* Отдельный блок для кнопки в мобильной версии */
    .section-4-button {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .section-4-button .section-4-btn {
        width: 90%; /* Увеличиваю ширину кнопки для лучшей видимости */
        height: 45px; /* Увеличиваю высоту кнопки */
        font-size: 16px !important; /* Увеличиваю размер шрифта */
        border-radius: 5px; /* Добавляю скругление углов */
        transition: all 0.3s ease; /* Плавная анимация при наведении */
    }
    
    .section-6-right {
        order: 3;
        max-width: 100%;
        align-items: center;
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }
    
    .reviews-wrapper {
        flex-direction: column;
        gap: 0;
        margin-top: 0;
    }
    
    .review-card {
        display: block;
        margin-bottom: 20px;
        width: 90% !important; /* Адаптивная ширина с отступами */
        height: auto !important; /* Автоматическая высота */
        padding: 3% !important; /* Адаптивные отступы в процентах */
        max-width: 90%; /* Максимальная ширина в процентах */
        min-width: 280px; /* Минимальная ширина для читаемости */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box; /* Учитываю padding в общей ширине */
    }

    .section-6-text {
        max-width: 100%;
    }

    .section-8-text {
        margin: 0 15px 0 15px;
    }

    /* Уменьшаю размеры элементов в карточках */
    .review-header {
        margin-bottom: 20px !important; /* Уменьшаю отступ снизу */
    }

    .review-logo {
        width: 80px !important; /* Уменьшаю логотип */
        height: 35px !important;
    }

    .review-stars {
        width: 90px !important; /* Уменьшаю звёзды */
        height: 16px !important;
    }

    .review-text {
        font-size: 14px !important; /* Уменьшаю размер текста */
        line-height: 1.3 !important;
        margin-bottom: 15px !important; /* Уменьшаю отступ */
    }

    .review-author {
        font-size: 14px !important; /* Уменьшаю размер автора */
        line-height: 1.2 !important;
    }
    
    .review-card-second,
    .review-card-third {
        display: none;
    }
    
    .section-6-navigation {
        order: 4;
        justify-content: center;
    }
    
    /* Мобильные стили для секции 8 */
    .section-8 {
        height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .section-8-title {
        font-size: 30px;
        margin: 0 0 20px 0;
        max-width: 100%;
        text-align: left;
    }
    
    .section-8-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .section-8-description {
        margin-top: 0;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .section-8-contacts {
        gap: 8px;
        margin-left: 0;
    }
    
    .contact-phone,
    .contact-email {
        font-size: 18px;
        margin-left: 0;
        text-align: left;
    }
    
    /* Мобильные стили для footer */
    .footer {
        padding: 0px 0 0px 0;
        background: none;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .footer-left {
        order: 1;
        max-width: 100%;
        background: rgba(24, 26, 36, 1);
        padding: 30px 20px;
    }
    
    .footer-form-title {
        font-size: 30px;
        margin: 0 0 15px 0;
        text-align: center;
    }
    
    .footer-form-description {
        font-size: 14px;
        margin: 0 0 15px 0;
    }
    
    .contact-form {
        gap: 8px;
    }
    
    .form-input,
    .form-textarea {
        width: 100%;
        height: 35px;
        padding: 10px;
        font-size: 14px;
    }
    
    .form-textarea {
        min-height: 80px;
        height: 80px;
    }
    
    .form-submit-btn {
        width: 100%;
        height: 40px;
        font-size: 14px;
        margin-top: 8px;
    }
    
    .checkbox-label {
        font-size: 11px;
    }
    
    .footer-right {
        order: 2;
        margin-left: 0;
        background: rgba(55, 55, 64, 1);
        padding: 30px 20px;
    }
    
    .footer-logo {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-company-name {
        font-size: 28px;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .footer-company-name .logo-green {
        display: block;
        margin-top: 5px;
    }
    
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .footer-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin-bottom: 25px;
        margin-top: 25px;
    }
    
    .footer-services-grid .footer-column:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    
    .footer-resources-title {
        margin-top: 20px;
    }
    
    .footer-column-title {
        margin: 0 0 8px 0;
    }

    /* Отступ сверху для заголовка RESOURCES в мобильной версии */
    .footer-resources-title {
        margin-top: 82px !important;
    }
    
    
    .footer-column-text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .footer-list li {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .footer-bottom {
        gap: 10px;
        padding-top: 15px;
        text-align: center;
    }
    
    .footer-bottom .footer-link {
        font-size: 11px;
    }
    
    /* Мобильные стили для страницы контактов */
    
    /* Главная секция контактов (взято с главной страницы) */
    .contact-main-section {
        height: 300px;
        padding: 20px 0;
    }
    
    .contact-main-section h1 {
        font-size: 36px;
        text-align: center;
        max-width: 100%;
        margin: 0 auto 20px auto;
    }
    
    .contact-main-section .main-description {
        font-size: 18px;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .container-contact-1160 {
        margin: 50px 15px;
    }
    
    .contact-map-section .container-1160 {
        margin: 0 15px;
        padding: 0;
    }
}


/* Медиа-запрос для планшетов (680-980px) */
@media (min-width: 680px) and (max-width: 980px) {
    
    /* Увеличиваем логотип в 1.3 раза */
    .logo {
        width: 73px; /* 56px * 1.3 = 72.8px */
        height: 52px; /* 40px * 1.3 = 52px */
    }

    .contact-form {
        max-width: 500px;
        margin: 0 auto; /* Центрируем форму по горизонтали */
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрируем содержимое формы */
    }

    .footer-form-description {
        text-align: center;
    }
    
    /* Увеличиваем бургер меню в 1.3 раза */
    .mobile-burger {
        width: 26px; /* 20px * 1.3 = 26px */
        height: 18px; /* 14px * 1.3 = 18.2px */
    }
    
    /* Увеличиваем телефон в 1.3 раза */
    .mobile-phone {
        font-size: 16px; /* 12px * 1.3 = 15.6px */
    }
    
    /* Увеличиваем линии бургера в 1.3 раза */
    .burger-line {
        height: 3px; /* 2px * 1.3 = 2.6px */
    }
    
    /* Корректируем анимацию бургера для увеличенного размера */
    .mobile-burger.active .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* 6px * 1.3 = 7.8px */
    }
    
    .mobile-burger.active .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* -6px * 1.3 = -7.8px */
    }
    
    /* Увеличиваем заголовок и описание в main-section в 1.4 раза */
    .main-section h1 {
        font-size: 48px; /* 34px * 1.4 = 47.6px */
    }
    
    .main-description {
        font-size: 16px; /* 18px * 1.4 = 25.2px */
    }
    
    /* Увеличиваем высоту фонового изображения */
    .main-section {
        height: 400px; /* 300px + 50px = 350px */
    }
    
    /* Центрируем карточки в section-1-right */
    .section-1-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    /* Центрируем stats-grid */
    .stats-grid {
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        width: 100%;
        max-width: 400px; /* Ограничиваем максимальную ширину для центрирования */
    }
    

    
    /* Также добавляем стили для заголовков без .animate (на случай если анимация не сработала) */
    .section-1-title,
    .section-2-title,
    .section-3-title,
    .section-4-title,
    .section-5-title,
    .section-6-title,
    .section-8-title {
        font-size: 39px !important; /* 30px * 1.3 = 39px */
    }
    
    /* Дополнительная специфичность для section-3, section-4, section-5 */
    .section-3 .section-3-title,
    .section-4 .section-4-title,
    .section-5 .section-5-title {
        font-size: 39px !important; /* 30px * 1.3 = 39px */
    }
    
    
    /* Увеличиваем описания в 1.15 раза */
    .section-1-description.animate,
    .section-2-description-1.animate,
    .section-2-description-2.animate {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    /* Увеличиваем размеры в service-content и metric-card в 1.15 раза */
    .service-content h3 {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
        max-width: 220px;
    }
    
    .service-content p {
        font-size: 14px !important; /* 12px * 1.15 = 13.8px */
    }
    
    .metric-number {
        font-size: 37px !important; /* 32px * 1.15 = 36.8px */
    }
    
    .metric-description {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    /* Увеличиваем размеры в section-3-descriptions, service-box, cta-content в 1.15 раза */
    .section-3-description-1,
    .section-3-description-2 {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    .service-box h3 {
        font-size: 28px !important; /* 24px * 1.15 = 27.6px */
    }
    
    .service-box p {
        font-size: 14px !important; /* 16px * 1.15 = 18.4px */
    }
    
    .service-number {
        font-size: 16px !important; /* 14px * 1.15 = 16.1px */
    }
    
    .cta-content p {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    /* Увеличиваем размеры в horizontal-content в 1.15 раза */
    .horizontal-content h3 {
        font-size: 21px !important; /* 18px * 1.15 = 20.7px */
    }
    
    .horizontal-content p {
        font-size: 16px !important; /* 14px * 1.15 = 16.1px */
    }
    
    /* Увеличиваем размеры в section-5-left в 1.15 раза */
    .section-5-title {
        font-size: 35px !important; /* 30px * 1.15 = 34.5px */
    }
    
    .section-5-description-mobile {
        font-size: 16px !important; /* 14px * 1.15 = 16.1px */
    }
    
    .section-5-list li span {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    .section-5-description {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    /* Увеличиваем размеры в section-6-left и review-text в 1.15 раза */
    .section-6-text p {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    .section-6-contacts .contact-phone,
    .section-6-contacts .contact-email {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    .review-text {
        font-size: 16px !important; /* 14px * 1.15 = 16.1px */
    }
    
    .review-author {
        font-size: 16px !important; /* 14px * 1.15 = 16.1px */
    }
    
    /* Увеличиваем размеры в section-8-content-wrapper в 1.15 раза */
    .section-8-title {
        font-size: 35px !important; /* 30px * 1.15 = 34.5px */
    }
    
    .section-8-description {
        font-size: 18px !important; /* 16px * 1.15 = 18.4px */
    }
    
    .section-8-contacts .contact-phone,
    .section-8-contacts .contact-email {
        font-size: 21px !important; /* 18px * 1.15 = 20.7px */
    }
    
    /* Центрируем текст в section-8-text */
    .section-8-text {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Центрируем содержимое section-8-text */
    .section-8-text .section-8-title,
    .section-8-text .section-8-content-wrapper {
        text-align: center !important;
    }
}