/* ============================================
   PINBALL PASSION — Design System v3
   Premium Retro Gaming · Dark Red / Cream / Black
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
    /* --- Palette: Dark Red + Warm Cream --- */
    --bg: #0c0c0c;
    --bg-raised: #131315;
    --bg-surface: #181819;
    --bg-hover: #1e1e20;
    --bg-glass: rgba(12,12,12,0.92);

    --red: #b91c1c;
    --red-hover: #991b1b;
    --red-light: #dc2626;
    --red-glow: rgba(185,28,28,0.25);
    --red-glow-strong: rgba(185,28,28,0.45);
    --red-tint: rgba(185,28,28,0.07);
    --red-tint-hover: rgba(185,28,28,0.12);

    --cream: #faf5ef;
    --cream-dim: #d4cfc7;
    --cream-soft: #a8a29e;
    --gray: #6b7280;

    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-tint: rgba(217,119,6,0.1);
    --gold-border: rgba(217,119,6,0.3);

    --border: rgba(255,255,255,0.05);
    --border-hover: rgba(255,255,255,0.1);
    --border-red: rgba(185,28,28,0.2);
    --border-red-hover: rgba(185,28,28,0.5);

    /* --- Radius --- */
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* --- Shadows --- */
    --shadow: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-red: 0 4px 32px var(--red-glow);
    --shadow-gold: 0 4px 24px rgba(217,119,6,0.15);

    /* --- Fonts --- */
    --font-display: 'Press Start 2P', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* --- Layout --- */
    --max-w: 1200px;
    --header-h: 76px;

    /* --- Motion --- */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 250ms;
    --duration-slow: 450ms;
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--cream-dim);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle grain texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 9999;
}

::selection { background: var(--red); color: var(--cream); }

:focus-visible {
    outline: 2px solid var(--red-light);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.45;
    letter-spacing: 0.3px;
    color: var(--cream);
}
h1 { font-size: clamp(1.15rem, 3vw, 1.75rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(0.88rem, 2.2vw, 1.2rem); margin-bottom: 1rem; margin-top: 3.5rem; }
h3 { font-size: clamp(0.72rem, 1.6vw, 0.9rem); margin-bottom: 0.75rem; margin-top: 2rem; }

p { margin-bottom: 1.25rem; }
strong { color: var(--cream); font-weight: 600; }
em { color: var(--gold-light); font-style: normal; }

a:not(.btn):not(.tag):not(.logo):not(.card):not(.product-card):not(.main-nav a):not(.pillar-card):not(.footer-col a) {
    color: var(--red-light);
    transition: color var(--duration) var(--ease);
    text-decoration: underline;
    text-decoration-color: rgba(220,38,38,0.3);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:not(.btn):not(.tag):not(.logo):not(.card):not(.product-card):not(.main-nav a):not(.pillar-card):not(.footer-col a):hover {
    color: var(--cream);
    text-decoration-color: var(--cream-dim);
}

/* --- Container --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 5rem);
}
.container-sm {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--duration) var(--ease);
    flex-shrink: 0;
}
.logo:hover { opacity: 0.85; }
.logo-icon {
    height: 44px;
    width: auto;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    min-height: 44px; /* WCAG 2.5.5 touch target */
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--cream-soft);
    text-decoration: none;
    border-radius: var(--r);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--cream);
    background: var(--red-tint);
}
.main-nav a.active {
    color: var(--red-light);
    background: var(--red-tint);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    z-index: 1001;
    border-radius: var(--r-sm);
}
.burger:hover { background: var(--red-tint); }
.burger span {
    display: block; width: 22px; height: 2px;
    background: var(--cream); border-radius: 2px;
    transition: all var(--duration) var(--ease);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

.nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 999; opacity: 0; transition: opacity var(--duration-slow) var(--ease);
}
.nav-overlay.visible { display: block; opacity: 1; }

/* ===== HERO ===== */
.hero {
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--red-glow) 0%, rgba(185,28,28,0.04) 45%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(1.15rem, 3.2vw, 2rem);
    margin-bottom: 1.75rem;
    position: relative;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 .accent { color: var(--red-light); }
.hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--cream-soft);
    max-width: 640px;
    margin: 0 auto 3.5rem;
    position: relative;
    line-height: 1.85;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    min-height: 44px; /* WCAG 2.5.5 touch target */
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--r);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--red);
    color: var(--cream);
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--red-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid var(--border-red);
}
.btn-secondary:hover {
    color: var(--cream);
    background: var(--red-tint);
    border-color: var(--red);
}

.btn-sm { padding: 0.65rem 1.25rem; font-size: 0.82rem; }

/* ===== SECTIONS ===== */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-alt {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
    margin-top: 0;
}
.section-subtitle {
    text-align: center;
    color: var(--cream-soft);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}
.section-divider {
    width: 40px;
    height: 2px;
    background: var(--red);
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    border-radius: 1px;
}
.section-actions {
    text-align: center;
    margin-top: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 2vw, 1.5rem);
}
.stat-item {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) 1.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--duration) var(--ease);
}
.stat-item:hover {
    border-color: var(--border-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--red-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.72rem;
    color: var(--cream-soft);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: all var(--duration) var(--ease);
    position: relative;
}
.card:hover {
    border-color: var(--border-red-hover);
    background: var(--bg-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}
.card-badge {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.58rem;
    font-family: var(--font-display);
    background: var(--red-tint);
    color: var(--red-light);
    border: 1px solid var(--border-red);
    border-radius: var(--r-sm);
}
.card-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    margin-top: 0;
}
.card-title a {
    text-decoration: none;
    color: var(--cream);
    transition: color var(--duration) var(--ease);
}
.card-title a:hover { color: var(--red-light); }
.card-meta {
    font-size: 0.82rem;
    color: var(--cream-soft);
    margin-bottom: 1rem;
    display: flex; gap: 1rem; flex-wrap: wrap;
}
.card-desc {
    font-size: 0.92rem;
    color: var(--cream-dim);
    line-height: 1.7;
}
.card-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.machine-card .card-year {
    font-family: var(--font-mono);
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.pillar-card {
    border-color: var(--border-red);
    background: linear-gradient(170deg, var(--bg-raised) 0%, rgba(185,28,28,0.04) 100%);
}
.pillar-card:hover {
    background: linear-gradient(170deg, var(--bg-hover) 0%, rgba(185,28,28,0.08) 100%);
}
.pillar-card .card-title { color: var(--red-light); }

/* ===== PRODUCT CARDS (Affiliate) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}
.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f0eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
}
.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--duration-slow) var(--ease);
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-family: var(--font-display);
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-family: var(--font-body);
}
.product-card-desc {
    font-size: 0.85rem;
    color: var(--cream-soft);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}
.product-card-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    transition: color var(--duration) var(--ease);
}
.product-card:hover .product-card-cta { color: var(--gold-light); }

/* ===== FAQ ===== */
.faq-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    background: var(--bg-raised);
}
.faq-item:hover { border-color: var(--border-red); }
.faq-item.open {
    border-color: var(--border-red-hover);
    box-shadow: var(--shadow-red);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cream);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all var(--duration) var(--ease);
    min-height: 60px;
}
.faq-question:hover { background: rgba(255,255,255,0.015); }
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--red);
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red-tint);
    transition: all var(--duration) var(--ease);
}
.faq-item.open .faq-question::after {
    content: '\2212';
    background: var(--red);
    color: var(--cream);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease);
}
.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--cream-dim);
    font-size: 0.92rem;
    line-height: 1.85;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}
.faq-item.open .faq-answer { max-height: 700px; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 1.25rem 0;
    font-size: 0.82rem;
    color: var(--gray);
}
.breadcrumbs a {
    color: var(--cream-soft);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.breadcrumbs a:hover { color: var(--red-light); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.4; }

/* ===== RANKING TABLE ===== */
.ranking-table {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.ranking-table th {
    background: var(--bg-surface);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.65rem;
    font-family: var(--font-display);
    color: var(--cream-soft);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--border-red);
}
.ranking-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    transition: background 150ms var(--ease);
}
.ranking-table tr:hover td { background: var(--bg-raised); }
.ranking-table .rank-cell {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 0.75rem;
    text-align: center;
    width: 60px;
}
.rank-1 .rank-cell { color: var(--gold-light); }
.rank-2 .rank-cell { color: #c0c0c0; }
.rank-3 .rank-cell { color: #cd7f32; }

/* ===== MAP ===== */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-raised);
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--cream-dim);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    min-height: 44px;
}
.tag:hover {
    border-color: var(--red);
    color: var(--red-light);
    background: var(--red-tint);
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* ===== CONTENT BLOCKS ===== */
.content-block {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}
.content-block h2 { margin-top: 0; }

.highlight-box {
    background: linear-gradient(135deg, var(--red-tint) 0%, rgba(185,28,28,0.03) 100%);
    border-left: 3px solid var(--red);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--r) var(--r) 0;
    margin: 2rem 0;
}
.highlight-box p { color: var(--cream); margin: 0; line-height: 1.75; }

/* ===== FOOTER ===== */
.site-footer {
    background: #070708;
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
    margin-top: clamp(4rem, 8vw, 7rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3.5rem;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.52rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-red);
}
.footer-col a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--cream-soft);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.footer-col a:hover {
    color: var(--cream);
    padding-left: 0.35rem;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray);
}
.footer-bottom p { color: var(--gray); margin-bottom: 0.35rem; }
.footer-amazon {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.75;
}

/* ===== LEGAL ===== */
.legal-page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-page h1 { margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 0.78rem; color: var(--red-light); margin-top: 0; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.page-404 .tilt-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 7rem);
    color: var(--red-light);
    text-shadow: 0 0 80px var(--red-glow-strong), 0 0 160px var(--red-glow);
    margin-bottom: 1.5rem;
    animation: tilt-flash 3s ease-in-out infinite;
}
@keyframes tilt-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.page-404 p { font-size: 1.1rem; margin-bottom: 2.5rem; }

/* ===== ANIMATIONS ===== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .burger { display: flex; }

    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 300px; height: 100vh; height: 100dvh;
        background: var(--bg);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 6rem 1.5rem 2rem;
        gap: 2px;
        transition: right var(--duration-slow) var(--ease);
        z-index: 1000;
        box-shadow: -12px 0 40px rgba(0,0,0,0.5);
    }
    .main-nav.open { right: 0; }
    .main-nav a { padding: 0.85rem 1rem; font-size: 1rem; width: 100%; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }

    .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .map-container { height: 300px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .stats-bar { gap: 0.5rem; }
    .stat-item { padding: 1.25rem 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}

@media print {
    .site-header, .site-footer, .burger, .nav-overlay { display: none; }
    body { background: #fff; color: #222; }
    body::after { display: none; }
    .card, .content-block { border: 1px solid #ddd; box-shadow: none; }
}
