/* ========================================================
   СТРАНИЦА "ОБОРУДОВАНИЕ" SHARFF.RU (ГК ПРИНТ-ПРОМ)
   ПОЛНОСТЬЮ РЕЗИНОВАЯ (FLUID / RESPONSIVE) ВЕРСТКА
   ======================================================== */

:root {
    --eq-purple-deep: #4a3c5a;
    --eq-magenta-vibrant: #df1b53;
    --eq-magenta-dark: #b81442;
    --eq-bg-soft: #fdfafb;
    --eq-border-light: #ebdbe9;
    --eq-text-main: #222222;
    --eq-text-muted: #555555;
}

/* 1. HERO БЛОК С РЕЗИНОВЫМ ВИДЕО */
.video-hero {
    position: relative;
    width: 100%;
    min-height: clamp(340px, 45vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: clamp(30px, 5vw, 55px);
    background-color: #1a101f;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 60, 90, 0.85) 0%, rgba(223, 27, 83, 0.4) 50%, rgba(45, 19, 45, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 960px;
    padding: 0 clamp(15px, 4vw, 30px);
    box-sizing: border-box;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.85rem, 4.2vw, 3.8rem);
    margin: 0 0 clamp(10px, 2vw, 18px) 0;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 820px;
    margin: 0 auto;
}

/* 2. РЕЗИНОВАЯ ПОЛОСА МЕТРИК ПРОИЗВОДСТВА */
.eq-stats-bar {
    width: 100%;
    max-width: 1360px;
    margin: clamp(-25px, -3vw, -35px) auto clamp(30px, 4vw, 50px) auto;
    position: relative;
    z-index: 4;
    padding: 0 clamp(15px, 3vw, 30px);
    box-sizing: border-box;
}

.eq-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-radius: clamp(12px, 1.5vw, 18px);
    box-shadow: 0 10px 30px rgba(147, 96, 152, 0.12);
    border: 1px solid var(--eq-border-light);
    padding: clamp(15px, 2.2vw, 26px) clamp(10px, 1.5vw, 20px);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.eq-stat-item {
    text-align: center;
    border-right: 1px solid #f0eaf2;
    padding: 0 clamp(5px, 1vw, 15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eq-stat-item:last-child {
    border-right: none;
}

.eq-stat-val {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 700;
    color: var(--eq-magenta-vibrant);
    line-height: 1;
    margin-bottom: 6px;
}

.eq-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.1vw, 13.5px);
    font-weight: 600;
    color: var(--eq-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. ОСНОВНОЙ РЕЗИНОВЫЙ КОНТЕЙНЕР */
.equipment-page-section {
    background-color: #ffffff;
    width: 100%;
    padding-bottom: clamp(50px, 8vw, 100px);
}

.equipment-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    box-sizing: border-box;
}

/* 4. ВЕРХНИЙ РЕЗИНОВЫЙ ИНФО-БЛОК (СЕТКА 2x2) */
.service-info-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
    margin-bottom: clamp(35px, 5vw, 60px);
    width: 100%;
}

.si-text { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.si-gallery { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.si-tiles { display: flex; min-width: 0; width: 100%; }
.si-video { display: flex; min-width: 0; width: 100%; }

.sync-row {
    height: 100%;
    min-height: 160px;
    width: 100%;
    box-sizing: border-box;
}

.si-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    color: var(--eq-purple-deep);
    margin-top: 0;
    margin-bottom: 18px;
    line-height: 1.2;
}

.tabs {
    display: flex;
    gap: clamp(8px, 1.5vw, 16px);
    margin-bottom: 18px;
    border-bottom: 2px solid #eeeeee;
    width: 100%;
}

.tab {
    background: none;
    border: none;
    padding: 10px clamp(6px, 1vw, 14px);
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 700;
    color: #888888;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--eq-magenta-vibrant), #936098);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab.active {
    color: var(--eq-magenta-vibrant);
}

.tab.active::after {
    transform: scaleX(1);
}

.tabs-container {
    flex-grow: 1;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeEffect 0.35s ease-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.desc-block {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13.5px, 1.1vw, 15.5px);
    line-height: 1.65;
    color: #444444;
}

.desc-block p {
    margin-bottom: 12px;
}

.desc-block strong {
    color: #111111;
}

/* Мини-галерея (Резиновая сетка 2x2) */
.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(8px, 1.2vw, 14px);
    height: 100%;
    min-height: 240px;
    width: 100%;
    box-sizing: border-box;
}

.mini-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(8px, 1vw, 12px);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    background-color: #f5f5f5;
    border: 1px solid var(--eq-border-light);
    display: block;
}

.mini-gallery-grid img:hover {
    transform: scale(1.03);
    filter: brightness(0.96);
    box-shadow: 0 8px 20px rgba(147, 96, 152, 0.2);
}

/* Плитки навигации (Резиновый блок) */
.service-action-tiles-wrapper {
    background: var(--eq-bg-soft);
    padding: clamp(12px, 1.8vw, 20px);
    border-radius: clamp(10px, 1.2vw, 16px);
    border: 1px solid var(--eq-border-light);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(10px, 1.2vw, 14px);
    width: 100%;
    box-sizing: border-box;
}

.service-action-tile {
    background-color: #ffffff;
    border-radius: 10px;
    padding: clamp(10px, 1.2vw, 14px) clamp(10px, 1.5vw, 18px);
    text-align: center;
    color: var(--eq-purple-deep);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(12.5px, 1.1vw, 14.5px);
    text-decoration: none;
    border: 1px solid #ecdfe9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 10px);
    transition: all 0.25s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.service-action-tile svg {
    color: var(--eq-magenta-vibrant);
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.service-action-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(223, 27, 83, 0.15);
}

.service-action-tile.hover-magenta:hover {
    background: linear-gradient(135deg, var(--eq-magenta-vibrant), var(--eq-magenta-dark));
    color: #ffffff;
    border-color: transparent;
}

.service-action-tile.hover-purple:hover {
    background: linear-gradient(135deg, #936098, #5A2A75);
    color: #ffffff;
    border-color: transparent;
}

.service-action-tile:hover svg {
    color: #ffffff;
}

/* Видео-плитка в сетке */
.video-wrapper {
    border-radius: clamp(10px, 1.2vw, 16px);
    overflow: hidden;
    position: relative;
    background-color: #1a101f;
    border: 1px solid var(--eq-border-light);
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.video-overlay-text {
    position: absolute;
    bottom: clamp(10px, 1.5vw, 16px);
    left: clamp(12px, 1.8vw, 20px);
    right: clamp(12px, 1.8vw, 20px);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(13px, 1.2vw, 15.5px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    z-index: 2;
    pointer-events: none;
}

/* ========================================================
   ОБЪЕМНЫЕ РЕЗИНОВЫЕ 3D-ТАБЫ ОБОРУДОВАНИЯ
   (СТИЛЬ КНОПКИ "ПОЛУЧИТЬ Х ЗА 14 ДНЕЙ")
   ======================================================== */
.eq-3d-tabs-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: clamp(10px, 1.6vw, 20px);
    margin: 0 auto clamp(25px, 4vw, 45px) auto;
    width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.eq-3d-tab-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 1.6vw, 20px) clamp(12px, 1.8vw, 26px);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(12.5px, 1.15vw, 15px);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.3;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    
    /* Объемный рельефный 3D-дизайн */
    background: linear-gradient(180deg, #ffffff 0%, #f7f1f6 100%);
    color: var(--eq-purple-deep);
    box-shadow: 0 6px 0 #d9c4d7, 0 12px 22px rgba(147, 96, 152, 0.16);
    border: 1px solid var(--eq-border-light);
    transform: translateY(0);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.eq-3d-tab-btn span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.eq-3d-tab-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #ffffff 0%, #faeef5 100%);
    box-shadow: 0 9px 0 #d9c4d7, 0 16px 28px rgba(223, 27, 83, 0.2);
    color: var(--eq-magenta-vibrant);
}

/* Активное состояние 3D кнопки */
.eq-3d-tab-btn.active {
    background: linear-gradient(180deg, #e8245c 0%, #c41345 100%);
    color: #ffffff;
    border: 1px solid #b30f3d;
    box-shadow: 0 5px 0 #8f082e, 0 10px 25px rgba(223, 27, 83, 0.38);
    transform: translateY(2px);
}

.eq-3d-tab-btn.active:hover {
    transform: translateY(1px);
    box-shadow: 0 6px 0 #8f082e, 0 12px 28px rgba(223, 27, 83, 0.45);
}

.eq-3d-tab-btn:active {
    transform: translateY(5px);
    box-shadow: 0 1px 0 #8f082e, 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================================
   РЕЗИНОВЫЙ КОНТЕНТ ВЫБРАННОЙ КАТЕГОРИИ
   ======================================================== */
.eq-category-content {
    width: 100%;
}

.eq-group-box {
    background: var(--eq-bg-soft);
    border: 1px solid var(--eq-border-light);
    border-radius: clamp(14px, 1.8vw, 22px);
    padding: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 32px);
    margin-bottom: clamp(22px, 3vw, 35px);
    box-shadow: 0 6px 20px rgba(147, 96, 152, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.eq-group-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(20px, 3vw, 35px);
    width: 100%;
}

.eq-group-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 1.8vw, 22px);
    color: var(--eq-purple-deep);
    margin: 0 0 16px 0;
    border-bottom: 2px solid #936098;
    padding-bottom: 10px;
    line-height: 1.3;
}

.eq-machine-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.eq-machine-list li {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13.5px, 1.1vw, 15.5px);
    color: #333333;
    padding-left: 22px;
    position: relative;
    line-height: 1.55;
    word-break: break-word;
}

.eq-bullet-dot {
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--eq-magenta-vibrant);
    font-weight: 900;
    font-size: 20px;
}

/* РЕЗИНОВАЯ ГАЛЕРЕЯ ОБОРУДОВАНИЯ (4 ФОТО В РЯД С АВТОПОДГОНКОЙ) */
.eq-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
    margin-bottom: clamp(30px, 4vw, 45px);
    width: 100%;
    box-sizing: border-box;
}

.eq-gallery-card {
    border-radius: clamp(10px, 1.2vw, 16px);
    overflow: hidden;
    border: 1px solid var(--eq-border-light);
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    width: 100%;
    position: relative;
}

.eq-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease;
    display: block;
}

.eq-gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.96);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: clamp(15px, 3vw, 30px);
    box-sizing: border-box;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: clamp(15px, 2.5vw, 25px);
    right: clamp(15px, 2.5vw, 30px);
    color: #ffffff;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--eq-magenta-vibrant);
}

.lightbox-content {
    position: relative;
    max-width: 92%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: clamp(14px, 1.4vw, 18px);
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ УСТРОЙСТВ
   ======================================================== */
@media (max-width: 1080px) {
    .service-info-section {
        grid-template-columns: 1fr;
    }
    .si-gallery {
        min-height: 280px;
    }
    .si-video {
        min-height: 240px;
    }
    .eq-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .eq-3d-tabs-nav {
        gap: 12px;
    }
    .eq-3d-tab-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 820px) {
    .eq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 0;
    }
    .eq-stat-item:nth-child(2) {
        border-right: none;
    }
    .eq-3d-tabs-nav {
        flex-wrap: wrap;
    }
    .eq-3d-tab-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 580px) {
    .service-action-tiles-wrapper {
        grid-template-columns: 1fr;
    }
    .eq-stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 15px 8px;
    }
    .eq-gallery-grid {
        grid-template-columns: 1fr;
    }
    .eq-3d-tab-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
}