/* 
  IDEAL LED - Premium B2B Dark Theme
  Typography: Inter 
  Colors: Dark Slate, Deep Black, Gold/Accent
*/

:root {
    --bg-color: #080a0f;
    --bg-darker: #05060a;
    --surface-color: #121620;
    --text-primary: #f0f2f5;
    --text-secondary: #8a94a6;
    --accent-color: #3b82f6; /* Строгий синий для B2B */
    --accent-hover: #2563eb;
    --accent-whatsapp: #25D366;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 22, 32, 0.6);
}

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bg-darker {
    background-color: var(--bg-darker);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* Кнопки */
.btn-primary, .btn-whatsapp {
    display: inline-block;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent-color);
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-whatsapp {
    background: var(--accent-whatsapp);
}
.btn-whatsapp:hover {
    background: #20BD5A;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}
.btn-outline.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- НАВИГАЦИЯ --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo span {
    color: var(--accent-color);
}
.nav a {
    margin: 0 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.nav a:hover {
    color: var(--text-primary);
}
.phone-link {
    font-weight: 600;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
}
.phone-link:hover {
    background: var(--border-color);
}

/* --- 1. HERO СЕКЦИЯ --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(8,10,15, 0.95) 0%, rgba(8,10,15, 0.7) 50%, rgba(8,10,15, 0.4) 100%);
    z-index: -1;
}
.hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
}
.hero-text {
    max-width: 700px;
}
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- 2. РЕШАЕМ ЗАДАЧИ --- */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.scenario-card {
    padding: 40px 30px;
    transition: transform 0.3s;
}
.scenario-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.scenario-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.scenario-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.scenario-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- 3. ОСВЕЩЕНИЕ ПОД ОБЪЕКТ (Bento Grid) --- */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}
.object-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.object-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0, 0.8) 0%, rgba(0,0,0, 0.1) 50%, transparent 100%);
    opacity: 0.7;
    transition: all 0.4s ease;
    z-index: 1;
}
.object-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0, 0.3);
}
.object-card:hover::before {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0, 0.9) 0%, rgba(0,0,0, 0.4) 100%);
}

/* Dynamic Bento Layout */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    grid-auto-flow: dense;
}
/* Default for standard cards (2nd, 3rd, 6th, 7th...) */
.object-card {
    grid-column: span 1;
    grid-row: span 1;
}
/* Large featured blocks (1st, 5th, 9th...) */
.object-card:nth-child(4n+1) {
    grid-column: span 2;
    grid-row: span 2;
}
/* Full width banner blocks (4th, 8th, 12th...) */
.object-card:nth-child(4n) {
    grid-column: span 3;
    grid-row: span 1;
}
/* Edge case: If a large block is the very last item, make it stretch full width to prevent empty holes */
.object-card:nth-child(4n+1):last-child {
    grid-column: span 3;
}
/* Edge case: If there are only exactly 2 categories, make the 2nd one tall to match the 1st */
.object-card:nth-child(2):last-child {
    grid-row: span 2;
}

.object-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}
.object-card:hover .object-overlay {
    transform: translateY(0);
}
.object-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.object-card:nth-child(1) .object-overlay h3 {
    font-size: 2.4rem;
}
.object-overlay span {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.object-card:hover .object-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3.5. ПОПУЛЯРНЫЕ МОДЕЛИ (Товары) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.product-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.product-specs {
    margin-bottom: 20px;
    flex: 1;
}
.product-specs li {
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.product-specs li:last-child {
    border-bottom: none;
}
.product-specs span {
    color: var(--text-secondary);
    display: inline-block;
    width: 120px;
}
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f44336;
}

/* Product Lead Modal */
.product-lead-modal-overlay {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.product-lead-modal-content {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    text-align: center;
}
.product-lead-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.product-lead-modal-close:hover {
    color: var(--text-primary);
}
.product-lead-modal-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}
.product-lead-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}
.w-100 {
    width: 100%;
}

/* --- 4. ПРОЦЕСС --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.process-step {
    position: relative;
    padding: 30px;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.step-num {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}
.step-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}
.step-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* --- 5. КЕЙСЫ --- */
.detailed-projects {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.detailed-project-card {
    display: flex;
    overflow: hidden;
}
.project-img {
    flex: 1;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}
.project-details {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-details h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}
.project-facts {
    margin-bottom: 30px;
}
.fact-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.fact-row:last-child {
    border-bottom: none;
}
.fact-row span {
    color: var(--text-secondary);
    display: inline-block;
    width: 150px;
}

/* --- 6. ЛИДОГЕНЕРАЦИЯ --- */
.lead-gen-panel {
    display: flex;
    padding: 60px;
    gap: 50px;
}
.lead-info {
    flex: 1;
}
.lead-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.lead-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.lead-form {
    flex: 1.5;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}
.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.input-group input, .input-group select, .input-group textarea {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.input-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
}
.file-upload-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 7. ФАКТЫ И ЦИФРЫ --- */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.fact-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1;
}
.fact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- 8. ФИНАЛЬНЫЙ CTA --- */
.cta-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 80px 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 70%), var(--surface-color);
    z-index: 0;
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- ПОДВАЛ --- */
.footer {
    background: #0a0c10;
    color: #a0aabf;
    position: relative;
    padding: 0;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
}
.footer-top-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d2ff, #3a7bd5, transparent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    width: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 0;
}
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-logo img {
    max-width: 180px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0,210,255,0.3));
}
.footer-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.social-icon img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}
.social-icon:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.8)) invert(1);
}
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links, .footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-contacts li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #a0aabf;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: #00d2ff;
    transform: translateX(3px);
}
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.contact-icon {
    font-size: 1.1rem;
}
.footer-contacts a {
    color: #a0aabf;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contacts a:hover {
    color: #ffffff;
}
.footer-bottom {
    background: #050608;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
}
.payment-methods img {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.payment-methods img[src*="kaspi"] {
    height: 32px;
}
.payment-methods img:hover {
    opacity: 1;
}
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
    .scenarios-grid, .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .objects-grid, .process-timeline, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .detailed-project-card { flex-direction: column; }
    .project-img img { min-height: 300px; }
    .lead-gen-panel { flex-direction: column; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .objects-grid, .process-timeline, .scenarios-grid, .facts-grid, .products-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-buttons, .cta-buttons { flex-direction: column; }
    .cta-contacts { flex-direction: column; gap: 10px; }
}

/* --- ПОЛНОЭКРАННАЯ КОРЗИНА КП (ГЕНЕРАТОР PDF) --- */
.kp-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.kp-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.kp-cart-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    color: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.kp-cart-modal.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}
.kp-toolbar {
    background: #f8f9fa;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}
.kp-toolbar-left {
    display: flex;
    gap: 15px;
}
.kp-toolbar .btn-outline {
    border-color: #d1d5db;
    color: #374151;
    background: #fff;
}
.kp-toolbar .btn-outline:hover {
    background: #f3f4f6;
}
.text-red { color: #ef4444 !important; border-color: #ef4444 !important; }
.text-red:hover { background: #fee2e2 !important; }
.text-blue { color: #3b82f6 !important; border-color: #3b82f6 !important; }
.text-blue:hover { background: #eff6ff !important; }

/* Документ для печати */
.kp-document-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: #e5e7eb; /* Фон вокруг белого листа */
}
.kp-document {
    background: #fff;
    padding: 40px 50px;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.kp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #111827;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.kp-logo-area h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 5px;
}
.kp-logo-area h2 span { color: #3b82f6; }
.kp-logo-area p { color: #4b5563; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
.kp-address-area p, .kp-contacts-area p { font-size: 0.85rem; color: #4b5563; margin-bottom: 3px; font-weight: 600; }
.kp-doc-title {
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}
.kp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.kp-table th, .kp-table td {
    border: 1px solid #d1d5db;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}
.kp-table th { background: #f9fafb; color: #111827; font-weight: 700; font-size: 0.9rem; }
.kp-table td { color: #374151; font-size: 0.9rem; }
.kp-table td.text-left { text-align: left; }
.kp-table img { width: 80px; height: 80px; object-fit: contain; }
.kp-item-specs p { margin: 2px 0; font-size: 0.8rem; }
.kp-item-specs span { color: #6b7280; }

.kp-qty-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
.kp-remove-row {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
}
.kp-remove-row:hover { text-decoration: underline; }

.kp-total-row {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

/* Стили для выбора количества на карточке товара */
.product-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 5px;
}
.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
}
.qty-btn:hover { background: rgba(255,255,255,0.1); }
.qty-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    width: 50px;
    font-size: 1rem;
    font-weight: 600;
}
.qty-input:focus { outline: none; }
/* Убираем стрелочки у input number */
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-to-kp.added {
    background-color: #10b981 !important;
    color: white !important;
}


/* --- SINGLE PRODUCT PAGE --- */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.single-product-image img { width: 100%; border-radius: 12px; cursor: zoom-in; }
.single-product-title { font-size: 2.5rem; margin-bottom: 20px; }
.single-product-price { font-size: 2rem; font-weight: 700; color: var(--accent-color); margin-bottom: 30px; }
.single-product-description { margin-bottom: 30px; color: var(--text-secondary); line-height: 1.8; }
.single-product-specs-box { background: var(--surface-color); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.single-product-specs-box h3 { margin-bottom: 20px; font-size: 1.2rem; }
.single-product-specs-list li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 10px 0; }
.single-product-specs-list li:last-child { border-bottom: none; }
.single-product-specs-list li span { color: var(--text-secondary); }
@media (max-width: 768px) { .single-product-layout { grid-template-columns: 1fr; } }
/* Image Zoom Modal */
.image-zoom-modal { display: none; position: fixed; z-index: 9999; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.image-zoom-content { margin: auto; display: block; max-width: 90%; max-height: 90%; }
.image-zoom-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.image-zoom-close:hover { color: #bbb; }

/* --- CATEGORY LAYOUT & FILTERS --- */
.category-layout { display: flex; gap: 30px; margin-top: 20px; }
.category-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 100px; align-self: flex-start; max-height: calc(100vh - 120px); overflow-y: auto; }
.category-sidebar::-webkit-scrollbar { width: 4px; }
.category-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.category-products { flex: 1; min-width: 0; }
.filter-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px; backdrop-filter: blur(10px); }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-header h3 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.filter-close-btn { display: none; }

/* Search */
.filter-search-wrap { margin-bottom: 16px; }
.filter-search-input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #fff; font-size: 0.88rem; transition: border-color 0.2s; outline: none; box-sizing: border-box; }
.filter-search-input:focus { border-color: var(--accent-color); }
.filter-search-input::placeholder { color: rgba(255,255,255,0.35); }

/* Accordion Groups */
.filter-group { border-bottom: 1px solid rgba(255,255,255,0.06); }
.filter-group:last-child { border-bottom: none; }
.filter-group-toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; user-select: none; transition: color 0.2s; }
.filter-group-toggle:hover { color: var(--accent-color); }
.filter-group-title { font-weight: 600; font-size: 0.88rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; margin: 0; }
.filter-group-toggle .filter-arrow { font-size: 0.7rem; color: rgba(255,255,255,0.3); transition: transform 0.25s ease; }
.filter-group.open .filter-arrow { transform: rotate(180deg); }
.filter-group-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0; }
.filter-group.open .filter-group-body { max-height: 400px; overflow-y: auto; padding-bottom: 8px; }
.filter-group-body::-webkit-scrollbar { width: 3px; }
.filter-group-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Checkboxes */
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; color: var(--text-secondary); font-size: 0.85rem; transition: color 0.15s; }
.filter-option:hover { color: #fff; }
.filter-option input[type="checkbox"] { accent-color: var(--accent-color); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.filter-option .filter-count { color: rgba(255,255,255,0.25); font-size: 0.78rem; margin-left: auto; }

/* Range Slider */
.filter-range-wrap { padding: 8px 0 4px; }
.filter-range-inputs { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.filter-range-inputs span { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.filter-range-input { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #fff; font-size: 0.82rem; text-align: center; outline: none; box-sizing: border-box; }
.filter-range-input:focus { border-color: var(--accent-color); }
.filter-range-slider { position: relative; height: 6px; margin: 8px 4px 4px; }
.filter-range-track { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.filter-range-fill { position: absolute; top: 0; height: 6px; background: var(--accent-color); border-radius: 3px; }
.filter-range-thumb { position: absolute; top: -5px; width: 16px; height: 16px; background: var(--accent-color); border: 2px solid #fff; border-radius: 50%; cursor: grab; z-index: 2; transform: translateX(-50%); transition: box-shadow 0.15s; }
.filter-range-thumb:hover, .filter-range-thumb:active { box-shadow: 0 0 0 4px rgba(var(--accent-color-rgb, 78,84,200), 0.3); }
.filter-range-thumb:active { cursor: grabbing; }

/* Products Toolbar */
.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.products-count { color: var(--text-secondary); font-size: 0.9rem; }

/* Ajax Pagination */
.ajax-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.ajax-pagination .page-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: var(--text-secondary); font-size: 0.88rem; cursor: pointer; transition: all 0.2s; }
.ajax-pagination .page-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ajax-pagination .page-btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; font-weight: 600; }

/* Loading */
.filter-loading { text-align: center; padding: 30px; color: var(--text-secondary); font-size: 0.9rem; }
.products-grid.loading { opacity: 0.4; pointer-events: none; transition: opacity 0.2s; }

/* Mobile Filter Toggle */
.filter-mobile-toggle { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999; padding: 14px 22px; border-radius: 50px; background: var(--accent-color); color: #fff; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

@media (max-width: 768px) {
    .category-layout { flex-direction: column; }
    .category-sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px; height: 100vh; max-height: 100vh; z-index: 1000; background: var(--bg-primary, #0a0a1a); padding: 20px; transition: left 0.3s ease; overflow-y: auto; }
    .category-sidebar.mobile-open { left: 0; }
    .filter-mobile-toggle { display: block; z-index: 998; }
    .filter-mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999; backdrop-filter: blur(3px); }
    .filter-mobile-overlay.active { display: block; }
    
    .filter-close-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; transition: background 0.2s; }
    .filter-close-btn:hover { background: rgba(255,255,255,0.2); }
}

/* --- СТИЛИ ДЛЯ ТЕКСТОВЫХ СТРАНИЦ (page.php) --- */
.page-hero {
    position: relative;
    padding: 140px 0 60px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}
.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(8, 10, 15, 0.95), rgba(8, 10, 15, 0.7));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
}
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--accent-color);
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .sep {
    margin: 0 8px;
    opacity: 0.5;
}
.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}
.content-narrow {
    max-width: 900px;
    margin: 0;
}
.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.page-sidebar {
    position: sticky;
    top: 100px;
    margin-top: -80px;
    z-index: 10;
}
.sidebar-widget {
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 16px;
}
.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}
.sidebar-widget p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}
.sidebar-phone {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    margin: 15px 0;
}
.page-glass-panel {
    padding: 50px;
    border-radius: 16px;
    background: var(--surface-color);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.entry-content p {
    margin-bottom: 1.5em;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.4rem; }

.entry-content ul {
    margin-bottom: 1.5em;
    padding-left: 20px;
}
.entry-content ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 2px;
}
.entry-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-primary);
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
}
.entry-content th, .entry-content td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.entry-content th {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-weight: 600;
}
@media (max-width: 768px) {
    .page-hero-title { font-size: 2.2rem; }
    .page-glass-panel { padding: 30px 20px; }
    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { position: static; margin-top: 0; }
}

/* --- СТИЛИ БУРГЕР МЕНЮ --- */
.mobile-burger-btn {
    display: none;
}
.mobile-nav-contacts {
    display: none;
}

/* --- АДАПТАЦИЯ ГЛАВНОЙ СТРАНИЦЫ (Мобильная версия 500px) --- */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 500px;
        padding: 0 15px;
    }
    .mobile-burger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001; /* Поверх меню */
        padding: 0;
        margin-left: 15px;
    }
    .mobile-burger-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .mobile-burger-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-burger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-burger-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header-inner .nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 10, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1000;
        transition: right 0.4s ease;
        padding: 20px;
    }
    .header-inner .nav.active {
        right: 0;
    }
    .mobile-nav-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        max-width: 250px;
    }
    .mobile-nav-contacts img {
        height: 35px;
        margin-bottom: 15px;
        background: #ffffff;
        padding: 5px 15px;
        border-radius: 8px;
    }
    .mobile-nav-phone {
        font-size: 1.5rem !important;
        color: var(--text-primary) !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
    }
    .header-inner .nav a {
        font-size: 1.5rem;
        margin: 15px 0;
        font-weight: 600;
    }
    .phone-link {
        display: none; /* Скрываем телефон в шапке, чтобы не ломать 500px, он есть в подвале */
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons a {
        width: 100%;
    }
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .scenario-card {
        padding: 20px 15px;
    }
    /* Mobile Dynamic Bento Grid */
    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px; /* Force rows to 160px */
        gap: 12px;
    }
    .object-card {
        height: auto !important; /* Let CSS Grid auto-rows control height */
    }
    
    /* Reset global desktop bento spans to avoid overflow in 2-column mobile grid */
    .object-card:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    /* Mobile Bento Pattern: 1st full width, 2nd & 3rd half width. Repeats! */
    .object-card:nth-child(3n+1) {
        grid-column: span 2 !important;
    }
    
    /* Mobile Edge case: If a small card (2nd, 5th, 8th) is the last item, it would leave a hole. Stretch it! */
    .object-card:nth-child(3n+2):last-child {
        grid-column: span 2 !important;
    }
    .object-overlay {
        padding: 15px !important;
        background: linear-gradient(to top, rgba(0,0,0, 0.95) 0%, rgba(0,0,0, 0.4) 60%, transparent 100%) !important;
    }
    .object-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    .object-overlay span {
        opacity: 0.85 !important;
        font-size: 0.75rem !important;
        font-weight: 500;
        display: block;
        margin-top: 2px;
    }
    .object-card:hover .object-overlay {
        padding-bottom: 15px !important;
    }
    .section-header {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    .section-header .section-title {
        margin-bottom: 0 !important;
        text-align: center;
        font-size: 2.2rem;
    }
    .section-header .btn-outline {
        display: inline-block;
        width: auto;
        padding: 10px 22px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-primary);
        font-weight: 600;
        transition: all 0.3s ease;
    }
    .section-header .btn-outline:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--accent-color);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-card {
        font-size: 0.9rem;
    }
    .product-info h3 {
        font-size: 1rem;
    }
    .process-timeline {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding-left: 25px;
    }
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 9px;
        width: 2px;
        background: linear-gradient(to bottom, var(--accent-color), rgba(59, 130, 246, 0.2));
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    }
    .process-step {
        position: relative;
        width: 100%;
        padding: 20px;
        background: var(--glass-bg);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        display: block !important;
        text-align: left;
    }
    .process-step .step-num {
        position: absolute;
        top: 20px;
        left: -32px;
        width: 32px;
        height: 32px;
        background: var(--bg-color);
        border: 2px solid var(--accent-color);
        color: var(--text-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        font-weight: 700;
        z-index: 2;
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    .process-step .step-info {
        padding-left: 0;
    }
    .process-step .step-info h4 {
        font-size: 1.15rem;
        margin-bottom: 6px;
        color: var(--accent-color);
    }
    .process-step .step-info p {
        color: var(--text-secondary);
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .detailed-projects {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .detailed-project-card {
        flex-direction: column;
    }
    .lead-form .form-grid {
        grid-template-columns: 1fr;
    }
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
}

/* --- SCROLL ANIMATIONS --- */
.aos-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}
.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.aos-delay-1 { transition-delay: 0.1s; }
.aos-delay-2 { transition-delay: 0.2s; }
.aos-delay-3 { transition-delay: 0.3s; }
.aos-delay-4 { transition-delay: 0.4s; }
.aos-delay-5 { transition-delay: 0.5s; }
