:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --accent-yellow: #FFD700;
    --text-light: #f5f5f5;
    --border-color: rgba(255, 215, 0, 0.15);
}

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

@font-face {
    font-family: 'Namu';
    src: url('NAMU-1910.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Namu', 'Georgia', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION - MOBILE FIRST
   ======================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1001;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(1.1);
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

/* Mobile: Burger Menu */
.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile: Navigation Links */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1000;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* Mobile: Right Controls */
.nav-right {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.lang-switcher {
    position: relative;
}

.lang-current {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    font-family: 'Namu', serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.lang-current:hover {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
}

.lang-current::after {
    content: '▼';
    font-size: 0.5rem;
    transition: transform 0.3s ease;
}

.lang-switcher.active .lang-current::after {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-width: 80px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.lang-switcher.active .lang-dropdown {
    display: flex;
}

.lang-btn {
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    font-family: 'Namu', serif;
    text-align: left;
    text-transform: uppercase;
}

.lang-btn:last-child {
    border-bottom: none;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-yellow);
    color: var(--bg-dark);
}

.cart-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Namu', serif;
    font-size: 0.65rem;
    white-space: nowrap;
}

.cart-btn:hover {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

/* ========================================
   HERO SECTION - MOBILE FIRST
   ======================================== */

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1rem;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* ========================================
   PRODUCTS SECTION - MOBILE FIRST
   ======================================== */

.products {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(245, 245, 245, 0.6);
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.product-image-icon {
    font-size: 4rem;
    color: var(--accent-yellow);
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.product-info {
    padding: 2rem 1.5rem;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.product-badge.stock {
    background: transparent;
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
}

.product-info h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.product-specs {
    list-style: none;
    margin: 1.5rem 0;
}

.product-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spec-label {
    color: rgba(245, 245, 245, 0.5);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.spec-value {
    color: var(--text-light);
    font-weight: 500;
    text-align: right;
    font-size: 0.82rem;
}

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

.product-price {
    font-size: 1.8rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.add-to-cart-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-family: 'Namu', serif;
    font-size: 0.85rem;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
}

/* ========================================
   COMPARISON SECTION - MOBILE FIRST
   ======================================== */

.comparison {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.comparison-toggle {
    text-align: center;
    margin-bottom: 3rem;
}

.toggle-btn {
    padding: 1.2rem 2.5rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Namu', serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.toggle-btn:hover {
    transform: scale(1.02);
}

/* OLD comparison-table styles removed - now using V2.2+ styles below */

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

th {
    background: rgba(255, 215, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* ========================================
   CODIFICATION SECTION - MOBILE FIRST
   ======================================== */

.codification {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    border-top: 2px solid var(--accent-yellow);
    border-bottom: 2px solid var(--accent-yellow);
    position: relative;
    overflow: hidden;
}

.codification::before {
    content: 'NATO';
    position: absolute;
    top: 50%;
    right: -3rem;
    transform: translateY(-50%) rotate(90deg);
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.03);
    letter-spacing: 15px;
    z-index: 0;
}

.codification-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.codification-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.codification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.codification-card:hover::before {
    transform: scaleX(1);
}

.codification-card:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.card-number {
    font-size: 3rem;
    color: var(--accent-yellow);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.card-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card-description {
    font-size: 1rem;
    color: rgba(245, 245, 245, 0.7);
    line-height: 1.7;
}

/* ========================================
   CONTACT SECTION - MOBILE FIRST
   ======================================== */

.contact {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: 'Namu', serif;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

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

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Namu', serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.02);
}

/* ========================================
   CART MODAL - MOBILE FIRST
   ======================================== */

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.cart-modal.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0.5rem;
}

.close-cart:hover {
    color: var(--accent-yellow);
    transform: rotate(90deg);
}

.cart-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin: 0.8rem 0;
}

.cart-item-remove {
    padding: 0.7rem 1.3rem;
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #ff4444;
    color: white;
}

.cart-total {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--accent-yellow);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
}

.cart-total-price {
    color: var(--accent-yellow);
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Namu', serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: scale(1.02);
}

.empty-cart {
    text-align: center;
    padding: 4rem 0;
    color: rgba(245, 245, 245, 0.5);
    font-size: 1.1rem;
}

/* ========================================
   FOOTER - MOBILE FIRST
   ======================================== */

footer {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(245, 245, 245, 0.6);
    line-height: 2;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: rgba(245, 245, 245, 0.4);
    font-size: 0.85rem;
}

/* ========================================
   EASTER EGGS - RESPONSIVE
   ======================================== */

body.thermal-vision {
    filter: hue-rotate(90deg) saturate(3);
}

.thermal-hud {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem;
    border: 3px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    z-index: 10000;
    display: none;
    line-height: 1.6;
}

body.thermal-vision .thermal-hud {
    display: block;
}

#droneGame {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: none;
}

#droneGame.active {
    display: block;
}

.game-hud {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--accent-yellow);
    font-size: 1.5rem;
    z-index: 10001;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px var(--accent-yellow);
    display: none;
}

#droneGame.active + .game-hud {
    display: block;
}

.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    display: none;
}

body.matrix-mode .matrix-canvas {
    display: block;
}

.tactical-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.tactical-hud.active {
    display: block;
}

.hud-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-yellow);
}

.hud-corner.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.hud-corner.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.hud-corner.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.hud-crosshair::before,
.hud-crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent-yellow);
}

.hud-crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.hud-crosshair::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.hud-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-yellow);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 10px var(--accent-yellow);
    padding: 0 1rem;
}

.ghost-demo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ghost-demo.active {
    display: flex;
}

.ghost-demo-content {
    text-align: center;
    padding: 0 1.5rem;
}

.ghost-demo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   ПОРІВНЯЛЬНА ТАБЛИЦЯ - ПОВНІ СТИЛІ
   ======================================== */

.comparison-section {
    padding: 4rem 2rem;
    background: #0a0a0a;
    max-width: 1400px;
    margin: 4rem auto;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Фільтри категорій */
.comparison-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    font-family: 'Namu', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FFD700;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* Wrapper для scroll */
.comparison-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 8px;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

/* Таблиця */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead {
    background: #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-family: 'Namu', sans-serif;
    font-size: 0.75rem;
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.comparison-table th.sticky-col {
    position: sticky;
    left: 0;
    z-index: 11;
    background: #2a2a2a;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    max-width: 200px;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid #333;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.comparison-table tbody tr.hidden {
    display: none;
}

.comparison-table td {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.comparison-table td.sticky-col {
    position: sticky;
    left: 0;
    background: #1a1a1a;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.4);
    z-index: 1;
    font-weight: 600;
    min-width: 160px;
    max-width: 200px;
    white-space: normal;
}

.comparison-table tbody tr:hover td.sticky-col {
    background: #1f1f1a;
}

/* Назва продукту з NATO badge */
.product-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nato-badge-table {
    background: #FFD700;
    color: #0a0a0a;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Категорія */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-badge.uav {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.category-badge.ew {
    background: rgba(100, 200, 255, 0.15);
    color: #64C8FF;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

/* Виділення найкращих показників */
.best-value {
    color: #4CAF50;
    font-weight: 600;
    position: relative;
}

.best-value::before {
    content: '★';
    margin-right: 0.3rem;
    color: #FFD700;
}

/* Пусті комірки */
.empty-cell {
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Ціна */
.price-cell {
    font-weight: 700;
    color: #FFD700;
    white-space: nowrap;
}

.price-request {
    color: #999;
    font-style: italic;
}

/* NATO check */
.nato-check {
    color: #4CAF50;
    font-weight: 600;
}

/* Кнопка показати/сховати */
.show-table-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    font-family: 'Namu', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.show-table-btn:hover {
    background: #FFD700;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* ========================================
   TABLET BREAKPOINT (768px+)
   ======================================== */

@media (min-width: 768px) {
    /* Navigation */
    nav {
        padding: 1.2rem 2.5rem;
    }

    .logo-img {
        height: 50px;
    }

    .burger-menu {
        display: none;
    }

    .nav-overlay {
        display: none !important;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
        flex-direction: row;
        gap: 1.2rem;
        overflow: visible;
    }

    .nav-links a {
        padding: 0;
        border: none;
        font-size: 0.7rem;
        position: relative;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-yellow);
        transition: width 0.3s ease;
    }

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

    .cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    /* Hero */
    .hero {
        padding: 6rem 2.5rem 5rem;
    }

    .hero-badge {
        padding: 0.7rem 1.8rem;
        font-size: 0.7rem;
        margin-bottom: 2.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
        letter-spacing: 1.5px;
    }

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 3.5rem;
    }

    .cta-button {
        padding: 1.5rem 3.5rem;
        font-size: 0.95rem;
        width: auto;
    }

    /* Products */
    .products {
        margin: 6rem auto;
        padding: 0 2.5rem;
    }

    .section-header {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }

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

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

    .product-image {
        height: 280px;
    }

    .product-image::before {
        width: 180px;
        height: 180px;
    }

    .product-image-icon {
        font-size: 4.5rem;
    }

    .product-info {
        padding: 2.5rem 2rem;
    }

    .product-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }

    .product-info h3 {
        font-size: 1.75rem;
    }

    .product-specs li {
        padding: 0.55rem 0;
        font-size: 0.82rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .spec-value {
        font-size: 0.85rem;
    }

    .product-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .product-price {
        font-size: 2rem;
    }

    .add-to-cart-btn {
        width: auto;
        padding: 1.1rem 2.2rem;
        font-size: 0.9rem;
    }

    /* Comparison */
    .comparison {
        margin: 6rem auto;
        padding: 0 2.5rem;
    }

    .comparison-toggle {
        margin-bottom: 3.5rem;
    }

    .toggle-btn {
        padding: 1.4rem 3.5rem;
        font-size: 0.95rem;
        width: auto;
    }

    .comparison-table {
        padding: 2.5rem;
    }

    th, td {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    th {
        font-size: 0.85rem;
    }

    /* Comparison Table */
    .comparison-section {
        padding: 5rem 2.5rem;
        margin: 6rem auto;
    }

    .comparison-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .comparison-filters {
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1.2rem 0.9rem;
        font-size: 0.9rem;
    }

    .comparison-table th {
        font-size: 0.8rem;
    }

    .show-table-btn {
        padding: 0.85rem 2.5rem;
        font-size: 0.9rem;
    }

    /* Codification */
    .codification {
        margin: 6rem auto;
        padding: 4rem 2.5rem;
    }

    .codification::before {
        font-size: 8rem;
        right: -4rem;
        letter-spacing: 20px;
    }

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

    .codification-card {
        padding: 3rem 2rem;
    }

    .card-number {
        font-size: 3.5rem;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .card-description {
        font-size: 1.05rem;
    }

    /* Contact */
    .contact {
        margin: 6rem auto;
        padding: 0 2.5rem;
    }

    .contact-form {
        padding: 3.5rem 2.5rem;
    }

    .form-group {
        margin-bottom: 2.3rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1.3rem;
        font-size: 1rem;
    }

    .form-group textarea {
        min-height: 180px;
    }

    .submit-btn {
        padding: 1.7rem;
        font-size: 1rem;
    }

    /* Cart Modal */
    .cart-modal {
        width: 550px;
        padding: 2.5rem 2rem;
    }

    .cart-header {
        margin-bottom: 2.8rem;
    }

    .cart-header h2 {
        font-size: 2.3rem;
    }

    .close-cart {
        font-size: 2.8rem;
    }

    .cart-item {
        padding: 1.8rem 0;
    }

    .cart-item-name {
        font-size: 1.25rem;
    }

    .cart-item-price {
        font-size: 1.4rem;
    }

    .cart-item-remove {
        padding: 0.75rem 1.4rem;
        font-size: 0.8rem;
    }

    .cart-total-row {
        font-size: 1.7rem;
    }

    .checkout-btn {
        padding: 1.7rem;
        font-size: 1rem;
    }

    .empty-cart {
        padding: 4.5rem 0;
        font-size: 1.15rem;
    }

    /* Footer */
    footer {
        margin: 6rem auto 0;
        padding: 4rem 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .footer-section h4 {
        font-size: 1.4rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 1rem;
    }

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

    /* Easter Eggs */
    .thermal-hud {
        top: 25px;
        right: 25px;
        padding: 1.8rem;
        font-size: 1rem;
    }

    .game-hud {
        top: 25px;
        left: 25px;
        font-size: 1.8rem;
    }

    .hud-corner {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .hud-corner.top-left { top: 25px; left: 25px; }
    .hud-corner.top-right { top: 25px; right: 25px; }
    .hud-corner.bottom-left { bottom: 25px; left: 25px; }
    .hud-corner.bottom-right { bottom: 25px; right: 25px; }

    .hud-crosshair {
        width: 70px;
        height: 70px;
    }

    .hud-crosshair::before,
    .hud-crosshair::after {
        height: 3px;
        width: 3px;
    }

    .hud-info {
        bottom: 50px;
        font-size: 1.1rem;
    }

    .ghost-demo-content h2 {
        font-size: 3.5rem;
    }
}

/* ========================================
   DESKTOP BREAKPOINT (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    /* Navigation */
    nav {
        padding: 1.2rem 3rem;
    }

    .logo-img {
        height: 55px;
    }

    .nav-links {
        gap: 1.8rem;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 10rem 3rem 8rem;
    }

    .hero-badge {
        padding: 0.8rem 2rem;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 5rem;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 1.3rem;
        margin-bottom: 4rem;
    }

    .cta-button {
        padding: 1.8rem 4rem;
        font-size: 1rem;
    }

    /* Products */
    .products {
        margin: 8rem auto;
        padding: 0 3rem;
    }

    .section-header {
        margin-bottom: 5rem;
    }

    .section-title {
        font-size: 4rem;
        letter-spacing: 4px;
    }

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

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 3rem;
    }

    .product-image {
        height: 300px;
    }

    .product-image::before {
        width: 200px;
        height: 200px;
    }

    .product-image-icon {
        font-size: 5rem;
    }

    .product-info {
        padding: 3rem;
    }

    .product-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
        margin-bottom: 2rem;
    }

    .product-info h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .product-specs {
        margin: 2rem 0;
    }

    .product-specs li {
        padding: 0.6rem 0;
        font-size: 0.85rem;
    }

    .spec-label {
        font-size: 0.72rem;
    }

    .spec-value {
        font-size: 0.88rem;
    }

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

    .product-price {
        font-size: 2.2rem;
    }

    .add-to-cart-btn {
        padding: 1.2rem 2.5rem;
        font-size: 0.9rem;
    }

    /* Comparison */
    .comparison {
        margin: 8rem auto;
        padding: 0 3rem;
    }

    .comparison-toggle {
        margin-bottom: 4rem;
    }

    .toggle-btn {
        padding: 1.5rem 4rem;
        font-size: 1rem;
    }

    .comparison-table {
        padding: 3rem;
    }

    th, td {
        padding: 2rem;
        font-size: 1rem;
    }

    th {
        font-size: 0.9rem;
    }

    /* Comparison Table */
    .comparison-section {
        padding: 6rem 3rem;
        margin: 8rem auto;
    }

    .comparison-section h2 {
        font-size: 3rem;
        margin-bottom: 3rem;
        letter-spacing: 3px;
    }

    .comparison-filters {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .filter-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }

    .comparison-table th {
        font-size: 0.85rem;
    }

    .nato-badge-table {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .category-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }

    .show-table-btn {
        padding: 1rem 3rem;
        font-size: 0.95rem;
    }

    /* Codification */
    .codification {
        margin: 8rem auto;
        padding: 6rem 3rem;
    }

    .codification::before {
        font-size: 12rem;
        right: -5rem;
        letter-spacing: 30px;
    }

    .codification-grid {
        gap: 3rem;
    }

    .codification-card {
        padding: 4rem;
    }

    .card-number {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .card-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
    }

    .card-description {
        font-size: 1.15rem;
        line-height: 1.9;
    }

    /* Contact */
    .contact {
        margin: 8rem auto;
        padding: 0 3rem;
    }

    .contact-form {
        padding: 5rem;
    }

    .form-group {
        margin-bottom: 2.5rem;
    }

    .form-group label {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .form-group textarea {
        min-height: 200px;
    }

    .submit-btn {
        padding: 2rem;
        font-size: 1.1rem;
    }

    /* Cart Modal */
    .cart-modal {
        width: 600px;
        padding: 3rem;
    }

    .cart-header {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    .cart-header h2 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .close-cart {
        font-size: 3rem;
    }

    .cart-item {
        padding: 2rem 0;
    }

    .cart-item-name {
        font-size: 1.3rem;
    }

    .cart-item-price {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .cart-item-remove {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .cart-total {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .cart-total-row {
        font-size: 2rem;
    }

    .checkout-btn {
        padding: 2rem;
        font-size: 1.1rem;
        margin-top: 2rem;
    }

    .empty-cart {
        padding: 5rem 0;
        font-size: 1.2rem;
    }

    /* Footer */
    footer {
        margin: 8rem auto 0;
        padding: 5rem 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 5rem;
        margin-bottom: 4rem;
    }

    .footer-section h4 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 1rem;
        line-height: 2;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-top: 3rem;
        font-size: 0.95rem;
    }

    /* Easter Eggs */
    .thermal-hud {
        top: 30px;
        right: 30px;
        padding: 2rem;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .game-hud {
        top: 30px;
        left: 30px;
        font-size: 2rem;
    }

    .hud-corner {
        width: 150px;
        height: 150px;
    }

    .hud-corner.top-left { top: 30px; left: 30px; }
    .hud-corner.top-right { top: 30px; right: 30px; }
    .hud-corner.bottom-left { bottom: 30px; left: 30px; }
    .hud-corner.bottom-right { bottom: 30px; right: 30px; }

    .hud-crosshair {
        width: 80px;
        height: 80px;
    }

    .hud-info {
        bottom: 60px;
        font-size: 1.2rem;
    }

    .ghost-demo-content h2 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
}

/* ========================================
   LARGE DESKTOP (1440px+)
   ======================================== */

@media (min-width: 1440px) {
    .nav-links {
        gap: 2.2rem;
    }

    .hero h1 {
        font-size: 5.5rem;
    }

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

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    }

    .comparison-table {
        /* min-width removed - dynamic columns */
    }
}

/* ========================================
   EXTRA SMALL DEVICES (max 375px)
   ======================================== */

@media (max-width: 375px) {
    nav {
        padding: 1rem 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .hero {
        padding: 3rem 1rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

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

    .product-info h3 {
        font-size: 1.3rem;
    }

    .cart-header h2 {
        font-size: 1.75rem;
    }

    .comparison-section h2 {
        font-size: 1.5rem;
    }

    .comparison-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .comparison-table th.sticky-col {
        min-width: 140px;
    }

    .show-table-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   RESPONSIVE: COMPARISON TABLE
   ======================================== */

@media (max-width: 768px) {
    .comparison-section {
        padding: 3rem 1rem;
        margin: 3rem auto;
    }

    .comparison-table {
        /* min-width removed - dynamic columns */
    }
}

@media (max-width: 480px) {
    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }

    .nato-badge-table {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    header,
    .cart-btn,
    .cta-button,
    .add-to-cart-btn,
    .burger-menu,
    footer,
    .comparison-filters,
    .show-table-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .product-card,
    .comparison-table {
        page-break-inside: avoid;
    }

    .comparison-table-wrapper {
        overflow: visible;
    }
}