* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Общая обёртка для всего контента */
.main-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

/* Обертка для удержания высоты верхних SPA-меню */
.menu-wrapper {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

/* Базовый контейнер для экранов */
.container {
    background: rgba(0, 0, 0, 0.9); 
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #00ff00; 
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    max-width: 500px;
    width: 100%;
    display: none;
}

/* Широкий контейнер для программатора */
.container.wide-container {
    max-width: 750px;
}

/* Показываем только активный экран */
.container.active {
    display: block;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #ff0000; 
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: #888;
    margin-bottom: 25px;
    font-size: 1rem;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.buttons.vertical {
    flex-direction: column;
    gap: 12px;
}

/* Стили кнопок */
.btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

/* КРАСНАЯ КНОПКА СКАЧИВАНИЯ */
.download-btn {
    background-color: #ff0000; 
    color: #fff;
    border: none;
}
.download-btn:hover {
    background-color: #cc0000;
    box-shadow: 0 0 15px #ff0000;
}

/* ЗЕЛЕНЫЕ ИНФО КНОПКИ */
.info-btn {
    background-color: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
}
.info-btn:hover {
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.linux-btn {
    background-color: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
}
.linux-btn:hover {
    background-color: #00ff00;
    color: black;
    box-shadow: 0 0 15px #00ff00;
}

/* ЯРКО-ЗЕЛЕНАЯ КНОПКА ПРЕДЗАКАЗА */
.order-btn {
    background-color: #00ff00 !important;
    color: #000000 !important;
    border: none !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    margin-top: 5px;
}
.order-btn:hover {
    background-color: #00cc00 !important;
    box-shadow: 0 0 25px #00ff00 !important;
    transform: scale(1.02);
}

.back-link {
    background: none;
    border: none;
    color: #666;
    margin-top: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.back-link:hover {
    color: #fff;
}

.custom-select {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    margin-bottom: 20px;
}

/* Двухколоночная сетка программатора */
.specs-layout {
    display: flex;
    gap: 20px;
    text-align: left;
}

.specs-box {
    flex: 1.2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #ff0000;
    border-radius: 8px;
    padding: 20px;
}
.specs-box h3 { color: #ff0000; margin-bottom: 15px; font-size: 1.1rem; text-transform: uppercase; }
.specs-box ul { list-style: none; }
.specs-box li { margin-bottom: 10px; font-size: 0.95rem; color: #ccc; border-bottom: 1px dashed #222; padding-bottom: 5px; }
.specs-box li span { color: #00ff00; font-weight: bold; }

/* Колонка под картинку мультиметра */
.specs-image-box {
    flex: 1;
    background: rgba(0, 255, 0, 0.02);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.programmer-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .specs-layout { flex-direction: column; }
}

/* Блок Документации */
.docs-content { text-align: left; max-height: 300px; overflow-y: auto; padding-right: 10px; }
.docs-section { margin-bottom: 20px; background: rgba(255, 255, 255, 0.02); padding: 15px; border-radius: 6px; border-left: 3px solid #00ff00; }
.docs-section h3 { color: #00ff00; margin-bottom: 8px; font-size: 1.1rem; }
.docs-section p { color: #aaa; font-size: 0.9rem; line-height: 1.5; }

/* СЕКЦИЯ С ТЕКСТОМ "ЧТО ЭТО ЗА ВАШ MIDEN?" */
.about-section {
    width: 100%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid #ff0000; 
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.2);
    margin-top: 40px;
}

.about-section h2 {
    font-size: 2.4rem;
    color: #00ff00; 
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.02);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-3px);
}

.about-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 6px;
}

.about-card p {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; } 
}

/* ПОДВАЛ */
.site-footer {
    position: relative; 
    z-index: 2; 
    width: 100%; 
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(0, 255, 0, 0.2); 
    padding: 15px 30px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 40px;
}
.footer-brand { font-size: 1.1rem; font-weight: bold; color: #00ff00; letter-spacing: 1px; text-shadow: 0 0 8px rgba(0, 255, 0, 0.4); }

/* КНОПКИ ВЫБОРА ЯЗЫКА */
.footer-languages {
    display: flex;
    gap: 8px;
}
.lang-btn {
    background: none;
    border: 1px solid #333;
    color: #666;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.lang-btn:hover {
    color: #fff;
    border-color: #666;
}
.lang-btn.active {
    color: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.footer-links { display: flex; gap: 20px; }
.footer-link { color: #888; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; padding: 4px 8px; border-radius: 4px; border: 1px solid transparent; }
.footer-link.yt:hover { color: #ff0000; border-color: #ff0000; background: rgba(255, 0, 0, 0.05); box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }
.footer-link.tg:hover { color: #0088cc; border-color: #0088cc; background: rgba(0, 136, 204, 0.05); box-shadow: 0 0 10px rgba(0, 136, 204, 0.3); }

@media (max-width: 600px) { 
    .site-footer { flex-direction: column; gap: 15px; padding: 15px; text-align: center; } 
}

/* МОДАЛЬНЫЕ ОКНА (ОБЩЕЕ) */
.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    z-index: 10; 
    justify-content: center; 
    align-items: center;
}
.modal-content { 
    background: #000; 
    padding: 30px; 
    border-radius: 10px; 
    border: 2px solid #ff0000; 
    text-align: center; 
    width: 90%; 
    max-width: 400px; 
}
.modal-content h3 { color: #00ff00; margin-bottom: 20px; }
.progress-bar-container { width: 100%; background-color: #222; height: 20px; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #ff0000, #00ff00); }
#progress-text { color: #888; }

/* ОКНО С ШАГАМИ ДЛЯ ПРЕДЗАКАЗА */
.order-modal-content {
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4) !important;
    max-width: 450px !important;
    text-align: left !important;
}
.order-modal-content h2 {
    color: #00ff00;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}
.order-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #222;
}
.step-num {
    background: #00ff00;
    color: #000;
    font-weight: bold;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}
.step p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.4;
}
.step a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
}
.step a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ЖЕСТКОЕ ВЫРЕЗАНИЕ ВОДЯНОГО ЗНАКА NETLIFY DRAWER ИЗ ЭКРАНА
   ========================================================================== */
#netlify-drawer, 
div[class*="netlify"], 
iframe[title*="Netlify"],
[id*="netlify"],
.netlify-container,
iframe[src*="netlify"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;


