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

:root {
    --bg: #2b2b2b;
    --bg-dark: #222222;
    --bg-nav: #333333;
    --red: #e2001a;
    --white: #ffffff;
    --text-muted: #aaaaaa;
    --border: #444444;
    --font: Arial, Helvetica, sans-serif;
}

html {
    zoom: 1.25;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── XR Banner ── */
.xr-banner {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.xr-banner__qr {
    width: 120px;
    height: 120px;
}

.xr-banner__video {
    width: 288px;
    height: 162px;
    border: none;
}

.xr-banner__text {
    font-size: 16px;
    color: var(--white);
    font-weight: bold;
}

/* ── Header ── */
.site-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

/* ── Logo ── */
.logo {
    margin-left: 30px;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.logo-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-tagline {
    font-size: 12px;
    color: var(--white);
    font-style: italic;
}

/* ── Nav ── */
.main-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item a {
    display: block;
    padding: 18px 14px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.5px;
    transition: background 0.15s;
}

.nav-item a:hover {
    background-color: var(--border);
}

.nav-item.active a {
    background-color: var(--red);
    color: var(--white);
}

.flag-icon {
    width: 22px;
    height: auto;
    vertical-align: middle;
}

/* ── Search ── */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 5px 8px;
    font-size: 13px;
    width: 140px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--border);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 5px 8px;
    cursor: pointer;
    font-size: 13px;
}

.search-btn:hover {
    background: var(--red);
}

/* ── Main ── */
.site-main {
    flex: 1;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb-sep {
    margin: 0 4px;
}

/* ── Page title bar ── */
.page-title-bar {
    width: 40px;
    height: 3px;
    background-color: var(--red);
    margin-bottom: 10px;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* ── Product grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--red);
}

.product-card__image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.product-card__image img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.product-card__name {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    color: var(--white);
}

/* ── Product detail ── */
.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.product-qr-code {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.action-icons {
    display: flex;
    gap: 10px;
    font-size: 22px;
    color: var(--text-muted);
    padding-top: 4px;
}

.product-series {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.action-icon {
    cursor: pointer;
}

.action-icon:hover {
    color: var(--white);
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    min-height: 340px;
}

.product-detail-features {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
}

.feature-list {
    list-style: none;
}

.feature-list__item {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--red);
}

.feature-list__item::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 9px;
    color: var(--red);
    line-height: 1.8;
}

.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background-color: var(--white);
}

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

/* ── Tab bar ── */
.tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    transition:
        background 0.15s,
        border-color 0.15s;
}

.tab-btn:hover {
    border-color: var(--white);
}

.tab-btn--active {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ── Tab panels ── */
.tab-panel {
    display: none;
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
}

.tab-panel--active {
    display: block;
}

.tab-description-text {
    max-width: 700px;
}

/* ── Footer ── */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col--contacts address {
    font-style: normal;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col--contacts address p {
    margin-bottom: 8px;
}

.footer-col--legal ul li a {
    font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-main {
        grid-template-columns: 1fr;
    }

    .product-detail-features {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-list {
        flex-wrap: wrap;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
