/* ========================================
   ОСНОВНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
======================================== */

/* КРИТИЧЕСКИ ВАЖНО: Принудительное применение темной цветовой схемы */
* {
    color-scheme: dark !important;
    forced-color-adjust: none !important;
    -webkit-color-scheme: dark !important;
    -moz-color-scheme: dark !important;
    -ms-color-scheme: dark !important;
}

/* Дополнительная защита от изменения цветов браузером */
html,
body {
    color-scheme: dark !important;
    forced-color-adjust: none !important;
    -webkit-color-scheme: dark !important;
    -moz-color-scheme: dark !important;
    -ms-color-scheme: dark !important;
}

/* Принудительное применение темной темы для всех элементов */
:root {
    color-scheme: dark !important;
    forced-color-adjust: none !important;
    -webkit-color-scheme: dark !important;
    -moz-color-scheme: dark !important;
    -ms-color-scheme: dark !important;
}

/* Дополнительная защита для всех текстовых элементов */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
a,
li,
td,
th,
button,
input,
textarea,
select {
    color-scheme: dark !important;
    forced-color-adjust: none !important;
    -webkit-color-scheme: dark !important;
    -moz-color-scheme: dark !important;
    -ms-color-scheme: dark !important;
}

/* Принудительное переопределение системных цветов Windows */
@media (prefers-color-scheme: light) {
    * {
        color-scheme: dark !important;
        forced-color-adjust: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    * {
        color-scheme: dark !important;
        forced-color-adjust: none !important;
    }
}

:root {
    --primary-blue: #191970;
    --secondary-blue: #1e1a8a;
    --accent-blue: #191970;
    --dark-blue: #0f0f23;
    --light-blue: #e6e6fa;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #0f172a;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;

    /* Адаптивные переменные */
    --container-max-width: 1200px;
    --section-padding: 90px 0;
    --section-spacing: 90px;
    --grid-gap: 40px;
    --border-radius: 16px;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.8rem;
    --font-size-body: 1rem;
    --portfolio-image-size: 600px;
}

/* Адаптивные переменные для разных экранов */
@media (max-width: 1440px) {
    :root {
        --container-max-width: 1140px;
        --font-size-h1: 3.2rem;
        --font-size-h2: 2.3rem;
        --portfolio-image-size: 600px;
    }

    .text-section {}
}

@media (max-width: 1200px) {
    :root {
        --container-max-width: 960px;
        --section-padding: 70px 0;
        --section-spacing: 70px;
        --grid-gap: 30px;
        --font-size-h1: 2.8rem;
        --font-size-h2: 2.1rem;
        --portfolio-image-size: 500px;
    }

    .text-section {}
}

@media (max-width: 992px) {
    :root {
        --container-max-width: 720px;
        --section-padding: 60px 0;
        --section-spacing: 60px;
        --grid-gap: 25px;
        --font-size-h1: 2.5rem;
        --font-size-h2: 1.9rem;
        --portfolio-image-size: 450px;
    }

    .text-section {
        text-align: center;
    }

    .text-section * {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
    }
}

@media (max-width: 768px) {
    :root {
        --container-max-width: 100%;
        --section-padding: 50px 0;
        --section-spacing: 50px;
        --grid-gap: 20px;
        --font-size-h1: 2.2rem;
        --font-size-h2: 1.7rem;
        --font-size-h3: 1.5rem;
        --portfolio-image-size: 350px;
    }

    /* КРИТИЧЕСКИ ВАЖНО: Принудительное применение темной темы на мобильных */
    * {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    html,
    body {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    /* Мобильная навигация - показываем на экране */
    .nav-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 3px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .mobile-menu {
        display: block;
    }

    .navigation {
        padding: 15px 10px;
    }

    .nav-container {
        padding: 0;
    }

    /* ПРИНУДИТЕЛЬНАЯ ФИКСАЦИЯ ИКОНОК СОЦИАЛЬНЫХ СЕТЕЙ - ЗАБЛОКИРОВАНО! */
    .social-links,
    div.social-links,
    .image-section .social-links,
    .hero-section .social-links {
        margin-left: 0px !important;
        margin-right: 0px !important;
        position: relative !important;
        left: 105px !important;
        top: 0px !important;
        transform: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
        display: flex !important;
        gap: 16px !important;
        z-index: 10 !important;
    }

    /* Принудительное центрирование всех текстовых элементов */
    .text-section,
    .text-section *,
    .text-section h1,
    .text-section h2,
    .text-section h3,
    .text-section p,
    .text-section span,
    .text-section div,
    .text-section strong,
    .text-section em {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-content-card {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .text-section {
        text-align: justify;
        /* Выравнивание по ширине */
        text-justify: inter-word;
        /* Выравнивание по ширине */
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .text-section * {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
    }

    .text-section h1,
    .text-section h2,
    .text-section h3,
    .text-section p,
    .text-section span,
    .text-section div {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Дополнительные правила для всех текстовых элементов */
    .text-section p,
    .text-section span,
    .text-section div,
    .text-section strong,
    .text-section em {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        display: block !important;
        margin: 0 auto !important;
    }

    .hero-title {
        margin-bottom: 30px !important;
        line-height: 1.1 !important;
        text-align: left !important;
        font-size: 2.8rem !important;
    }

    .gradient-title {
        font-size: 2.8rem !important;
        margin-bottom: 30px !important;
        text-align: left !important;
    }

    .description-text {
        font-size: 1.6rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        text-align: left !important;
        color: #ffffff !important;
    }

    .cta-button {
        margin: 35px auto !important;
        padding: 20px 10px !important;
        font-size: 1.2rem !important;
        border-radius: 12px !important;
    }

    /* Адаптация секций */
    .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 35px !important;
        text-align: center !important;
    }

    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .advantage-card {
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
    }

    .advantage-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    .advantage-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
    }
}

@media (max-width: 576px) {
    :root {
        --container-max-width: 100%;
        --section-padding: 30px 0;
        --grid-gap: 15px;
        --font-size-h1: 2rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --font-size-body: 0.9rem;
        --portfolio-image-size: 300px;
    }

    /* Навигация для маленьких экранов */
    .navigation {
        padding: 8px 12px !important;
    }

    .nav-menu .nav-link:not(.call-btn) {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        min-width: 60px !important;
        height: 28px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    
    .nav-menu .nav-link.call-btn {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
        min-width: 120px !important;
        height: 28px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }

    /* ПРИНУДИТЕЛЬНАЯ ФИКСАЦИЯ ИКОНОК СОЦИАЛЬНЫХ СЕТЕЙ - ЗАБЛОКИРОВАНО! */
    .social-links,
    div.social-links,
    .image-section .social-links,
    .hero-section .social-links {
        margin-left: 0px !important;
        margin-right: 0px !important;
        position: relative !important;
        left: 105px !important;
        top: 0px !important;
        transform: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
        display: flex !important;
        gap: 16px !important;
        z-index: 10 !important;
    }

    .hero-content-card {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: none !important;
    }

    .text-section {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .text-section * {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
    }

    .text-section h1,
    .text-section h2,
    .text-section h3,
    .text-section p,
    .text-section span,
    .text-section div {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Дополнительные правила для всех текстовых элементов */
    .text-section p,
    .text-section span,
    .text-section div,
    .text-section strong,
    .text-section em {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        display: block !important;
        margin: 0 auto !important;
    }

    .hero-title {
        margin-bottom: 20px !important;
        line-height: 1.1 !important;
        text-align: left !important;
        font-size: 2.2rem !important;
    }

    .gradient-title {
        font-size: 1.4rem !important;
        margin-bottom: 18px !important;
        text-align: left !important;
    }

    .description-text {
        font-size: 1.3rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        color: #ffffff !important;
    }

    .cta-button {
        margin: 20px auto !important;
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }

    /* Адаптация секций для 576px */
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .advantage-card {
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
    }

    .advantage-card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .advantage-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
    }

    /* Адаптация workflow */
    .workflow-steps-new {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .workflow-step-new {
        padding: 10px !important;
    }

    .step-content-new h3 {
        font-size: 1.3rem !important;
    }

    .step-content-new p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        hyphens: auto !important;
        color: #ffffff !important;
    }

    /* ПРИНУДИТЕЛЬНОЕ ВЫРАВНИВАНИЕ ПО ШИРИНЕ ДЛЯ 576px */
    .workflow-steps-new .workflow-step-new .step-content-new p,
    .workflow-step-new .step-content-new p,
    .workflow-step-new p {
        text-align: justify !important;
    }

    .text-section p {
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
    }

    .cta-button {
        margin: 20px auto !important;
        display: block !important;
        width: fit-content !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
        --section-spacing: 40px;
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.4rem;
        --font-size-h3: 1.2rem;
        --portfolio-image-size: 280px;
    }

    /* КРИТИЧЕСКИ ВАЖНО: Принудительное применение темной темы на очень маленьких экранах */
    * {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    html,
    body {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    /* Навигация для очень маленьких экранов */
    .navigation {
        padding: 8px 10px !important;
    }

    .nav-menu .nav-link:not(.call-btn) {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        min-width: 60px !important;
    }

    /* ИСПРАВЛЕНИЕ: Убираем конфликтующие стили для мобилки */
    .nav-menu .nav-link.call-btn,
    nav .nav-menu .nav-link.call-btn,
    .navigation .nav-menu .nav-link.call-btn,
    *[class*="nav-link"].call-btn {
        /* Стили перенесены в мобильный медиа-запрос */
        max-height: 40px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        /* УБРАН aspect-ratio для предотвращения искажений */
        min-height: 28px !important;
        height: auto !important;
    }

    /* ПРИНУДИТЕЛЬНАЯ ФИКСАЦИЯ ИКОНОК СОЦИАЛЬНЫХ СЕТЕЙ - ЗАБЛОКИРОВАНО! */
    .social-links,
    div.social-links,
    .image-section .social-links,
    .hero-section .social-links {
        margin-left: 0px !important;
        margin-right: 0px !important;
        position: relative !important;
        left: 105px !important;
        top: 0px !important;
        transform: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
        display: flex !important;
        gap: 16px !important;
        z-index: 10 !important;
    }

    .hero-content-card {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: none !important;
    }

    .text-section {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .text-section * {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
    }

    .text-section h1,
    .text-section h2,
    .text-section h3,
    .text-section p,
    .text-section span,
    .text-section div {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Дополнительные правила для всех текстовых элементов */
    .text-section p,
    .text-section span,
    .text-section div,
    .text-section strong,
    .text-section em {
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        display: block !important;
        margin: 0 auto !important;
    }

    .hero-title {
        margin-bottom: 25px !important;
        line-height: 1.1 !important;
        text-align: center !important;
        font-size: 2.2rem !important;
    }

    .gradient-title {
        font-size: 2.4rem !important;
        margin-bottom: 25px !important;
        text-align: left !important;
    }

    .description-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
        color: #ffffff !important;
    }

    .cta-button {
        margin: 25px auto !important;
        padding: 16px 30px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    /* Адаптация секций для 480px */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .advantage-card {
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
    }

    .advantage-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    .advantage-card p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
    }

    /* Адаптация workflow для 480px */
    .workflow-steps-new {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .workflow-step-new {
        padding: 15px !important;
    }

    .step-content-new h3 {
        font-size: 1.2rem !important;
    }

    .step-content-new p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        hyphens: auto !important;
        color: #ffffff !important;
    }

    /* ПРИНУДИТЕЛЬНОЕ ВЫРАВНИВАНИЕ ПО ШИРИНЕ ДЛЯ 480px */
    .workflow-steps-new .workflow-step-new .step-content-new p,
    .workflow-step-new .step-content-new p,
    .workflow-step-new p {
        text-align: justify !important;
    }

    /* Адаптация форм */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .service-type-selector {
        width: 100%;
    }

    .service-type-btn {
        width: 100%;
    }

    .form-input,
    .form-textarea {
        width: 100% !important;
        padding: 16px 10px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }

    .form-input:focus,
    .form-textarea:focus {
        border-color: #191970 !important;
        background: rgba(255, 255, 255, 0.15) !important;
        outline: none !important;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .submit-btn {
        width: 100% !important;
        padding: 18px 25px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #191970, #8b5cf6) !important;
        border: none !important;
        color: white !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }

    .submit-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    }

    .text-section p {
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
        text-justify: inter-word !important;
        /* Выравнивание по ширине */
    }

    .cta-button {
        margin: 15px auto !important;
        display: block !important;
        width: fit-content !important;
        padding: 12px 10px !important;
    }
}

/* Ультраширокие экраны */
/* ОПТИМИЗАЦИЯ ДЛЯ 1920x1080 */
@media (min-width: 1920px) and (max-width: 1920px) {
    :root {
        --container-max-width: 1200px;
        --section-padding: 80px 0;
        --grid-gap: 35px;
        --font-size-h1: 3.5rem;
        --font-size-h2: 2.2rem;
        --font-size-h3: 1.6rem;
        --font-size-body: 1rem;
        --portfolio-image-size: 600px;
    }

    /* Оптимизация для блоков преимуществ на 1920x1080 */
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 35px !important;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Оптимизация карточек преимуществ */
    .advantage-card.modern-card {
        min-height: 280px;
    }

    /* ИКОНКА ЧЕТКО ПО ЦЕНТРУ БЛОКА */
    .advantage-icon {
        width: 65px !important;
        height: 65px !important;
        margin-top: -30px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
    }

    /* ЗАГОЛОВКИ ПОД ИКОНКОЙ И ПО ЦЕНТРУ */
    section#about .advantages-grid .advantage-card.modern-card h3 {
        font-size: 22px !important;
        margin: -20px auto 18px auto !important;
        /* Увеличиваем отступ от иконки */
        text-align: center !important;
        width: 100% !important;
    }

    /* ТЕКСТ ПОД ЗАГОЛОВКОМ И ПО ЛЕВОМУ КРАЮ */
    section#about .advantages-grid .advantage-card.modern-card p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin: 18px auto 0 auto !important;
        text-align: justify !important;
        /* Выравнивание по ширине */
        width: 100% !important;
    }
}

@media (min-width: 1921px) {
    :root {
        --container-max-width: 1400px;
        --section-padding: 100px 0;
        --grid-gap: 50px;
        --font-size-h1: 4rem;
        --font-size-h2: 3rem;
        --portfolio-image-size: 800px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Кнопка переключения навигации (скрыта по умолчанию на десктопе) */
.nav-toggle-btn {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #475569 !important;
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    overflow-x: hidden;
    padding-top: 80px !important;
}

.modal-open {
    overflow: hidden !important;
}

@media (max-height: 520px) {
    body {
        padding-top: 0 !important;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    #projectsModal {
        padding: 16px 0 !important;
    }

    #projectsModal .projects-modal {
        width: calc(100% - 40px) !important;
        max-width: 560px !important;
        margin: 12px auto !important;
        max-height: calc(100vh - 48px) !important;
        overflow-y: auto !important;
        padding: 20px 18px !important;
    }

    .call-form-modal {
        padding: 12px !important;
        height: 100vh !important;
        overflow-y: auto !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .call-form-modal .call-form-modal-content {
        width: calc(100% - 32px) !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
        padding: 24px !important;
        max-height: calc(100vh - 32px) !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .call-form-modal-content form {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
    }
}

@media (orientation: landscape) and (max-width: 960px) {
    .call-form-modal {
        padding: 16px !important;
        height: 100vh !important;
        overflow-y: auto !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: pan-y !important;
    }

    .call-form-modal .call-form-modal-content {
        width: min(90vw, 520px) !important;
        margin: 0 auto !important;
        border-radius: 18px !important;
        padding: 24px !important;
        max-height: calc(100vh - 32px) !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .call-form-modal-content form {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
    }
}

/* ========================================
   ГЛОБАЛЬНАЯ ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ
======================================== */

/* Оптимизация для всех изображений */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Оптимизация для всех элементов с transition */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Принудительное исправление фона для всех экранов */
html,
body {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
}

/* Дополнительная фиксация фона для маленьких экранов */
@media (max-width: 768px) {

    html,
    body {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
}

@media (max-width: 480px) {

    html,
    body {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========================================
   НАВИГАЦИЯ
======================================== */

/* ========================================
   КРАСИВАЯ НАВИГАЦИЯ
======================================== */

.navigation {
    position: fixed !important;
    /* Фиксируем навигацию к верху экрана */
    top: 0 !important;
    /* Прижимаем к самому верху */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a24 50%, #1a1a1a 100%) !important;
    /* Очень мягкий градиент, близкий к фону сайта */
    padding: 4px 0 !important;
    z-index: 9999 !important;
    /* Высокий приоритет над всеми элементами */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    /* Очень мягкая тень */
    backdrop-filter: none !important;
    /* Убираем размытие */
    transition: all 0.3s ease !important;
    /* Плавные переходы */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px; /* Нормальное расстояние между кнопками, пока фото видно */
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #87ceeb, #5f9ea0) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.nav-link:hover {
    background: linear-gradient(135deg, #add8e6, #87ceeb) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

.call-btn {
    background: linear-gradient(135deg, #90ee90, #98fb98) !important;
    border: 2px solid rgba(144, 238, 144, 0.6) !important;
    color: #333 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(144, 238, 144, 0.3) !important;
}

.call-btn:hover {
    background: linear-gradient(135deg, #98fb98, #90ee90) !important;
    border: 2px solid rgba(152, 251, 152, 0.8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(144, 238, 144, 0.4) !important;
}

/* СТАРЫЕ СТИЛИ УДАЛЕНЫ */







@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 40px;
    max-width: 100%;
    margin: 0;
    padding-right: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: #f8fafc;
}

.nav-icon {
    color: #191970;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

/* УДАЛЕНЫ ДУБЛИРОВАННЫЕ СТИЛИ */

.contact-link {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    margin-right: 0;
}

.contact-link:hover {
    background: linear-gradient(135deg, #138496, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

/* Выпадающий блок контактов */
.contact-dropdown-container {
    position: relative;
}

.contact-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff !important;
    border: 2px solid #191970;
    border-radius: 12px;
    padding: 20px;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
    color: #000000 !important;
    font-size: 16px;
    font-weight: 500;
}

.contact-item i {
    margin-right: 12px;
    color: #191970;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: #000000 !important;
    font-weight: 600;
    white-space: nowrap !important;
}

.working-hours-text {
    color: #000000 !important;
}

.working-hours-text div {
    color: #000000 !important;
}

.contact-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-dropdown .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.contact-dropdown .contact-item:last-child {
    margin-bottom: 0;
}

.contact-dropdown .contact-item i {
    color: #191970;
    font-size: 16px;
    width: 20px;
}

.contact-dropdown .contact-item a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-dropdown .contact-item a:hover {
    color: #191970;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

.mobile-menu-content .nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.mobile-menu-content .nav-link:hover {
    color: #191970;
    transform: translateY(-2px);
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: #191970;
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #f1f5f9;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.mobile-menu-content .nav-link {
    display: block;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px 0;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-content .nav-link:hover {
    color: #191970;
    transform: translateX(10px);
}

.mobile-menu-content .nav-link:last-child {
    border-bottom: none;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: #191970;
}

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

.mobile-contact-info .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    color: white;
}

.mobile-contact-info .contact-item i {
    color: #191970;
    font-size: 1.2rem;
    width: 20px;
}

.mobile-contact-info .contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-contact-info .contact-item a:hover {
    color: #191970;
}

.mobile-contact-info .contact-item span {
    color: white;
    font-size: 1.1rem;
}

/* ========================================
   БЛОК 1: ГЕРОИЧЕСКИЙ РАЗДЕЛ
======================================== */

.hero-section {
    min-height: 100vh;
    padding: 90px 0 10px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.main-logo-section {
    text-align: center;
    margin-bottom: 60px;
}

.main-logo {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #f8fafc;
    opacity: 0;
    transform: translateY(30px);
}

.main-logo.animated-entrance {
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-logo i {
    font-size: 56px;
    color: #191970;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.main-logo h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-content-card {
    background: #1a1a1a;
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
    overflow: visible;
    /* Позволяем интегрированному блоку выходить за границы */
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    /* Стык смещен правее (как было) */
    min-height: 700px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative !important;
    /* Важно для absolute позиционирования изображения */
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.text-section {
    padding: 60px 80px;
    background: #1a1a1a;
    text-align: justify;
    /* Выравнивание по ширине */
    text-justify: inter-word;
    /* Выравнивание по ширине */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, #191970 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px;
    position: static;
    /* Убираем relative, чтобы фотография позиционировалась относительно hero-content-card, а не image-section */
    overflow: visible;
    /* Позволяем выходить за границы для интегрированного блока */
}


.hero-title {
    font-size: var(--font-size-h1);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    margin-top: -20px;
    color: #f8fafc;
    text-align: left;
}

.highlight-text {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-company {
    margin-bottom: 40px;
}

.about-company h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 16px;
    text-align: center;
}

.about-company p {
    font-size: 14px !important;
    /* Уменьшаем размер шрифта */
    line-height: 1.7;
    color: #475569 !important;
    text-align: center;
}

.services-info {
    margin-bottom: 40px;
}

.services-info h4 {
    font-size: 22px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 20px;
}

.services-list {
    list-style: none;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    color: #475569 !important;
    transition: var(--transition);
}

.services-list li:hover {
    color: #191970;
    transform: translateX(8px);
}

.services-list i {
    color: #191970;
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.tech-info {
    margin-bottom: 50px;
}

.tech-info h4 {
    font-size: 22px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 16px;
}

.tech-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569 !important;
}

.cta-button {
    background: linear-gradient(135deg, #90ee90, #98fb98) !important;
    color: #333 !important;
    border: 2px solid #90ee90 !important;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(144, 238, 144, 0.4) !important;
    text-transform: uppercase;
}

/* ОТКЛЮЧЕНО: смена цвета при hover - кнопка должна оставаться зеленой */
.cta-button:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(144, 238, 144, 0.6) !important;
    background: linear-gradient(135deg, #90ee90, #98fb98) !important;
    border-color: #90ee90 !important;
    animation: buttonPulse 0.3s ease-out !important;
}

.cta-button i {
    transition: var(--transition);
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Новые стили для улучшенного дизайна */
.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 600px;
}

.about-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.description-text {
    font-size: 24px !important;
    line-height: 1.7;
    color: #ffffff !important;
    margin: 0;
    text-align: left !important;
}

.cta-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.disclaimer-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

/* ОСНОВНОЙ СЕЛЕКТОР СОЦИАЛЬНЫХ ССЫЛОК - ЗАФИКСИРОВАН! */
.social-links,
div.social-links,
.image-section>.social-links {
    display: flex !important;
    gap: 16px !important;
    margin-top: -5px !important;
    margin-bottom: 20px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    position: relative !important;
    left: 105px !important;
    right: 0px !important;
    top: 0px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    justify-content: flex-start !important;
    align-items: center !important;
    z-index: 10 !important;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Стили только для героического блока - цветные всегда */
.social-links .social-btn.telegram,
.social-links .telegram {
    background: #0088cc !important;
    border-color: #0088cc !important;
}

.social-links .social-btn.vk,
.social-links .vk {
    background: #4680c2 !important;
    border-color: #4680c2 !important;
}

.social-links .social-btn.youtube,
.social-links .youtube {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
}

.social-links .telegram:hover {
    background: #0077b5 !important;
    border-color: #0077b5 !important;
}

.social-links .vk:hover {
    background: #3d6ba5 !important;
    border-color: #3d6ba5 !important;
}

.social-links .youtube:hover {
    background: #e60000 !important;
    border-color: #e60000 !important;
}

/* Прозрачные иконки только для первого блока */
.hero-section .social-links .social-btn.telegram,
.hero-section .social-links .social-btn.vk,
.hero-section .social-links .social-btn.youtube {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.hero-section .social-links .social-btn.telegram:hover,
.hero-section .social-links .social-btn.vk:hover,
.hero-section .social-links .social-btn.youtube:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

/* ========================================
   ИНТЕГРИРОВАННЫЙ БЛОК С ИЗОБРАЖЕНИЕМ ПРИНТЕРА
   ОПТИМИЗИРОВАНО ДЛЯ ПРОИЗВОДИТЕЛЬНОСТИ
======================================== */

.integrated-printer-block {
    position: absolute;
    top: 50%;
    left: calc(70% - 350px);
    transform: translateY(-50%);
    width: 700px;
    height: 610px;
    z-index: 10;
    border-radius: 20px;
    padding: 8px;
    background: linear-gradient(45deg, #191970, #4169e1, #191970, #1e1a8a, #191970);
    background-size: 300% 300%;
    animation: midnightBlueGradient 5s ease infinite;
    box-shadow: 0 20px 40px rgba(25, 25, 112, 0.4);
    /* УБРАН transition для мгновенного скрытия без плавного уменьшения */
    overflow: hidden;
    /* Оптимизация производительности */
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.integrated-printer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* УБРАН transition для мгновенного скрытия без плавного уменьшения */
    /* Упрощенные фильтры - убраны для производительности */
    display: block;
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.integrated-printer-image:hover {
    /* Упрощенные трансформации без 3D вращений */
    transform: translateZ(0) scale(1.05);
}

.integrated-printer-block:hover {
    transform: translateY(-50%) scale(1.01);
    box-shadow: 0 25px 50px rgba(25, 25, 112, 0.5);
    /* Убираем ускорение анимации при hover - она остается прежней */
    animation: midnightBlueGradient 5s ease infinite;
}

/* Отключаем hover-эффекты на маленьких экранах */
@media (max-width: 1200px) {
    html body .integrated-printer-block:hover,
    body .integrated-printer-block:hover,
    .hero-section .integrated-printer-block:hover,
    .image-section .integrated-printer-block:hover {
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 20px 40px rgba(25, 25, 112, 0.4) !important;
        scale: 1 !important;
    }
    
    html body .integrated-printer-image:hover,
    body .integrated-printer-image:hover,
    .hero-section .integrated-printer-image:hover,
    .image-section .integrated-printer-image:hover {
        transform: translateZ(0) !important;
        scale: 1 !important;
    }
}

/* ========================================
   БЛОК 2: О НАС И ПРЕИМУЩЕСТВА
======================================== */

.about-section {
    padding: var(--grid-gap) 0 var(--section-padding) 0;
    background: #1a1a1a;
    margin-bottom: -10px;
    margin-top: -80px;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 0;
}

.about-section .section-header {
    padding: var(--grid-gap) 0;
    margin: 0;
    padding-top: calc(var(--grid-gap) + 10px);
    margin-bottom: -10px;
}

/* Уменьшаем отступы заголовков секций для мобильных */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 30px !important;
    }
}

.section-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #191970;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    /* Уменьшено с 50px */
    background: linear-gradient(135deg, #191970, var(--primary-blue));
    padding: 16px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(25, 25, 112, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(-5px);
    display: inline-block;
    text-align: center;
}

.about-section .section-title {
    margin: 0;
}

/* Анимированный фон для заголовка */
.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.section-title:hover::before {
    left: 100%;
}

.section-title:hover {
    background: linear-gradient(135deg, var(--primary-blue), #191970);
    color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(25, 25, 112, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--grid-gap);
    row-gap: var(--grid-gap);
    margin-bottom: 0;
    margin-top: -10px;
}

.info-card,
.advantage-card {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 0;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    /* ВЕРТИКАЛЬНЫЙ LAYOUT: ИКОНКА СВЕРХУ, ТЕКСТ СНИЗУ */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* Центрируем все элементы */
    gap: 0px !important;
    padding: 40px 20px 25px 20px !important;
    /* Добавляем отступ сверху для иконок */
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    /* Центрируем текст */
    max-width: 100%;
    /* Ограничиваем ширину */
    width: 100%;
    /* Занимаем всю доступную ширину */
}

.info-card:hover,
.advantage-card:hover {
    transform: none;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

/* УДАЛЕНО: Дублирующиеся стили для иконок */

/* ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ ПОЗИЦИОНИРОВАНИЯ ИКОНОК */
.advantages-grid .advantage-card .advantage-icon,
section#about .advantages-grid .advantage-card .advantage-icon,
.advantage-card.modern-card .advantage-icon {
    margin-top: 0px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateY(0) !important;
}

/* ПРИНУДИТЕЛЬНОЕ ЦЕНТРИРОВАНИЕ ЗАГОЛОВКОВ И ВЫРАВНИВАНИЕ ТЕКСТА ПО ШИРИНЕ */
.advantage-card.modern-card h3 {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0px !important;
    /* Убираем отступ от иконки */
    text-align: center !important;
}

.advantage-card.modern-card p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    word-spacing: normal !important;
    /* Нормальные промежутки между словами */
}

/* УДАЛЕНО: Дублирующиеся правила для ПК */

.info-icon i,
.advantage-icon i {
    font-size: 24px;
    color: white;
}

.info-card h3,
.advantage-card h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    margin-top: 0 !important;
    /* Убираем верхний отступ */
    visibility: visible !important;
    opacity: 1 !important;
}

.info-card p,
.advantage-card p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    /* Возвращаем как было */
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    /* Убираем лишние отступы */
}

/* Контейнер для текста в горизонтальном layout */
.advantage-card .text-content,
.info-card .text-content {
    flex: 1;
    /* Занимает оставшееся место */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Выравнивание по верху */
    align-items: center;
    /* Выравнивание по центру */
    text-align: center;
    /* Заголовки по центру */
    margin-left: auto !important;
    /* Центрируем */
    margin-right: auto !important;
    /* Центрируем */
    padding: 20px !important;
    /* Добавляем отступы внутри блока */
}

/* Выравнивание текста по ширине внутри центрированного контейнера */
.advantage-card .text-content p {
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    word-spacing: normal !important;
    /* Нормальные промежутки между словами */
    width: 100% !important;
    /* Занимает всю ширину контейнера */
}

/* ПРИНУДИТЕЛЬНОЕ ВЫРАВНИВАНИЕ ПО ШИРИНЕ ДЛЯ ВСЕХ ТЕКСТОВЫХ ЭЛЕМЕНТОВ */
.advantage-card .text-content p,
.advantage-card.modern-card p,
.advantage-text {
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    word-spacing: normal !important;
    /* Нормальные промежутки между словами */
    hyphens: auto !important;
    /* Автоматические переносы слов */
}

/* СВЕРХ-СПЕЦИФИЧНОЕ ПРАВИЛО ДЛЯ ПРИНУДИТЕЛЬНОГО ВЫРАВНИВАНИЯ ПО ШИРИНЕ */
body section#about .container .advantages-grid .advantage-card.modern-card .text-content p,
body section#about .container .advantages-grid .advantage-card.modern-card p,
body .advantage-card.modern-card .advantage-text {
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    word-spacing: normal !important;
    /* Нормальные промежутки между словами */
    hyphens: auto !important;
    /* Автоматические переносы слов */
    direction: ltr !important;
    /* Направление текста слева направо */
}

.process-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.process-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #191970, var(--dark-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Убираем тяжелую анимацию pulse для производительности */
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.process-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.process-icon:hover::before {
    transform: translate(-50%, -50%) scale(1.3);
}

.process-icon i {
    font-size: 32px;
    color: white;
    animation: clockRotate 4s linear infinite;
    transition: transform 0.3s ease;
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.process-icon:hover {
    transform: translateZ(0) scale(1.08);
    box-shadow: 0 20px 40px rgba(25, 25, 112, 0.3);
    background: linear-gradient(135deg, var(--primary-blue), #191970);
}

.process-icon:hover i {
    animation-duration: 1s;
    transform: translateZ(0) scale(1.15);
}

/* Анимации для иконки часов */
@keyframes clockPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(25, 25, 112, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(25, 25, 112, 0);
    }
}

@keyframes clockRotate {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.process-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
    text-align: center;
}

.process-info p {
    font-size: 18px;
    line-height: 1.7;
    color: #475569 !important;
    text-align: center;
}

.process-image {
    text-align: center;
}

.process-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.process-img:hover {
    transform: translateZ(0) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Интерактивно-анимационная рамка для принтера в блоке "Проект в оптимальные сроки" */
.animated-printer-frame {
    position: relative;
    border-radius: 20px;
    padding: 8px;
    background: linear-gradient(45deg, #191970, #4169e1, #191970, #1e1a8a, #191970);
    background-size: 300% 300%;
    animation: midnightBlueGradient 5s ease infinite;
    box-shadow: 0 20px 40px rgba(25, 25, 112, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: inline-block;
    /* Оптимизация производительности */
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
}

.animated-printer-frame:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 50px rgba(25, 25, 112, 0.5);
    /* Убираем ускорение анимации при hover */
    animation: midnightBlueGradient 5s ease infinite;
}

.animated-printer-frame .process-img {
    border-radius: 12px;
    transition: transform 0.3s ease;
    /* Упрощенные фильтры - убраны для производительности */
    display: block;
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.animated-printer-frame:hover .process-img {
    /* Упрощенные трансформации без 3D вращений */
    transform: translateZ(0) scale(1.05);
}

/* ========================================
   БЛОК 3: ТЕХНОЛОГИИ
======================================== */

.technologies-section {
    padding: var(--section-padding);
    background: #1a1a1a;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

.tech-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.tech-card:hover {
    transform: translateZ(0) translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.tech-image {
    height: 250px;
    overflow: hidden;
}

.tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Оптимизация производительности */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* GPU acceleration */
}

.tech-card:hover .tech-image img {
    transform: translateZ(0) scale(1.08);
}

.tech-content {
    padding: 30px;
}

.tech-name {
    font-size: 32px;
    font-weight: 700;
    color: #191970;
    margin-bottom: 20px;
    text-align: center;
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.tech-detail {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.materials-btn {
    cursor: pointer;
    color: #191970 !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.materials-btn:hover {
    color: var(--dark-blue) !important;
}

.materials-btn i {
    transition: var(--transition);
}

.materials-btn.active i {
    transform: rotate(180deg);
}

.tech-description {
    font-size: 16px;
    color: #475569 !important;
    text-align: center;
    font-style: italic;
}

.materials-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #ffffff;
}

.materials-dropdown.active {
    max-height: 300px;
}

.materials-list {
    padding: 20px 30px;
}

.material-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 16px;
    color: #f1f5f9;
}

.material-item:last-child {
    border-bottom: none;
}

/* ========================================
   БЛОК 4: КАК МЫ РАБОТАЕМ
======================================== */

.workflow-section {
    padding: 60px 0 90px 0 !important;
    background: #1a1a1a;
    margin-top: -20px !important;
}

.workflow-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
    /* Уменьшено с 100px */
    overflow-x: auto;
    padding: 20px 0;
}

.workflow-step {
    flex: 0 0 280px;
    min-width: 280px;
}

.workflow-step {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.workflow-step p {
    text-align: center;
}

.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #191970);
    border-radius: 2px;
}

.workflow-step:hover {
    background: #ffffff;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.workflow-step {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
}

.workflow-step p {
    text-align: center;
}

.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #191970);
    border-radius: 2px;
}

.workflow-step:hover {
    background: #ffffff;
    transform: translateY(-8px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), #191970);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.workflow-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-icon i {
    font-size: 32px;
    color: white;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 16px;
    text-align: center;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #475569 !important;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    max-width: 900px;
    margin: 0 auto !important;
}

.workflow-section .stats-grid {
    margin-top: -60px !important;
    margin-bottom: 30px !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .workflow-section .stats-grid {
        margin-top: 0 !important;
    }
}

.workflow-section .container>.stats-grid {
    margin-top: -60px !important;
    padding-top: 0 !important;
}

body .workflow-section .stats-grid,
html body .workflow-section .stats-grid,
section.workflow-section .stats-grid,
.workflow-section .container .stats-grid {
    margin-top: -60px !important;
    padding-top: 0 !important;
}

.workflow-section .workflow-steps-new+.stats-grid {
    margin-top: -60px !important;
    padding-top: 0 !important;
}

@media (min-width: 769px) {

    .workflow-section .container>.stats-grid,
    body .workflow-section .stats-grid,
    html body .workflow-section .stats-grid,
    section.workflow-section .stats-grid,
    .workflow-section .container .stats-grid,
    .workflow-section .workflow-steps-new+.stats-grid {
        margin-top: -60px !important;
    }
}

@media (max-width: 768px) {

    .workflow-section .container>.stats-grid,
    body .workflow-section .stats-grid,
    html body .workflow-section .stats-grid,
    section.workflow-section .stats-grid,
    .workflow-section .container .stats-grid,
    .workflow-section .workflow-steps-new+.stats-grid {
        margin-top: 0 !important;
    }
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #191970, var(--dark-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 32px;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #191970;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: #333333;
    font-weight: 600;
}

/* ========================================
   БЛОК 5: ФОРМА ЗАЯВКИ
======================================== */

.contact-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue), #191970);
    color: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.additional-info {
    margin-top: 40px;
}

.special-offer {
    background: rgba(255, 255, 255, 0.95);
    color: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.special-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 25, 112, 0.1), transparent);
    transition: left 0.6s ease;
}

.special-offer:hover::before {
    left: 100%;
}

.special-offer:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #191970, var(--primary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(25, 25, 112, 0.3);
}

.info-icon i {
    font-size: 20px;
    color: white;
}

.info-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #191970;
    margin-bottom: 15px;
    text-align: center;
}

.info-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 500;
}

.info-features i {
    color: #28a745;
    font-size: 16px;
}

.enhanced-submit {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 2px solid #28a745 !important;
    position: relative;
    overflow: hidden;
}

.enhanced-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.enhanced-submit:hover::before {
    width: 300px;
    height: 300px;
}

.enhanced-submit:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    border-color: #20c997 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4) !important;
}

/* Дополнительный сервис */
.additional-service {
    margin-top: 30px;
    text-align: center;
}

.service-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2d5a2d, #1a6b5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.service-icon i {
    font-size: 18px;
    color: white;
}

.service-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* Адаптивность для формы заявки */
@media (max-width: 1024px) {
    .contact-content {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .special-offer {
        padding: 25px 20px;
    }

    .info-content h3 {
        font-size: 20px;
    }

    .info-features {
        gap: 8px;
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    /* Уменьшено с 60px */
}

.contact-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.contact-header p {
    font-size: 20px;
    opacity: 0.9;
}

.order-form {
    max-width: 1000px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-row:last-child {
    grid-template-columns: 2fr 1fr 1fr;
}

.form-row-service-type {
    grid-template-columns: 1fr !important;
}

/* Селектор типа услуги */
.service-type-selector {
    position: relative;
    width: 100%;
}

.service-type-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.3) 0%, rgba(30, 26, 138, 0.3) 50%, rgba(15, 15, 35, 0.3) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-type-btn:hover::before {
    left: 100%;
}

.service-type-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.5) 0%, rgba(30, 26, 138, 0.5) 50%, rgba(15, 15, 35, 0.5) 100%);
    box-shadow: 0 4px 15px rgba(25, 25, 112, 0.3);
    transform: translateY(-1px);
}

.service-type-btn.active {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.6) 0%, rgba(30, 26, 138, 0.6) 50%, rgba(15, 15, 35, 0.6) 100%);
    box-shadow: 0 4px 20px rgba(25, 25, 112, 0.4);
}

.service-type-btn i {
    transition: transform 0.3s ease;
}

.service-type-btn.active i {
    transform: rotate(180deg);
}

.service-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #191970 0%, #1e1a8a 20%, #0f0f23 40%, #0f0f23 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(25, 25, 112, 0.4), 0 0 20px rgba(25, 25, 112, 0.2);
    margin-top: 8px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    padding: 8px;
}

/* Стилизация скроллбара для dropdown */
.service-dropdown::-webkit-scrollbar {
    width: 8px;
}

.service-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.service-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #191970, #1e1a8a);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e1a8a, #0f0f23);
}

.service-dropdown.active {
    display: block;
    animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-option {
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 4px;
    position: relative;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-option:last-child {
    margin-bottom: 0;
}

.service-option::before {
    display: none;
}

.service-option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.service-option:active {
    background: rgba(255, 255, 255, 0.2);
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.main-font {
    font-family: 'Montserrat', 'Inter', 'Arial', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.textarea-with-icon {
    position: relative;
    padding: 50px 20px 16px 20px;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='32' viewBox='0 0 48 32' fill='none'%3E%3Crect x='2' y='4' width='44' height='24' rx='3' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'/%3E%3Crect x='5' y='8' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='11.5' y='8' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='18' y='8' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='24.5' y='8' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='31' y='8' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='37.5' y='8' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='5' y='14' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='11.5' y='14' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='18' y='14' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='24.5' y='14' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='31' y='14' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='37.5' y='14' width='5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3Crect x='5' y='20' width='37.5' height='4' rx='1' fill='rgba(255,255,255,0.6)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center 16px;
    background-size: 48px 32px;
    min-height: 80px;
}

.textarea-with-icon:focus,
.textarea-with-icon:not(:placeholder-shown) {
    background-image: none;
    padding-top: 16px;
}

.textarea-with-icon::placeholder {
    text-align: center;
    opacity: 0.7;
}

.textarea-with-icon:focus::placeholder {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-upload {
    position: relative;
    overflow: hidden;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px 20px 30px 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(10px);
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.file-label i {
    font-size: 32px;
}

.file-label span {
    font-size: 16px;
    font-weight: 600;
}

.file-label small {
    font-size: 14px;
    opacity: 0.8;
}

.file-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}

.file-remove-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.file-remove-btn i {
    font-size: 14px;
}

.file-label {
    position: relative;
}

.file-label .file-remove-btn {
    pointer-events: auto;
}

.file-label-text {
    word-break: break-word;
    max-width: calc(100% - 50px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.file-list {
    width: 100%;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    gap: 10px;
    position: relative;
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0ea5e9;
}

.file-item-size {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    white-space: nowrap;
}

.file-item-remove {
    background: rgba(220, 53, 69, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.file-item-remove:hover {
    background: rgba(220, 53, 69, 1) !important;
    transform: scale(1.1) !important;
}

.file-item-remove i {
    font-size: 12px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback для Mac - если иконка не видна */
.remove-fallback {
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Дополнительная защита для Mac - кнопка всегда должна быть видна */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .file-item-remove {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .file-item-remove i {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

#fileInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.submit-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.submit-btn:hover {
    background: white;
    color: #191970;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   БЛОК 6: ПОРТФОЛИО
======================================== */

.portfolio-section {
    padding: 40px 0 60px 0;
    /* Уменьшено снизу с 120px до 60px */
    background: #1a1a1a;
}

/* ========================================
   БЛОК 6: НАШИ РАБОТЫ (НОВЫЙ ДИЗАЙН)
======================================== */

.works-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a1a 50%, #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

.works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(25, 25, 112, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.works-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    max-width: 1280px;
    margin: 60px auto 0;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Левая часть: Скриншот YouTube */
.works-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.youtube-screenshot-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(25, 25, 112, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
    transform: scale(1.15);
    transform-origin: left center;
}

.youtube-screenshot-wrapper:hover {
    transform: translateY(-5px) scale(1.17);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(25, 25, 112, 0.4);
}

.youtube-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.youtube-screenshot-wrapper:hover .youtube-screenshot {
    transform: scale(1.05);
}

.youtube-screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #191970 0%, #1e1a8a 50%, #0f0f23 100%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.youtube-screenshot-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.youtube-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    width: 100%;
    margin-left: 7.5%;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    margin: 25px auto 0 auto;
}

.youtube-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
    background: linear-gradient(135deg, #d60000 0%, #b30000 100%);
    border-color: rgba(255, 255, 255, 0.25);
}

.youtube-btn:active {
    transform: translateY(-1px);
}

.youtube-btn i:first-child {
    font-size: 22px;
    position: relative;
    z-index: 2;
}

.youtube-btn span {
    position: relative;
    z-index: 2;
}

.youtube-btn i:last-child {
    font-size: 14px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.youtube-btn:hover i:last-child {
    transform: translateX(4px);
}

/* Правая часть: iPhone */
.works-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.iphone-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.iphone-frame {
    width: 320px;
    height: 650px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.4s ease;
}

.iphone-frame:hover {
    transform: translateY(-10px) scale(1.02);
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    pointer-events: none;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1e1a8a 0%, #0f0f23 100%);
    border-radius: 35px;
    padding: 50px 20px 80px 20px;
    overflow: hidden;
    position: relative;
}

.phone-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: 100%;
    align-content: center;
    position: relative;
    z-index: 1;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    will-change: transform, box-shadow;
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 1;
}

.phone-link:hover,
.phone-link:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--link-color);
    transform: translateX(8px) scale(1.03) translateZ(0);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.phone-link:active {
    transform: translateX(6px) scale(1.01) translateZ(0);
}

/* Специфичные стили для подсветки убраны, т.к. вызывали баги */
.phone-link.telegram-link:hover,
.phone-link.telegram-link:focus {
    border-color: #00aaff;
}

.phone-link.vk-link:hover,
.phone-link.vk-link:focus {
    border-color: #5d9eff;
}

.phone-link.avito-link:hover,
.phone-link.avito-link:focus {
    border-color: #ff8c66;
}

.phone-link.ozon-link:hover,
.phone-link.ozon-link:focus {
    border-color: #4d94ff;
}

.phone-link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--link-color, #191970);
    border-radius: 15px;
    font-size: 24px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    transform: rotate(0deg) scale(1);
}

.phone-link:hover .phone-link-icon,
.phone-link:focus .phone-link-icon {
    transform: rotate(8deg) scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 10px var(--link-color));
}

.phone-link-text {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    position: relative;
    z-index: 2;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Плашка внизу */
.works-bottom-banner {
    max-width: 1280px;
    margin: 60px auto 0 auto;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.3) 0%, rgba(30, 26, 138, 0.3) 50%, rgba(15, 15, 35, 0.3) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: bannerPulse 3s ease-in-out infinite;
}

.works-bottom-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: bannerShine 4s ease-in-out infinite;
}

.works-bottom-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #191970, #1e1a8a, #191970, transparent);
    animation: bannerUnderline 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes bannerPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 rgba(25, 25, 112, 0);
    }

    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(25, 25, 112, 0.4);
    }
}

@keyframes bannerShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes bannerUnderline {

    0%,
    100% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 80%;
        opacity: 1;
    }
}

.works-bottom-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    50% {
        text-shadow: 0 2px 15px rgba(25, 25, 112, 0.5), 0 0 20px rgba(25, 25, 112, 0.3);
    }
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .works-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .iphone-frame {
        width: 280px;
        height: 570px;
    }

    .phone-link {
        padding: 18px 20px;
    }

    .phone-link-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .phone-link-text {
        font-size: 16px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .works-section {
        padding: 40px 0 60px 0;
    }

    .works-content {
        gap: 40px;
        padding: 0 15px;
    }

    .youtube-btn {
        padding: 16px 30px;
        font-size: 16px;
    }

    .iphone-frame {
        width: 240px;
        height: 490px;
        padding: 10px;
    }

    .iphone-screen {
        padding: 40px 15px 60px 15px;
    }

    .phone-links-grid {
        gap: 15px;
    }

    .phone-link {
        padding: 15px 18px;
        gap: 15px;
    }

    .phone-link-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .phone-link-text {
        font-size: 15px;
    }

    .works-bottom-banner {
        padding: 20px 25px;
        margin-top: 40px;
    }

    .works-bottom-banner p {
        font-size: 16px;
    }
}

/* ========================================
   БЛОК "НАШИ ПРОЕКТЫ" (НОВЫЙ ДИЗАЙН)
======================================== */

.projects-section {
    margin-top: -40px;
    --projects-gap: 32px;
    --projects-block-gap: 52px;
    padding: 50px 0 90px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a1a 50%, #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(25, 25, 112, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Интро текст */
.projects-intro {
    text-align: center;
    margin: 10px auto var(--projects-block-gap);
    max-width: 1000px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.projects-intro p {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.75;
    font-weight: 500;
    letter-spacing: 0.35px;
    margin: 0;
}

/* Галерея проектов */
.projects-gallery {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--projects-gap);
    max-width: 1400px;
    margin: 0 auto var(--projects-block-gap);
    position: relative;
    z-index: 5;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

/* Боковые окна (справа) */
.projects-side-windows {
    display: flex;
    flex-direction: column;
    gap: var(--projects-gap);
    position: relative;
    z-index: 5;
    width: 350px;
    flex-shrink: 0;
    align-self: stretch;
}

.side-window {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.side-window:hover,
.side-window.active {
    border-color: rgba(25, 25, 112, 0.7) !important;
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(25, 25, 112, 0.4) !important;
    z-index: 10 !important;
}

.side-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.side-window:hover img,
.side-window.active img {
    transform: scale(1.08) !important;
}

/* Главное окно (слева) */
.projects-main-window {
    position: relative;
    width: calc((350px * 9/16 * 2 + 25px) * 16/9);
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--projects-gap);
    align-self: stretch;
}

.main-window-content {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(25, 25, 112, 0.3);
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.main-window-content:hover {
    border-color: rgba(25, 25, 112, 0.8);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 70px rgba(25, 25, 112, 0.4);
    transform: translateY(-5px);
}

.main-window-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.main-window-content:hover img {
    transform: scale(1.05);
}

.window-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.window-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #191970 0%, #1e1a8a 50%, #0f0f23 100%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.window-placeholder i {
    font-size: 64px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.3);
}


/* Обёртка для плашки и иконок (под галереей) */
.projects-social-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--projects-gap);
    width: 100%;
    max-width: calc((350px * 9/16 * 2 + 25px) * 16/9 + 40px + 350px);
    margin: 0 auto var(--projects-block-gap);
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Горизонтальный ряд иконок */
.social-icons-inline {
    display: flex;
    justify-content: flex-start;
    gap: 35px;
    flex-wrap: nowrap;
}

/* Плашка с соцсетями (только текст) */
.projects-social-banner {
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.25), rgba(30, 26, 138, 0.25));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.social-banner-text {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
}

.projects-social-banner:hover {
    border-color: rgba(25, 25, 112, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(25, 25, 112, 0.3);
    transform: translateY(-4px);
}

/* Горизонтальный ряд иконок */
.social-icons-inline {
    display: flex;
    justify-content: center;
    gap: var(--projects-gap);
    flex-wrap: wrap;
}

/* Вертикальный ряд иконок справа от скриншотов */
.social-icons-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-left: 1px;
    flex-shrink: 0;
    align-self: stretch;
    padding: 0;
    min-height: 100%;
}

.social-icon-small {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    color: white;
    font-size: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-icon-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(25, 25, 112, 0.8);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-icon-small.telegram-icon {
    background: linear-gradient(135deg, #1f94d0, #2bb6f5);
    border: none;
    box-shadow: 0 10px 30px rgba(34, 150, 210, 0.35);
}

.social-icon-small.telegram-icon i {
    color: #ffffff;
    font-size: 28px;
}

.social-icon-small.vk-icon {
    background: linear-gradient(135deg, #0d6efd, #0a53c6);
    border: none;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.35);
}

.social-icon-small.vk-icon i {
    color: #ffffff;
    font-size: 28px;
}

.social-icon-small.youtube-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.35);
}

.social-icon-small.youtube-icon i {
    color: #ffffff;
    font-size: 30px;
}

.social-icon-small.avito-icon {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
    color: transparent;
    background-image:
        radial-gradient(circle at 30% 30%, #a855f7 11%, transparent 12%),
        radial-gradient(circle at 70% 24%, #38bdf8 18%, transparent 19%),
        radial-gradient(circle at 32% 72%, #22c55e 22%, transparent 23%),
        radial-gradient(circle at 70% 72%, #ef4444 16%, transparent 17%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.social-icon-small.avito-icon i {
    display: none;
}

.social-icon-small.ozon-icon {
    background: #2d5ef9;
    border: none;
    box-shadow: 0 12px 32px rgba(45, 94, 249, 0.35);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: transparent;
}

.social-icon-small.ozon-icon::after {
    content: 'OZON';
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.social-icon-small.ozon-icon i {
    display: none;
}

/* Текст о продукции */
.projects-marketplace-text {
    max-width: 1000px;
    margin: var(--projects-gap) auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.projects-marketplace-text p {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.75;
    font-weight: 500;
    letter-spacing: 0.35px;
}

/* Иконки соцсетей под скриншотами */
.projects-social-under {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    max-width: 1400px;
    margin: 20px auto var(--projects-block-gap);
    padding: 0 20px;
}

/* Большие иконки маркетплейсов */
.projects-marketplace-icons {
    display: flex;
    justify-content: center;
    gap: var(--projects-gap);
    max-width: 900px;
    margin: var(--projects-gap) auto 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.marketplace-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .projects-social-under {
        gap: 25px;
        margin: 15px auto var(--projects-block-gap);
    }
}

.marketplace-icon-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.marketplace-icon-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.marketplace-icon-large:hover::before {
    width: 300px;
    height: 300px;
}

.marketplace-icon-large:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.marketplace-icon-large.avito {
    border-color: rgba(255, 108, 55, 0.5);
}

.marketplace-icon-large.avito:hover {
    border-color: #FF6C37;
    box-shadow: 0 20px 50px rgba(255, 108, 55, 0.4);
}

.marketplace-icon-large.ozon {
    border-color: rgba(0, 91, 255, 0.5);
}

.marketplace-icon-large.ozon:hover {
    border-color: #005BFF;
    box-shadow: 0 20px 50px rgba(0, 91, 255, 0.4);
}

.marketplace-icon-large i {
    font-size: 36px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.marketplace-icon-large:hover i {
    transform: scale(1.15) rotate(5deg);
}

.marketplace-icon-large span {
    display: none;
}

.marketplace-icon-large.ozon,
.marketplace-icon-large.avito {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.35);
}

.marketplace-icon-large.ozon i,
.marketplace-icon-large.avito i {
    color: #e2e8f0;
}

.marketplace-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.9);
}

/* Старые стили marketplace-section (оставляем для совместимости) */
.marketplace-section {
    padding: 40px 0 60px 0;
    background: #1a1a1a;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Фиксированная сетка 3x3 */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.marketplace-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.marketplace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--platform-color, #191970), transparent);
    opacity: 0.1;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.marketplace-card:hover::before {
    opacity: 0.2;
}

.marketplace-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--platform-color, #191970);
}

.marketplace-card-inner {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    min-height: 280px;
    justify-content: space-between;
}

.marketplace-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--platform-color, #191970), var(--platform-color, #191970));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.marketplace-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.marketplace-card:hover .marketplace-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.marketplace-card:hover .marketplace-icon::before {
    opacity: 1;
}

.marketplace-icon i {
    font-size: 36px;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.marketplace-card:hover .marketplace-icon i {
    transform: scale(1.2);
}

.marketplace-content {
    flex: 1;
    margin-bottom: 20px;
    width: 100%;
}

.marketplace-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

.marketplace-card:hover .marketplace-title {
    color: var(--platform-color, #191970);
}

.marketplace-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.marketplace-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.marketplace-card:hover .marketplace-arrow {
    background: var(--platform-color, #191970);
    transform: translateX(10px);
    border-color: var(--platform-color, #191970);
}

.marketplace-arrow i {
    font-size: 18px;
    color: white;
    transition: transform 0.4s ease;
}

.marketplace-card:hover .marketplace-arrow i {
    transform: translateX(5px);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 колонки на планшетах */
        gap: 25px;
    }

    .marketplace-card-inner {
        padding: 35px 25px;
        min-height: 260px;
    }

    .marketplace-icon {
        width: 70px;
        height: 70px;
    }

    .marketplace-icon i {
        font-size: 32px;
    }

    .marketplace-title {
        font-size: 22px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
        /* 1 колонка на мобильных */
        gap: 20px;
        padding: 0 15px;
    }

    .marketplace-card-inner {
        padding: 30px 20px;
        min-height: 240px;
    }

    .marketplace-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .marketplace-icon i {
        font-size: 28px;
    }

    .marketplace-title {
        font-size: 20px;
    }

    .marketplace-description {
        font-size: 14px;
    }

    .marketplace-arrow {
        width: 40px;
        height: 40px;
    }

    .marketplace-arrow i {
        font-size: 16px;
    }
}

/* ========================================
   БЛОК 7: FAQ
======================================== */

.faq-section {
    padding: var(--section-padding);
    padding-top: 70px !important;
    margin-top: -20px !important;
    background: #0f0f0f;
    /* Графитно-черный фон блока */
}

/* Новые стили для FAQ */
.faq-container-new {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item-new {
    background: #b0b0b0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    overflow: hidden;
}

.faq-item-new:hover {
    box-shadow: var(--shadow-lg);
    border-color: #191970;
    transform: translateY(-2px);
}

.faq-question-new {
    width: 100%;
    background: none;
    border: none;
    padding: 30px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #000000 !important;
    /* Черный цвет текста вопросов */
    transition: all 0.3s ease;
    position: relative;
}

.faq-question-new::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: var(--gray-200);
    transition: all 0.3s ease;
}

.faq-item-new.active .faq-question-new::before {
    background: #191970;
}

.faq-item-new.active .faq-question-new {
    color: black !important;
    /* При активном состоянии цвет остается черным */
}

.faq-question-new:hover {
    background: #a0a0a0 !important;
    /* Делаем фон при наведении еще темнее */
    color: black !important;
    /* При наведении тоже черный */
}

.faq-question-new span {
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-icon-new {
    font-size: 18px;
    color: #191970;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.faq-item-new.active .faq-icon-new {
    transform: rotate(45deg);
    color: var(--primary-blue);
}

.faq-answer-new {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #b0b0b0;
}

.faq-item-new.active .faq-answer-new {
    max-height: 1000px;
    /* Увеличено для длинных текстов */
    padding: 0 30px 30px 30px;
}

.faq-answer-new p {
    font-size: 16px;
    line-height: 1.7;
    color: #000000 !important;
    margin: 0;
    padding-top: 20px;
    text-align: left;
    opacity: 1;
    /* Убираем анимацию появления текста */
    transform: none;
    /* Убираем трансформацию */
}

/* Адаптивность для FAQ */
@media (max-width: 768px) {
    .faq-container-new {
        max-width: 100%;
        gap: 15px;
    }

    .faq-question-new {
        padding: 20px;
        font-size: 18px;
        color: black !important;
        /* На мобильных тоже черный */
        text-align: left;
    }

    .faq-question-new::before {
        left: 20px;
        right: 20px;
    }

    .faq-item-new.active .faq-answer-new {
        padding: 0 20px 20px 20px;
    }

    .faq-answer-new p {
        font-size: 15px;
        padding-top: 15px;
        text-align: left;
        color: #000000 !important;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #f8fafc;
    transition: var(--transition);
}

.faq-question:hover {
    background: #ffffff;
}

.faq-icon {
    color: #191970;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    background: #ffffff !important;
    border-top: 1px solid var(--gray-200);
    animation: fadeIn 0.3s ease-out;
    border-radius: 0 0 16px 16px;
}

.faq-item.active .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    padding: 24px;
    color: #475569 !important;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

/* Дополнительные стили для видимости текста FAQ */
.faq-answer * {
    color: #475569 !important;
}

.faq-item.active {
    background: white;
}

/* ========================================
   ФУТЕР
======================================== */

.footer {
    background: white;
    color: #f8fafc;
    padding: 60px 0 30px;
    border-top: 1px solid var(--gray-200);
}

.footer h3 {
    color: #f8fafc;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    padding-left: 60px;
    align-items: start;
}

.footer-logo {
    display: none;
}

.footer-logo i {
    display: none;
}

/* footer-info больше не используется */


.footer .contact-item,
.footer-content .contact-item,
.footer-section .contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #f8fafc !important;
    margin-bottom: 4px !important;
    padding: 1px 0 !important;
}


.footer .contact-item i,
.footer-content .contact-item i,
.footer-section .contact-item i {
    color: #191970 !important;
    width: 20px !important;
    font-size: 18px !important;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 60px;
}


.footer-social h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
    text-align: center;
}

.social-icons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    width: 55px !important;
    height: 55px !important;
    /* background убран - цвет задаётся через специфичные классы */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    text-decoration: none !important;
    /* Включаем плавные переходы */
    transition: all 0.3s ease !important;
    transform: scale(1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    font-size: 22px !important;
}

/* Hover эффекты для социальных ссылок в футере */
.social-link:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Цвета для разных социальных сетей - цветные всегда */
.social-link[href*="t.me"],
.social-link.telegram-link {
    background: #0088cc !important;
}

.social-link[href*="vk.com"],
.social-link.vk-link {
    background: #4680c2 !important;
}

.social-link[href*="youtube.com"],
.social-link[href*="youtu.be"],
.social-link.youtube-link {
    background: #ff0000 !important;
}

/* Более тёмные цвета при наведении */
.social-link[href*="t.me"]:hover,
.social-link.telegram-link:hover {
    background: #0077b5 !important;
}

.social-link[href*="vk.com"]:hover,
.social-link.vk-link:hover {
    background: #3d6ba5 !important;
}

.social-link[href*="youtube.com"]:hover,
.social-link[href*="youtu.be"]:hover,
.social-link.youtube-link:hover {
    background: #e60000 !important;
}

/* Тёмно-серые иконки в футере */
.footer .social-link,
.footer-social .social-link,
.footer .social-icons-row .social-link,
.footer .social-link.vk-link,
.footer .social-link.youtube-link,
.footer .social-link.telegram-link,
.footer .social-link[href*="t.me"],
.footer .social-link[href*="vk.com"],
.footer .social-link[href*="youtube.com"],
.footer .social-link[href*="youtu.be"] {
    background: #4a5568 !important;
    background-color: #4a5568 !important;
}

.footer .social-link:hover,
.footer-social .social-link:hover,
.footer .social-icons-row .social-link:hover,
.footer .social-link.vk-link:hover,
.footer .social-link.youtube-link:hover,
.footer .social-link.telegram-link:hover,
.footer .social-link[href*="t.me"]:hover,
.footer .social-link[href*="vk.com"]:hover,
.footer .social-link[href*="youtube.com"]:hover,
.footer .social-link[href*="youtu.be"]:hover {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
}

/* Отключаем максимально специфичные стили для футера */
/*
.footer .social-link.vk-link:hover {
    background: #4680c2 !important;
}

.footer .social-link.youtube-link:hover {
    background: #ff0000 !important;
}

.footer .social-link.telegram-link:hover {
    background: #0088cc !important;
}

*/

/* ОТКЛЮЧАЕМ ВСЕ HOVER СТИЛИ ДЛЯ ЕДИНООБРАЗИЯ */
/*
footer.footer .footer-social .social-icons-row .social-link.vk-link:hover {
    background: #4680c2 !important;
    border-color: #4680c2 !important;
}

footer.footer .footer-social .social-icons-row .social-link.youtube-link:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
}

footer.footer .footer-social .social-icons-row .social-link.telegram-link:hover {
    background: #0088cc !important;
    border-color: #0088cc !important;
}

*/

/* ОТКЛЮЧАЕМ ВСЕ ЭКСТРЕННЫЕ СТИЛИ */
/*
html body .footer .footer-social .social-icons-row a.social-link.vk-link:hover {
    background: #4680c2 !important;
    background-color: #4680c2 !important;
    border-color: #4680c2 !important;
    transform: translateY(-4px) !important;
}
html body .footer .footer-social .social-icons-row a.social-link.youtube-link:hover {
    background: #ff0000 !important;
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    transform: translateY(-4px) !important;
}
html body .footer .footer-social .social-icons-row a.social-link.telegram-link:hover {
    background: #0088cc !important;
    background-color: #0088cc !important;
    border-color: #0088cc !important;
    transform: translateY(-4px) !important;
}
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ПО HREF АТРИБУТАМ */
html body .footer .footer-social .social-icons-row a[href*="vk.com"]:hover,
html body .footer .footer-social .social-icons-row a[href*="vk.ru"]:hover {
    background: #4680c2 !important;
    background-color: #4680c2 !important;
    border-color: #4680c2 !important;
    transform: translateY(-4px) !important;
}

html body .footer .footer-social .social-icons-row a[href*="youtube.com"]:hover,
html body .footer .footer-social .social-icons-row a[href*="youtu.be"]:hover {
    background: #ff0000 !important;
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    transform: translateY(-4px) !important;
}

html body .footer .footer-social .social-icons-row a[href*="t.me"]:hover {
    background: #0088cc !important;
    background-color: #0088cc !important;
    border-color: #0088cc !important;
    transform: translateY(-4px) !important;
}


/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ КОМБИНАЦИИ social-link + platform (без -link) */
html body .footer .footer-social .social-icons-row a.social-link.vk:hover {
    background: #4680c2 !important;
    background-color: #4680c2 !important;
    border-color: #4680c2 !important;
    transform: translateY(-4px) !important;
}

html body .footer .footer-social .social-icons-row a.social-link.youtube:hover {
    background: #ff0000 !important;
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    transform: translateY(-4px) !important;
}

html body .footer .footer-social .social-icons-row a.social-link.telegram:hover {
    background: #0088cc !important;
    background-color: #0088cc !important;
    border-color: #0088cc !important;
    transform: translateY(-4px) !important;
}


/* УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ ВОЗМОЖНЫХ КОМБИНАЦИЙ */
.footer .social-icons-row a:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* VK - все возможные варианты */
.footer .social-icons-row a[class*="vk"]:hover,
.footer .social-icons-row a[href*="vk.com"]:hover,
.footer .social-icons-row a[href*="vk.ru"]:hover {
    background: #4680c2 !important;
    background-color: #4680c2 !important;
    border-color: #4680c2 !important;
}

/* YouTube - все возможные варианты */
.footer .social-icons-row a[class*="youtube"]:hover,
.footer .social-icons-row a[href*="youtube.com"]:hover,
.footer .social-icons-row a[href*="youtu.be"]:hover {
    background: #ff0000 !important;
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
}

/* Telegram - все возможные варианты */
.footer .social-icons-row a[class*="telegram"]:hover,
.footer .social-icons-row a[href*="t.me"]:hover {
    background: #0088cc !important;
    background-color: #0088cc !important;
    border-color: #0088cc !important;
}


/* ЭКСТРЕННЫЕ СТИЛИ - ПОСЛЕДНЯЯ НАДЕЖДА */
footer .footer-social .social-icons-row a:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* VK - экстренные стили */
footer .footer-social .social-icons-row a[class*="vk"]:hover {
    background: #4680c2 !important;
    background-color: #4680c2 !important;
    border-color: #4680c2 !important;
}

/* YouTube - экстренные стили */
footer .footer-social .social-icons-row a[class*="youtube"]:hover {
    background: #ff0000 !important;
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
}

/* Telegram - экстренные стили */
footer .footer-social .social-icons-row a[class*="telegram"]:hover {
    background: #0088cc !important;
    background-color: #0088cc !important;
    border-color: #0088cc !important;
}

*/

/* МАКСИМАЛЬНО АГРЕССИВНОЕ ОТКЛЮЧЕНИЕ ВСЕХ HOVER ЭФФЕКТОВ */
.footer .social-icons-row .social-link,
.footer .social-icons-row a.social-link,
.footer-social .social-icons-row .social-link,
.footer-social .social-icons-row a.social-link,
footer .footer-social .social-icons-row .social-link,
footer .footer-social .social-icons-row a.social-link,
html body .footer .footer-social .social-icons-row .social-link,
html body .footer .footer-social .social-icons-row a.social-link,
.footer .social-icons-row a[class*="vk"],
.footer .social-icons-row a[class*="youtube"],
.footer .social-icons-row a[class*="telegram"],
.footer .social-icons-row a[href*="vk"],
.footer .social-icons-row a[href*="youtube"],
.footer .social-icons-row a[href*="t.me"] {
    background: #4a5568 !important;
    background-color: #4a5568 !important;
    border: none !important;
    color: white !important;
    opacity: 1 !important;
}

.footer .social-icons-row .social-link:hover,
.footer .social-icons-row a.social-link:hover,
.footer-social .social-icons-row .social-link:hover,
.footer-social .social-icons-row a.social-link:hover,
footer .footer-social .social-icons-row .social-link:hover,
footer .footer-social .social-icons-row a.social-link:hover,
html body .footer .footer-social .social-icons-row .social-link:hover,
html body .footer .footer-social .social-icons-row a.social-link:hover,
.footer .social-icons-row a[class*="vk"]:hover,
.footer .social-icons-row a[class*="youtube"]:hover,
.footer .social-icons-row a[class*="telegram"]:hover,
.footer .social-icons-row a[href*="vk"]:hover,
.footer .social-icons-row a[href*="youtube"]:hover,
.footer .social-icons-row a[href*="t.me"]:hover {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    color: white !important;
    opacity: 1 !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
    color: #475569 !important;
}

/* Тёмно-серые иконки соцсетей в футере */
html body footer.footer .footer-social .social-icons-row .social-link,
html body footer.footer .footer-social .social-icons-row a.social-link,
footer.footer .footer-social .social-icons-row .social-link,
footer.footer .footer-social .social-icons-row a.social-link {
    background: #4a5568 !important;
    background-color: #4a5568 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
}

html body footer.footer .footer-social .social-icons-row .social-link i,
html body footer.footer .footer-social .social-icons-row a.social-link i {
    color: #ffffff !important;
}

html body footer.footer .footer-social .social-icons-row .social-link:hover,
html body footer.footer .footer-social .social-icons-row a.social-link:hover,
footer.footer .footer-social .social-icons-row .social-link:hover,
footer.footer .footer-social .social-icons-row a.social-link:hover {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-4px) scale(1.05) !important;
}


/* ========================================
   МОДАЛЬНОЕ ОКНО
======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-400);
    transition: var(--transition);
}

.close:hover {
    color: #f8fafc;
}

.modal-contacts {
    margin-top: 20px;
}

.modal-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-contact:last-child {
    border-bottom: none;
}

.modal-contact i {
    color: #191970;
    width: 24px;
}

/* ========================================
   АДАПТИВНОСТЬ
======================================== */

/* Скрываем изображение сразу при сжатии - без плавного уменьшения */
@media (max-width: 1200px) {
    .hero-content-card {
        grid-template-columns: 1fr;
    }
    
    /* Уменьшаем расстояние между кнопками навигации, когда фото скрывается */
    .nav-menu,
    nav.navigation .nav-menu,
    .navigation .nav-menu {
        gap: 8px !important; /* Отступ уменьшен, но не убран полностью */
    }
    
    /* Сразу скрываем изображение без промежуточного уменьшения */
    html body .hero-content-card .image-section,
    html body .hero-section .image-section,
    html body .image-section,
    html body .hero-content-card .image-section .integrated-printer-block,
    html body .hero-section .integrated-printer-block,
    html body .integrated-printer-block,
    html body .hero-content-card .image-section .integrated-printer-image,
    html body .hero-section .integrated-printer-image,
    html body .integrated-printer-image,
    body .hero-content-card .image-section,
    body .hero-section .image-section,
    body .image-section,
    body .hero-content-card .image-section .integrated-printer-block,
    body .hero-section .integrated-printer-block,
    body .integrated-printer-block,
    body .hero-content-card .image-section .integrated-printer-image,
    body .hero-section .integrated-printer-image,
    body .integrated-printer-image {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Отключаем все hover-эффекты для скрытых элементов */
    html body .integrated-printer-block:hover,
    html body .integrated-printer-image:hover,
    body .integrated-printer-block:hover,
    body .integrated-printer-image:hover,
    .hero-section .integrated-printer-block:hover,
    .hero-section .integrated-printer-image:hover,
    .image-section .integrated-printer-block:hover,
    .image-section .integrated-printer-image:hover {
        transform: none !important;
        box-shadow: none !important;
        animation: none !important;
        scale: 1 !important;
        display: none !important;
    }
    
    /* Убираем отступы у text-section, когда изображение скрыто */
    html body .hero-content-card .text-section,
    html body .hero-section .text-section {
        padding: 60px 40px !important;
    }
    
    /* Меняем grid на одну колонку, когда изображение скрыто */
    html body .hero-content-card {
        grid-template-columns: 1fr !important;
    }
}

/* Дублируем для экранов меньше 1100px (на всякий случай) */
@media (max-width: 1100px) {
    html body .hero-content-card .image-section,
    html body .hero-section .image-section,
    html body .image-section,
    html body .hero-content-card .image-section .integrated-printer-block,
    html body .hero-section .integrated-printer-block,
    html body .integrated-printer-block,
    html body .hero-content-card .image-section .integrated-printer-image,
    html body .hero-section .integrated-printer-image,
    html body .integrated-printer-image,
    body .hero-content-card .image-section,
    body .hero-section .image-section,
    body .image-section,
    body .hero-content-card .image-section .integrated-printer-block,
    body .hero-section .integrated-printer-block,
    body .integrated-printer-block,
    body .hero-content-card .image-section .integrated-printer-image,
    body .hero-section .integrated-printer-image,
    body .integrated-printer-image {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Отключаем все hover-эффекты для скрытых элементов */
    html body .integrated-printer-block:hover,
    html body .integrated-printer-image:hover,
    body .integrated-printer-block:hover,
    body .integrated-printer-image:hover,
    .hero-section .integrated-printer-block:hover,
    .hero-section .integrated-printer-image:hover,
    .image-section .integrated-printer-block:hover,
    .image-section .integrated-printer-image:hover {
        transform: none !important;
        box-shadow: none !important;
        animation: none !important;
        scale: 1 !important;
        display: none !important;
    }
    
    /* Убираем отступы у text-section, когда изображение скрыто */
    html body .hero-content-card .text-section,
    html body .hero-section .text-section {
        padding: 60px 40px !important;
    }
    
    /* Меняем grid на одну колонку, когда изображение скрыто */
    html body .hero-content-card {
        grid-template-columns: 1fr !important;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

    .workflow-step {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .process-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Уменьшаем отступ body для мобильных */
    body {
        padding-top: 70px !important;
    }

    /* Адаптация фиксированной навигации для мобильных */
    .navigation {
        padding: 4px 0 !important;
    }

    .main-logo h1 {
        font-size: 48px;
    }

    .main-logo i {
        font-size: 40px;
    }

    .main-logo-section {
        padding-left: 20px;
    }

    /* Заголовки адаптируются через CSS переменные */

    /* Text-section стили перенесены в верхние медиа-запросы */

    .image-section {
        padding: 30px;
        justify-content: center;
    }



    /* Заголовки адаптируются через CSS переменные */

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row:last-child {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        flex-direction: row !important;
    }

    .footer-info {
        display: flex !important;
        flex-direction: row !important;
        gap: 30px !important;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .main-logo h1 {
        font-size: 36px;
    }

    .main-logo i {
        font-size: 32px;
    }

    .main-logo-section {
        padding-left: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .text-section {}



    .section-title {
        font-size: 28px;
    }

    .contact-header h2 {
        font-size: 36px;
        line-height: 1.2;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-links {
        gap: 12px;
    }

    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Анимации появления элементов при скролле */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Дополнительные современные эффекты */
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s;
}

.tech-card:hover::before {
    left: 100%;
}

.advantage-card {
    position: relative;
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.advantage-card:hover::after {
    width: 300px;
    height: 300px;
}



/* Интерактивные кнопки */
.cta-button,
.submit-btn {
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    background-image: linear-gradient(45deg, #191970, var(--dark-blue), #191970, var(--dark-blue));
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Улучшенные состояния наведения */
.social-btn {
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.social-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* Плавное появление навигации */
.nav-link {
    position: relative !important;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Стили для новых кнопок навигации */
.order-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    margin-right: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.order-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
}

.call-btn {
    background: linear-gradient(135deg, #90ee90, #98fb98) !important;
    color: #333 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    margin-left: auto !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.call-btn:hover {
    background: linear-gradient(135deg, #98fb98, #90ee90) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(144, 238, 144, 0.6) !important;
}

/* Стили для модального окна заказа звонка */
.call-modal .modal-content {
    max-width: 450px !important;
    width: 90% !important;
    padding: 30px !important;
    text-align: center;
    background: white !important;
    color: #333 !important;
    margin: 10% auto !important;
}

.call-modal .modal-header {
    margin-bottom: 20px;
}

.call-modal .modal-header h3 {
    color: #333 !important;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
}

.call-modal .modal-header i {
    color: #191970 !important;
    font-size: 32px;
    margin-bottom: 10px;
}

.call-modal-content {
    background: white !important;
    color: #333 !important;
}

.call-modal .close {
    color: #666 !important;
    font-size: 32px;
    font-weight: 300;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.call-modal .close:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: #191970 !important;
}

.modal-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    box-sizing: border-box;
    margin-top: 10px;
}

.modal-input:focus {
    outline: none;
    border-color: #191970;
    box-shadow: 0 0 0 3px rgba(25, 25, 112, 0.1);
}

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #90ee90, #98fb98);
    border: none;
    border-radius: 12px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(144, 238, 144, 0.4);
}

/* Модальное окно "Наши проекты" */
.projects-modal {
    max-width: 550px;
    padding: 40px 35px;
    text-align: center;
    background: linear-gradient(135deg, #191970, #1e1a8a) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 60px rgba(25, 25, 112, 0.5) !important;
}

.projects-modal .modal-header {
    margin-bottom: 30px;
}

.projects-modal .modal-header h3 {
    color: white !important;
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.projects-modal .modal-header i {
    color: #e6e6fa !important;
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.projects-modal-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.projects-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    padding: 0 20px;
}

.projects-social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.projects-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px;
    color: white !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.projects-social-link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.projects-social-link i {
    font-size: 24px;
    color: white !important;
}

.projects-social-link span {
    color: white !important;
}

/* Цветные стили для модального окна проектов - цветные всегда */
.projects-social-link.telegram {
    background: rgba(0, 136, 204, 0.8) !important;
    border-color: rgba(0, 136, 204, 0.9) !important;
}

.projects-social-link.vk {
    background: rgba(70, 128, 194, 0.8) !important;
    border-color: rgba(70, 128, 194, 0.9) !important;
}

.projects-social-link.youtube {
    background: rgba(255, 0, 0, 0.8) !important;
    border-color: rgba(255, 0, 0, 0.9) !important;
}

.projects-social-link.telegram:hover {
    background: rgba(0, 119, 181, 0.95) !important;
    border-color: rgba(0, 119, 181, 1) !important;
}

.projects-social-link.vk:hover {
    background: rgba(61, 107, 165, 0.95) !important;
    border-color: rgba(61, 107, 165, 1) !important;
}

.projects-social-link.youtube:hover {
    background: rgba(230, 0, 0, 0.95) !important;
    border-color: rgba(230, 0, 0, 1) !important;
}

.projects-modal .close {
    color: white !important;
    font-size: 32px;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.projects-modal .close:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: #e6e6fa !important;
}

.call-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.call-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #000000;
}

.call-input:focus {
    outline: none;
    border-color: #191970;
    box-shadow: 0 0 0 3px rgba(25, 25, 112, 0.1);
}

.call-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #90ee90, #98fb98) !important;
    color: #333 !important;
    border: 2px solid #90ee90 !important;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(144, 238, 144, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.call-submit-btn:hover {
    background: linear-gradient(135deg, #98fb98, #90ee90) !important;
    border-color: #98fb98 !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(144, 238, 144, 0.6) !important;
}

/* Стили для VK кнопки */
.vk:hover {
    background: #4680c2 !important;
    border-color: #4680c2 !important;
}

/* Стили для location-text */
.location-text {
    font-size: 0.6em;
    color: #f8fafc;
    font-weight: 400;
}

/* Стили для модернизированных карточек преимуществ */
.modern-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* ПРИНУДИТЕЛЬНАЯ ВИДИМОСТЬ ТЕКСТА В КАРТОЧКАХ ПРЕИМУЩЕСТВ */
.modern-card h3,
.advantage-card.modern-card h3 {
    color: #1a202c !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    margin-top: 0px !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 10 !important;
}

.modern-card p,
.advantage-card.modern-card p {
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    /* Выравнивание по ширине */
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* ДОПОЛНИТЕЛЬНАЯ ПРИНУДИТЕЛЬНАЯ ВИДИМОСТЬ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ В КАРТОЧКАХ */
.advantages-grid .advantage-card h3,
.advantages-grid .modern-card h3,
div.advantage-card.modern-card h3 {
    color: #000000 !important;
    text-shadow: none !important;
    background-color: transparent !important;
    background: none !important;
    text-align: center !important;
}

.advantages-grid .advantage-card p,
.advantages-grid .modern-card p,
div.advantage-card.modern-card p {
    color: #475569 !important;
    text-shadow: none !important;
    background-color: transparent !important;
    background: none !important;
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
}

/* ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ ЛЮБЫХ СКРЫВАЮЩИХ СТИЛЕЙ */
.advantage-card *:not(.advantage-icon):not(i) {
    visibility: visible !important;
    opacity: 1 !important;
    display: initial !important;
    color: #000000 !important;
}

/* ПРИНУДИТЕЛЬНАЯ ВИДИМОСТЬ ДЛЯ ИКОНОК - ЧЕТКО ПО ЦЕНТРУ БЛОКА */
.advantage-icon,
.advantage-icon.modern-icon {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    z-index: 999 !important;
    position: relative !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    border-radius: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.advantage-icon i,
.advantage-icon.modern-icon i {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    color: white !important;
    font-size: 28px !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* СВЕРХ-СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ПРЕИМУЩЕСТВ */
/* СВЕРХ-СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ПРЕИМУЩЕСТВ */
section#about .advantages-grid .advantage-card.modern-card h3 {
    color: #000000 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    text-align: center !important;
    margin: -38px auto 16px auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: none !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
}

section#about .advantages-grid .advantage-card.modern-card p {
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    /* Выравнивание по ширине */
    margin: 20px auto 0 auto !important;
    margin-left: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    background: none !important;
    text-shadow: none !important;
    word-wrap: break-word !important;
}

/* МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ ДЛЯ ПРИНУДИТЕЛЬНОЙ ВИДИМОСТИ */
/* МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ ДЛЯ ПРИНУДИТЕЛЬНОЙ ВИДИМОСТИ */
body section#about .container .advantages-grid .advantage-card.modern-card h3 {
    color: #000000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
    z-index: 999 !important;
    text-align: center !important;
    margin-top: 0px !important;
    margin-left: auto !important;
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ТЕКСТА */
body section#about .container .advantages-grid .advantage-card.modern-card p {
    text-align: justify !important;
    /* Выравнивание по ширине */
    margin: 20px auto 0 auto !important;
    margin-left: auto !important;
    display: block !important;
    max-width: 100% !important;
}

/* МОБИЛЬНЫЕ СТИЛИ ДЛЯ ПРЕИМУЩЕСТВ - ПРИНУДИТЕЛЬНО */
@media screen and (max-width: 768px) {

    /* Оптимизация карточек на мобильных */
    .advantage-card.modern-card {
        min-height: auto !important;
        /* Убираем фиксированную высоту */
        padding: 30px 20px 25px 20px !important;
        /* Добавляем отступ сверху для иконок на мобилке */
    }

    /* ИКОНКИ ЧЕТКО ПО ЦЕНТРУ БЛОКА НА МОБИЛКЕ */
    .advantage-icon.modern-icon {
        margin-top: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ ДЛЯ МОБИЛЬНЫХ */
    .advantages-grid .advantage-card .advantage-icon,
    section#about .advantages-grid .advantage-card .advantage-icon,
    .advantage-card.modern-card .advantage-icon {
        margin-top: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ВОССТАНАВЛИВАЕМ ОСНОВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ */
    /* УДАЛЕНО: Дублирующиеся стили для мобильных иконок */

    section#about .advantages-grid .advantage-card.modern-card h3 {
        text-align: center !important;
        /* Центрируем заголовки на мобильных */
        margin: -18px auto 12px auto !important;
        /* Увеличиваем отступ от иконки */
        margin-left: 0 !important;
        /* Убираем сдвиг вправо */
    }

    section#about .advantages-grid .advantage-card.modern-card p {
        text-align: justify !important;
        /* Выравнивание по ширине */
        margin: 15px auto 0 auto !important;
        /* Уменьшаем отступ сверху */
        margin-left: auto !important;
        /* Центрируем текст */
        padding: 0 !important;
    }

    /* ТОЧНОЕ ЦЕНТРИРОВАНИЕ ОТНОСИТЕЛЬНО ИКОНКИ НА МОБИЛКЕ */
    .advantage-card.modern-card h3 {
        text-align: center !important;
        margin: 0 auto !important;
        margin-top: -15px !important;
        /* Увеличиваем отступ от иконки */
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .advantage-card.modern-card p {
        text-align: justify !important;
        /* Выравнивание по ширине */
        margin: 0 auto !important;
        margin-top: 0 !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* СВЕРХ-СПЕЦИФИЧНЫЕ СТИЛИ */
    section#about .advantages-grid .advantage-card.modern-card .text-content h3 {
        text-align: center !important;
        margin: 0 auto !important;
        margin-top: -15px !important;
        /* Увеличиваем отступ от иконки */
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    section#about .advantages-grid .advantage-card.modern-card .text-content p {
        text-align: justify !important;
        /* Выравнивание по ширине */
        margin: 0 auto !important;
        margin-top: 0 !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ */
    body section#about .container .advantages-grid .advantage-card.modern-card .text-content h3 {
        text-align: center !important;
        margin: 0 auto !important;
        margin-top: -15px !important;
        /* Увеличиваем отступ от иконки */
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    body section#about .container .advantages-grid .advantage-card.modern-card .text-content p {
        text-align: justify !important;
        /* Выравнивание по ширине */
        margin: 0 auto !important;
        margin-top: 0 !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* Блок "Индивидуальность" - стили только для десктопа */
    @media (min-width: 769px) {
        .advantage-card.modern-card:nth-child(3) h3 {
            margin-left: auto !important;
            text-align: center !important;
        }
    }
}

body section#about .container .advantages-grid .advantage-card.modern-card p {
    color: #000000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
    z-index: 999 !important;
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
}

/* УБИРАЕМ ПСЕВДОЭЛЕМЕНТЫ, КОТОРЫЕ МОГУТ ПЕРЕКРЫВАТЬ ТЕКСТ */
.advantage-card.modern-card::after,
.advantage-card.modern-card::before {
    z-index: 1 !important;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #191970, var(--primary-blue), #191970);
    transition: left 0.5s ease;
}

.modern-card:hover::before {
    left: 0;
}

.modern-card:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(25, 25, 112, 0.15);
    border-color: #191970;
}

.modern-icon {
    position: relative;
    background: linear-gradient(135deg, #191970, var(--primary-blue));
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
    margin-left: auto !important;
    /* Иконка по центру */
    margin-right: auto !important;
    /* Иконка по центру */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 25, 112, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(25, 25, 112, 0);
    }
}

.modern-card:hover .modern-icon {
    transform: none;
    background: linear-gradient(135deg, var(--primary-blue), #191970);
}

.animated-icon {
    transition: all 0.3s ease;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.modern-card:hover .animated-icon {
    animation: none;
}

@keyframes rotate-icon {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ПРИНУДИТЕЛЬНОЕ ПРАВИЛО ДЛЯ БОЛЬШИХ ЭКРАНОВ */
@media (min-width: 1201px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--grid-gap) !important;
    }
}

/* ПРИНУДИТЕЛЬНОЕ ПРАВИЛО ДЛЯ СРЕДНИХ ЭКРАНОВ */
@media (min-width: 769px) and (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

/* ПРИНУДИТЕЛЬНОЕ ПРАВИЛО ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Стили для нового блока услуг */
.services-section-new {
    padding: 90px 0 70px 0 !important;
    background: #1a1a1a;
}

/* Уменьшаем отступы для мобильных - используем единую переменную */
@media (max-width: 768px) {
    .services-section-new {
        padding: var(--section-padding) !important;
    }
}

@media (max-width: 480px) {
    .services-section-new {
        padding: var(--section-padding) !important;
    }
}

/* Уменьшаем отступы для всех секций на мобильных - используем единую переменную */
@media (max-width: 768px) {

    .about-section,
    .technologies-section,
    .workflow-section,
    .contact-section,
    .marketplace-section,
    .faq-section {
        padding: var(--section-padding) !important;
    }
}

@media (max-width: 480px) {

    .about-section,
    .technologies-section,
    .workflow-section,
    .contact-section,
    .marketplace-section,
    .faq-section {
        padding: var(--section-padding) !important;
    }
}

/* Переопределение для десктопа - уменьшаем отступ перед "Как мы работаем" */
@media (min-width: 769px) {
    .services-section-new {
        padding: 90px 0 70px 0 !important;
    }

    .workflow-section {
        padding: 60px 0 90px 0 !important;
        margin-top: -20px !important;
    }

    .faq-section {
        padding-top: 70px !important;
        margin-top: -20px !important;
    }
}

/* Дополнительные стили для портфолио на мобильных */
@media (max-width: 768px) {
    .portfolio-item {
        height: 400px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .portfolio-slider {
        margin: 20px auto !important;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        height: 300px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .portfolio-slider {
        margin: 15px auto !important;
    }

    .portfolio-caption {
        margin-top: 10px !important;
        font-size: 18px !important;
    }

    /* Центрируем кнопку в первом блоке на очень маленьких экранах */
    .hero-section .cta-button {
        display: block !important;
        margin: 15px auto !important;
        text-align: center !important;
        width: fit-content !important;
    }

    /* Дополнительные стили для очень маленьких экранов */
    .footer-section .contact-item {
        font-size: 13px !important;
        margin: 2px 0 !important;
    }

    .footer-social .social-icons-row {
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .portfolio-caption {
        margin-top: 15px !important;
        font-size: 20px !important;
    }

    /* Центрируем кнопку в первом блоке на мобильных */
    .hero-section .cta-button {
        display: block !important;
        margin: 20px auto !important;
        text-align: center !important;
        width: fit-content !important;
    }

    /* МОБИЛЬНАЯ ВЕРСИЯ ФУТЕРА - ПРИНУДИТЕЛЬНОЕ ПЕРЕЗАПИСАНИЕ */
    html body .footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: none !important;
    }

    html body .footer .footer-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body .footer .footer-section .contact-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 3px 0 !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    html body .footer .footer-social {
        margin-top: 15px !important;
        display: flex !important;
        justify-content: center !important;
    }

    html body .footer .footer-social .social-icons-row {
        display: flex !important;
        gap: 15px !important;
        justify-content: center !important;
    }
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

.service-card-new {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #475569;
}

.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 25, 112, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card-new:hover::before {
    left: 100%;
}

.service-card-new:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(25, 25, 112, 0.2);
    border-color: #191970;
}

.service-image-new {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.service-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.service-card-new:hover .service-image-new img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.service-content-new {
    padding: 25px 15px 30px 15px;
}

@media (max-width: 768px) {
    .service-content-new {
        padding: 25px 15px 15px 15px !important;
    }
}

.service-name-new {
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc !important;
    /* Возвращаем нормальный цвет */
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card-new:hover .service-name-new {
    color: white !important;
    /* При наведении белый */
    transform: scale(1.05);
}

.service-expandable {
    text-align: center;
}

.expand-btn {
    background: linear-gradient(135deg, #191970, var(--primary-blue));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 200px;
}

.expand-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), #191970);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 25, 112, 0.3);
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.active i {
    transform: rotate(180deg);
}

.service-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #191970;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, margin-top 0.3s ease-out;
}

.service-details.open {
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
}



.service-details p {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    text-align: center;
}

/* Адаптивность для новых услуг */
@media (max-width: 1024px) {
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card-new {
        margin-bottom: 20px;
    }

    .service-image-new {
        height: 220px;
    }

    .service-content-new {
        max-width: 100%;
    }

    .service-name-new {
        font-size: 24px;
        color: #f8fafc !important;
        /* Возвращаем нормальный цвет */
    }

    .expand-btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 180px;
    }

}

/* УДАЛЕНО: Дублирующиеся стили для advantage-title и advantage-text */

/* ВОССТАНОВЛЕННЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ПРЕИМУЩЕСТВ */

/* МАКСИМАЛЬНО СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ МОБИЛКИ - В КОНЦЕ ФАЙЛА */
@media screen and (max-width: 768px) {
    /* УДАЛЕНО: Дублирующиеся правила центрирования на мобилке */

    /* ЗАГОЛОВКИ ПО ЦЕНТРУ, ТЕКСТ ПО ШИРИНЕ НА МОБИЛКЕ */
    .advantage-title {
        text-align: center !important;
        margin-top: -15px !important;
        /* Увеличиваем отступ от иконки на мобилке */
        margin-bottom: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .advantage-text {
        text-align: justify !important;
        /* Выравнивание по ширине */
        margin-top: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px !important;
        width: 100% !important;
    }
}

/* Стили для нового workflow с прогресс-барами */
.workflow-steps-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 0 !important;
    align-items: start;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    justify-items: center;
}

@media (max-width: 768px) {
    .workflow-steps-new {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
        margin-bottom: 0 !important;
    }

    .workflow-step-new {
        margin-bottom: 18px !important;
    }

    .workflow-step-new:first-child {
        margin-bottom: 0 !important;
    }

    .workflow-step-new:last-child {
        margin-bottom: 0 !important;
    }

    .workflow-step-new .step-content-new {
        margin-top: 14px !important;
        padding: 0 !important;
    }

    .workflow-step-new .step-content-new h3 {
        margin-bottom: 10px !important;
    }

    .workflow-section {
        padding: 25px 10px !important;
    }

    .workflow-section .stats-grid {
        margin-top: 0 !important;
        margin-bottom: 30px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .workflow-section .container .stats-grid {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .workflow-section .stats-grid,
    html body .workflow-section .stats-grid,
    section.workflow-section .stats-grid {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .workflow-section .workflow-steps-new+.stats-grid {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.workflow-step-new {
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.workflow-section .workflow-step-new .step-content-new h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
}

.workflow-section .workflow-step-new .step-content-new p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
}

.workflow-section .stats-grid .stat-label {
    color: #1e293b !important;
}

.workflow-step-new p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.workflow-step-new:hover {
    transform: translateY(-10px);
}

.step-progress-circle {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-svg {
    transform: rotate(-90deg);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    /* Улучшенное сглаживание для SVG */
    shape-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Стили для фонового круга - более темный цвет вместо белого */
.progress-bg {
    stroke: rgba(100, 100, 120, 0.3) !important;
    /* Темно-серый вместо яркого белого */
    stroke-width: 8;
    fill: none;
    /* Улучшенное сглаживание */
    shape-rendering: geometricPrecision;
}

.progress-bar {
    transition: stroke-dashoffset 2s ease-in-out;
    /* Убираем анимацию изменения ширины, которая вызывает пиксельность */
    animation: none;
    /* Улучшенное сглаживание */
    shape-rendering: geometricPrecision;
    /* Плавный цвет вместо резкого */
    stroke: #191970;
    stroke-width: 8;
    /* Используем более плавный stroke-linecap */
    stroke-linecap: round;
}

.step-icon-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #191970, var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(25, 25, 112, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.step-icon-new i {
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* Убираем анимацию bounce, которая может сдвигать иконку */
    animation: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.workflow-step-new:hover .step-icon-new {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(25, 25, 112, 0.4);
}

.workflow-step-new:hover .step-icon-new i {
    /* Убеждаемся, что иконка остается центрированной при hover */
    transform: none;
}

.step-number {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: white !important;
    /* Белый цвет для цифр с процентами */
}

.workflow-section .workflow-steps-new {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 0 !important;
}

@media (min-width: 769px) {
    .workflow-section .workflow-steps-new {
        margin-bottom: 0 !important;
    }
}

.workflow-section .workflow-step-new,
.workflow-section .step-progress-circle {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.step-content-new {
    max-width: 280px;
    width: 280px;
    margin: 0 auto;
    /* Единый стандарт как у статистики */
    background: transparent !important;
    border: none !important;
    border-radius: 16px;
    padding: 40px 20px 30px 20px;
    box-shadow: none !important;
    transition: all 0.3s ease;
    min-height: 280px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.step-content-new:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
}

.step-content-new h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.3;
}

.step-content-new p {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff !important;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin: 0;
    flex-grow: 1;
}

/* Адаптивность для workflow */
@media (max-width: 1024px) {
    .workflow-steps-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .step-content-new {
        max-width: 100%;
        width: 100%;
        min-height: 280px;
        height: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .workflow-steps-new {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 18px !important;
        margin-bottom: 0 !important;
    }

    .workflow-step-new .step-content-new {
        max-width: 100%;
        width: 100%;
        padding: 0 !important;
        min-height: auto !important;
        height: auto;
        box-sizing: border-box;
        margin-top: 14px !important;
    }

    .step-content-new h3 {
        font-size: 18px;
        color: #ffffff !important;
        margin-bottom: 10px !important;
    }

    .step-content-new p {
        font-size: 14px;
        text-align: justify !important;
        text-justify: inter-word !important;
        hyphens: auto !important;
        color: #ffffff !important;
    }

    .workflow-section {
        padding: 25px 10px !important;
    }
}

/* ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ ЗАГОЛОВКОВ "КАК МЫ РАБОТАЕМ" */
@media (max-width: 768px) {
    .workflow-steps-new {
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
        margin-bottom: 0 !important;
    }

    .workflow-step-new {
        margin-bottom: 18px !important;
    }

    .workflow-step-new:first-child {
        margin-bottom: 0 !important;
    }

    .workflow-step-new:last-child {
        margin-bottom: 0 !important;
    }

    .workflow-step-new .step-content-new {
        margin-top: 14px !important;
        padding: 0 !important;
    }

    .workflow-steps-new .workflow-step-new .step-content-new h3 {
        font-size: 1.0rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: center !important;
        margin: 0 auto 10px auto !important;
        display: block !important;
        color: #ffffff !important;
    }

    /* ПРИНУДИТЕЛЬНОЕ ВЫРАВНИВАНИЕ ПО ШИРИНЕ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */
    .workflow-steps-new .workflow-step-new .step-content-new p,
    .workflow-step-new .step-content-new p,
    .workflow-step-new p {
        text-align: justify !important;
        color: #ffffff !important;
    }

    .workflow-section {
        padding: 25px 10px !important;
    }
}

/* Улучшенные стили для статистики */
.modern-stat {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
}

.modern-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #191970, var(--primary-blue));
    transition: left 0.5s ease;
}

.modern-stat:hover::before {
    left: 0;
}

.modern-stat:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(25, 25, 112, 0.15);
    border-color: #191970;
}

.modern-stat .stat-icon {
    background: linear-gradient(135deg, #191970, var(--primary-blue));
    animation: pulse-stat 3s infinite;
}

@keyframes pulse-stat {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 25, 112, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(25, 25, 112, 0);
    }
}

.modern-stat:hover .stat-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--primary-blue), #191970);
}

/* Анимированные счетчики */
.stat-number {
    background: linear-gradient(45deg, #191970, var(--dark-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавные переходы для всех интерактивных элементов */
button,
a,
.card,
.tech-card,
.info-card,
.advantage-card {
    transition: var(--transition);
}

/* Эффекты при загрузке страницы */
.page-loaded .hero-section * {
    animation-delay: 0.2s;
}

.page-loaded .about-section * {
    animation-delay: 0.4s;
}

.page-loaded .technologies-section * {
    animation-delay: 0.6s;
}


/* Tooltip для материалов */
.materials-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #191970;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
}

.materials-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-header {
    background: linear-gradient(135deg, #191970, var(--dark-blue));
    color: white;
    padding: 16px 20px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

.tooltip-content {
    padding: 16px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.tooltip-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: #f1f5f9;
    transition: var(--transition);
}

.tooltip-item:last-child {
    border-bottom: none;
}

.tooltip-item:hover {
    color: #191970;
    padding-left: 8px;
}



/* Пользовательские уведомления */
.custom-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    border-left: 4px solid #191970;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 12060;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    padding: 20px 24px;
    transform: translateX(450px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-notification.show {
    transform: translateX(0);
}

.custom-notification.info {
    border-left-color: #191970;
}

.custom-notification.success {
    border-left-color: #10b981;
}

.custom-notification .notification-content {
    flex: 1;
    color: #f8fafc;
}

.custom-notification .notification-content i {
    color: #191970;
    margin-right: 8px;
}

.custom-notification .close-notification {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.custom-notification .close-notification:hover {
    color: #f8fafc;
    background: #f1f5f9;
}

/* Стили для выравнивания текста в первом блоке */
.hero-text-content {
    max-width: 60%;
    text-align: justify;
    /* Выравнивание по ширине */
    text-justify: inter-word;
    /* Выравнивание по ширине */
    padding-right: 40px;
}

.about-company {
    text-align: justify;
    /* Выравнивание по ширине */
    text-justify: inter-word;
    /* Выравнивание по ширине */
    margin-bottom: 30px;
}

.about-company h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* Стили для переливающегося заголовка */
.gradient-title {
    color: #191970;
    /* Fallback цвет для браузеров без поддержки градиентов */
    background: linear-gradient(45deg, #0066ff, #4169e1, #00bfff, #1e90ff, #0066ff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease-in-out infinite;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 102, 255, 0.2);
    filter: contrast(1.2) brightness(1.1);
    text-align: left !important;
    font-size: 28px !important;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Стили для центрированного текста */
.centered-text {
    text-align: center;
    font-size: 14px !important;
    /* Уменьшаем размер шрифта */
}

.about-company p {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px !important;
    /* Уменьшаем размер шрифта */
}





/* FAQ стили */
.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: #191970;
}

.faq-question {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 24px;
    text-align: justify;
    /* Выравнивание по ширине */
    text-justify: inter-word;
    /* Выравнивание по ширине */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    transition: var(--transition);
}

.faq-question:hover {
    background: #ffffff;
}

.faq-icon {
    font-size: 20px;
    color: #191970;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    background: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
}

.faq-answer p {
    margin: 0;
    color: #475569 !important;
    line-height: 1.6;
}

/* Дополнительная адаптивность */
@media (max-width: 480px) {
    .custom-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(-200px);
    }

    .custom-notification.show {
        transform: translateY(0);
    }

    .materials-tooltip {
        min-width: 280px;
        left: 0;
        right: 0;
        transform: none;
        margin: 8px 20px 0;
    }

    .materials-tooltip.show {
        transform: none;
    }



    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
    }

    .projects-modal {
        max-width: 95% !important;
        padding: 30px 20px !important;
    }

    .projects-modal .modal-header h3 {
        font-size: 22px !important;
    }

    .projects-modal .modal-header i {
        font-size: 36px !important;
    }

    .projects-text {
        font-size: 16px !important;
        padding: 0 10px !important;
    }

    .projects-social-link {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }

    .projects-social-link i {
        font-size: 20px !important;
    }

    .modal-contacts {}

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .footer-info {
        display: flex !important;
        flex-direction: row !important;
        gap: 30px !important;
    }
}



/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {

    .tech-card::before,
    .advantage-card::after {
        display: none;
    }

    /* Адаптивные стили для интегрированного блока */
    .integrated-printer-block {
        width: 390px;
        /* Уменьшено с 450px */
        height: 320px;
        /* Уменьшено с 370px */
        left: 50%;
        top: 52%;
        transform: translate(-50%, -50%);
    }

    /* Отключаем hover-эффекты на мобильных устройствах */
    html body .integrated-printer-block:hover,
    body .integrated-printer-block:hover,
    .hero-section .integrated-printer-block:hover,
    .image-section .integrated-printer-block:hover {
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 20px 40px rgba(25, 25, 112, 0.4) !important;
        scale: 1 !important;
    }

    html body .integrated-printer-image:hover,
    body .integrated-printer-image:hover,
    .hero-section .integrated-printer-image:hover,
    .image-section .integrated-printer-image:hover {
        transform: translateZ(0) !important;
        scale: 1 !important;
    }
}

/* Темная тема удалена - используем фиксированные цвета */

/* СУПЕР-ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ НАВИГАЦИИ - ЗАЩИТА ОТ ИСКАЖЕНИЙ */
nav.navigation .nav-link:not(.call-btn),
.navigation .nav-link:not(.call-btn),
.nav-link:not(.call-btn),
*[class*="nav-link"]:not(.call-btn) {
    background: linear-gradient(135deg, #4169e1, #6495ed) !important;
    border: 2px solid rgba(65, 105, 225, 0.6) !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.25) !important;
    position: relative !important;
    overflow: visible !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    /* ЗАЩИТА ОТ ИСКАЖЕНИЙ */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-height: 48px !important;
    height: auto !important;
    line-height: 1.2 !important;
}

nav.navigation .nav-link:not(.call-btn):hover,
.navigation .nav-link:not(.call-btn):hover,
.nav-link:not(.call-btn):hover,
*[class*="nav-link"]:not(.call-btn):hover {
    background: linear-gradient(135deg, #6495ed, #87ceeb) !important;
    border: 2px solid rgba(100, 149, 237, 0.8) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.35) !important;
}

/* СУПЕР-ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ КНОПКИ ЗАКАЗАТЬ ЗВОНОК */
@media (min-width: 769px) {

    nav.navigation .call-btn,
    .navigation .call-btn,
    .nav-link.call-btn,
    .call-btn,
    *[class*="call-btn"],
    a.call-btn {
        background: linear-gradient(135deg, #90ee90, #98fb98) !important;
        border: 2px solid rgba(144, 238, 144, 0.6) !important;
        color: #333 !important;
        padding: 14px 28px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(144, 238, 144, 0.3) !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    nav.navigation .call-btn:hover,
    .navigation .call-btn:hover,
    .nav-link.call-btn:hover,
    .call-btn:hover,
    *[class*="call-btn"]:hover,
    a.call-btn:hover {
        background: linear-gradient(135deg, #98fb98, #90ee90) !important;
        border: 2px solid rgba(152, 251, 152, 0.8) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(144, 238, 144, 0.4) !important;
    }
}

/* АНИМАЦИИ ДЛЯ КНОПОК */
@keyframes buttonPulse {
    0% {
        transform: translateY(-2px) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.08);
    }

    100% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Простые анимации для современного вида */
@keyframes buttonGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(100, 149, 237, 0.5);
    }
}

@keyframes buttonBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* Ландшафтные экраны с малой высотой: ужимаем навигацию */
@media (max-height: 520px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .hero-section,
    .hero-section .container,
    .nav-container,
    .nav-menu {
        width: 100% !important;
        max-width: 100% !important;
    }

    nav.navigation,
    .navigation {
        position: relative !important;
        top: 0 !important;
        padding: 12px 14px !important;
        box-shadow: none !important;
    }

    nav.navigation .nav-container,
    .navigation .nav-container {
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    /* Уменьшаем расстояние между кнопками навигации, но не убираем полностью */
    nav.navigation .nav-menu,
    .navigation .nav-menu {
        gap: 8px !important; /* Уменьшенное расстояние, когда фото скрыто, но отступ есть */
    }

    nav.navigation .nav-menu,
    .navigation .nav-menu {
        gap: 8px !important; /* Уменьшенное расстояние, когда фото скрыто */
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    nav.navigation .nav-menu li,
    .navigation .nav-menu li {
        flex: none !important;
    }

    nav.navigation .nav-menu .nav-link:not(.call-btn),
    .navigation .nav-menu .nav-link:not(.call-btn) {
        padding: 6px 18px !important;
        font-size: 0.85rem !important;
        border-radius: 14px !important;
        min-width: 150px !important;
        /* ЗАЩИТА ОТ ИСКАЖЕНИЙ */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        height: 28px !important;
        max-height: 28px !important;
        line-height: 1 !important;
        overflow: visible !important;
    }

    nav.navigation .nav-menu .nav-link.call-btn,
    .navigation .nav-menu .nav-link.call-btn,
    nav.navigation .call-btn,
    .navigation .call-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 26px !important;
        font-size: 0.9rem !important;
        border-radius: 14px !important;
        min-width: 180px !important;
        background: #aefda3 !important;
        border: 2px solid rgba(120, 200, 120, 0.7) !important;
        box-shadow: 0 5px 20px rgba(144, 238, 144, 0.45) !important;
        color: #1b2b1b !important;
        font-weight: 600 !important;
        /* ЗАЩИТА ОТ ИСКАЖЕНИЙ */
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        height: 28px !important;
        max-height: 28px !important;
        line-height: 1 !important;
        overflow: visible !important;
    }
}

/* УНИВЕРСАЛЬНАЯ ЗАЩИТА ОТ ИСКАЖЕНИЙ КНОПОК ПРИ СЖАТИИ ЭКРАНА */
@media (max-width: 1400px) {
    nav.navigation .nav-link:not(.call-btn),
    .navigation .nav-link:not(.call-btn),
    .nav-menu .nav-link:not(.call-btn) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        min-height: 28px !important;
        height: auto !important;
        line-height: 1.2 !important;
    }
    
    nav.navigation .nav-link.call-btn,
    .navigation .nav-link.call-btn,
    .nav-menu .nav-link.call-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        min-height: 28px !important;
        height: auto !important;
        line-height: 1.2 !important;
    }
    
    nav.navigation .nav-menu,
    .navigation .nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        /* gap будет установлен отдельными медиа-запросами */
    }
    
    nav.navigation .nav-menu li,
    .navigation .nav-menu li {
        flex: none !important;
        flex-shrink: 0 !important;
    }
}

/* На экранах больше 1200px (когда фото видно) - нормальное расстояние */
@media (min-width: 1201px) {
    nav.navigation .nav-menu,
    .navigation .nav-menu,
    .nav-menu {
        gap: 32px !important;
    }
    
    /* Исходная высота навигационной полоски для больших экранов */
    nav.navigation,
    .navigation {
        padding: 4px 0 !important;
    }
}

/* На экранах 1200px и меньше (когда фото скрыто) - уменьшенное расстояние, но отступ есть */
@media (max-width: 1200px) {
    nav.navigation .nav-menu,
    .navigation .nav-menu,
    .nav-menu {
        gap: 8px !important; /* Отступ уменьшен, но не убран полностью */
    }
}

/* Ландшафтные экраны с малой высотой: ужимаем навигацию */
@media (max-height: 520px) {

    .contact-dropdown-container {
        position: static !important;
    }

    .contact-dropdown {
        position: fixed !important;
        top: 78px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        transform: none !important;
        z-index: 12080 !important;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Красивые JavaScript анимации */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Анимации для изображения принтера */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Оптимизированная анимация градиента - используется GPU */
@keyframes midnightBlueGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.nav-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Добавляем эффект свечения при активном состоянии */
nav.navigation .nav-link:not(.call-btn):active,
.navigation .nav-link:not(.call-btn):active,
.nav-link:not(.call-btn):active,
*[class*="nav-link"]:not(.call-btn):active {
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.6) !important;
    transform: translateY(-1px) scale(0.98) !important;
}

nav.navigation .call-btn:active,
.navigation .call-btn:active,
.nav-link.call-btn:active,
.call-btn:active,
*[class*="call-btn"]:active,
a.call-btn:active {
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.6) !important;
    transform: translateY(-1px) scale(0.98) !important;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

/* Логотип в навигации */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильные устройства */
@media (max-width: 768px) {

    /* Простая мобильная навигация */
    .navigation {
        padding: 10px 10px !important; /* УВЕЛИЧЕНО вертикальный padding для размещения 3-го ряда */
        background: linear-gradient(135deg, #1a1a1a 0%, #1a1a24 50%, #1a1a1a 100%) !important;
        /* Темный градиент */
        min-height: auto !important; /* Убираем ограничение высоты */
        max-height: none !important; /* УБИРАЕМ ограничение max-height для расширения по высоте */
        height: auto !important; /* Автоматическая высота */
        overflow-x: hidden !important; /* Предотвращаем горизонтальный выход */
        overflow-y: visible !important; /* Разрешаем вертикальное расширение */
        box-sizing: border-box !important; /* Правильный расчет размеров */
    }

    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 !important; /* ЯВНО убираем padding для nav-container */
        margin: 0 !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease;
        min-height: auto !important; /* Убираем ограничение высоты */
        max-height: none !important; /* УБИРАЕМ ограничение max-height для расширения по высоте */
        height: auto !important; /* Автоматическая высота */
        opacity: 1;
        transform: translateY(0);
        overflow-x: hidden !important; /* Предотвращаем горизонтальный выход */
        overflow-y: visible !important; /* Разрешаем вертикальное расширение */
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: center; /* Центрируем кнопки */
        align-items: center;
        width: 100%;
        max-width: 100% !important; /* Ограничиваем ширину контейнера */
        gap: 8px !important; /* Уменьшенное расстояние, когда фото скрыто */
        flex-wrap: wrap; /* Разрешаем перенос на новую строку */
        padding: 0;
        margin: 0;
        list-style: none;
        transition: all 0.3s ease;
        min-height: auto !important; /* Убираем ограничение высоты */
        max-height: none !important; /* УБИРАЕМ ограничение max-height для расширения по высоте */
        height: auto !important; /* Автоматическая высота */
        opacity: 1;
        transform: translateY(0);
        box-sizing: border-box !important; /* Правильный расчет размеров */
        overflow-x: hidden !important; /* Предотвращаем горизонтальный выход */
        overflow-y: visible !important; /* Разрешаем вертикальное расширение */
    }

    .nav-menu li {
        margin: 0;
        list-style: none;
        flex: none;
        text-align: justify;
        /* Выравнивание по ширине */
        text-justify: inter-word;
        /* Выравнивание по ширине */
    }

    .nav-menu .nav-link:not(.call-btn) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        border-radius: 8px !important;
        color: white !important;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all 0.3s ease;
        min-width: 70px !important;
        height: 28px !important;
        line-height: 1 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .nav-menu .nav-link.call-btn {
        background: linear-gradient(135deg, #90ee90, #98fb98) !important;
        border: 2px solid #90ee90 !important;
        color: #333 !important;
        padding: 6px 12px !important; /* УМЕНЬШЕНО с 28px до 12px для экономии места */
        border-radius: 12px !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(144, 238, 144, 0.4) !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-sizing: border-box !important; /* Добавлено для правильного расчета ширины */
    }



    .nav-menu .nav-link:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

    .social-links {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .social-btn {
        width: 48px;
        height: 48px;
    }

    /* Хедер */
    .hero-section {
        padding: 40px 15px;
        min-height: 70vh;
        text-align: justify;
        /* Выравнивание по ширине */
        text-justify: inter-word;
        /* Выравнивание по ширине */
        background: #1a1a1a !important;
        /* Принудительный темный фон для мобилки */
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .about-company h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .about-company p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 15px 30px;
        margin-bottom: 15px;
    }

    /* Скрываем изображение принтера на мобильных */
    .integrated-printer-block {
        display: none;
    }

    /* Секции */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Портфолио */
    .portfolio-slider {
        width: 95%;
        margin: 0 auto;
    }

    /* Портфолио адаптируется через CSS переменные */

    .slider-controls {
        margin-top: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-dots {
        gap: 8px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    /* FAQ */
    .faq-item {
        margin-bottom: 15px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .faq-answer {
        font-size: 0.9rem;
        padding: 15px;
    }

    /* Футер */
    .footer-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        flex-direction: row !important;
    }

    .footer-info h3,
    .footer-social h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .footer-info p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .social-icons-row {
        justify-content: center;
        gap: 15px;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Модальные окна */
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .modal-content ul {
        font-size: 0.9rem;
    }

    .modal-content li {
        margin-bottom: 8px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-company h3 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-header h2 {
        font-size: 30px !important;
        line-height: 1.1 !important;
        margin-bottom: 12px !important;
    }

    .contact-content {
        padding: 0 16px !important;
    }

    .contact-header {
        margin-bottom: 40px !important;
    }

    .service-card {
        padding: 15px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    /* Портфолио адаптируется через CSS переменные */

    .faq-question {
        font-size: 0.95rem;
        padding: 12px;
    }

    .faq-answer {
        font-size: 0.85rem;
        padding: 12px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Ландшафтная ориентация на мобильных - ПРИНУДИТЕЛЬНЫЕ СТИЛИ */
@media (max-width: 768px) and (orientation: landscape) {
    html body .hero-section {
        min-height: 60vh !important;
        padding: 15px !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background: #1a1a1a !important;
        /* Принудительный темный фон для landscape */
    }

    html body .hero-section .container {
        padding: 0 25px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ИСКЛЮЧЕНИЕ ДЛЯ ПОРТФОЛИО - УБИРАЕМ ПРИНУДИТЕЛЬНЫЕ ОТСТУПЫ */
    html body .portfolio-section .container,
    html body .portfolio-slider,
    html body .portfolio-track,
    html body .portfolio-item {
        padding: 0 !important;
        margin: 0 !important;
    }

    html body .hero-section .hero-content-card {
        padding: 25px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #1a1a1a !important;
        /* Принудительный темный фон */
    }

    html body .hero-section .about-company {
        padding: 0 25px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body .hero-section .about-company .hero-title {
        font-size: 1.5rem !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
    }

    html body .hero-section .about-company .gradient-title {
        font-size: 1.4rem !important;
        text-align: justify !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
    }

    html body .hero-section .about-company .description-text {
        font-size: 1.1rem !important;
        text-align: justify !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #ffffff !important;
    }

    html body .hero-section .about-company .modelix-brand {
        font-size: 1.3em !important;
    }

    html body .cta-button {
        font-size: 1.1rem !important;
        padding: 15px 30px !important;
        margin-bottom: 15px !important;
    }

    /* Дополнительные стили для других блоков в landscape */
    .navigation {
        padding: 8px 10px !important;
    }

    .nav-menu .nav-link {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }

    .main-logo h1 {
        font-size: 32px !important;
    }

    .main-logo i {
        font-size: 28px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }

    .service-card {
        padding: 15px !important;
    }

    .service-card h3 {
        font-size: 1.1rem !important;
    }

    .service-card p {
        font-size: 0.9rem !important;
    }

    .advantages-grid {
        gap: 15px !important;
    }

    .advantage-card {}

    .advantage-card h3 {
        font-size: 1.1rem !important;
    }

    .advantage-card p {
        font-size: 0.9rem !important;
    }

    .stats-grid {
        gap: 15px !important;
    }

    .stat-card {
        padding: 15px !important;
    }

    .stat-icon {
        margin-bottom: 25px !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
        margin-top: 10px !important;
    }

    .stat-label {
        font-size: 0.9rem !important;
    }

    .faq-question {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }

    .faq-answer {
        font-size: 0.85rem !important;
        padding: 10px !important;
    }

    .text-section {
        padding: 20px 15px !important;
        background: #1a1a1a !important;
        /* Принудительный темный фон для мобилки */
    }

    .text-section h2 {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }

    .text-section p {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }
}

/* УДАЛЕНЫ ПРИНУДИТЕЛЬНЫЕ ПРАВИЛА - ВОЗВРАЩАЕМ ОРИГИНАЛЬНЫЙ ДИЗАЙН */

/* Удалено конфликтующее правило */

.footer-section {
    text-align: justify;
    /* Выравнивание по ширине */
    text-justify: inter-word;
    /* Выравнивание по ширине */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    justify-content: center;
    min-height: 60px;
}

.footer-section h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
}

/* Удалены конфликтующие правила для contact-item */

/* ПРИНУДИТЕЛЬНОЕ ПОЗИЦИОНИРОВАНИЕ ИКОНОК СОЦИАЛЬНЫХ СЕТЕЙ - ЗАФИКСИРОВАНО! */
.hero-section .social-links,
.image-section .social-links,
div.image-section .social-links,
.hero-content-card .image-section .social-links {
    margin-left: 0px !important;
    margin-right: 0px !important;
    position: relative !important;
    left: 105px !important;
    top: 0px !important;
    transform: none !important;
    justify-content: flex-start !important;
    align-items: center !important;
    display: flex !important;
    gap: 16px !important;
    z-index: 10 !important;
    width: auto !important;
    max-width: none !important;
}

/* АДАПТИВНОЕ ПОЗИЦИОНИРОВАНИЕ СОЦИАЛЬНЫХ ИКОНОК */
@media (max-width: 1200px) {

    .hero-section .social-links,
    .image-section .social-links,
    div.image-section .social-links,
    .hero-content-card .image-section .social-links {
        left: 60px !important;
    }
}

@media (max-width: 1000px) {

    .hero-section .social-links,
    .image-section .social-links,
    div.image-section .social-links,
    .hero-content-card .image-section .social-links {
        left: 30px !important;
    }
}

@media (max-width: 800px) {

    .hero-section .social-links,
    .image-section .social-links,
    div.image-section .social-links,
    .hero-content-card .image-section .social-links {
        left: 15px !important;
    }
}

@media (max-width: 600px) {

    .hero-section .social-links,
    .image-section .social-links,
    div.image-section .social-links,
    .hero-content-card .image-section .social-links {
        left: 5px !important;
    }
}

.hero-section .social-links .social-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-section .social-links .social-btn i {
    margin: 0 !important;
    padding: 0 !important;
}

/* ФИНАЛЬНОЕ ПРАВИЛО ДЛЯ ВЫРАВНИВАНИЯ ТЕКСТА ПО ШИРИНЕ */
html body section#about .container .advantages-grid .advantage-card.modern-card .text-content p,
html body section#about .container .advantages-grid .advantage-card.modern-card p,
html body .advantage-card.modern-card .advantage-text {
    text-align: justify !important;
    /* Выравнивание по ширине */
    text-justify: inter-word !important;
    /* Выравнивание по ширине */
    word-spacing: normal !important;
    /* Нормальные промежутки между словами */
    hyphens: auto !important;
    /* Автоматические переносы слов */
    direction: ltr !important;
    /* Направление текста слева направо */
}

/* ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПЕРВОГО БЛОКА - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
.hero-section .about-company .gradient-title {
    font-size: 26px !important;
    text-align: left !important;
}

.hero-section .about-company .description-text {
    font-size: 20px !important;
    text-align: left !important;
    color: #ffffff !important;
}

/* ЕЩЕ БОЛЕЕ СПЕЦИФИЧНЫЕ СЕЛЕКТОРЫ */
body .hero-section .about-company .gradient-title {
    font-size: 26px !important;
    text-align: left !important;
}

html body .hero-section .about-company .gradient-title {
    font-size: 26px !important;
    text-align: left !important;
}

/* Стили для увеличенного слова Modelix */
.modelix-brand {
    font-size: 1.4em !important;
    font-weight: 800 !important;
}

/* МОБИЛЬНЫЕ СТИЛИ ДЛЯ ПЕРВОГО БЛОКА */
@media (max-width: 768px) {
    .hero-section .about-company {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-section .about-company .gradient-title {
        font-size: 18px !important;
        text-align: justify !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 0 20px 0 !important;
    }

    .hero-section .about-company .description-text {
        font-size: 14px !important;
        text-align: justify !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        color: #ffffff !important;
    }

    .hero-section .about-company .hero-title {
        text-align: center !important;
        width: 100% !important;
        padding: 0 5px !important;
    }

    .modelix-brand {
        font-size: 1.1em !important;
    }

    /* Уменьшаем отступы контейнера hero-section */
    .hero-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }
}

/* СУПЕР-ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ SERVICE-DETAILS */
html body .service-details,
body .service-details,
.service-content-new .service-details,
.service-expandable .service-details,
div.service-details,
#model1,
#tech1,
#scan1,
#rev1,
#eng1,
#post1 {
    width: calc(100% + 60px) !important;
    max-width: none !important;
    margin-left: -30px !important;
    margin-right: -30px !important;
    padding: 30px 50px !important;
    box-sizing: border-box !important;
    transition: all 0.4s ease !important;
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
}

html body .service-details.open,
body .service-details.open,
.service-content-new .service-details.open,
.service-expandable .service-details.open,
div.service-details.open,
#model1.open,
#tech1.open,
#scan1.open,
#rev1.open,
#eng1.open,
#post1.open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    max-height: 500px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-top: 20px !important;
}

html body .service-details.closing,
body .service-details.closing,
.service-content-new .service-details.closing,
.service-expandable .service-details.closing,
div.service-details.closing,
#model1.closing,
#tech1.closing,
#scan1.closing,
#rev1.closing,
#eng1.closing,
#post1.closing {
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Мобильная версия - расширяем на всю ширину карточки */
@media (max-width: 768px) {

    html body .service-details,
    body .service-details,
    .service-content-new .service-details,
    .service-expandable .service-details,
    div.service-details,
    #model1,
    #tech1,
    #scan1,
    #rev1,
    #eng1,
    #post1 {
        width: calc(100% + 10px) !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
        padding: 20px 25px !important;
        max-width: none !important;
    }
}


/* ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛКИ - service-content-new */
@media (max-width: 768px) {

    html body .service-content-new,
    body .service-content-new,
    div.service-content-new,
    .service-card-new .service-content-new,
    .services-grid-new .service-card-new .service-content-new {
        padding: 25px 15px 15px 15px !important;
    }
}

/* ========================================
   КРИТИЧЕСКИ ВАЖНО: МОБИЛЬНАЯ ТЕМНАЯ ТЕМА
======================================== */

/* Принудительное применение темной темы на всех мобильных устройствах */
@media (max-width: 768px) {

    /* Принудительно переопределяем CSS переменные для темной темы */
    :root {
        --gray-900: #1a1a1a !important;
    }

    /* Принудительно отключаем адаптацию к теме браузера */
    * {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    html,
    body {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    /* Принудительно применяем темную тему для всех секций */
    .hero-section,
    .about-section,
    .technologies-section,
    .workflow-section,
    .portfolio-section,
    .faq-section,
    .services-section-new,
    .contact-section {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    /* Конкретно для первого блока - принудительный темный фон */
    .hero-section {
        background: #1a1a1a !important;
    }
}

@media (max-width: 480px) {

    /* Принудительно переопределяем CSS переменные для темной темы */
    :root {
        --gray-900: #1a1a1a !important;
    }

    /* Принудительно отключаем адаптацию к теме браузера на очень маленьких экранах */
    * {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    html,
    body {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    /* Принудительно применяем темную тему для всех секций */
    .hero-section,
    .about-section,
    .technologies-section,
    .workflow-section,
    .portfolio-section,
    .faq-section,
    .services-section-new,
    .contact-section {
        color-scheme: dark !important;
        -webkit-color-scheme: dark !important;
        -moz-color-scheme: dark !important;
        -ms-color-scheme: dark !important;
        forced-color-adjust: none !important;
    }

    /* Конкретно для первого блока - принудительный темный фон */
    .hero-section {
        background: #1a1a1a !important;
    }
}

/* КРИТИЧЕСКИ ВАЖНО: ПРИНУДИТЕЛЬНЫЙ ТЕМНЫЙ ФОН ДЛЯ ПЕРВОГО БЛОКА НА МОБИЛКЕ */
@media (max-width: 768px) {

    html body .hero-section,
    body .hero-section,
    .hero-section {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
    }

    /* ПРИНУДИТЕЛЬНЫЙ ТЕМНЫЙ ФОН ДЛЯ КАРТОЧКИ ВНУТРИ HERO-SECTION */
    html body .hero-section .hero-content-card,
    body .hero-section .hero-content-card,
    .hero-section .hero-content-card,
    .hero-content-card {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
    }
}

@media (max-width: 480px) {

    html body .hero-section,
    body .hero-section,
    .hero-section {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
    }

    /* ПРИНУДИТЕЛЬНЫЙ ТЕМНЫЙ ФОН ДЛЯ КАРТОЧКИ ВНУТРИ HERO-SECTION */
    html body .hero-section .hero-content-card,
    body .hero-section .hero-content-card,
    .hero-section .hero-content-card,
    .hero-content-card {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
    }
}

/* Плавающая кнопка звонка */
.floating-call-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #191970, var(--primary-blue)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(25, 25, 112, 0.4) !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.floating-call-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 35px rgba(25, 25, 112, 0.6) !important;
}

.floating-call-btn i {
    font-size: 28px !important;
    color: white !important;
    z-index: 10 !important;
    position: relative !important;
}

.call-btn-pulse {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: rgba(25, 25, 112, 0.4) !important;
    opacity: 0.6 !important;
    animation: pulse-ring 2s infinite !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Модальное окно формы заявки */
.call-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.call-form-modal.active {
    display: flex;
}

.call-form-modal-content {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue), #191970);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.call-form-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.call-form-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.call-form-modal h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.call-form-modal p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
}

.call-form-modal .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.call-form-modal .form-input,
.call-form-modal .form-textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
}

.call-form-modal .form-textarea {
    min-height: 120px;
    resize: vertical;
}

.call-form-modal .form-input:focus,
.call-form-modal .form-textarea:focus {
    outline: none;
    border-color: white;
    background: white;
}

.call-form-modal .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #90ee90, #98fb98);
    border: none;
    border-radius: 10px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.call-form-modal .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(144, 238, 144, 0.4);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .call-form-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .call-form-modal h2 {
        font-size: 24px;
    }
}

/* Адаптивность для плавающей кнопки */
@media (max-width: 768px) {
    .floating-call-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .floating-call-btn i {
        font-size: 24px;
    }
}

/* КРИТИЧЕСКОЕ ПЕРЕОПРЕДЕЛЕНИЕ - УМЕНЬШЕНИЕ ОТСТУПА ПЕРЕД "КАК МЫ РАБОТАЕМ" */
body .workflow-section,
html body .workflow-section,
section.workflow-section {
    padding-top: 50px !important;
    margin-top: -30px !important;
}

body .services-section-new,
html body .services-section-new,
section.services-section-new {
    padding-bottom: 60px !important;
}

@media (min-width: 769px) {

    body .workflow-section,
    html body .workflow-section,
    section.workflow-section {
        padding-top: 50px !important;
        margin-top: -30px !important;
    }

    .workflow-steps-new,
    body .workflow-section .workflow-steps-new,
    html body .workflow-section .workflow-steps-new,
    section.workflow-section .workflow-steps-new {
        margin-bottom: 0 !important;
    }

    .workflow-section .stats-grid,
    body .workflow-section .stats-grid,
    html body .workflow-section .stats-grid,
    section.workflow-section .stats-grid {
        margin-top: -60px !important;
        margin-bottom: 30px !important;
        padding-top: 0 !important;
    }

    .workflow-section .workflow-steps-new+.stats-grid {
        margin-top: -60px !important;
        padding-top: 0 !important;
    }

    @media (max-width: 768px) {

        .workflow-section .stats-grid,
        body .workflow-section .stats-grid,
        html body .workflow-section .stats-grid,
        section.workflow-section .stats-grid,
        .workflow-section .workflow-steps-new+.stats-grid {
            margin-top: 0 !important;
        }
    }

    body .services-section-new,
    html body .services-section-new,
    section.services-section-new {
        padding-bottom: 60px !important;
    }
}

/* УМЕНЬШЕНИЕ ОТСТУПА ПЕРВОГО БЛОКА (HERO) НА 40PX */
body .hero-section,
html body .hero-section,
section.hero-section {
    padding-bottom: 50px !important;
}

@media (min-width: 769px) {

    body .hero-section,
    html body .hero-section,
    section.hero-section {
        padding-bottom: 50px !important;
    }
}

/* СДВИГ ЗАГОЛОВКА "ПРЕИМУЩЕСТВА РАБОТЫ С НАМИ" ВНИЗ НА 10PX И УМЕНЬШЕНИЕ ОТСТУПА ПОСЛЕ НЕГО */
body .about-section .section-header,
html body .about-section .section-header,
section.about-section .section-header {
    padding-top: calc(var(--grid-gap) + 10px) !important;
    margin-top: 10px !important;
    margin-bottom: -10px !important;
}

body .about-section .advantages-grid,
html body .about-section .advantages-grid,
section.about-section .advantages-grid {
    margin-top: -10px !important;
}

/* ПОДНЯТЬ ПЛАШКУ "НАШИ ПРОЕКТЫ" ВЫШЕ */
body .projects-section,
html body .projects-section,
section.projects-section {
    margin-top: -40px !important;
    padding-top: 50px !important;
}

/* ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ РАССТОЯНИЙ В БЛОКЕ "КАК МЫ РАБОТАЕМ" - ДЕСКТОП */
@media (min-width: 769px) {

    body .workflow-section .workflow-steps-new,
    html body .workflow-section .workflow-steps-new,
    section.workflow-section .workflow-steps-new,
    .workflow-section .container .workflow-steps-new {
        margin-bottom: 0 !important;
    }

    body .workflow-section .stats-grid,
    html body .workflow-section .stats-grid,
    section.workflow-section .stats-grid,
    .workflow-section .container .stats-grid {
        margin-top: -60px !important;
        margin-bottom: 30px !important;
        padding-top: 0 !important;
    }

    .workflow-section .workflow-steps-new+.stats-grid,
    body .workflow-section .workflow-steps-new+.stats-grid,
    html body .workflow-section .workflow-steps-new+.stats-grid,
    section.workflow-section .workflow-steps-new+.stats-grid {
        margin-top: -60px !important;
        padding-top: 0 !important;
    }

    @media (max-width: 768px) {

        body .workflow-section .stats-grid,
        html body .workflow-section .stats-grid,
        section.workflow-section .stats-grid,
        .workflow-section .container .stats-grid,
        .workflow-section .workflow-steps-new+.stats-grid {
            margin-top: 0 !important;
        }
    }
}