/* ============================================
   TAMIM FERRUM SENSORS - STYLES
   ============================================ */

/* Local Fonts */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables - Light Theme */
:root {
    --primary: #1a4b8c;
    --primary-dark: #15407a;
    --primary-light: rgba(26, 75, 140, 0.1);
    --accent: #e67e22;
    --accent-dark: #d35400;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --error: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.15);
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-300: #6b7280;
    --gray-400: #9ca3af;
    --gray-500: #d1d5db;
    --gray-600: #e5e7eb;
    --gray-700: #f3f4f6;
    --gray-800: #f9fafb;
    --gray-900: #ffffff;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    
    --white: #0f172a;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-outline-white {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.2);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.375rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--accent);
    border-radius: 9999px;
}

.badge-hero {
    background: var(--accent);
    color: #ffffff;
}

/* Section */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section { padding: 5rem 0; }
}

@media (min-width: 1024px) {
    .section { padding: 6rem 0; }
}

.section-gray {
    background: var(--bg-secondary);
}

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

@media (min-width: 768px) {
    .section-header { margin-bottom: 4rem; }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

.section-warning {
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 600;
    text-transform: uppercase;
    max-width: 42rem;
    margin: 0.5rem auto 0;
    text-align: center;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

@media (min-width: 768px) {
    .header-content {
        height: 5rem;
        gap: 1rem;
    }
    .header-content > .logo {
        width: 21%;
        flex-shrink: 0;
    }
    .header-content > .nav-desktop {
        width: 30%;
        flex-shrink: 0;
    }
    .header-content > #rightHeader {
        width: 49%;
        flex-shrink: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--gray-200);
}

.theme-toggle.mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gray-200);
    border-radius: var(--radius);
}

.theme-icon-light {
    display: block;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.theme-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.nav-desktop {
    display: none;
}

@media (min-width: 1190px) {
    .nav-desktop {
        display: flex;
        gap: 1rem;
        margin-left: auto;
        padding: 0;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    white-space: nowrap;
    background: var(--gray-100);
    padding: 0.125rem;
    border-radius: var(--radius);
}

.lang-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.lang-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: #ffffff;
}

.lang-separator {
    color: var(--gray-400);
    padding: 0rem;
}

/* Phone Block */
.phone-block {
    display: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .phone-block { display: block; }
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-director {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
    white-space: nowrap;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--accent);
}

.header-btn {
    display: none;
    white-space: nowrap;
    padding: 0.5rem 0.875rem;
    height: 2.5rem;
    min-height: unset;
    flex-shrink: 0;
}

@media (min-width: 850px) {
    .header-btn { display: inline-flex; }
}

/* Telegram Button Desktop */
.telegram-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: var(--radius);
    color: #ffffff;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.telegram-btn:hover {
    background: var(--primary-dark);
}

.telegram-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .telegram-btn { display: flex; }
}

/* Email Button Desktop */
.email-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: var(--radius);
    color: #ffffff;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.email-btn:hover {
    background: var(--primary-dark);
}

.email-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .email-btn { display: flex; }
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    order: -1;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 1190px) {
    .mobile-menu-btn { display: none; }
}

/* Скрыть тему на экранах < 1190px (языки оставить в шапке) */
@media (max-width: 1189px) {
    .theme-toggle:not(.mobile) {
        display: none !important;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 99;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

/* MobileNav dropdown styles from add.html */
.mobileNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0a192f;
    z-index: 999;
}

.mobileNav.show {
    display: block;
}

.mobileNav a {
    display: block;
    color: #64ffda;
    text-decoration: none;
    padding: 0.5rem 0;
}

.mobileNav .lang-switcher {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu { top: 5rem; }
}

.mobile-lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.lang-btn.mobile {
    flex: 1;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.lang-btn.mobile.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-contacts {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-actions .btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.mobile-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: var(--radius);
    color: #ffffff;
    transition: all 0.2s;
}

.mobile-telegram-btn:hover {
    background: var(--primary-dark);
}

.mobile-telegram-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-phone-block {
    margin-bottom: 1rem;
}

.mobile-director {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.mobile-phone {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.mobile-email {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-top: 0.25rem;
    word-break: break-all;
}

.mobile-email:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero { min-height: 700px; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 1rem;
    max-width: 48rem;
}

@media (min-width: 640px) {
    .hero-content { padding: 8rem 1.5rem; }
}

@media (min-width: 1024px) {
    .hero-content { padding: 8rem 2rem; }
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title { font-size: 2.5rem; }
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.25rem; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 2.5rem;
    height: 2.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* About */
.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.about-text {
    max-width: 36rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

.feature-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--primary);
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Advantages */
.advantages-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .advantages-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.advantage-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.advantage-card:hover {
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .advantage-card { padding: 2rem; }
}

.advantage-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.advantage-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: var(--primary);
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.advantage-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.advantages-footer {
    text-align: center;
    margin-top: 3rem;
}

.footer-highlight {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.footer-text {
    color: var(--text-secondary);
}

/* Products */
.products-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-card .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .product-btn {
    margin-top: auto;
}

.product-image {
    height: 10rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26,75,140,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image.small {
    height: 6rem;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.product-image-placeholder svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.product-image-placeholder span {
    font-size: 0.75rem;
    opacity: 0.7;
}

.product-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.product-icon-wrapper.small {
    width: 3.5rem;
    height: 3.5rem;
}

.product-icon-wrapper svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: var(--primary);
}

.product-icon-wrapper.small svg {
    width: 1.75rem;
    height: 1.75rem;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.product-ex-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--success);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-content {
    padding: 1.25rem;
}

.product-model {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-specs {
    list-style: none;
    margin-bottom: 0.75rem;
}

.product-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.product-specs li::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-feature {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-btn {
    width: 100%;
    padding: 0.625rem;
    font-size: 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.product-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.product-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Additional Equipment */
.additional-equipment {
    margin-top: 3rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.additional-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Equipment Section */
.equipment-elements {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.equipment-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.equipment-title svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--accent);
}

.equipment-grid {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .equipment-grid { grid-template-columns: repeat(3, 1fr); }
}

.equipment-grid > .equipment-card.product-style {
    width: 100%;
    min-width: 0;
}

.equipment-card {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.equipment-card.product-style {
    padding: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.equipment-card.product-style:hover {
    box-shadow: var(--shadow-lg);
}

.equipment-card.product-style .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.equipment-card.product-style .product-btn {
    margin-top: auto;
}

.equipment-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.equipment-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.equipment-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.alt-power {
    margin-top: 1.5rem;
}

.alt-power-section {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.alt-power-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.alt-power-title svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--accent);
}

.alt-power-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .alt-power-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .alt-power-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    .alt-power-grid { grid-template-columns: 1fr; }
}

.alt-power-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.alt-power-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Compact alt-power card - product-style layout without image */
.alt-power-card.compact {
    padding: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.alt-power-card.compact .alt-power-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    padding: 1.25rem;
}

.alt-power-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alt-power-icon {
    flex-shrink: 0;
}

.alt-power-icon .product-icon-wrapper.small {
    width: 1.875rem;
    height: 1.875rem;
}

.alt-power-icon .product-icon-wrapper.small svg {
    width: 1.125rem;
    height: 1.125rem;
}

.alt-power-card.compact .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.alt-power-card.compact .product-feature {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    width: 100%;
}

.alt-power-card.compact .product-btn {
    margin-top: auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.alt-power-card.compact .product-btn svg {
    width: 1rem;
    height: 1rem;
}

.alt-power-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.alt-power-item.alt-power-detailed {
    flex-direction: column;
    padding: 1rem;
}

.alt-power-detailed .icon-sm {
    margin-bottom: 0.25rem;
}

.alt-power-detail {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Analog Interfaces */
.analog-interfaces {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.analog-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.analog-title svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--accent);
}

.analog-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

@media (max-width: 768px) {
    .analog-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .analog-cards { grid-template-columns: 1fr; }
}

.analog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.analog-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Compact analog card - product-style layout without image */
.analog-card.compact {
    padding: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.analog-card.compact .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.analog-card.compact .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.analog-card.compact .product-feature {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.analog-card.compact .product-btn {
    margin-top: auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--primary);
    flex-shrink: 0;
}

.alt-power-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.alt-power-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.products-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.products-footer .footer-text {
    margin-bottom: 1rem;
}

/* Product Detail Full Screen */
.product-detail {
    display: none;
    position: fixed;
    top: 4rem; /* Header height on mobile */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 50; /* Below header */
    overflow-y: auto;
}

@media (min-width: 768px) {
    .product-detail { top: 5rem; } /* Header height on desktop */
}

.product-detail.active {
    display: block;
}

.product-detail-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

@media (min-width: 768px) {
    .product-detail-content { padding: 4rem 2rem 2rem; }
}

.product-detail-close {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 51;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .product-detail-close { top: 5.5rem; right: 1.5rem; }
}

.product-detail-close:hover {
    background: var(--gray-200);
}

.product-detail-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.product-detail-header {
    margin-bottom: 1.5rem;
}

.product-detail-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 768px) {
    .product-detail-title { font-size: 2.5rem; }
}

.product-detail-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.product-detail-section {
    margin-bottom: 2rem;
}

.product-detail-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.product-detail-specs {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    list-style: none;
}

.product-detail-specs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
}

.product-detail-specs li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-detail-highlight {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.product-detail-highlight p {
    color: var(--primary);
    font-weight: 500;
}

.product-detail-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.product-detail-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-detail-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.product-detail-footer {
    margin-top: 3rem;
}

.product-detail-extra {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.product-detail-extra p {
    margin-bottom: 0.75rem;
}

.product-detail-extra p:last-child {
    margin-bottom: 0;
}

.product-detail-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26,75,140,0.05) 100%);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-detail-image .product-image-placeholder {
    padding: 3rem;
    min-height: 200px;
}

.product-detail-image .product-image-placeholder svg {
    width: 4rem;
    height: 4rem;
}

.product-detail-image .product-image-placeholder span {
    font-size: 0.875rem;
}

/* Logo placeholder - replace div.logo-icon with your 16:9 image */
/* Example: <img src="your-logo.png" alt="Logo" style="width: auto; height: 2.5rem;"> */

/* Footer */
.footer {
    background: var(--primary);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

@media (min-width: 768px) {
    .footer { padding: 4rem 0 2rem; }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-address {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.footer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer nav a:hover {
    color: #ffffff;
}

.footer-director {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-contact:hover {
    color: #ffffff;
}

.footer-contact svg {
    width: 1rem;
    height: 1rem;
}

.product-detail-footer .footer-contact svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    z-index: 150;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-width: 600px;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
    }
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cookie-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--accent);
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
}

/* Contact Widget - ЗАКОММЕНТИРОВАНО: функционал временно отключён
.contact-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 140;
}

.contact-widget-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.contact-widget-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.contact-widget-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.widget-icon-open {
    display: none;
}

.contact-widget.active .widget-icon-closed {
    display: none;
}

.contact-widget.active .widget-icon-open {
    display: block;
}

.contact-widget-popup {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: auto;
    top: auto;
    max-height: calc(100vh - 4rem - 2rem);
    width: 360px;
    max-width: calc(100% - 2rem);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

@media (max-width: 359px) {
    .contact-widget-popup {
        bottom: 0.75rem;
        right: 0.75rem;
        left: auto;
        width: 360px;
        max-width: calc(100% - 1.5rem);
        max-height: calc(100vh - 3.5rem - 1.5rem);
        border-radius: var(--radius);
    }
}

@media (min-width: 360px) and (max-width: 767px) {
    .contact-widget-popup {
        bottom: 1rem;
        right: 1rem;
        left: auto;
        width: 360px;
        max-width: calc(100% - 2rem);
        max-height: calc(100vh - 3.5rem - 2rem);
        border-radius: var(--radius);
    }
}

@media (min-width: 768px) {
    .contact-widget-popup {
        position: absolute;
        bottom: 4.5rem;
        right: 1.5rem;
        left: auto;
        width: 360px;
        max-width: calc(100vw - 3rem);
        max-height: 70vh;
        border-radius: var(--radius-xl);
    }
}

.contact-widget.active .contact-widget-popup {
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-close {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.widget-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.widget-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.widget-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.widget-prompt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.widget-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.widget-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.widget-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.widget-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.widget-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    resize: none;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.widget-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.widget-textarea::placeholder {
    color: var(--text-secondary);
}

.widget-message {
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.widget-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: #047857;
}

.widget-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: #b91c1c;
}

.widget-submit {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
}

.widget-submit small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.widget-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.widget-footer a {
    color: var(--primary);
}

.widget-footer a:hover {
    text-decoration: underline;
}

.widget-policy {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.widget-policy a {
    color: var(--primary);
}

.widget-policy a:hover {
    text-decoration: underline;
}
*/

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-close {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.modal-body li {
    margin-bottom: 0.25rem;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Product Filter Styles */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 2.875rem;
}

.filter-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.filter-toggle .icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--primary);
}

.filter-toggle .icon.arrow {
    stroke: var(--text-secondary);
    transition: transform 0.3s ease;
}

.filter-toggle.active .icon.arrow {
    transform: rotate(180deg);
}

/* Products Toolbar */
.products-toolbar {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Products Search */
.products-search {
    flex: 1;
    min-width: 200px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    gap: 0.25rem;
    height: 100%;
    min-height: 2.875rem;
}

.search-box {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
}

.search-box::placeholder {
    color: var(--text-secondary);
}

.search-icon,
.clear-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.clear-button {
    display: none;
}

.search-icon:hover,
.clear-button:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.search-icon svg,
.clear-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Documents Button */
.docs-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid #ef4444;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 2.875rem;
}

.docs-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.docs-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--primary);
}

/* Documents Modal */
.docs-modal {
    max-width: 36rem;
}

.docs-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.doc-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateX(0.25rem);
}

.doc-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--primary);
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.doc-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.doc-download-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.doc-download-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Pagination Toolbar */
.pagination-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pagination-toolbar-middle {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.pagination-toolbar-bottom {
    margin-bottom: 2rem;
    margin-top: 0;
}

.display-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.display-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.items-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn svg {
    width: 1rem;
    height: 1rem;
}

.product-filter {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    border: 1px solid var(--border-color);
}

.product-filter.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    margin-bottom: 0;
    opacity: 0;
    border: none;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-reset {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-reset:hover {
    background: var(--primary);
    color: #ffffff;
}

.filter-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-results {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-products p {
    margin-bottom: 1rem;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-footer {
    margin-top: 2rem;
    text-align: center;
}

.news-footer .footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   MOBILE 320px ADAPTATION (iPhone 5, SE)
   ============================================ */
@media (max-width: 359px) {
    /* Container - уменьшить отступы */
    .container {
        padding: 0 0.75rem;
    }

    /* Header - адаптировать высоту и элементы */
    .header-content {
        height: 3.5rem;
    }

    .logo {
        height: 100%;
    }

    .logo-image {
        height: 100%;
    }

    .theme-toggle {
        width: 1.75rem;
        height: 1.75rem;
    }

    .theme-toggle svg {
        width: 1rem;
        height: 1rem;
    }

    .lang-switcher {
        gap: 0.125rem;
    }

    .lang-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }

    .phone-block .phone-director {
        font-size: 0.625rem;
    }

    .phone-block .phone-link {
        font-size: 0.75rem;
    }

    .phone-block .icon {
        width: 1rem;
        height: 1rem;
    }

    .header-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Mobile menu */
    .mobile-menu {
        top: 3.5rem;
    }

    @media (min-width: 768px) {
        .mobile-menu {
            top: 3.5rem;
        }
    }

    .mobile-nav-link {
        font-size: 1rem;
    }

    .mobile-phone {
        font-size: 1rem;
    }

    /* Hero section */
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 4rem 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-indicator svg {
        width: 2rem;
        height: 2rem;
    }

    /* Section */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    /* Badge */
    .badge {
        padding: 0.25rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* About section */
    .about-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .feature-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .feature-title {
        font-size: 0.9375rem;
    }

    .feature-desc {
        font-size: 0.8125rem;
    }

    .text-lg {
        font-size: 1rem;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .advantage-card {
        padding: 1rem;
    }

    .advantage-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .advantage-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .advantage-title {
        font-size: 1.0625rem;
    }

    .advantage-desc {
        font-size: 0.875rem;
    }

    .footer-highlight {
        font-size: 0.9375rem;
    }

    .footer-text {
        font-size: 0.8125rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        border-radius: var(--radius);
    }

    .product-image {
        height: 8rem;
    }

    .product-image.small {
        height: 5rem;
    }

    .product-content {
        padding: 1rem;
    }

    .product-model {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.5rem;
    }

    .product-name {
        font-size: 0.9375rem;
    }

    .product-specs li {
        font-size: 0.8125rem;
    }

    .product-feature {
        font-size: 0.8125rem;
    }

    .product-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Products Toolbar & Search */
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-search {
        min-width: 100%;
    }

    .search-bar {
        padding: 0.375rem;
    }

    .search-box {
        font-size: 0.8125rem;
        padding: 0.375rem;
    }

    .search-icon,
    .clear-button {
        width: 1.75rem;
        height: 1.75rem;
    }

    /* Pagination Toolbar */
    .pagination-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .pagination-toolbar-middle {
        margin-bottom: 0.75rem;
        margin-top: 0.75rem;
    }

    .pagination-toolbar-bottom {
        margin-bottom: 1.5rem;
        margin-top: 0;
    }

    .display-section {
        justify-content: center;
    }

    .page-select {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }

    .page-nav {
        justify-content: center;
    }

    .nav-btn {
        width: 1.75rem;
        height: 1.75rem;
    }

    .nav-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    /* Filter */
    .filter-toggle {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .filter-toggle .icon {
        width: 1.125rem;
        height: 1.125rem;
    }

    /* Documents Button Mobile */
    .docs-btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .docs-btn .icon {
        width: 1.125rem;
        height: 1.125rem;
    }

    .product-filter {
        padding: 1rem;
    }

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

    .filter-label {
        font-size: 0.6875rem;
    }

    .filter-select {
        padding: 0.4375rem 0.625rem;
        font-size: 0.8125rem;
    }

    /* Equipment */
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-card {
        padding: 0.875rem;
    }

    .equipment-name {
        font-size: 0.875rem;
    }

    .equipment-desc {
        font-size: 0.8125rem;
    }

    /* Alt power */
    .alt-power-grid {
        grid-template-columns: 1fr;
    }

    .alt-power-card {
        border-radius: var(--radius);
    }

    .alt-power-item {
        padding: 0.625rem;
    }

    /* Analog interfaces */
    .analog-cards {
        grid-template-columns: 1fr;
    }

    .analog-card {
        border-radius: var(--radius);
    }

    /* Additional equipment */
    .additional-equipment {
        padding: 0.875rem;
        margin-top: 2rem;
    }

    .additional-title {
        font-size: 1.0625rem;
    }

    .equipment-title {
        font-size: 0.9375rem;
    }

    .analog-title {
        font-size: 0.9375rem;
    }

    /* Product detail */
    .product-detail {
        top: 3.5rem;
    }

    @media (min-width: 768px) {
        .product-detail {
            top: 3.5rem;
        }
    }

    .product-detail-content {
        padding: 2rem 0.75rem 1.5rem;
    }

    .product-detail-close {
        top: 4rem;
        right: 0.75rem;
        width: 2.25rem;
        height: 2.25rem;
    }

    .product-detail-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-detail-desc {
        font-size: 0.9375rem;
    }

    .product-detail-section-title {
        font-size: 1.0625rem;
    }

    .product-detail-specs {
        padding: 1rem;
    }

    .product-detail-specs li {
        font-size: 0.8125rem;
        padding: 0.375rem 0;
    }

    .product-detail-highlight {
        padding: 0.75rem 1rem;
    }

    .app-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    .product-detail-extra {
        padding: 1rem;
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-name {
        font-size: 1.0625rem;
    }

    .footer-desc {
        font-size: 0.8125rem;
    }

    .footer-address {
        font-size: 0.6875rem;
    }

    .footer h4 {
        font-size: 1rem;
    }

    .footer nav a {
        font-size: 0.8125rem;
    }

    .footer-director {
        font-size: 0.6875rem;
    }

    .footer-contact {
        font-size: 0.8125rem;
    }

    .footer-contact svg {
        width: 1rem;
        height: 1rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    /* Cookie banner */
    .cookie-banner {
        bottom: 4.5rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .cookie-content {
        padding: 0.875rem;
    }

    .cookie-text h4 {
        font-size: 0.8125rem;
    }

    .cookie-text p {
        font-size: 0.75rem;
    }

    /* Contact widget - ЗАКОММЕНТИРОВАНО
    .contact-widget {
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .contact-widget-btn {
        width: 3rem;
        height: 3rem;
    }

    .contact-widget-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .contact-widget-popup {
        border-radius: var(--radius);
    }

    .widget-header {
        padding: 0.875rem 1rem;
    }

    .widget-header h3 {
        font-size: 0.9375rem;
    }

    .widget-body {
        padding: 1rem;
    }

    .widget-prompt {
        font-size: 0.8125rem;
    }

    .widget-label {
        font-size: 0.8125rem;
    }

    .widget-input,
    .widget-textarea {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .widget-submit {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .widget-submit small {
        font-size: 0.6875rem;
    }

    .widget-footer {
        font-size: 0.75rem;
    }

    .widget-policy {
        font-size: 0.6875rem;
    }
    */

    /* Modal */
    .modal {
        padding: 0.5rem;
    }

    .modal.active {
        padding: 1rem 0.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.0625rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-body h3 {
        font-size: 0.9375rem;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.8125rem;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        padding: 1rem;
    }

    .news-date {
        font-size: 0.6875rem;
    }

    .news-title {
        font-size: 0.9375rem;
    }

    .news-excerpt {
        font-size: 0.8125rem;
    }
}
