/* ============================================
   LIST-PLASTIC.RU — 8-BIT PIXEL STYLE
   ============================================ */

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

:root {
    --bg-dark: #0a0a1a;
    --bg-medium: #12122a;
    --bg-light: #1a1a3e;
    --text-primary: #e0e0ff;
    --text-secondary: #8888bb;
    --accent-blue: #4a90d9;
    --accent-yellow: #e6a832;
    --accent-green: #50c878;
    --accent-red: #cd5c5c;
    --accent-purple: #9b59b6;
    --pixel-border: #333366;
    --pixel-shadow: #000011;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 2;
    font-size: 10px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-yellow);
}

/* Scanlines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   PIXEL BOX
   ============================================ */
.pixel-box {
    background: var(--bg-medium);
    border: 4px solid var(--pixel-border);
    box-shadow: 8px 8px 0 var(--pixel-shadow);
    margin-bottom: 30px;
}

.pixel-box-header {
    background: var(--bg-light);
    padding: 8px 12px;
    border-bottom: 4px solid var(--pixel-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pixel-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
}

.pixel-dot.red { background: #ff5555; }
.pixel-dot.yellow { background: #ffaa00; }
.pixel-dot.green { background: #55ff55; }

.header-title {
    color: var(--text-secondary);
    font-size: 8px;
    margin-left: 8px;
}

.pixel-box-content {
    padding: 24px;
}

/* ============================================
   HEADER
   ============================================ */
.pixel-header {
    padding: 40px 0 20px;
    text-align: center;
}

.logo-block {
    display: flex;
    justify-content: center;
}

.pixel-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pixel-sheet {
    width: 64px;
    height: 80px;
    position: relative;
    background: var(--accent-blue);
    box-shadow: -4px -4px 0 var(--bg-dark);
    animation: float 3s ease-in-out infinite;
}

.pixel-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
}

.pixel-sheet::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 8px;
    width: 32px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    box-shadow:
        0 12px 0 rgba(255,255,255,0.2),
        0 24px 0 rgba(255,255,255,0.2),
        0 36px 0 rgba(255,255,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.site-title {
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: 4px;
    text-shadow: 4px 4px 0 var(--pixel-shadow);
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--accent-red);
    z-index: -1;
    animation: glitch1 3s infinite;
}

.glitch::after {
    color: var(--accent-blue);
    z-index: -2;
    animation: glitch2 3s infinite;
}

@keyframes glitch1 {
    0%, 93%, 100% { transform: translate(0); }
    94% { transform: translate(3px, -2px); }
    95% { transform: translate(-3px, 2px); }
}

@keyframes glitch2 {
    0%, 93%, 100% { transform: translate(0); }
    94% { transform: translate(-3px, 2px); }
    95% { transform: translate(3px, -2px); }
}

.site-subtitle {
    font-size: 9px;
    color: var(--accent-yellow);
    letter-spacing: 3px;
    margin-top: 8px;
    text-shadow: 2px 2px 0 var(--pixel-shadow);
}

/* ============================================
   NOTICE SECTION
   ============================================ */
.notice-section {
    padding: 20px 0;
}

.notice-box {
    text-align: center;
}

.notice-box h2 {
    font-size: 14px;
    color: var(--accent-yellow);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 var(--pixel-shadow);
}

.notice-text {
    font-size: 8px;
    line-height: 2.2;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.construction-icon {
    margin-bottom: 20px;
}

.pixel-crane {
    font-size: 48px;
    animation: float 2s ease-in-out infinite;
    display: inline-block;
}

/* Progress bar */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.progress-label {
    font-size: 8px;
    color: var(--text-secondary);
}

.pixel-progress {
    width: 200px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--pixel-border);
    overflow: hidden;
}

.pixel-progress-bar {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-green) 0px,
        var(--accent-green) 8px,
        #3da85e 8px,
        #3da85e 16px
    );
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
}

.progress-percent {
    font-size: 10px;
    color: var(--accent-green);
    min-width: 40px;
    text-shadow: 0 0 8px var(--accent-green);
}

/* Contact info */
.contact-info {
    margin-top: 16px;
}

.contact-info p {
    font-size: 9px;
    margin: 8px 0;
}

.email-loading {
    color: var(--text-secondary);
}

.email-spinner::after {
    content: '▓░░';
    animation: spinnerAnim 0.6s steps(3) infinite;
}

@keyframes spinnerAnim {
    0% { content: '▓░░'; }
    33% { content: '░▓░'; }
    66% { content: '░░▓'; }
}

.blink-slow {
    animation: blink 2s steps(1) infinite;
}

@keyframes blink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.3; }
}

/* ============================================
   PRODUCTS SECTION — Сетка 2x2
   ============================================ */
.products-section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-shadow: 3px 3px 0 var(--pixel-shadow);
    letter-spacing: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 580px;
    margin: 0 auto;
}

.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card .pixel-box-header .header-title {
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    margin-left: 0;
}

.product-pixel-art {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.sheet-icon {
    width: 48px;
    height: 56px;
    background: var(--sheet-color);
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

.sheet-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--bg-medium);
}

.sheet-icon::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 6px;
    width: 24px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    box-shadow:
        0 10px 0 rgba(255,255,255,0.25),
        0 20px 0 rgba(255,255,255,0.25);
}

.product-name {
    font-size: 7px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 2;
}

.product-stats {
    margin-bottom: 12px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 6px;
    color: var(--text-secondary);
    min-width: 70px;
}

.stat-track {
    flex: 1;
    height: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--pixel-border);
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
    transition: width 1s ease-out;
}

.coming-soon-badge {
    display: block;
    text-align: center;
    font-size: 7px;
    color: var(--accent-yellow);
    padding: 6px;
    border: 2px dashed var(--accent-yellow);
    animation: blink 2.5s steps(1) infinite;
}

/* Мобильная версия */
@media (max-width: 520px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

/* ============================================
   GAME SECTION
   ============================================ */
.game-section {
    padding: 20px 0;
}

.game-box .section-title {
    margin-bottom: 12px;
}

.game-instructions {
    text-align: center;
    font-size: 7px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 2.4;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 4px solid var(--pixel-border);
    background: #1a1a2e;
}

#gameCanvas {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.85);
    z-index: 2;
    cursor: pointer;
}

.game-overlay.hidden {
    display: none;
}

.game-start-text {
    font-size: 9px;
    color: var(--accent-yellow);
    text-align: center;
    animation: blink 1.5s steps(1) infinite;
    line-height: 2.5;
    padding: 10px;
}

.game-hud {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hud-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hud-label {
    font-size: 8px;
    color: var(--text-secondary);
}

.hud-value {
    font-size: 10px;
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
    min-width: 30px;
}

/* ============================================
   SEO SECTION
   ============================================ */
.seo-section {
    padding: 20px 0;
}

.seo-content h2 {
    font-size: 11px;
    color: var(--accent-blue);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 var(--pixel-shadow);
    line-height: 2.2;
}

.seo-content h3 {
    font-size: 9px;
    color: var(--accent-yellow);
    margin: 20px 0 12px;
    text-shadow: 2px 2px 0 var(--pixel-shadow);
    line-height: 2;
}

.seo-content p {
    font-size: 7px;
    color: var(--text-secondary);
    line-height: 2.6;
    margin-bottom: 12px;
}

.seo-content ul {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.seo-content ul li {
    font-size: 7px;
    color: var(--text-secondary);
    line-height: 2.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.seo-content ul li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.seo-content strong {
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.pixel-footer {
    padding: 30px 0;
    border-top: 4px solid var(--pixel-border);
    text-align: center;
    margin-top: 20px;
    background: var(--bg-medium);
}

.footer-content p {
    font-size: 7px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-sub {
    color: var(--accent-yellow) !important;
}

.footer-pixels {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-pixel {
    width: 8px;
    height: 8px;
    display: inline-block;
    animation: pixelPulse 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes pixelPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body { font-size: 8px; }
    .site-title { font-size: 14px; letter-spacing: 2px; }
    .site-subtitle { font-size: 7px; }
    .notice-box h2 { font-size: 10px; }
    .section-title { font-size: 10px; }
    .products-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .pixel-box-content { padding: 16px; }
    .game-hud { gap: 12px; }
    .progress-bar-container { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .site-title { font-size: 11px; }
    .container { padding: 0 12px; }
    .game-instructions { font-size: 6px; }
}

::selection {
    background: var(--accent-blue);
    color: #fff;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--pixel-border); border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }