:root {
    --bg: #07111f;
    --bg-soft: #0d1b2a;
    --panel: #10243c;
    --text: #f3f7fb;
    --muted: #b9c7d6;
    --accent: #f1c40f;
    --accent-dark: #d4ac0d;
    --line: rgba(255, 255, 255, 0.1);
    --success: #1f9d55;
    --danger: #dc3545;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg, #06101c 0%, #0d1b2a 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.16);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    color: var(--muted);
    font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--accent);
}

.cart-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #05101a;
    font-size: 0.85rem;
    margin-left: 6px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
}

.hero {
    padding: 72px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-card,
.section-card,
.product-card,
.info-card,
.cart-card,
.form-card {
    background: rgba(16, 36, 60, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 34px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.section-intro {
    color: var(--muted);
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.mini-info-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
}

.mini-info-card strong,
.info-row-card strong,
.review-content h3 {
    display: block;
    margin-bottom: 8px;
}

.mini-info-card span {
    color: var(--muted);
}

.btn,
button,
input[type="submit"] {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #07111f;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.badges,
.stat-list,
.policy-list,
.highlight-list,
.product-meta,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge,
.stat-item,
.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-media img,
.page-hero img,
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.section {
    padding: 22px 0 56px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.grid-3,
.grid-2,
.products-grid,
.footer-grid,
.info-grid,
.checkout-grid,
.product-layout {
    display: grid;
    gap: 22px;
}

.review-grid,
.stack-list {
    display: grid;
    gap: 22px;
}

.grid-3,
.products-grid,
.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.info-grid,
.checkout-grid,
.product-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-list {
    grid-template-columns: 1fr;
}

.page-hero {
    padding: 44px 0 18px;
}

.page-hero-box {
    padding: 28px;
}

.product-card {
    overflow: hidden;
}

.review-card {
    overflow: hidden;
    background: rgba(16, 36, 60, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.review-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-content,
.info-card,
.cart-card,
.form-card,
.section-card {
    padding: 22px;
}

.review-content,
.info-row-card {
    padding: 20px;
}

.price {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 10px 0;
}

.old-price {
    color: var(--muted);
}

.highlight-list {
    flex-direction: column;
}

.highlight-list .info-card,
.policy-stack .info-card {
    background: rgba(255,255,255,0.03);
}

.info-row-card,
.promo-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.info-row-card p,
.review-content p {
    margin: 0;
    color: var(--muted);
}

.contact-feature-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.promo-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.promo-panel h2,
.review-content h3 {
    margin-top: 0;
}

.product-layout {
    align-items: start;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.product-gallery img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 12px 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 14px;
}

.flash-message {
    background: var(--success);
    color: white;
    padding: 12px 0;
}

.notice,
.empty-state {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
}

.site-footer {
    padding: 24px 0 36px;
    background: rgba(0,0,0,0.22);
    border-top: 1px solid var(--line);
}

.site-footer h3 {
    margin-top: 0;
}

.site-footer a,
.site-footer p {
    display: block;
    color: var(--muted);
    margin: 0 0 10px;
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 920px) {
    .hero-grid,
    .grid-3,
    .grid-2,
    .products-grid,
    .review-grid,
    .footer-grid,
    .info-grid,
    .checkout-grid,
    .product-layout {
        grid-template-columns: 1fr;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .promo-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #0d1b2a;
        border: 1px solid var(--line);
        border-radius: 18px;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }
}
