* {
    box-sizing: border-box;
}

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

html,
body {
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0 auto;
    min-height: 100vh;
    max-width: 1120px;
    padding: 18px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #f1f5f9;
    line-height: 1.5;
    font-size: 12px;
}

.header-banner {
    text-align: center;
    position: relative;
    left: 0;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    border-bottom: 3px solid #00FF00;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: 10px;
}

.header-title {
    margin: 0;
    font-size: 20pt;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-title img {
    display: block;
    width: min(100%, 380px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.header-subtitle {
    margin: 5px 0 0 0;
    font-size: 11pt;
    color: #00ff00;
    font-weight: 600;
    letter-spacing: 1px;
}

.intro {
    margin-bottom: 25px;
    font-size: 10.5pt;
    color: #94a3b8;
    border-left: 3px solid #00FF00;
    padding-left: 10px;
    line-height: 1.5;
}

.catalog-menu {
    position: sticky;
    top: 18px;
    z-index: 30;
    width: 100%;
    margin: 0 0 22px;
    padding: 12px 18px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.catalog-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

.catalog-menu ul::-webkit-scrollbar {
    height: 7px;
}

.catalog-menu ul::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-menu ul::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.catalog-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.catalog-menu a:hover,
.catalog-menu a:focus-visible {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.catalog-menu a.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(16, 185, 129, 0.95));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(0, 255, 0, 0.2);
}

.product-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.product-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.product-header > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}

.product-title {
    margin: 0;
    font-size: 12pt;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
    line-height: 1.2;
}

.product-meta {
    color: #00ff00;
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    line-height: 1.3;
}

.price-tag {
    background-color: #1a991a;
    color: #faf1f1;
    font-weight: 800;
    font-size: 13pt;
    padding: 4px 12px;
    border-radius: 4px;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    white-space: nowrap;
    align-self: flex-start;
}

.price-tag .price-value {
    position: relative;
    right: 10%;
}

.spec-grid {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr;
    gap: 6px 12px;
    margin-top: 8px;
    color: #cbd5e1;
}

.spec-label {
    color: #94a3b8;
    font-weight: 700;
}

.product-gallery {
    position: relative;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #111827;
    touch-action: pan-y;
}

.gallery-track {
    display: flex;
    transition: transform 0.35s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px;
    background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.96), rgba(17, 24, 39, 0.65));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.gallery-slide img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.92);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-slide img.loaded {
    opacity: 1;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0));
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s linear infinite;
    pointer-events: none;
}

@keyframes skeleton-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 255, 0, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.gallery-button:hover {
    background: rgba(0, 255, 0, 0.28);
}

.gallery-button.prev {
    left: 12px;
}

.gallery-button.next {
    right: 12px;
}

.gallery-dots {
    text-align: center;
    padding: 10px 0 8px;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: transparent;
    margin: 0 4px;
    cursor: pointer;
}

.gallery-indicator.current-slide {
    background: #00ff00;
    border-color: #00ff00;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-overlay.open {
    display: flex;
}

.modal-overlay img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

@media (min-width: 769px) {
    body {
        padding: 24px 28px 32px;
    }

    .intro {
        padding-left: 12px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 18px;
    }

    .header-banner {
        padding: 0;
        text-align: center;
    }

    .header-title {
        font-size: 18pt;
    }

    .header-subtitle {
        font-size: 10pt;
    }

    .spec-grid {
        grid-template-columns: 100px 1fr;
    }

    .product-title {
        font-size: 14px;
    }

    .gallery-button {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .product-card {
        padding: 12px;
    }

    .product-title {
        font-size: 12pt;
    }

    .spec-label {
        font-size: 9pt;
    }

    .gallery-button {
        width: 32px;
        height: 32px;
    }
}
