* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #111827; 
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    width: 200px;
    height: 40px;
    z-index: 1010;
}

.logo img {
    position: absolute;
    left: 0;
    height: 75px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08)); 
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.03);
}

.nav-links a {
    position: relative;
    padding-bottom: 6px;
    margin: 0 20px;
    font-size: 14px;
    color: #4b5563;
    transition: color 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #2563eb;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-links a.active {
    color: #2563eb !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-select {
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
    background: transparent;
    border: none;
    outline: none;
    padding-right: 5px;
    font-family: inherit;
}

@media (max-width: 1024px) {
    .navbar .lang-select {
        display: block;
        margin-top: 15px;
        font-size: 18px;
    }
}

.btn-quote {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-quote:hover {
    background: #1d4ed8;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 140px 8% 60px 8%;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding:20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    right: 8%;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    background: rgba(17, 24, 39, 0.5);
}

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.subtitle {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #111827;
}

.hero h2 {
    font-size: 32px;
    color: #4b5563;
    font-weight: 400;
    margin-bottom: 25px;
}

.hero p {
    color: #000;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    -webkit-text-stroke: 1px #2563eb;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 8%;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feat-icon {
    font-size: 24px;
    background: rgba(37, 99, 235, 0.08);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #2563eb;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.feature-card p {
    font-size: 13px;
    color: #6b7280;
}

.technologies {
    padding: 100px 8%;
    text-align: center;
}

.section-tag {
    color: #2563eb;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}
.technologies h2 {
    font-size: 36px;
    margin-top: 20px;
    color: #111827;
}
.applications h2 {
    font-size: 36px;
    margin-bottom: 60px;
    color: #111827;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.tech-desc-left {
    padding: 10px;
    text-align: left;
}

.tech-card:has(.holo):hover {
    transform: translateY(-5px);
    background-color: rgba(6, 182, 212, 0.04);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 25px -5px rgba(6, 182, 212, 0.08);
}
.tech-card:has(.holo):hover .tech-link {
    color: #06b6d4;
}

.tech-card:has(.led):hover {
    transform: translateY(-5px);
    background-color: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.08);
}
.tech-card:has(.led):hover .tech-link {
    color: #3b82f6;
}

.tech-card:has(.pdlc):hover {
    transform: translateY(-5px);
    background-color: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.08);
}
.tech-card:has(.pdlc):hover .tech-link {
    color: #6366f1;
}

.tech-img-mock {
    height: 355px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-img-mock span {
    font-size: 48px;
    font-weight: 900;
    color: #111827;
    opacity: 0.05;
}

.tech-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.tech-img-mock.holo { border-bottom: 3px solid #06b6d4; }
.tech-img-mock.led { border-bottom: 3px solid #3b82f6; }
.tech-img-mock.pdlc { border-bottom: 3px solid #6366f1; }

.tech-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111827;
}

.tech-card p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 68px;
}

.tech-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* СФЕРЫ ПРИМЕНЕНИЯ */
.applications {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 60px 20px;
    max-width: 1440px;
    margin: 0 auto;
    font-family: sans-serif; /* Замените на ваш шрифт */
}

/* Левая текстовая колонка */
.app-info {
    flex: 0 0 280px; /* Фиксированная ширина для текста слева */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.applications .section-tag {
    color: #2563eb; /* Синий цвет как на макете */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.applications h2 {
    color: #111827;
    font-size: 32px;
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
}

/* Ссылка "Смотреть все" */
.app-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-top: auto; /* Прижимает к низу блока при большой высоте */
    text-transform: uppercase;
}

.app-more:hover {
    text-decoration: underline;
}

/* Правая сетка с карточками */
.app-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 16px;
}

/* Элемент карточки */
.app-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

/* Контейнер картинки со скруглением */
.app-img-box {
    width: 100%;
    aspect-ratio: 1 / 1.1; /* Сохраняет пропорции 300х330 */
    border-radius: 12px; /* Скругление углов */
    overflow: hidden;
    background-color: #f3f4f6;
}

.app-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер без искажений */
    display: block;
    transition: transform 0.3s ease;
}

/* Эффект при наведении на карточку */
.app-item:hover .app-img-box img {
    transform: scale(1.05);
}

/* Подпись под карточкой */
.app-item h4 {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Адаптивность для планшетов и мобильных устройств */
@media (max-width: 1024px) {
    .applications {
        flex-direction: column; /* Текст становится сверху, карточки снизу */
        gap: 24px;
        padding: 40px 0; /* Обнуляем боковые отступы у секции, чтобы скролл уходил в край экрана */
    }

    /* Добавляем боковой отступ для текста, так как у секции его больше нет */
    .app-info {
        flex: none;
        width: 100%;
        padding: 0 20px; 
    }

    .app-more {
        margin-top: 8px; /* Небольшой отступ вместо прижимания к низу */
    }

    /* Включаем горизонтальный скролл для сетки */
    .app-grid {
        display: flex; /* Переключаем на flex для бесконечной строки */
        overflow-x: auto; /* Включаем горизонтальную прокрутку */
        scroll-snap-type: x mandatory; /* Мягкое прилипание карточек при скролле */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        width: 100%;
        padding: 4px 20px 15px 20px; /* Отступы по бокам, чтобы первая и последняя карточки не прилипали к краям экрана */
        gap: 12px;
    }

    /* Скрываем стандартный некрасивый скроллбар в Webkit (Chrome, Safari) */
    .app-grid::-webkit-scrollbar {
        display: none;
    }

    /* Настройка размера карточек внутри скролла */
    .app-item {
        flex: 0 0 160px; /* Фиксированная ширина карточки на мобильных (измените, если нужно крупнее) */
        scroll-snap-align: start; /* Карточка будет выравниваться по левому краю при остановке скролла */
        text-align: left; /* Текст по левому краю смотрится аккуратнее в мобильной ленте */
    }
    
    .app-img-box {
        aspect-ratio: 1 / 1.1; /* Сохраняем пропорции картинок */
    }
}

/* ПОДВАЛ */
.footer {
    background-color: #f8f9fa; /* Светлый фон как на макете */
    color: #4b5563;
    padding: 60px 20px 20px 20px;
    font-family: sans-serif;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr; /* Разная ширина для бренда и контента */
    gap: 30px;
    padding-bottom: 40px;
}

/* Стили колонок */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Вертикальные разделительные линии между колонками (кроме первой) */
.footer-col:not(:first-child) {
    border-left: 1px solid #e5e7eb;
    padding-left: 30px;
}

/* Заголовки колонок */
.footer-col h4 {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px 0;
}

/* Ссылки в меню */
.footer-col a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-col a:hover {
    color: #2563eb;
}

/* Блок бренда (логотип и описание) */
.footer-col.brand p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 260px;
}

.footer-logo-box {
    max-width: 180px;
    margin-bottom: 8px;
}

.footer-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Круглые кнопки соцсетей */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Строки контактов */
.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
}

.contact-line svg {
    flex-shrink: 0;
}

/* Нижняя плашка с копирайтом */
.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}

.footer-bottom-short {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #2563eb;
}

/* Адаптивность футера под мобильные экраны */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 40px 20px;
    }
    
    .footer-col:not(:first-child) {
        border-left: none; /* Убираем линии на мобильных */
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-bottom-short {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
        gap: 30px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 8%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #111827; 
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 90vh;
        background: #ffffff;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }


    .nav-links a {
        font-size: 22px;
        width: max-content; 
        display: block; 
    }
    
    .nav-actions {
        display: none;
    }

    .features { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .tech-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: repeat(3, 1fr); }
        .hero {
        text-align: center;
        justify-content: center;
    }
    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
    }
}
    .hero-content { max-width: 100%; margin-bottom: 40px; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: 1fr; }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.is-open .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-window h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.modal-window p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background-color: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    background: #2563eb;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #1d4ed8;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .modal-window {
        padding: 30px 20px;
        margin: 15px;
        border-radius: 12px;
    }
}

.modal-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.modal-window.show-success .modal-success-message {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-success-message h4 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-success-message p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-success-close {
    background: #f3f4f6;
    color: #111827;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 200px;
}

.btn-success-close:hover {
    background: #e5e7eb;
}

.form-error-badge {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    animation: shake 0.4s ease-in-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.hero h1 span {
    font-weight: 700;
    color: #2563eb;
    animation: ledGlow 3s ease-in-out infinite; 
    display: inline-block;
}

@keyframes ledGlow {
    0%, 100% {
        color: #2563eb;
        text-shadow: 
            0 0 10px rgba(37, 99, 235, 0.4),
            0 0 20px rgba(37, 99, 235, 0.2);
    }
    50% {
        color: #60a5fa;
        text-shadow: 
            0 0 15px rgba(96, 165, 250, 0.8),
            0 0 30px rgba(37, 99, 235, 0.6),
            0 0 45px rgba(37, 99, 235, 0.3);
        transform: scale(1.02);
    }
}
@media (max-width: 640px) {
    .hero p br {
        display: none;
    }
}

#secret-phone a, #secret-email a {
    color: #4b5563;
    transition: color 0.3s ease;
}
#secret-phone a:hover, #secret-email a:hover {
    color: #2563eb;
}

.contact-line {
    display: flex !important;
    gap: 5px;
    white-space: nowrap;
}

.contact-line svg {
    flex-shrink: 0;
    display: block;
}

.contact-line span {
    display: inline-block;
}
.lang-mobile {
    display: none !important;
}

@media (max-width: 1024px) {
    .lang-desktop {
        display: none !important; 
    }
    .nav-links .lang-mobile {
        display: block !important;
        margin-top: 20px;
        font-size: 16px;
        color: #111827;
        font-weight: 700;
        border: 1px solid #e5e7eb;
        padding: 8px 16px;
        border-radius: 8px;
        background-color: #f9fafb;
        text-align-last: center;
    }
}

/* ЗАПРЕТ ВЫДЕЛЕНИЯ ТЕКСТА НА ВСЕМ САЙТЕ */
body {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+ */
    user-select: none;          /* Современные браузеры */
}

/* Запрещаем перетаскивание картинок (чтобы их не могли утащить мышкой на рабочий стол) */
img {
    -webkit-user-drag: none;
    user-drag: none;
}
.lang-wrapper {
    position: relative;
    display: inline-block;
}
/* Полностью скрываем оригинальный селект, но оставляем его в DOM */
.lang-wrapper > select.lang-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* Стили новой кнопки переключателя */
.custom-select {
    position: relative;
}
.select-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #ccc;
    padding: 6px 24px 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
}
.select-trigger::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 55%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-top-color: currentColor;
}
/* Выпадающий список */
.select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    z-index: 999;
    border-radius: 4px;
    min-width: 80px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.custom-select.is-open .select-options {
    display: block;
}

.select-options li a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #4b5563 !important; /* Серый цвет текста как в вашем основном стиле */
    text-decoration: none;
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
}

.select-options li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}
.select-options li:hover {
    background: #f5f5f5;
}
/* Картинки флагов */
.custom-select img {
    width: 18px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}
.custom-select li a{
    font-size: 14px;
}
/* New */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-center: center; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; margin-bottom: 50px; }

/* Баннер страницы */
.page-header {
    margin-top: 80px;
    width: 100%;
    min-height: 200px;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #ffffff; /* Белый цвет текста */
    text-align: center; /* Центрирование текста, если необходимо */
}
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.breadcrumbs a { color: #cbd5e1; text-decoration: none; }
.breadcrumbs span { color: #ffffff; }

/* Блок с цифрами */
.about-stats { background: #0f172a; color: #ffffff; padding: 60px 0; text-align: center; }
.stat-number { font-size: 3rem; font-weight: bold; color: #2563eb; display: block; }
.stat-title { color: #94a3b8; font-size: 1rem; margin-top: 5px; }

/* Карточки ценностей */
.value-card { background: #f8fafc; padding: 30px; border-radius: 8px; border: 1px solid #e2e8f0; }
.value-card h3 { color: #0f172a; margin-bottom: 15px; }

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 30px; }
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.product-card {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.product-img-box {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #f1f5f9;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-content h2 { font-size: 1.8rem; color: #0f172a; margin-bottom: 15px; }
.product-lead { color: #475569; font-size: 1.1rem; margin-bottom: 20px; line-height: 1.5; }
.product-specs { list-style: none; padding: 0; margin: 0 0 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-specs li { font-size: 0.95rem; color: #334155; }
.product-actions { display: flex; gap: 15px; }

.btn-detail { background: #f1f5f9; color: #0f172a; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 500; transition: 0.2s; }
.btn-detail:hover { background: #e2e8f0; }
.btn-order { background: #2563eb; color: #ffffff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 500; transition: 0.2s; }
.btn-order:hover { background: #1d4ed8; }

@media (max-width: 992px) {
    .product-card { grid-template-columns: 1fr; }
    .product-specs { grid-template-columns: 1fr; }
}

.app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}
.app-row.reverse {
    direction: rtl; /* Разворачивает сетку на десктопе */
}
.app-row.reverse .app-content-box {
    direction: ltr; /* Возвращает тексту нормальное направление слева направо */
}
.app-img-box {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.app-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-content-box {
    display: flex;
    flex-direction: column;
}
.app-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
    line-height: 1;
}
.app-content-box h2 { font-size: 2rem; color: #0f172a; margin-bottom: 20px; }
.app-content-box p { color: #475569; font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.app-benefits { list-style: none; padding: 0; margin: 0; }
.app-benefits li { position: relative; padding-left: 24px; margin-bottom: 10px; color: #334155; font-size: 1rem; }
.app-benefits li::before { content: "✓"; position: absolute; left: 0; color: #2563eb; font-weight: bold; }

@media (max-width: 992px) {
    .app-row, .app-row.reverse { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; direction: ltr; }
    .app-img-box { height: 300px; }
}

.grid-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-info-box { padding-right: 20px; }
.contact-lead { font-size: 1.1rem; color: #475569; line-height: 1.6; margin-bottom: 40px; }
.info-details { display: flex; flex-direction: column; gap: 25px; }
.info-item h3 { font-size: 1.1rem; color: #0f172a; margin-bottom: 5px; }
.info-item p, .info-item a { color: #475569; text-decoration: none; font-size: 1rem; line-height: 1.5; }
.info-item a:hover { color: #2563eb; }

/* Стили формы */
.contact-form-box { background: #f8fafc; padding: 40px; border-radius: 12px; border: 1px solid #e2e8f0; }
.contact-form-box h3 { font-size: 1.5rem; color: #0f172a; margin-bottom: 10px; }
.contact-form-box p { color: #64748b; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.4; }
.contact-form-box span { color: #ff0000; text-decoration: underline; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.4; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: #334155; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; 
    background: #ffffff; color: #0f172a; font-size: 1rem; transition: border-color 0.2s; 
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #2563eb; outline: none; }
.btn-submit { 
    width: 100%; background: #2563eb; color: #ffffff; padding: 14px; border: none; 
    border-radius: 6px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background 0.2s; 
}
.btn-submit:hover { background: #1d4ed8; }

@media (max-width: 768px) {
    .grid-form-2 { grid-template-columns: 1fr; gap: 15; }
    .contact-form-box { padding: 25px; }
}

/* Гарантируем, что любые картинки внутри блока "О нас" не превышают ширину экрана смартфона */
.about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Адаптивный медиазапрос для экранов планшетов и телефонов (меньше 1024px) */
@media (max-width: 1024px) {
    /* Ломаем двухколоночную сетку и превращаем её в одну колонку */
    .about-intro .grid-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    /* Текст и картинка теперь растягиваются на 100% ширины экрана телефона */
    .about-intro .about-text,
    .about-intro .about-image {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Немного уменьшаем гигантский заголовок, чтобы он красиво смотрелся на мобильном */
    .about-intro h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}
/* Кнопки-фильтры */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    background-color: #f1f5f9;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Адаптивная CSS-сетка плитки */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.gallery-item {
    transition: opacity 0.3s ease;
}
.gallery-img-box {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    cursor: zoom-in; /* Меняет курсор на лупу при наведении на карточку проекта */

}
.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Эффект наведения (Hover Overlay) */
.gallery-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    pointer-events: none; /* Пропускает клик сквозь текст на картинку под ним */
    transition: opacity 0.3s ease;
}
.gallery-img-box:hover img {
    transform: scale(1.05);
}
.gallery-img-box:hover .gallery-hover-overlay {
    opacity: 1;
}
.gallery-hover-overlay h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 5px;
}
.gallery-hover-overlay p {
    color: #38bdf8;
    font-size: 14px;
    margin: 0;
}

/* Медиазапросы для планшетов и мобильных телефонов */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 20px;
    }
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
        gap: 20px;
    }
    .gallery-img-box {
        height: 240px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

.tech-detail-page { width: 100%; overflow: hidden; }
.tech-section-row { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; padding: 50px 0; }
.tech-section-row.reverse { flex-direction: row-reverse; }
.tech-text-block { flex: 1 1 500px; min-width: 280px; }
.tech-image-block { flex: 0 0 445px; width: 445px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.tech-image-block img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.tech-image-block img:hover { opacity: 0.9; }

@media (max-width: 1024px) {
    .tech-section-row, .tech-section-row.reverse { flex-direction: column; gap: 30px; padding: 30px 0; }
    .tech-image-block { flex: 1 1 auto; width: 100%; max-width: 445px; height: 320px; }
}
/* ==========================================================================
   1. ЖЕСТКАЯ ФИКСАЦИЯ ОТОБРАЖЕНИЯ СЛАЙДОВ НА ПК (Экраны от 769px и выше)
   ========================================================================== */
@media (min-width: 769px) {
    /* Гарантируем, что контейнеры слайдера не схлопываются по высоте */
    .hero {
        display: flex !important;
        min-height: 100vh !important;
        height: 100vh !important;
    }
    .hero-slider {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    /* Возвращаем видимость активному слайду на ПК и жестко привязываем картинки */
    .slide {
        background-size: cover !important;
        background-position: center center !important;
    }
    .slide.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Пропишите здесь десктопные картинки */
    .slide-1 { background-image: url('../img/slide1.webp') !important; }
    .slide-2 { background-image: url('../img/slide2.webp') !important; }
    .slide-3 { background-image: url('../img/slide3.webp') !important; }
}

/* ==========================================================================
   2. ЖЕСТКАЯ ФИКСАЦИЯ ОТОБРАЖЕНИЯ СЛАЙДОВ НА МОБИЛЬНЫХ (Экраны до 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .slide-1 { background-image: url('../img/slide1_mobile.webp') !important; }
    .slide-2 { background-image: url('../img/slide2_mobile.webp') !important; }
    .slide-3 { background-image: url('../img/slide3_mobile.webp') !important; }
    
    .slider-dots {
        display: none;
    }
    
    .hero {
        padding: 120px 20px 40px 20px !important;
    }
    .hero-content {
        /* Оставляем 5-секундный цикл, синхронный со слайдером */
        animation: mobileSeoLoopExact 5s infinite ease-in-out;
    }
}

@keyframes mobileSeoLoopExact {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
    30% { /* 1.5 секунды (30% от 5с): текст полностью скрыт, затем начинает плавно появляться */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
    40% { /* Плавное появление за 0.5 секунды. К 2-й секунде (40%) текст виден на 100% */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    70% { /* Текст остается полностью видимым до 3.5 секунд (70% от цикла) */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    80% { /* Плавное исчезновение за 0.5 секунды. К 4-й секунде (80%) текст полностью исчезает */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    100% { /* Оставшиеся 1.5 секунды до конца 5-секундного цикла текст гарантированно скрыт */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
}
}

/* ==========================================================================
   ПОДМЕНА ФАЙЛА И РАЗМЕРА ЛОГОТИПА ДЛЯ МОБИЛЬНОЙ ВЕРСИИ (Экраны до 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. ИСПРАВЛЕНО: Подменяем сам файл картинки в шапке сайта */
    .logo img {
        content: url('../img/logo-mobile.webp') !important; /* Путь к мобильному логотипу */
        padding-top:2px !important;
        width: 50px !important;  /* Жестко задаем нужную ширину для мобильного лого */
        max-width: 50px !important;
        height: auto !important;
    }

    /* 2. Опционально: Подменяем файл картинки в футере (если там тоже нужен мобильный вариант) */
    .footer-logo {
        content: url('../img/logo_small.webp') !important;
        width: 80px !important;
        max-width: 80px !important;
        height: auto !important;
    }

    /* 3. Корректируем контейнеры, чтобы они не растягивали сетку */
    .logo, .footer-logo-box {
        max-width: 80px !important;
        width: 80px !important;
        height: auto !important;
    }
}

/* ==========================================================================
   ВЕРТИКАЛЬНОЕ ВЫРАВНИВАНИЕ КАРТОЧЕК ПРЕИМУЩЕСТВ НА МОБИЛЬНЫХ (До 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Переводим сетку в режим одной колонки и сбрасываем горизонтальное размещение */
    .features {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Отступ между карточками по вертикали */
        padding: 40px 20px !important; /* Безопасные отступы секции на смартфонах */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Растягиваем каждую карточку на 100% ширины экрана */
    .feature-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important; /* Иконка и текст остаются аккуратно рядом */
        align-items: center !important;
        text-align: left !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
}