:root {
    --bg: #161816; --bg-card: #1e221e; --bg-dark: #101210;
    --accent: #4a5d23; --accent-bright: #8fb832; --red: #9e4242; --red-bright: #d05555;
    --text: #d8dac8; --text-bright: #f2f4e8; --text-dim: #b0b3a0; --text-dark: #7a7d6e;
    --border: #3a4034; --font: 'Source Sans 3', 'Jura', sans-serif; --font-display: 'Jura', sans-serif; --shadow: 0 4px 24px rgba(0,0,0,0.45);
    --fire-glow: rgba(255,120,40,0.22);
    --neon-green: rgba(143,184,50,0.55);
    --neon-red: rgba(230,57,70,0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 20px; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
#particles-canvas, #fire-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#particles-canvas { opacity: 0.72; }
#fire-canvas { opacity: 0.78; z-index: 1; }
.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 2px, transparent 2px, transparent 4px); pointer-events: none; z-index: 9998; }
.vignette { position: fixed; inset: 0; background: radial-gradient(ellipse at center, transparent 62%, rgba(0,0,0,0.12) 100%); pointer-events: none; z-index: 9997; }

.header { background: rgba(10,10,10,0.95); border-bottom: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; position: sticky; top: 0; z-index: 100; flex-wrap: wrap; gap: 8px; backdrop-filter: blur(8px); }
.header-left { flex-shrink: 0; z-index: 2; }
.logo-link { text-decoration: none; cursor: pointer; transition: opacity 0.25s ease; }
.logo-link:hover { opacity: 0.92; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 52px; width: auto; max-width: 120px; object-fit: contain; border-radius: 0; filter: none; animation: none; background: transparent; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-main { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 5px; color: var(--text-bright); line-height: 1.05; text-shadow: none; animation: none; }
.logo-sub { font-family: var(--font-display); font-size: 10px; letter-spacing: 4px; color: var(--accent-bright); text-shadow: none; animation: none; opacity: 0.9; }
.header-phone { color: var(--accent-bright); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: all 0.3s; }
.header-phone:hover { color: var(--text-bright); text-shadow: 0 0 10px var(--neon-green); }
.nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; order: 3; width: 100%; padding-top: 4px; border-top: 1px solid var(--border); z-index: 2; }
.nav-link { color: var(--text-dim); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.35s; white-space: nowrap; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-bright); border-bottom-color: var(--accent-bright); text-shadow: 0 0 12px rgba(143,184,50,0.55); }
.nav-link.active { animation: navPulse 2.5s ease-in-out infinite; }
@keyframes navPulse { 0%,100% { text-shadow: 0 0 6px rgba(143,184,50,0.35); } 50% { text-shadow: 0 0 16px rgba(143,184,50,0.75); } }
.header-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent-bright); font-weight: 600; z-index: 2; flex-wrap: wrap; }
.social-icon { width: 38px; height: 38px; min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; color: #fff; flex-shrink: 0; overflow: hidden; }
.yt-icon { background: #ff0000; } .yt-icon:hover { background: #ff3333; box-shadow: 0 0 14px rgba(255,0,0,0.55); transform: scale(1.08); }
.vk-icon { background: #0077FF; } .vk-icon:hover { background: #2787ff; box-shadow: 0 0 14px rgba(0,119,255,0.55); transform: scale(1.08); }
.vk-icon svg { display: block; width: 20px; height: 20px; }
.admin-gear { width: 38px; height: 38px; background: #444; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: #fff; transition: all 0.3s; border: 2px solid var(--accent-bright); font-family: var(--font); box-shadow: 0 0 10px var(--neon-green); }
.admin-gear:hover { background: var(--accent-bright); color: #000; box-shadow: 0 0 20px var(--neon-green); transform: scale(1.08); }
.online-dot { width: 8px; height: 8px; background: #2ecc40; border-radius: 50%; box-shadow: 0 0 6px #2ecc40; animation: pulse 2s infinite; }
.online-text { font-size: 12px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.btn-register { font-family: var(--font-display); background: transparent; border: 1px solid var(--accent-bright); color: var(--accent-bright); padding: 9px 16px; cursor: pointer; font-weight: 700; font-size: 13px; transition: all 0.3s; border-radius: 4px; }
.btn-register:hover { background: var(--accent); color: #000; }
.user-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: linear-gradient(135deg, rgba(74,93,35,0.35), rgba(30,34,30,0.95)); border: 1px solid var(--accent-bright); border-radius: 999px; cursor: pointer; transition: all 0.3s; max-width: 220px; font-family: var(--font); }
.user-pill:hover { background: linear-gradient(135deg, rgba(143,184,50,0.25), rgba(30,34,30,0.98)); box-shadow: 0 0 16px rgba(143,184,50,0.2); transform: translateY(-1px); }
.user-pill-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #000; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; overflow: hidden; }
.user-pill-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-pill-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.user-pill-name { color: var(--text-bright); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.user-pill-role { font-size: 11px; letter-spacing: 1px; color: var(--accent-bright); text-transform: uppercase; }
.user-pill.admin-pill { border-color: #d4a017; background: linear-gradient(135deg, rgba(212,160,23,0.18), rgba(30,34,30,0.95)); }
.user-pill.admin-pill .user-pill-role { color: #f0c040; }
.btn-logout { border-color: var(--border); color: var(--text-dim); font-size: 12px; padding: 9px 14px; border-radius: 4px; }
.btn-logout:hover { border-color: var(--red); color: #fff; background: rgba(158,66,66,0.25); }

main { position: relative; z-index: 2; flex: 1; }
.page { display: none; }
.page.active { display: block; animation: pageEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px) scale(0.995); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero-fade-in { opacity: 0; animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); letter-spacing: 2px; } to { opacity: 1; transform: translateY(0); letter-spacing: inherit; } }
.hero-line2.hero-fade-in { animation-name: heroTitlePop; }
@keyframes heroTitlePop { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0) scale(1); }
.products-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.products-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.products-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.products-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.products-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.hero { background: linear-gradient(135deg, #0e0f0e 0%, #1a1e17 40%, #0e0f0e 100%); padding: 60px 30px; text-align: center; border-bottom: 2px solid var(--border); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(143,184,50,0.06) 50%, transparent 60%); animation: heroScan 6s linear infinite; pointer-events: none; }
@keyframes heroScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(74,93,35,0.14) 0%, transparent 60%), radial-gradient(circle at 70% 50%, rgba(139,58,58,0.1) 0%, transparent 60%), radial-gradient(circle at 50% 100%, var(--fire-glow) 0%, transparent 50%); animation: heroGlow 5s ease-in-out infinite alternate; }
@keyframes heroGlow { from { opacity: 0.85; } to { opacity: 1; } }
.hero-content { position: relative; z-index: 2; max-width: 750px; margin: 0 auto; }
.hero-line1 { display: block; font-size: 20px; letter-spacing: 8px; color: var(--accent-bright); font-weight: 700; text-shadow: 0 0 14px var(--neon-green); }
.hero-line2 { display: block; font-size: 44px; font-weight: 700; color: var(--text-bright); text-transform: uppercase; letter-spacing: 3px; text-shadow: 2px 2px 0 rgba(0,0,0,0.6), 0 0 20px rgba(143,184,50,0.25); }
.hero-content p { font-size: 18px; color: var(--text-dim); max-width: 520px; margin: 20px auto 30px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.address-bar { background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 14px 20px; text-align: center; animation: addressFade 0.8s ease 0.5s both; }
.address-bar-inner { display: inline-flex; align-items: center; gap: 10px; color: var(--text-bright); font-size: 15px; font-weight: 600; flex-wrap: wrap; justify-content: center; }
@keyframes addressFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.address-divider { color: var(--border); }

.btn { font-family: var(--font); font-weight: 700; letter-spacing: 2px; padding: 13px 30px; cursor: pointer; border: 2px solid; font-size: 14px; text-transform: uppercase; transition: all 0.3s; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text-bright); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; position: relative; overflow: hidden; }
.btn-red::after { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: left 0.5s; }
.btn-red:hover::after { left: 120%; }
.btn-red:hover { background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 0 20px rgba(139,58,58,0.5); transform: translateY(-2px); }
.btn-outline { border-color: var(--accent); color: var(--accent-bright); }
.btn-outline:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px rgba(74,93,35,0.4); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; padding: 15px; font-size: 14px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-green { background: var(--accent); border-color: var(--accent); color: #000; }

.section { padding: 40px 25px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 28px; letter-spacing: 4px; color: var(--text-bright); margin-bottom: 8px; font-weight: 700; text-shadow: 0 0 12px var(--neon-green); position: relative; animation: titleGlow 3s ease-in-out infinite; }
.section-title::after { content: ''; display: block; width: 80px; height: 2px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--accent-bright), transparent); animation: titleLine 2.5s ease-in-out infinite; }
@keyframes titleGlow { 0%,100% { text-shadow: 0 0 8px rgba(143,184,50,0.35); } 50% { text-shadow: 0 0 20px rgba(143,184,50,0.75), 0 0 40px rgba(143,184,50,0.25); } }
@keyframes titleLine { 0%,100% { width: 60px; opacity: 0.6; } 50% { width: 120px; opacity: 1; box-shadow: 0 0 12px var(--neon-green); } }
.section-desc { text-align: center; color: var(--text-dim); margin-bottom: 35px; font-size: 19px; }
.section-footer { text-align: center; margin-top: 35px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-card { text-align: center; padding: 28px 18px; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(143,184,50,0.08) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.feature-card:hover { border-color: var(--accent-bright); box-shadow: var(--shadow), 0 0 24px rgba(143,184,50,0.2); transform: translateY(-6px) scale(1.02); }
.feature-card:hover::after { opacity: 1; }
.feature-icon { font-size: 36px; display: block; margin-bottom: 12px; animation: floatIcon 3s ease-in-out infinite; }
.feature-card h3 { font-size: 18px; color: var(--text-bright); letter-spacing: 2px; margin-bottom: 8px; }
.feature-card p { font-size: 17px; color: var(--text-dim); line-height: 1.55; }
.promo-banner { background: linear-gradient(135deg, #1a1212 0%, #221818 100%); border: 2px solid var(--red); padding: 35px; display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; box-shadow: 0 0 40px var(--neon-red); animation: promoPulse 4s ease-in-out infinite; position: relative; overflow: hidden; }
.promo-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,80,80,0.06), transparent); animation: heroScan 5s linear infinite; pointer-events: none; }
@keyframes promoPulse { 0%,100% { box-shadow: 0 0 30px rgba(230,57,70,0.35); } 50% { box-shadow: 0 0 55px rgba(230,57,70,0.55); } }
.promo-text h2 { font-size: 26px; color: var(--text-bright); letter-spacing: 3px; }
.promo-text p { font-size: 16px; color: var(--text-dim); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 30px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; display: flex; flex-direction: column; position: relative; }
.product-card::before { content: ''; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color 0.4s, box-shadow 0.4s; z-index: 2; }
.product-card:hover { border-color: var(--accent-bright); transform: translateY(-6px) scale(1.01); box-shadow: 0 0 28px var(--neon-green), 0 20px 35px rgba(0,0,0,0.45); }
.product-card:hover::before { border-color: rgba(143,184,50,0.35); box-shadow: inset 0 0 20px rgba(143,184,50,0.08); }
.product-img { height: 260px; background: #0d0e0d; display: flex; align-items: center; justify-content: center; color: #444; font-size: 45px; position: relative; overflow: hidden; flex-shrink: 0; }
.product-img img.card-img.single { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-img-wrap, .ws-img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.card-img-wrap img, .ws-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 0; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease; will-change: transform, opacity; }
.ws-img-wrap img { object-fit: cover; padding: 6px; }
.card-img-wrap img.active, .ws-img-wrap img.active { opacity: 1; transform: translateX(0); z-index: 1; }
.card-img-wrap img.img-enter, .ws-img-wrap img.img-enter { opacity: 1; transform: translateX(0); z-index: 2; }
.card-img-wrap img.img-leave, .ws-img-wrap img.img-leave { opacity: 0; transform: translateX(-100%); z-index: 1; }
.product-img .no-photo { font-size: 45px; opacity: 0.4; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.neon-image-frame img.img-leave { opacity: 0; transform: scale(0.97); transition: opacity 0.45s, transform 0.45s; }
.neon-image-frame img.img-enter { animation: imgPop 0.45s ease forwards; }
@keyframes imgPop { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.discount-ribbon { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, #e63946, #ff6b6b); color: #fff; padding: 10px 18px 10px 24px; font-size: 15px; font-weight: 700; z-index: 3; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); box-shadow: 0 0 12px rgba(230,57,70,0.8), 0 0 24px rgba(255,107,107,0.5); animation: ribbonNeon 2s ease-in-out infinite; text-shadow: 0 0 8px rgba(255,255,255,0.6); }
@keyframes ribbonNeon { 0%,100% { box-shadow: 0 0 10px rgba(230,57,70,0.6), 0 0 20px rgba(255,107,107,0.35); } 50% { box-shadow: 0 0 22px rgba(230,57,70,0.95), 0 0 40px rgba(255,107,107,0.65); } }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 20px; color: var(--text-bright); margin-bottom: 4px; font-weight: 700; }
.product-cat { font-size: 12px; letter-spacing: 2.5px; color: var(--accent-bright); text-transform: uppercase; font-weight: 700; display: block; }
.product-desc { font-size: 16px; color: var(--text-dim); margin: 8px 0; line-height: 1.65; flex: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.price-block { display: flex; flex-direction: column; }
.price-old { font-size: 15px; color: #c44; text-decoration: line-through; font-weight: 600; opacity: 0.85; }
.price-new { font-size: 23px; font-weight: 700; color: #7dff7d; text-shadow: 0 0 10px rgba(125,255,125,0.55), 0 0 22px rgba(143,184,50,0.45); animation: priceNeon 2.5s ease-in-out infinite; }
@keyframes priceNeon { 0%,100% { text-shadow: 0 0 8px rgba(125,255,125,0.45), 0 0 18px rgba(143,184,50,0.35); } 50% { text-shadow: 0 0 16px rgba(125,255,125,0.75), 0 0 30px rgba(143,184,50,0.55); } }
.product-price { font-size: 21px; font-weight: 700; color: var(--text-bright); }
.catalog-sale-row { display: flex; justify-content: center; margin: 20px 0 16px; }
.catalog-filters { display: flex; gap: 10px; justify-content: center; margin: 0 0 25px; flex-wrap: wrap; }
.filter-btn { font-family: var(--font); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); padding: 12px 22px; cursor: pointer; font-weight: 700; font-size: 14px; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent-bright); color: var(--text-bright); background: rgba(74,93,35,0.15); box-shadow: 0 0 12px var(--neon-green); }
.filter-sale { border-color: #e63946 !important; color: #ff8080 !important; font-weight: 700 !important; font-size: 17px !important; padding: 16px 40px !important; animation: saleGlow 2s infinite; background: rgba(230,57,70,0.12) !important; letter-spacing: 2px; }
.filter-sale:hover, .filter-sale.active { background: rgba(230,57,70,0.28) !important; color: #fff !important; border-color: #ff6b6b !important; box-shadow: 0 0 28px var(--neon-red); }
@keyframes saleGlow { 0%,100% { box-shadow: 0 0 5px rgba(230,57,70,0.3); } 50% { box-shadow: 0 0 20px rgba(230,57,70,0.6); } }

.workshop-tabs { display: flex; gap: 6px; justify-content: center; margin: 25px 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; flex-wrap: wrap; }
.workshop-tab { font-family: var(--font-display); background: transparent; border: none; color: var(--text-dim); padding: 10px 24px; cursor: pointer; font-weight: 700; font-size: 16px; transition: all 0.3s; border-bottom: 2px solid transparent; }
.workshop-tab:hover, .workshop-tab.active { color: var(--text-bright); border-bottom-color: var(--accent-bright); }
.workshop-grid { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 25px; justify-content: center; }
.workshop-card { background: var(--bg-card); border: 1px solid var(--border); text-align: center; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); width: 280px; overflow: hidden; }
.workshop-card:hover { border-color: var(--accent-bright); box-shadow: var(--shadow), 0 0 20px rgba(143,184,50,0.15); transform: translateY(-4px); }
.workshop-card-img { height: 220px; background: #0d0e0d; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.workshop-card-img .ws-card-img.single { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.workshop-card-body { padding: 20px; }
.workshop-card-body h3 { font-size: 20px; color: var(--text-bright); margin-bottom: 8px; }
.workshop-card-body p { font-size: 17px; color: var(--text-dim); line-height: 1.6; margin-bottom: 10px; }

.news-list { display: flex; flex-direction: column; gap: 20px; margin-top: 25px; }
.news-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 24px; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.news-card:hover { border-left-color: var(--accent-bright); box-shadow: var(--shadow), 0 0 18px rgba(143,184,50,0.12); transform: translateX(6px); }
.news-date { font-size: 13px; letter-spacing: 3px; color: var(--accent-bright); margin-bottom: 8px; font-weight: 700; }
.news-card h3 { font-size: 22px; color: var(--text-bright); margin-bottom: 10px; }
.news-card p { color: var(--text-dim); line-height: 1.7; font-size: 18px; white-space: pre-line; }
.news-gallery { margin-top: 20px; width: 100%; }
.neon-image-frame { position: relative; width: 100%; border: 2px solid var(--accent-bright); border-radius: 4px; overflow: hidden; background: #0d0e0d; box-shadow: 0 0 20px var(--neon-green), 0 0 40px rgba(143,184,50,0.25); animation: imageFrameGlow 3s ease-in-out infinite; }
.neon-image-frame img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: contain; background: #0d0e0d; transition: opacity 0.35s ease; }
@keyframes imageFrameGlow { 0%,100% { box-shadow: 0 0 16px rgba(143,184,50,0.35), 0 0 30px rgba(143,184,50,0.15); } 50% { box-shadow: 0 0 28px rgba(143,184,50,0.6), 0 0 50px rgba(143,184,50,0.3); } }
.about-block-image { margin: 16px 0; }

.delivery-dev-banner { text-align: center; padding: 50px 30px; background: linear-gradient(135deg, rgba(74,93,35,0.12) 0%, rgba(30,34,30,0.9) 100%); border: 2px solid var(--accent); margin-bottom: 30px; box-shadow: 0 0 25px var(--neon-green); }
.delivery-dev-banner h3 { font-size: 26px; color: var(--accent-bright); letter-spacing: 3px; margin-bottom: 16px; text-shadow: 0 0 12px var(--neon-green); }
.delivery-dev-banner p { font-size: 18px; color: var(--text-dim); line-height: 1.7; max-width: 620px; margin: 0 auto; }
.delivery-status { display: inline-block; margin-top: 20px; padding: 12px 24px; background: rgba(143,184,50,0.15); border: 1px solid var(--accent-bright); color: var(--accent-bright); font-weight: 700; letter-spacing: 2px; font-size: 15px; animation: saleGlow 3s infinite; }

.about-blocks { max-width: 900px; margin: 30px auto; display: flex; flex-direction: column; gap: 20px; }
.about-block { background: var(--bg-card); border: 1px solid var(--border); padding: 28px; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.about-block:hover { border-color: var(--accent-bright); box-shadow: 0 0 22px rgba(143,184,50,0.12); transform: translateY(-3px); }
.about-block h3 { font-size: 18px; color: var(--accent-bright); letter-spacing: 2px; margin-bottom: 12px; }
.about-block p { color: var(--text-dim); line-height: 1.75; font-size: 18px; white-space: pre-line; }
.about-video { margin-top: 15px; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 1px solid var(--border); }
.about-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.poll-card { background: var(--bg-card); border: 1px solid var(--border); padding: 30px; max-width: 600px; margin: 0 auto; }
.poll-card h3 { font-size: 22px !important; line-height: 1.4; }
.poll-option { display: block; width: 100%; text-align: left; margin: 10px 0; padding: 16px 20px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); font-family: var(--font); font-weight: 600; font-size: 18px; cursor: pointer; transition: all 0.3s; border-radius: 4px; }
.poll-option:hover { border-color: var(--accent-bright); background: rgba(74,93,35,0.1); }

.reviews-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; max-width: 820px; margin-left: auto; margin-right: auto; }
.review-form-box { max-width: 620px; margin: 0 auto 32px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent-bright); padding: 22px 24px; transition: all 0.35s; }
.review-card:hover { border-color: var(--accent-bright); box-shadow: 0 0 18px rgba(143,184,50,0.12); }
.review-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.review-author { font-size: 19px; color: var(--text-bright); }
.review-stars { color: #f0c040; font-size: 18px; letter-spacing: 2px; }
.review-text { font-size: 18px; color: var(--text-dim); line-height: 1.75; white-space: pre-line; margin-bottom: 10px; }
.review-date { font-size: 14px; color: var(--text-dark); letter-spacing: 1px; }
.review-rating-select { width: 100%; padding: 14px 16px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); font-family: var(--font); font-size: 18px; }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.bookings-panel { background: var(--bg-card); border: 1px solid var(--border); padding: 24px; }
.phone-banner { text-align: center; padding: 20px; margin-bottom: 20px; background: rgba(74,93,35,0.15); border: 2px solid var(--accent-bright); box-shadow: 0 0 20px var(--neon-green); }
.phone-banner a { color: var(--text-bright); font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: 2px; text-shadow: 0 0 12px var(--neon-green); }
.phone-banner p { color: var(--text-dim); margin-top: 8px; font-size: 16px; }
.booking-item { background: var(--bg-dark); border: 1px solid var(--border); padding: 18px; margin-bottom: 14px; border-left: 4px solid var(--accent); }
.booking-item.status-Новая, .booking-item.status-новая { border-left-color: #e63946; }
.booking-item.status-В\ ожидании, .booking-item.status-В\ обработке { border-left-color: #f0ad4e; }
.booking-item.status-В\ процессе { border-left-color: #5bc0de; }
.booking-item.status-Готово { border-left-color: #2ecc40; }
.booking-item.status-Отменена { border-left-color: #888; opacity: 0.75; }
.booking-status { display: inline-block; padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: 1px; background: rgba(74,93,35,0.2); color: var(--accent-bright); margin-top: 10px; }
.booking-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.booking-actions select, .booking-actions input, .booking-actions textarea { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-bright); padding: 8px 12px; font-family: var(--font); font-size: 15px; border-radius: 4px; }
.repairs-panel { background: var(--bg-card); border: 1px solid var(--border); padding: 24px; margin-top: 20px; }

.profile-layout { max-width: 700px; margin: 0 auto; }
.profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-bright); background: var(--bg-dark); }
.profile-avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--bg-dark); border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.profile-form { background: var(--bg-card); border: 1px solid var(--border); padding: 28px; }

.booking-form { background: var(--bg-card); border: 1px solid var(--border); padding: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 15px; letter-spacing: 1.5px; color: var(--accent-bright); margin-bottom: 8px; text-transform: uppercase; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); font-family: var(--font); font-size: 18px; outline: none; transition: border 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent-bright); }
.form-group textarea { resize: vertical; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); padding: 22px; }
.info-card h3 { font-size: 18px; color: var(--accent-bright); letter-spacing: 2px; margin-bottom: 10px; }
.info-card p { color: var(--text-dim); font-size: 18px; line-height: 1.65; }
.map-container { margin-top: 8px; }
.form-status { margin-top: 20px; padding: 16px 20px; text-align: center; font-weight: 700; font-size: 15px; display: none; }
.form-status.success { display: block; background: rgba(74,93,35,0.2); border: 1px solid var(--accent); color: var(--accent-bright); }
.form-status.error { display: block; background: rgba(139,58,58,0.2); border: 1px solid var(--red); color: var(--red-bright); }
.form-status.hidden { display: none; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 300; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; animation: modalBgIn 0.35s ease; }
.modal-overlay.active .modal { animation: modalPop 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-overlay.modal-top { z-index: 10100; }
.modal { background: var(--bg-card); border: 2px solid var(--accent); padding: 35px; max-width: 480px; width: 90%; position: relative; box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 30px var(--neon-green); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--text-dim); font-size: 28px; cursor: pointer; font-family: var(--font); }
.modal-close:hover { color: var(--red-bright); }
.modal-title { text-align: center; font-size: 24px; letter-spacing: 3px; color: var(--text-bright); margin-bottom: 25px; }
.confirm-text { text-align: center; color: var(--text-dim); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirm-actions .btn { min-width: 140px; justify-content: center; }
.modal-note { text-align: center; margin-top: 15px; font-size: 15px; color: var(--text-dim); }
.modal-note a { color: var(--accent-bright); }

.calc-picker-btns { display: flex; flex-direction: column; gap: 14px; }
.regular-calc { display: flex; flex-direction: column; gap: 12px; }
#regular-calc-display { width: 100%; padding: 16px; font-size: 28px; text-align: right; background: var(--bg-dark); border: 2px solid var(--accent); color: var(--text-bright); font-family: var(--font); font-weight: 700; }
.regular-calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.regular-calc-grid button { padding: 16px 8px; font-size: 18px; font-weight: 700; font-family: var(--font); background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); cursor: pointer; transition: all 0.2s; }
.regular-calc-grid button:hover { border-color: var(--accent-bright); background: rgba(74,93,35,0.2); }
.regular-calc-grid button.calc-eq { background: var(--accent); color: #000; grid-column: span 2; }
.regular-calc-grid button.calc-wide { grid-column: span 2; }
.poll-result-bar { margin: 10px 0; }
.poll-result-label { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; color: var(--text-bright); }
.poll-result-track { height: 14px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.poll-result-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); box-shadow: 0 0 10px var(--neon-green); transition: width 0.5s ease; }
.feature-card-img { width: 100%; height: 140px; object-fit: cover; margin-bottom: 12px; border: 1px solid var(--border); transition: transform 0.4s; }
.feature-card:hover .feature-card-img { transform: scale(1.03); }
.calc-body { display: flex; flex-direction: column; gap: 4px; }
.calc-result { text-align: center; padding: 20px; background: var(--bg-dark); border: 1px solid var(--accent); margin: 15px 0; }
.calc-result strong { display: block; font-size: 28px; color: var(--accent-bright); margin-top: 8px; }

.product-modal { max-width: 960px; padding: 28px; }
.product-modal-content { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-modal-gallery { position: relative; }
.gallery-main { width: 100%; min-height: 320px; height: 350px; background: #0d0e0d; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease; }
.gallery-main img.gal-slide-out { transform: translateX(-100%); opacity: 0; }
.gallery-main img.gal-slide-in { animation: galSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes galSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.8); border: 1px solid var(--border); color: var(--text-bright); font-size: 20px; padding: 8px 12px; cursor: pointer; font-family: var(--font); transition: all 0.3s; z-index: 5; }
.gallery-arrow:hover { background: var(--accent); color: #000; }
.gallery-prev { left: 6px; } .gallery-next { right: 6px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.3s; }
.gallery-dot.active { background: var(--accent-bright); box-shadow: 0 0 6px var(--accent-bright); }
.product-modal-info { display: flex; flex-direction: column; gap: 12px; }
.product-modal-info h2 { font-size: 26px; color: var(--text-bright); line-height: 1.25; }
.modal-price-block, .product-modal-info .product-price { font-size: 28px; font-weight: 700; }
.modal-desc-full, .product-modal-info .product-desc { font-size: 18px; color: var(--text-dim); line-height: 1.75; max-height: 320px; overflow-y: auto; white-space: pre-line; }

/* Admin panel — sidebar layout */
.admin-panel-page { display: none; position: fixed; inset: 0; z-index: 10050; background: var(--bg); overflow: hidden; }
.admin-panel-page.active { display: block !important; }
.admin-layout { display: flex; height: 100vh; }
.admin-sidebar { width: 240px; min-width: 240px; background: var(--bg-dark); border-right: 2px solid var(--accent); display: flex; flex-direction: column; padding: 16px 0; box-shadow: 4px 0 24px rgba(0,0,0,0.4); }
.admin-sidebar-head { padding: 8px 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.admin-sidebar-head h2 { font-size: 22px; letter-spacing: 3px; color: var(--text-bright); text-shadow: 0 0 10px var(--neon-green); }
.admin-sidebar-sub { font-size: 11px; color: var(--accent-bright); letter-spacing: 4px; }
.admin-nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.admin-nav-group { font-size: 13px; color: var(--text-dark); letter-spacing: 2px; padding: 14px 12px 6px; font-weight: 700; }
.admin-nav-btn { display: block; width: 100%; text-align: left; font-family: var(--font); background: transparent; border: none; border-left: 3px solid transparent; color: var(--text-dim); padding: 13px 14px; cursor: pointer; font-weight: 700; font-size: 16px; transition: all 0.2s; border-radius: 0 6px 6px 0; margin-bottom: 2px; }
.admin-nav-btn:hover { color: var(--text-bright); background: rgba(74,93,35,0.12); border-left-color: var(--accent); }
.admin-nav-btn.active { color: var(--text-bright); background: rgba(143,184,50,0.18); border-left-color: var(--accent-bright); box-shadow: inset 0 0 20px rgba(143,184,50,0.08); }
.admin-close-sidebar { margin: 12px 16px 0; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-toolbar { display: flex; gap: 12px; padding: 16px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.admin-search-input { flex: 1; min-width: 180px; padding: 14px 16px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); font-family: var(--font); font-size: 17px; border-radius: 4px; }
.admin-search-input:focus { border-color: var(--accent-bright); box-shadow: 0 0 10px var(--neon-green); outline: none; }
.admin-content { flex: 1; overflow-y: auto; padding: 24px; }
.admin-item { background: var(--bg-card); border: 1px solid var(--border); padding: 20px; margin-bottom: 14px; border-radius: 6px; transition: all 0.2s; }
.admin-item:hover { border-color: var(--accent-bright); box-shadow: 0 0 14px rgba(143,184,50,0.12); }
.admin-item h4 { color: var(--text-bright); font-size: 19px; margin-bottom: 8px; }
.admin-item p { color: var(--text-dim); font-size: 17px; line-height: 1.6; }
.admin-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-actions input, .admin-actions select { background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); padding: 11px 14px; font-family: var(--font); font-size: 16px; border-radius: 4px; }
.admin-section-title { font-size: 22px; color: var(--accent-bright); letter-spacing: 2px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.admin-help { color: var(--text-dim); font-size: 17px; line-height: 1.65; margin: -8px 0 18px; padding: 14px 16px; background: rgba(74,93,35,0.1); border-left: 3px solid var(--accent-bright); }
.prod-edit-box { margin-top: 12px; }
.admin-label { font-size: 13px; color: var(--accent-bright); letter-spacing: 1.5px; display: block; margin-bottom: 4px; }
.admin-price-field input { width: 130px; padding: 11px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); font-family: var(--font); font-size: 16px; }
.admin-actions label { font-size: 13px; color: var(--accent-bright); letter-spacing: 1px; }
.admin-thumb { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; }
.photo-preview-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding: 12px; background: var(--bg-dark); border: 1px dashed var(--border); border-radius: 6px; min-height: 80px; }
.photo-preview-item { width: 110px; text-align: center; }
.photo-preview-item img { width: 110px; height: 110px; object-fit: cover; border: 2px solid var(--border); border-radius: 6px; display: block; background: #0d0e0d; }
.photo-preview-saved img { border-color: var(--accent); }
.photo-preview-new img { border-color: var(--accent-bright); box-shadow: 0 0 10px rgba(143,184,50,0.25); }
.photo-preview-name { display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px; line-height: 1.3; word-break: break-word; }
.photo-preview-empty { font-size: 15px; color: var(--text-dark); margin: 0; width: 100%; text-align: center; padding: 8px 0; }
.admin-form-box { background: var(--bg-card); border: 1px solid var(--accent); padding: 24px; margin-bottom: 20px; border-radius: 6px; box-shadow: 0 0 16px rgba(143,184,50,0.08); }
.admin-form-box h4 { color: var(--text-bright); margin-bottom: 14px; font-size: 18px; }
.admin-card-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.admin-card-main { flex: 1; min-width: 200px; }
.admin-price-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.admin-price-field { display: flex; flex-direction: column; gap: 4px; }
.admin-textarea-lg { width: 100%; min-height: 180px; padding: 16px 18px; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text-bright); font-family: var(--font); font-size: 17px; line-height: 1.65; resize: vertical; border-radius: 4px; }
.admin-textarea-lg:focus { border-color: var(--accent-bright); outline: none; box-shadow: 0 0 10px rgba(143,184,50,0.15); }
.admin-actions .admin-textarea-lg { flex: 1 1 100%; min-width: 100%; }
.booking-status-large { display: inline-block; padding: 8px 16px; font-size: 15px; font-weight: 700; letter-spacing: 1.5px; margin-top: 10px; border: 1px solid var(--accent-bright); background: rgba(74,93,35,0.2); color: var(--accent-bright); }
.admin-new-booking { animation: newBookingFlash 1s ease 3; border-color: #e63946 !important; }
@keyframes newBookingFlash { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 25px rgba(230,57,70,0.6); } }
.featured-toggle { color: #f0ad4e; cursor: pointer; font-size: 20px; border: none; background: none; }

#toast-container { position: fixed; top: 20px; right: 20px; z-index: 10200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-card); border: 1px solid var(--accent); padding: 18px 24px; color: var(--text-bright); font-family: var(--font); font-weight: 700; font-size: 16px; box-shadow: 0 0 25px rgba(0,0,0,0.6), 0 0 15px var(--neon-green); animation: slideIn 0.4s ease, fadeOut 0.4s ease 4.5s forwards; max-width: 420px; }
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--accent-bright); }
.toast.booking-alert { border-color: #e63946; background: rgba(139,58,58,0.3); font-size: 15px; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

.footer { background: #0a0b0a; border-top: 2px solid var(--border); padding: 24px 25px; text-align: center; font-size: 13px; letter-spacing: 1.5px; color: #aaa; margin-top: auto; z-index: 2; }
.footer a { color: var(--accent-bright); }

.hidden { display: none !important; }

@media (max-width: 768px) {
    .nav-link { font-size: 11px; }
    .hero-line2 { font-size: 28px; }
    .admin-sidebar { width: 100%; min-width: 0; max-height: 40vh; border-right: none; border-bottom: 2px solid var(--accent); }
    .admin-layout { flex-direction: column; }
    .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
    .admin-nav-group { width: 100%; }
    .admin-nav-btn { width: auto; flex: 1; min-width: 120px; text-align: center; border-left: none; border-bottom: 2px solid transparent; border-radius: 4px; }
    .admin-nav-btn.active { border-bottom-color: var(--accent-bright); }
    .features-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .product-modal-content { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .filter-sale { max-width: 100%; }
}
