/* ============================================================
   PROIZVODSTVO.CSS – Стили страницы "Производство"
   ============================================================ */

.production-section { padding: 30px 0 60px; }
.production-section h2 {
    font-size: 32px; font-weight: 700; color: var(--bg-dark);
    letter-spacing: 0.02em; margin-bottom: 30px;
}
.intro-text-block {
    background: #ffffff; border-radius: 16px; padding: 25px 35px;
    margin-bottom: 30px; box-shadow: var(--shadow-premium);
    border: 1px solid #e2e8f0; text-align: center;
    font-size: 16px; line-height: 1.8; color: var(--text-main);
}

.about-card {
    background: #ffffff; border-radius: 16px; padding: 30px 35px;
    margin-bottom: 30px; box-shadow: var(--shadow-premium);
    border: 1px solid #e2e8f0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; color: var(--text-main);
}
.about-card:last-child { margin-bottom: 0; }
.about-card::after {
    content: ''; position: absolute; bottom: -1px; left: 50%; width: 0; height: 3px;
    background-color: var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 0 0 16px 16px;
}
.about-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(14, 41, 66, 0.12); border-color: var(--accent-gold); }
.about-card:hover::after { left: 0; width: 100%; }
.about-card h3 { font-size: 20px; font-weight: 700; color: var(--bg-dark); margin-bottom: 15px; }
.about-card p { font-size: 15px; line-height: 1.8; color: var(--text-main); margin-bottom: 12px; }
.about-card p:last-child { margin-bottom: 0; }

.domino-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.domino-chip {
    display: inline-block; padding: 8px 18px; border-radius: 50px;
    background: transparent; color: #475569;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent; font-weight: 500; font-size: 15px;
}
.domino-chip:nth-child(1) { transition-delay: 0.05s; }
.domino-chip:nth-child(2) { transition-delay: 0.10s; }
.domino-chip:nth-child(3) { transition-delay: 0.15s; }
.domino-chip:nth-child(4) { transition-delay: 0.20s; }
.domino-chip:nth-child(5) { transition-delay: 0.25s; }
.domino-chip:nth-child(6) { transition-delay: 0.30s; }
.domino-chip:nth-child(7) { transition-delay: 0.35s; }
.domino-chip:nth-child(8) { transition-delay: 0.40s; }
.domino-chip:nth-child(9) { transition-delay: 0.45s; }
.domino-chip:nth-child(10) { transition-delay: 0.50s; }
.domino-chip:nth-child(11) { transition-delay: 0.55s; }
.domino-chip:nth-child(12) { transition-delay: 0.60s; }
.domino-chip:nth-child(13) { transition-delay: 0.65s; }
.domino-chip:nth-child(14) { transition-delay: 0.70s; }
.about-card:hover .domino-chip {
    background-color: var(--accent-gold); color: #1e293b;
    border-color: var(--bg-dark); transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(220, 179, 107, 0.2);
}

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 15px; text-align: center; }
.stats-row .stat-item .stat-number {
    display: block; font-size: 36px; font-weight: 800; color: var(--bg-dark);
    margin-bottom: 5px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stats-row .stat-item .stat-label { font-size: 14px; color: #64748b; line-height: 1.4; }
.about-card:hover .stats-row .stat-item:nth-child(1) .stat-number { animation: pulse-number 0.8s ease-in-out; }
.about-card:hover .stats-row .stat-item:nth-child(2) .stat-number { animation: pulse-number 0.8s ease-in-out 0.2s; }
.about-card:hover .stats-row .stat-item:nth-child(3) .stat-number { animation: pulse-number 0.8s ease-in-out 0.4s; }
@keyframes pulse-number {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.carousel-container {
    position: relative; background: #fff; border-radius: 16px; padding: 20px;
    box-shadow: var(--shadow-premium); border: 1px solid #e2e8f0; margin-bottom: 30px; overflow: hidden;
}
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 100%; }
.carousel-item {
    flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; box-sizing: border-box; text-align: center;
}
.carousel-item .icon-wrap {
    width: 100px; height: 100px; background: var(--bg-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 15px; border: 3px solid transparent; transition: all 0.4s;
}
.carousel-item .icon-wrap svg { width: 50px; height: 50px; transition: transform 0.3s; }
.carousel-item:hover .icon-wrap svg { transform: scale(1.1) rotate(-5deg); }
.carousel-item h4 { font-size: 18px; font-weight: 700; color: var(--bg-dark); margin-bottom: 5px; }
.carousel-item p { font-size: 15px; color: #475569; margin: 0; max-width: 500px; }
.carousel-controls {
    display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 15px; position: relative; z-index: 2;
}
.carousel-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); color: var(--bg-dark);
}
.carousel-btn:hover { background: var(--accent-gold); border-color: var(--accent-gold); transform: scale(1.1); box-shadow: 0 4px 15px rgba(220, 179, 107, 0.3); }
.carousel-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots span { width: 10px; height: 10px; border-radius: 50%; background: #d1d9e6; cursor: pointer; transition: all 0.3s; }
.carousel-dots span.active { background: var(--bg-dark); transform: scale(1.2); }
.carousel-dots span:hover { background: var(--accent-gold); }

/* ============================================================
   ЛЕНТА МИНИАТЮР
   ============================================================ */
.mini-thumbnails-wrapper {
    margin-top: 30px; margin-bottom: 30px; overflow: hidden; position: relative;
    border-radius: 16px; background: #fff; padding: 20px 25px;
    box-shadow: var(--shadow-premium); border: 1px solid #e2e8f0;
    max-height: 155px; 
    transition: max-height 0.85s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.mini-thumbnails-wrapper.is-open { 
    max-height: 480px; 
    border-color: var(--accent-gold); 
    transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.mini-thumbnails-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 20px;
    padding-bottom: 10px;
    transform: translateX(0);
}

.mini-thumbnails-wrapper.is-open .mini-thumbnails-track {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    transform: translateX(0) !important;
}

.mini-thumbnails-wrapper .thumb-item {
    width: 160px; height: 100px; flex-shrink: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
}
.mini-thumbnails-wrapper .thumb-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.mini-thumbnails-wrapper.is-open .thumb-item { border-color: var(--bg-light); }
.mini-thumbnails-wrapper .thumb-item:hover { border-color: var(--accent-gold); transform: scale(1.05); }

/* ============================================================
   ЛАЙТБОКС (ВЫШЕ ШАПКИ И БЕЗ БАГОВ)
   ============================================================ */
.lightbox-modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(14, 41, 66, 0.92); 
    backdrop-filter: blur(8px);
    z-index: 9999999 !important; /* ВЫШЕ ЛИПКОЙ ШАПКИ НА 100% */
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-modal.active { 
    opacity: 1; 
    visibility: visible; 
}

.lightbox-modal .modal-content {
    position: relative; 
    max-width: 85vw; 
    max-height: 85vh; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
    background: #000; 
    transform: scale(0.9); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active .modal-content { 
    transform: scale(1); 
}

.lightbox-modal .modal-content img { 
    max-width: 80vw; 
    max-height: 80vh; 
    object-fit: contain; 
    display: block; 
}

/* Кнопки стрелок */
.lightbox-modal .nav-btn-lightbox {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    width: 50px; 
    height: 50px; 
    background: #ffffff; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    cursor: pointer; 
    transition: all 0.3s ease; 
    z-index: 10; 
    border: none !important;
    outline: none !important;
    padding: 0;
}

.lightbox-modal .nav-btn-lightbox:hover { 
    transform: translateY(-50%) scale(1.1); 
    background: var(--accent-gold); 
}
.lightbox-modal .nav-btn-lightbox.prev { left: 20px; }
.lightbox-modal .nav-btn-lightbox.next { right: 20px; }
.lightbox-modal .nav-btn-lightbox svg { 
    width: 24px; 
    height: 24px; 
    stroke: var(--bg-dark); 
    fill: none; 
    stroke-width: 2.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

/* Кнопка Закрыть (Идеальный круг без 3D рамок) */
.lightbox-modal .close-btn {
    position: absolute; 
    top: 25px; 
    right: 30px; 
    width: 46px; 
    height: 46px; 
    background: #ffffff; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    cursor: pointer; 
    transition: all 0.3s ease; 
    z-index: 10;
    border: none !important;
    outline: none !important;
    padding: 0;
}

.lightbox-modal .close-btn:hover { 
    transform: rotate(90deg) scale(1.1); 
    background: var(--accent-gold);
}

.lightbox-modal .close-btn svg { 
    width: 22px; 
    height: 22px; 
    stroke: var(--bg-dark); 
    fill: none; 
    stroke-width: 2.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

/* Адаптивность для смартфонов */
@media (max-width: 1024px) { 
    .stats-row { grid-template-columns: 1fr; gap: 15px; } 
}

@media (max-width: 768px) {
    .production-section h2 { font-size: 28px; }
    .about-card { padding: 20px; }
    .carousel-item .icon-wrap { width: 80px; height: 80px; }
    .carousel-item .icon-wrap svg { width: 40px; height: 40px; }
    .mini-thumbnails-wrapper { max-height: 120px; padding: 15px; }
    .mini-thumbnails-wrapper.is-open { max-height: 800px; }
    .mini-thumbnails-wrapper .thumb-item { width: 120px; height: 75px; }
    
    /* Кнопки на телефоне */
    .lightbox-modal .nav-btn-lightbox { width: 42px; height: 42px; }
    .lightbox-modal .nav-btn-lightbox.prev { left: 10px; }
    .lightbox-modal .nav-btn-lightbox.next { right: 10px; }
    .lightbox-modal .close-btn { top: 15px; right: 15px; width: 42px; height: 42px; }
    .lightbox-modal .modal-content img { max-width: 90vw; max-height: 75vh; }
}

@media (max-width: 480px) {
    .production-section h2 { font-size: 24px; }
    .carousel-item .icon-wrap { width: 70px; height: 70px; }
    .carousel-item .icon-wrap svg { width: 35px; height: 35px; }
    .mini-thumbnails-wrapper { max-height: 100px; }
    .mini-thumbnails-wrapper.is-open { max-height: 700px; }
    .mini-thumbnails-wrapper .thumb-item { width: 90px; height: 60px; }
}