/* ЖЕСТКИЙ ИДЕАЛЬНЫЙ ФИКС ДЛЯ ВСЕХ ЯКОРНЫХ СЕКЦИЙ НА САЙТЕ */
/* --- ДЛЯ КОМПЬЮТЕРОВ И НОУТБУКОВ (ПК) --- */
section[id], 
div[id="apps"], 
div[id="contact"] {
    scroll-margin-top: 40px !important; /* На ПК заголовок встанет с идеальным запасом воздуха */
}

/* --- ДЛЯ МОБИЛЬНЫХ ТЕЛЕФОНОВ И СМАРТФОНОВ --- */
@media (max-width: 768px) {
    section[id], 
    div[id="apps"], 
    div[id="contact"] {
        scroll-margin-top: 65px !important; /* На телефонах отступ станет чуть меньше, экономя экран */
    }
}


html, body {
    scroll-behavior: smooth !important;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #1f1f31;
            color: #fff;
            overflow-x: hidden;
        }

/* Переносим класс-маркер на уровень самого верхнего тега html */
html.modal-open {
  /* МАГИЯ CSS: полностью отключает прокрутку страницы на фоне */
  overflow: hidden !important; 
  
  /* ГАРАНТИЯ МОНОЛИТНОСТИ: оставляет скролл-бар на месте, запрещая ему исчезать */
  scrollbar-gutter: stable !important; 
}

/* Базовый каркас для ЛЮБОЙ диагональной ленты в превью устройства */
/* Сохраняем вашу оригинальную геометрию ленты по ID */
#fwImgBadge {
  position: absolute;
  top: 14px;
  left: -40px;
  z-index: 10;
  width: 130px;
  text-align: center;
  
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  display: none; /* Скрыта по умолчанию, пока парсер не подставит класс */
}

/* На костыльный случай: берем текст напрямую из HTML атрибута data-text */
/* ================== ГЛОБАЛЬНЫЕ СТИЛИ БЕЙДЖЕЙ ================== */
/* Базовый каркас для любого строчного бейджа на сайте */
.fw-badge {
  display: inline-block !important;
  vertical-align: middle;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  //transform: rotate(212deg);
  rotated: 212deg;
}

/* Автоматическая подстановка текста из атрибута, если он есть */
.fw-badge::before {
  content: attr(data-text);
}

/* Дефолтные тексты, если data-text отсутствует */
.badge-new:not([data-text])::before      { content: "NEW!"; }
.badge-hot:not([data-text])::before      { content: "HOT!"; }
.badge-upd:not([data-text])::before      { content: "UPDATED!"; }
.badge-soon:not([data-text])::before     { content: "SOON"; }
.badge-premium:not([data-text])::before  { content: "亗"; }

/* Градиенты цветов для каждого статуса */
.badge-new     { background: linear-gradient(45deg, #008f11, #4fe364) !important; }
.badge-hot     { background: linear-gradient(45deg, #8f0000, #ff6161) !important; }
.badge-upd     { background: linear-gradient(45deg, #004f8f, #61b3ff) !important; }
.badge-soon    { background: linear-gradient(45deg, #4f4f4f, #a3a3a3) !important; }
.badge-premium { background: linear-gradient(45deg, #935005, #ffc800) !important; }



        /* Header / Navbar */
        .navbar {
            position: fixed;
            top: 0px;
            width: 100%;
            background: #26263D;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 136, 255, 0.2);
            z-index: 1000;
            padding: 11px 2%;
            box-shadow: 3px 3px 30px rgba(0, 0, 0, 0.5);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 10px;

        }

        .logo-icon {
            font-size: 1.5rem;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-links a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: #00ffcc;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .cart-btn {
            background: rgba(0, 136, 255, 0.1);
            border: 1px solid rgba(0, 136, 255, 0.3);
            color: #0088ff;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cart-btn:hover {
            background: rgba(0, 136, 255, 0.2);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Slider - ИСПРАВЛЕНО */
        .hero-slider {
            width: 100%;
            height: 500px;
            position: relative;
            margin-top: 60px;
            overflow: hidden;
            background: #000;
        }

        .slider-track {
            display: flex;
            width: 300%;
            height: 100%;
            transition: transform 0.5s ease;
        }
	
.popuptxt {
	overflow-y: auto !important;
	flex-grow: 1 !important;
	scrollbar-width: none !important;
	text-align: left;
        }

        .slide {
            width: 33.333%;
            height: 100%;
            flex-shrink: 0;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding-left: 5%;
            padding-right: 5%;
            overflow: hidden;
        }

        /* Затемнение для лучшей читаемости текста поверх изображений */
        .slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            //background: linear-gradient(122deg, rgba(10, 10, 15, 0.75) 0%, rgba(10, 10, 15, 0.2) 75%);
            background: linear-gradient(122deg, rgba(10, 10, 15, 0.5) 0%, rgba(10, 10, 15, 0.1) 50%);
            z-index: 1;
        }

        /* Стили для изображений слайдов - ИСПРАВЛЕНО */
        .slide-image {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: right;
            z-index: 0;
        }

        /* Контейнер для текста слайдов */
        .slide-content {
            position: relative;
            z-index: 2;
            max-width: 600px;
            text-align: left;
            color: white;
            padding: 20px;
        }

        .slide-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }

        .slide-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            text-shadow: 0 1px 5px rgba(0,0,0,0.5);
            line-height: 1.6;
            text-align: left;
        }

        .slider-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 3;
        }

        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .slider-dot.active {
            background: #00ffcc;
            transform: scale(1.2);
        }

        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            z-index: 3;
        }

        .slider-arrow:hover {
            background: rgba(0,0,0,0.8);
        }

        .slider-arrow.prev {
            left: 20px;
        }

        .slider-arrow.next {
            right: 20px;
        }

        /* Hero Content */
        .hero-content {
            padding: 30px 2%;
            max-width: 1400px;
            margin: 0 auto;
	    background: #26263d;
	    border-radius: 0px 0px 20px 20px;
        }

        .hero-text {
            max-width: 1400px;
            margin: 0 auto;
            text-align: center;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 25px;
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle-container {
            background: rgba(20, 25, 40, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            border: 1px solid rgba(0, 136, 255, 0.2);
            margin-bottom: 40px;
            position: relative;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.4;
            text-align: left;
            margin-bottom: 20px;
        }

        .details-btn {
            background: rgba(0, 136, 255, 0.1);
            color: #0088ff;
            border: 1px solid rgba(0, 136, 255, 0.3);
            padding: 10px 25px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .details-btn:hover {
            background: rgba(0, 136, 255, 0.2);
            transform: translateY(-2px);
        }

        .hero-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 25px;
            margin-bottom: 6px;
        }

        .feature-item {
            background: rgba(20, 25, 40, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(0, 136, 255, 0.2);
            transition: all 0.3s ease;
	    text-align: center;
        }

        .feature-item:hover {
            border-color: #00ffcc;
            transform: translateY(-5px);
        }

        .feature-icon {
            color: #00ffcc;
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .feature-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #fff;
        }

        .feature-desc {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        .hero-cta {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 40px;
        }

        .btn-primary {
            background: linear-gradient(-15deg, #0088ff, #00ffcc);
            color: white;
            border: none;
            padding: 18px 35px;
            font-size: 1.2rem;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 136, 255, 0.3);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 18px 35px;
            font-size: 1.2rem;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-3px);
        }

        /* Video Modal */
        .video-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            // background: rgba(0, 0, 0, 0.9);
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(6px);
        }

        .video-modal.active {
            display: flex;
        }

        .video-container {
            width: 90%;
            max-width: 1000px;
            background: #0a0a0f;
            border-radius: 20px;
            overflow: hidden;
            border: 2px solid rgba(0, 136, 255, 0.3);
            position: relative;
        }

        .video-wrapper {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Apps Section */
        .apps-section {
            padding: 40px 5%;
            background: #1f1f31;
            position: relative;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 50px;
            position: relative;
        }

        .section-title span {
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

/* Жесткая сетка: строго 5 колонок на больших экранах */
.apps-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Ровно 5 одинаковых колонок в ряд */
    gap: 20px;
    //padding: 20px;
}

/* Адаптивность для того, чтобы на планшетах и телефонах вёрстка плавно перестраивалась */
@media (max-width: 1250px) {
    .apps-grid { grid-template-columns: repeat(4, 1fr); } /* 4 колонки */
}
@media (max-width: 980px) {
    .apps-grid { grid-template-columns: repeat(3, 1fr); }  /* 3 колонки */
}
@media (max-width: 730px) {
    .apps-grid { grid-template-columns: repeat(2, 1fr); }  /* 2 колонки */
    .hero-content { padding: 30px 5%; } /* Перезаписываем только отступ, остальные свойства наследуются */
    }
}
@media (max-width: 480px) {
    .apps-grid { grid-template-columns: 1fr; }             /* 1 колонка на мобильных */
}


        .app-card {
            background: rgba(20, 25, 40, 0.8);
            //backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(0, 136, 255, 0.2);
            position: relative !important; /* Якорь для координат бейджа */
	    overflow: hidden;  !important; /* Браузер на ПК режет по этой строке */
            transition: all 0.3s ease;
            cursor: pointer;
            height: 100%;
            display: flex;
            flex-direction: column;

	    //position: relative;
	    /* ХАК ДЛЯ МОБИЛЬНЫХ ТЕЛЕФОНОВ (iPhone/Safari/Android) */
	    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Принудительно заставляет Safari резать углы */
	    transform: translateZ(0); /* Переводит карточку на отдельный слой рендеринга */
	    -webkit-transform: translateZ(0);
        }

        .app-card:hover {
            transform: translateY(-10px);
            border-color: #00ffcc;
	    //border-image: linear-gradient(145deg, red, #00ffcc);
            //box-shadow: 0 20px 40px rgba(0, 255, 204, 0.2);

        }

.app-image-stub {
    width: 100%;
    height: 90px;
    /* Оставляем ваш красивый градиент по умолчанию */
    background: linear-gradient(145deg, #0f3460, #1a1a2e); 
    
    /* НАСТРОЙКА ИЗОБРАЖЕНИЯ: центрируем и вписываем целиком */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; /* Картинка уменьшится, чтобы влезть целиком без обрезки */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 136, 255, 0.2);
    position: relative;
    overflow: hidden;
}


        .app-image-stub-0 {
            width: 100%;
            height: 100px;
            background: linear-gradient(145deg, #0f3460, #1a1a2e);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
            border-bottom: 1px solid rgba(0, 136, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .app-image-stub::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #00ffcc, #0088ff);
        }

        .app-icon-large {
            font-size: 3.5rem;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .app-image-title {
            font-size: 1.1rem;
            font-weight: 500;
	    text-align: center;
        }

        .app-card-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .app-card-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .app-card-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #0088ff, #00ffcc);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
        }

        .app-card-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: #fff;
        }

        .app-card-desc {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .app-card-desc-0 {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            flex-grow: 1;
        }

        .app-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: auto;
        }

        .app-tag {
            background: rgba(0, 136, 255, 0.15);
            color: #00ffcc;
            padding: 6px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            border: 1px solid rgba(0, 136, 255, 0.3);
        }

        .app-card-action {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .app-price {
            font-size: 1.2rem;
            font-weight: 600;
            color: #00ffcc;
            display: inline;
        }

/* Красная рамка для невалидных полей */
.form-control.input-error {
    border: 2px solid #ff4d4d !important;
    background-color: rgba(255, 77, 77, 0.05);
    animation: shake 0.3s ease-in-out; /* Эффект тряски */
}

/* Блок для вывода сообщений */
.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}
.form-message.error-msg {
    background-color: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}
.form-message.success-msg {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ece71;
    border: 1px solid #2ece71;
}

/* Анимация тряски при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.wavy-txt {
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: #00ffcc; /* Цвет волны */
    text-decoration-thickness: 1px; /* Толщина волны */
    text-underline-offset: 2px;     /* Отступ от текста */
}
        .app-free {
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Изменили кнопку на "Подробно" */
        .app-details-btn {
            background: rgba(0, 136, 255, 0.1);
            color: #0088ff;
            border: 1px solid rgba(0, 136, 255, 0.3);
            padding: 8px 25px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .app-details-btn:hover {
            background: rgba(0, 136, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Contact Form Modal */
        .contact-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(6px);
        }

        .contact-modal.active {
            display: flex;
        }

.contact-container {
	width: 90%;
	//max-width: 500px;
	background: rgba(20, 25, 40, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 28px;
	border: 2px solid rgba(0, 136, 255, 0.3);
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: 65vh; /* Окно не займет больше 65% высоты экрана */
	max-width: 70vh; /* Окно не займет больше 70% ширины экрана */
	}

        .contact-title {
		font-size: 1.8rem;
		margin-bottom: 25px;
		color: #00ffcc;
		text-align: left;
		flex-shrink: 0;
		//margin-top: -29px;
	}
.modal-body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
}

        .contact-form {
            display: flex;
            flex-direction: column;
            //gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .form-control {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            padding: 12px 15px;
            color: #95979e;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: #00ffcc;
            box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
        }

        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        textarea.form-control {
            min-height: 120px;
            resize: none;
        }

        /* Скрытое поле для защиты от спама */
        .honeypot {
            display: none;
        }

        .submit-btn {
            background: linear-gradient(-15deg, #0088ff, #00ffcc);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 136, 255, 0.3);
        }

        .form-message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            font-weight: 500;
            display: none;
        }

        .form-message.success {
            background: rgba(0, 255, 204, 0.1);
            color: #00ffcc;
            border: 1px solid rgba(0, 255, 204, 0.3);
            display: block;
        }

        .form-message.error {
            background: rgba(255, 0, 0, 0.1);
            color: #ff4444;
            border: 1px solid rgba(255, 0, 0, 0.3);
            display: block;
        }

        /* Footer */
        .footer {
            background: #212125;
            border-top: 1px solid rgba(0, 136, 255, 0.2);
            padding: 80px 5% 40px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: #00ffcc;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .footer-links a {
            color: #bdbdbe;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #00ffcc;
        }

        .footer-logo {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 2px;
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .footer-description {
            color: #bdbdbe;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            background: linear-gradient(-15deg, #0088ff, #00ffcc);
            transform: translateY(-3px);
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #bdbdbe;
        }

        .contact-icon {
            color: #00ffcc;
            min-width: 20px;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        .footer-legal {
            display: flex;
            gap: 25px;
        }

        .footer-legal a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-legal a:hover {
            color: #00ffcc;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-slider {
                height: 400px;
            }
            
            .slide-title {
                font-size: 2rem;
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .apps-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 30px;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .hero-slider {
                height: 350px;
                margin-top: 60px;
            }
            
            .slide-title {
                font-size: 1.8rem;
            }
            
            .slide-subtitle {
                font-size: 1rem;
            }
            
            .hero-title {
                font-size: 2.2rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .feature-item {
                padding: 20px;
		display: ruby;
		max-width: 400px;
            }
            
            .feature-title {
                font-size: 1.1rem;
            }
            
            .slider-arrow {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            
            .video-container {
                width: 95%;
            }
            
            .contact-container {
                padding: 30px 20px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .footer-bottom {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            
            .footer-legal {
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
            }
            
            .apps-grid {
                grid-template-columns: 1fr;
                padding: 0 10px;
            }
            
            .app-card {
                max-width: 400px;
                //margin: 0 auto;
            }
        }

        @media (max-width: 480px) {
            .hero-slider {
                height: 300px;
            }
            
            .slide-title {
                font-size: 1.5rem;
            }
            
            .hero-cta {
                flex-direction: column;
                align-items: center;
            }
            
            .btn-primary, .btn-secondary {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
            
            .hero-title {
                font-size: 1.8rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .app-card-header {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .app-card-desc {
                text-align: left;
            }
            
            .app-card-tags {
                justify-content: left;
            }
            
            .app-card-action {
                flex-direction: row;
                gap: 15px;
                text-align: center;
            }
        }

        /* Кнопка "Наверх" */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(-15deg, #0088ff, #00ffcc);
            border: none;
            border-radius: 50%;
            color: black;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            //box-shadow: 0 5px 15px rgba(0, 136, 255, 0.4);
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            transform: translateY(-5px) !important;
            box-shadow: 0 15px 30px rgba(0, 136, 255, 0.75);
        }

/* ADDED: language flags */
.lang-switcher {
    display: inline-flex;
    gap: 8px;
    margin-left: 12px;
    vertical-align: middle;
}

.lang-switcher img {
    width: 22px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.lang-switcher a:hover img,
.lang-switcher a.active img {
    opacity: 1;
}

/* FORMAT */


:root{
    --blue:#1696ff;
    --dark:#d8a84d;
    --gold:#d8a84d;
    --green:#1fa971;
    --text:white;
    --pin-bg:#e6f4ff;
    --pin-border:#8acbff;
    --pin-color:#0066cc;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    // font-family: Inter, "Segoe UI", sans-serif;
    // font-size: 1.2rem;
    color:var(--text);
    // line-height:1.75;
}

.wrapper{
    max-width:1000px;
    margin:auto;
    padding:60px 40px;
}

/* -------------------------------- */
/* LABEL */
/* -------------------------------- */

.label{
    display:inline-block;
    font-family:Consolas, monospace;
    color:var(--green);
    font-size:15px;
    margin-bottom:18px;
}

.label::before{
    content:"// ";
}

/* -------------------------------- */
/* TITLE */
/* -------------------------------- */

h1{
    font-size:42px;
    line-height:1.2;
    color:var(--dark);
    margin-bottom:35px;
    font-weight:800;
}

.keyword{
    color:var(--blue);
    position:relative;
}

.keyword::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-6px;
    height:8px;
    background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0 10 C20 0 40 20 60 10 S100 0 120 10 S160 20 180 10 S200 0 200 10' stroke='%23d8a84d' stroke-width='4' fill='none'/%3E%3C/svg%3E");
    background-size:100% 100%;
}

/* -------------------------------- */
/* FUNCTION */
/* -------------------------------- */

.function{
    font-family:Consolas, monospace;
    font-size:16px;
    margin-bottom:25px;
    color:#64748b;
}

.function .void{
    color:var(--blue);
}

.function .name{
    color:var(--gold);
}

/* -------------------------------- */
/* CONTENT */
/* -------------------------------- */

.content{
    position:relative;
    padding-left:28px;
    padding-right:28px;
    // font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 50px;
    font-size: 18px;
}

.content::before{
    content:"{";
    position:absolute;
    left:0;
    top:-20px;
    color:#5b748b;
    font-family:unset;
    font-size:55px;
    font-weight:lighter;
}

.content::after {
    content: "}";
    position: absolute;
    right: 0;            /* Выравниваем по правому краю */
    bottom: -5px;       /* Смещаем вниз (аналогично top у before) */
    color: #5b748b;
    font-family: unset;
    font-size: 55px;
    font-weight: lighter;
}

.content p{
    font-size:19px;
    margin-bottom:18px;
}

/* -------------------------------- */
/* HIGHLIGHT */
/* -------------------------------- */

.highlight{
    background:
linear-gradient(#0088ff00 0%, #00ffcc 120%);
}

/* -------------------------------- */
/* PIN TAGS */
/* -------------------------------- */

.pin{
    --pin-bg:#e6f4ff;
    --pin-border:#8acbff;
    --pin-color:#0066cc;
    display:inline-flex;
    align-items:center;
    //gap:4px;
    padding:2px 10px;
    border-radius:8px;
    background:var(--pin-bg);
    //background: linear-gradient(0deg, #0087C0, #ACE1F9);
    border:1px solid var(--pin-border);
    color:var(--pin-color);
    font-family:Consolas, monospace;
    font-size:.92em;
    font-weight:600;
    white-space:nowrap;
    vertical-align:middle;
}

.pin::before{
    content:"";
    opacity:.55;
}

/* GPIO */

.gpio{
    --pin-bg:#e6f4ff;
    --pin-border:#8acbff;
    --pin-color:#0066cc;
}

/* ANALOG */

.analog{
    --pin-bg:#fff5dd;
    --pin-border:#f2cf7d;
    --pin-color:#a86f00;
}

/* POWER */

.power{
    --pin-bg:#ffe7e7;
    --pin-border:#ffb8b8;
    --pin-color:#c53333;
}

/* COMM */

.comm{
    --pin-bg:#e8fff1;
    --pin-border:#a8e6bf;
    --pin-color:#15803d;
}

/* MODULE */

.module{
    --pin-bg:#eef2ff;
    --pin-border:#b8c4ff;
    --pin-color:#4f46e5;
}

/* -------------------------------- */
/* NOTE */
/* -------------------------------- */

.note{
    margin-top:28px;
    margin-bottom:28px;
    padding:16px 20px;
    border-left:4px solid var(--blue);
    background:white;
    border-radius:8px;
    font-family:Consolas, monospace;
    color:#4b5563;
    font-size:18px;
}

.note::before{
    content:"// ";
    color:var(--green);
}

/* -------------------------------- */
/* FOOTER */
/* -------------------------------- */

.footer2{
    margin-top:5px;
    font-family:unset;
    color:#5b748b;
    text-align:right;
    font-size:55px;
    font-weight: lighter;
}

/* -------------------------------- */
/* CODE EXAMPLE */
/* -------------------------------- */

.code-example{
    margin-top:30px;
    margin-bottom:30px;
    background:white;
    border-radius:10px;
    padding:20px;
    border:1px solid #e2e8f0;
    font-family:Consolas, monospace;
    font-size:18px;
    overflow:auto;
}

.code-example .kw{
    color:var(--blue);
}

.code-example .fn{
    color:var(--gold);
}

.code-example .cm{
    color:var(--green);
}

/* ========================= */
/* DROPDOWN MENU */
/* ========================= */

.dropdown{
    position:relative;
    display:flex;
    align-items:center;
}

.dropdown-toggle{
    display:flex;
    align-items:center;
    gap:10px;
}

.dropdown-toggle i{
    font-size:14px;
    transition:.3s;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    background:#26263d;
    border-radius:10px;
    padding:10px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:.25s ease;
    z-index:1000;
}

.dropdown-menu a{
    display:block;
    padding:8px 10px;
    white-space:nowrap;
    color:#ffffff;
    text-decoration:none;
}

.dropdown-menu a:hover{
    //background:#00ffcc;
}

.dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(10);
}

.dropdown:hover .dropdown-toggle i{
    transform:rotate(180deg);
}

.copyright a{
    color:#909092;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.email a{
    color:#bdbdbe;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.email a:hover{
    color:#00ffcc;
}

.copyright a:hover{
    color:#00ffcc;
}
.copyright a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, #0088ff);
    transition: width 0.3s ease;
}

.firmware-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ==========================================================================
   ИДЕАЛЬНАЯ МОБИЛЬНАЯ ВЕРСИЯ БЕЗ ОБРЕЗКИ И КОНФЛИКТОВ
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Сбрасываем шапку товара в одну ровную вертикальную ленту */
  .firmware-header {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
  }

  /* 2. Усмиряем левый контейнер превью устройства на мобильных */
  .device-demo {
        position: relative !important;
        top: auto !important;
    
    /* ЖЕЛЕЗОБЕТОННО: отменяем sticky на телефонах, чтобы блоки шли цельной лентой */
    position: relative !important; 
    top: auto !important; 
  }

  /* 3. Ограничиваем максимальную ширину обертки под размеры экрана телефона */
    .device-preview {
        width: 100% !important;
        //max-width: 360px !important;
        margin: 0 auto !important;
        height: auto !important;
        position: relative !important;
        padding: 20px !important;
    }

  /* 4. СБРОС КОНФЛИКТА: Сжимаем заглушку до ширины экрана и убираем жесткие 470px / 300px */
  .device-preview .device-image-placeholder {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 240px !important;
        background: transparent !important;
        overflow: visible !important;
    }

  /* Отключаем тяжелую анимацию блика на мобильных для экономии батареи смартфона */
  .device-preview .device-image-placeholder::before {
    display: none !important;
  }



  /* 6. Адаптируем правую колонку с инфой и кнопками прошивальщика */
  .firmware-info {
    width: 100% !important;
    height: auto !important;
  }

  .action-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .action-btn {
    width: 100% !important;
    grid-column: auto !important;
  }
}
        /* Стили только для модального окна прошивки */
        .flash-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 20px;
	    backdrop-filter: blur(8px);
        }
        
        .flash-modal.active {
            display: flex;
        }
        
        .flash-modal-container {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            border-radius: 20px;
            padding: 20px;
            width: 100%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid rgba(0, 255, 204, 0.2);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            position: relative;
        }
        
        .close-modal {
            position: absolute;
            top: 15px; right: 15px;
	    //top: 44px; //right: 39px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            z-index: 2001;
            transition: all 0.3s ease;
        }
        
        .close-modal:hover {
            background: rgba(255, 0, 102, 0.3);
            transform: rotate(90deg);
        }
        
        .flash-modal-title {
            font-size: 28px;
            margin-bottom: 25px;
            color: #00ffcc;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: left;
            gap: 15px;
        }
        
        /* Шаги */
        .flash-step {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        .flash-step.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .flash-step h3 {
            color: #ffffff;
            margin-bottom: 25px;
            font-size: 22px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(0, 255, 204, 0.3);
        }
        
        /* Выбор порта */
        .port-selection {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 10px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        

        
        .form-control:focus {
            outline: none;
            border-color: #00ffcc;
            box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.1);
        }
        
        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            justify-content: center;
        }
        
        .btn-primary, .btn-secondary, .btn-danger {
            padding: 15px 30px;
            border: none;
            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: 10px;
            min-width: 150px;
        }
        

        
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgb(0, 0, 0, 0.5);
        }
        
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: #00ffcc;
        }
        
        .btn-danger {
            background: linear-gradient(45deg, #ff3366, #ff0066);
            color: white;
        }
        
        .btn-danger:hover {
            background: linear-gradient(45deg, #ff0066, #cc0033);
            transform: translateY(-3px);
        }
        
        .connection-hint {
            background: rgba(0, 136, 255, 0.1);
            border-radius: 10px;
            padding: 15px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-left: 3px solid #0088ff;
        }
        
        /* Выбор прошивки */
        .firmware-selection {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        @media (max-width: 768px) {
            .firmware-selection {
                grid-template-columns: 1fr;
            }
        }
        
        .firmware-option {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .firmware-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #0088ff, #00ffcc);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .firmware-option.active {
            background: rgba(0, 255, 204, 0.1);
            border-color: #00ffcc;
        }
        
        .firmware-option.active::before {
            opacity: 1;
        }
        
        .firmware-option:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-5px);
        }
        
        .option-icon {
            font-size: 40px;
            color: #00ffcc;
            margin-bottom: 15px;
        }
        
        .option-content h4 {
            color: white;
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .option-content p {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 15px;
            font-size: 14px;
            line-height: 1.5;
        }
        
        .firmware-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            // margin-top: 15px;
            // padding-top: 15px;
            // border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .firmware-info span {
            //color: rgba(255, 255, 255, 0.8);
            //font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .file-name {
            margin-top: 15px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            color: #00ffcc;
            font-size: 14px;
            word-break: break-all;
        }
        
        /* Прогресс бар */
        .upload-progress-container {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .progress-header span:first-child {
            color: white;
            font-size: 18px;
            font-weight: 600;
        }
        
        .progress-header span:last-child {
            color: #00ffcc;
            font-size: 20px;
            font-weight: 700;
        }
        
        .progress-bar {
            height: 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #0088ff, #00ffcc);
            border-radius: 6px;
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                90deg,
                transparent 30%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 70%
            );
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .progress-details {
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
            text-align: center;
            min-height: 24px;
            margin-bottom: 25px;
        }
        
        .upload-status {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 20px;
        }
        
        .status-indicator {
            display: flex;
            align-items: center;
            gap: 12px;
            // margin-bottom: 20px;
        }
        
        .status-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ffcc00;
            animation: pulse 1.5s infinite;
        }
        
        .status-dot.success {
            background: #00ff88;
            animation: none;
        }
        
        .status-dot.error {
            background: #ff3366;
            animation: none;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        #statusText {
            color: white;
            font-weight: 600;
            font-size: 16px;
        }
        
        .firmware-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
        }
        
        /* Завершение */
        .upload-complete {
            text-align: center;
            padding: 30px 0;
        }
        
        .complete-icon {
            font-size: 80px;
            margin-bottom: 25px;
        }
        
        .complete-icon.success {
            color: #00ff88;
        }
        
        .complete-icon.error {
            color: #ff3366;
        }
        
        .upload-complete h3 {
            color: white;
            margin-bottom: 15px;
            font-size: 28px;
            border: none;
            padding: 0;
        }
        
        .upload-complete p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            margin-bottom: 30px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }
        
        .upload-summary {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            text-align: left;
	    grid-auto-flow: column;
        }
        
        .summary-item {
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255, 255, 255, 0.9);
        }
        
        .summary-item i {
            color: #00ffcc;
            font-size: 20px;
            width: 30px;
        }
        
        .summary-item strong {
            color: #00ffcc;
        }
        
        /* Сообщения об ошибках */
        .error-message {
            background: rgba(255, 51, 102, 0.1);
            border-radius: 10px;
            padding: 15px;
            color: #ff99aa;
            margin-bottom: 20px;
            border-left: 3px solid #ff3366;
            display: none;
        }
        
        .error-message.active {
            display: block;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* ================== СТИЛИ СТРАНИЦЫ МЕТЕОСТАНЦИИ ================== */
        .page-header {
            background: linear-gradient(135deg, rgba(0, 136, 255, 0.1), rgba(0, 255, 204, 0.05));
            padding: 80px 0 50px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .page-header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            text-align: center;
        }
        
        .page-title {
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .page-subtitle {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.7);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .firmware-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 50px 20px 80px;
        }
        

        
        @media (max-width: 992px) {
            .firmware-header {
                grid-template-columns: 1fr;
                gap: 40px;
            }
        }
        

        
        .device-preview {
	    background: linear-gradient(145deg, #00ccff22, #1a1a2e);
            border-radius: 25px;
            padding: 40px;
            // border: 2px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
        }
        
        .device-preview::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, #00ffcc, transparent);
        }
        
        /* Заглушка для фото устройства СТРОГО для больших экранов ПК */
        .device-preview .device-image-placeholder {
            width: 470px;
            height: 308px;
            background: linear-gradient(135deg, #0088ff, #00ffcc);
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        


        /* Картинка внутри плейсхолдера на ПК занимает всё пространство */
        .device-preview .device-image-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }
        
        .placeholder-icon {
            font-size: 64px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }
        
        .placeholder-text {
            font-size: 18px;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }
        
        /* Характеристики устройства */
        .device-specs {
            display: flex;
            justify-content: space-around;
            margin-top: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .spec-item {
            text-align: center;
        }
        
        .spec-value {
            font-size: 24px;
            font-weight: 700;
            color: #00ffcc;
            display: block;
        }
        
        .spec-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 5px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        /* Информация о прошивке */
        .firmware-info {
            display: flex;
            flex-direction: column;
            // gap: 25px;
        }
        
        .firmware-meta {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .meta-tag {
            background: rgba(0, 255, 204, 0.1);
            color: #00ffcc;
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .meta-tag.hot {
            background: rgba(255, 0, 102, 0.1);
            color: #ff0066;
        }
        
        .firmware-title {
            font-size: 42px;
            font-weight: 800;
            line-height: 1.1;
	    background: linear-gradient(90deg, #00ffcc, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .firmware-description {
            font-size: 17px;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.8);
        }
        
        /* Блок цены и действий */
        .action-panel {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            // margin-top: 30px;
        }
        
        .price-block {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .price {
            font-size: 30px;
            font-weight: 700;
            color: #00ffcc;
        }
        
        .price-old {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.6);
            text-decoration: line-through;
            margin-right: 15px;
        }
        
/* Возвращаем элементам строки правильное выравнивание и запрет на перенос */
.version-info div {
  text-align: right;
  //margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.6);
  //font-size: 14;
}

/* Автоматическая подстановка иконки и текста для Версии */
.version-info .insert-fw-version::before {
  content: "\f126 "; /* Код иконки fas fa-code-branch */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  color: #ff6161;
  padding-right: 8px;
}

/* Автоматическая подстановка иконки и текста для Даты */
.version-info .insert-fw-upd::before {
  content: "\f073 "; /* Код иконки fas fa-calendar */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  //font-weight: 700;
  color: #ff6161;
  padding-right: 8px;
}

/* Автоматическая подстановка иконки для Чипа */
.version-info #insert-fw-peripherals::before {
  content: "\f05a "; /* Код иконки fas fa-microchip */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 700;
  color: #ff6161;
  padding-right: 8px;
}
        
        /* Кнопки действий */
        .action-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        @media (max-width: 768px) {
            .action-buttons {
                grid-template-columns: 1fr;
            }
        }
        
        .action-btn {
            padding: 18px 25px;
            border: none;
            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: 10px;
        }
        
        .btn-flash {
            background: linear-gradient(-195deg, #00ffcc, #0088ff);
            color: white;
            //box-shadow: 0 10px 20px rgba(0, 136, 255, 0.3);
        }
        
        .btn-flash:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(0, 136, 255, 0.4);
        }
        
        .btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
            //max-width: 400px;
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: #00ffcc;
        }
        
        /* Статистика скачиваний */
        .download-stats {
            display: flex;
            gap: 30px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
        }

        .tabs-nav {
		display: flex;
		gap: 0;
		border-bottom: 1px solid rgb(0 255 204);
		overflow-x: auto;
	}
	.tab-content.active {
		display: block;
	}

	.tab-content {
		display: none;
		padding: 40px;
		background: rgba(255, 255, 255, 0.05);
		border-radius: 0 0 15px 15px;
		animation: fadeIn 0.3s ease;
	}

	.tab-btn.active {
		color: #00ffcc;
		border-bottom-color: #00ffcc;
		background: rgba(0, 255, 204, 0.05);
		border-radius: 15px 15px 0px 0px;
	}

	.tab-btn {
		padding: 15px 30px;
		background: transparent;
		border: none;
		color: rgba(255, 255, 255, 0.6);
		font-size: 16px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.3s ease;
		border-bottom: 3px solid transparent;
		white-space: nowrap;
		display: flex;
		align-items: center;
		gap: 10px;
	}
/* Фоновая полупрозрачная подложка модального окна */
.apps-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 5, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000; /* Выше чем navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Класс активации окна */
.apps-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Белое/темное контентное окно */
.apps-modal-container {
  background: #1f1f31;
  border: 1px solid rgba(0, 136, 255, 0.15);
  border-radius: 16px;
  width: 92%;
  max-width: 1100px;
  max-height: 85vh; /* Фиксируем максимальную высоту окна на 85% от экрана */
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column; /* Выстраиваем заголовок и скролл-зону друг под другом */
  overflow: hidden; /* Запрещаем окну целиком прокручиваться */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Фиксированная шапка окна */
.apps-modal-header {
  flex-shrink: 0; /* Запрещаем шапке сжиматься */
  margin-bottom: 10px;
}

/* 2. НОВАЯ СКРОЛЛ-ЗОНА: Ограничивает сетку карточек и кастомизирует ползунок */
.apps-scroll-area {
  overflow-y: auto; /* Включаем вертикальный скролл только здесь */
  flex-grow: 1;     /* Занимает всё оставшееся пространство окна */
  padding-right: 12px; /* Отступ справа, чтобы карточки не прилипали к ползунку */
  
  /* Кастомный скроллбар для Firefox */
  scrollbar-width: thin;
  scrollbar-color: #0088ff rgba(255, 255, 255, 0.03);
}

/* Кастомный скроллбар для Chrome, Edge, Opera, Safari */
.apps-scroll-area::-webkit-scrollbar {
  width: 6px; /* Делаем полосу тонкой и аккуратной */
}

.apps-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02); /* Почти прозрачный трек */
  border-radius: 10px;
}

.apps-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 136, 255, 0.3); /* Неоново-синий полупрозрачный ползунок */
  border-radius: 10px;
  transition: background 0.2s ease;
}

.apps-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #0088ff; /* Яркий цвет при наведении */
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.5); /* Легкое свечение ползунка */
}

.apps-modal-title {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
}
.apps-modal-title i { color: #00ffcc; }

.apps-modal-subtitle {
  color: #ff9866;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Сетка карточек для каталог прошивок*/
/* Жесткая сетка: строго 4 колонки */
.apps-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 одинаковые колонки */
  gap: 20px;
  width: 100%;
}


/* Позиционирование маленького горизонтального бейджа внутри карточки */
.app-popup-card .fw-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;         /* Отменяем левый сдвиг (-40px) от большой ленты */
  width: max-content !important;  /* Градиент облегает строго текст, а не всю карточку */
  
  /* Полностью отменяем поворот на 45 градусов для карточек */
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  transform: none !important;
  
  /* Внутренние отступы и скругления аккуратного прямоугольника */
  padding: 4px 8px !important;
  border-radius: 4px !important;
  z-index: 5 !important;         /* Поверх картинки */
}


/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
  .apps-grid-container {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
  }
}
@media (max-width: 600px) {
  .apps-grid-container {
    grid-template-columns: 1fr; /* 1 колонка на телефонах */
  }
}
/* Добавим стили для недостающих бейджиков */
// .badge-upd { background: #0088ff; }
// .badge-soon { background: #8e8e93; }
/* Эффект наведения на карточку-ссылку */
.app-popup-card:not(.active-product):hover {
  transform: translateY(-5px);
  border-color: rgba(0, 136, 255, 0.4);
  box-shadow: 0 10px 20px rgba(0, 136, 255, 0.1);
}

/* Подсветка карточки текущего товара */
.app-popup-card.active-product {
  border: 1px solid rgba(0, 255, 204, 0.3);
  box-shadow: inset 0 0 15px rgba(0, 255, 204, 0.05);
  cursor: default;
}

.app-popup-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.app-popup-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-popup-info h3 {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 8px;
}

.app-popup-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Микротеги версии и размера */
.app-popup-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.app-popup-tags span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* Кнопки перехода */
.btn-popup-view {
  display: block;
  text-align: center;
  background: #0088ff;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-popup-view:hover { background: #0066cc; }

/* Кнопка "Вы здесь" для текущего товара */
.btn-popup-view.disabled-link {
  background: rgba(0, 255, 204, 0.08);
  color: #00ffcc;
  pointer-events: none;
  border: 1px dashed rgba(0, 255, 204, 0.25);
}

/* Разноцветные мини-бейджи */
.app-popup-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  z-index: 2;
  letter-spacing: 0.5px;
}
.badge-hot { background: #ff3b30; }
// .badge-new { background: #34c759; }
.badge-premium { background: linear-gradient(45deg, #935005, #ffc800); }

/* Обертка для картинки и текста */
.diagram-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

/* Базовые стили картинки (вынесли из инлайна в класс) */
.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Стили для текста поверх картинки внизу по центру */
/* Стили для текста поверх картинки внизу по центру */
.diagram-caption {
    position: absolute;
    bottom: 15px;      /* Отступ от нижнего края картинки */
    left: 50%;         /* Сдвигаем точку старта на центр */
    transform: translateX(-50%); /* Идеальная центровка по центру */
    
    /* Оформление плашки */
    margin: 0;
    padding: 8px 16px;
    background-color: rgba(9, 11, 17, 0.85); /* Темный полупрозрачный фон */
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;

    /* ИСПРАВЛЕНИЕ КОСЯКА С ВЫЛЕТОМ НА МОБИЛЬНЫХ: */
    width: max-content;         /* На ПК плашка растягивается строго по длине текста */
    max-width: 90%;             /* На мобилках плашка никогда не станет шире 90% от картинки */
    white-space: normal;        /* Разрешаем перенос длинного текста на новую строку */
    text-align: center;         /* Центрируем строчки между собой при переносе */
    box-sizing: border-box;     /* Учитываем паддинги в максимальной ширине */
}

    .tab-txt {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.5;
	margin-bottom: 10px;
    }

.tab-content ul li {
    color: rgba(255, 255, 255, 0.8); /* Тот же цвет, что и у .tab-txt */
    //line-height: 1.5;                 /* Тот же межстрочный интервал */
    font-family: inherit;             /* Наследуем ваш общий шрифт */
    //font-size: 16px;                  /* Тот же размер букв */
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 2em;
}

ol.tab-txt {
    //margin-bottom: 10px;
    padding-left: 12px; /* Задает правильный отступ для автоматических цифр */
    list-style-position: inside; /* Гарантирует, что цифры останутся внутри темного контейнера */
}

ol.tab-txt li {
    color: rgba(255, 255, 255, 0.8);
    //line-height: 1.5;
    font-family: inherit;             /* Наследуем ваш общий шрифт */
    margin-top: 5px;
    margin-bottom: 5px;
}