
/* Стили для первой секции warehouse-requirements */
#warehouse-requirements {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.requirements-header {
    text-align: center;
    margin-bottom: 60px;
}

.requirements-header .section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Desktop Tabs Styles */
.desktop-view {
    display: block;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

.tabs-content {
    max-width: 1920px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Grid Layout */
.tab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tab-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tab-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.tab-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tab-card:hover .tab-icon {
    transform: scale(1.1) rotate(5deg);
}

.tab-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.tab-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.req-number {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.req-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.req-content p {
    color: var(--dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Zones Grid */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.zone-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-left-color: var(--secondary);
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.zone-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.zone-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
}

.zone-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Accordion Styles */
.mobile-view {
    display: none;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 20px 25px;
}

/* Mobile Grids */
.mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mobile-card {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-card:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.mobile-card:hover h4,
.mobile-card:hover p {
    color: white;
}

.mobile-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.mobile-card:hover i {
    color: white;
}

.mobile-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.mobile-card p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.mobile-requirements {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-req {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mobile-req strong {
    color: var(--primary);
}

.mobile-zones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-zone:hover {
    background: var(--primary);
    color: white;
}

.mobile-zone:hover strong,
.mobile-zone:hover small {
    color: white;
}

.zone-badge {
    width: 30px;
    height: 30px;
    background: var(--secondary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mobile-zone div {
    flex: 1;
}

.mobile-zone strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.mobile-zone small {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Стили для второй секции warehouse-details */
#warehouse-details {
    padding: 80px 0;
    background-color: white;
}

.content-navigation {
    margin-bottom: 50px;
    border-bottom: 2px solid #f0f0f0;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.content-text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Визуализация соотношения площадей */
.ratio-visualization {
    margin: 30px 0;
}

.ratio-bar {
    display: flex;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.ratio-segment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    padding: 10px;
    text-align: center;
}

.ratio-segment.main-storage {
    background: linear-gradient(135deg, var(--primary), #003d82);
}

.ratio-segment.auxiliary {
    background: linear-gradient(135deg, var(--secondary), #e65c00);
}

.ratio-segment span:first-child {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.ratio-segment span:last-child {
    font-size: 1.1rem;
}

/* Системы хранения */
.storage-types {
    margin: 25px 0;
}

.storage-type {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.storage-type h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.storage-type h3 i {
    font-size: 1.4rem;
}

.passage-requirements {
    background: #fff8e6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-top: 25px;
}

.passage-requirements h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.passage-requirements ul {
    list-style: none;
    padding: 0;
}

.passage-requirements li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.passage-requirements li::before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
    margin-right: 10px;
}

/* Оборудование */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.equipment-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--light);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.equipment-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
}

.equipment-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.equipment-requirements {
    background: #e8f4ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 25px;
}

/* Пожарная безопасность */
.safety-requirements {
    margin: 25px 0;
}

.safety-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff0f0;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.safety-item h3 {
    font-size: 1.2rem;
    color: #dc3545;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.safety-item h3 i {
    font-size: 1.4rem;
}

/* Изображения */
.content-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.content-image picture,
.content-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Анимации для обеих секций */
.tab-card, .requirement-item, .zone-card,
.storage-type, .equipment-item, .safety-item {
    opacity: 0;
    animation: slideUpFade 0.6s ease forwards;
}

.tab-card:nth-child(1) { animation-delay: 0.1s; }
.tab-card:nth-child(2) { animation-delay: 0.2s; }
.tab-card:nth-child(3) { animation-delay: 0.3s; }
.tab-card:nth-child(4) { animation-delay: 0.4s; }

.requirement-item:nth-child(1) { animation-delay: 0.1s; }
.requirement-item:nth-child(2) { animation-delay: 0.2s; }
.requirement-item:nth-child(3) { animation-delay: 0.3s; }
.requirement-item:nth-child(4) { animation-delay: 0.4s; }
.requirement-item:nth-child(5) { animation-delay: 0.5s; }

.zone-card:nth-child(1) { animation-delay: 0.1s; }
.zone-card:nth-child(2) { animation-delay: 0.2s; }
.zone-card:nth-child(3) { animation-delay: 0.3s; }
.zone-card:nth-child(4) { animation-delay: 0.4s; }
.zone-card:nth-child(5) { animation-delay: 0.5s; }
.zone-card:nth-child(6) { animation-delay: 0.6s; }

.storage-type:nth-child(1) { animation-delay: 0.1s; }
.storage-type:nth-child(2) { animation-delay: 0.2s; }
.storage-type:nth-child(3) { animation-delay: 0.3s; }
.storage-type:nth-child(4) { animation-delay: 0.4s; }

.equipment-item:nth-child(1) { animation-delay: 0.1s; }
.equipment-item:nth-child(2) { animation-delay: 0.2s; }
.equipment-item:nth-child(3) { animation-delay: 0.3s; }
.equipment-item:nth-child(4) { animation-delay: 0.4s; }

.safety-item:nth-child(1) { animation-delay: 0.1s; }
.safety-item:nth-child(2) { animation-delay: 0.2s; }
.safety-item:nth-child(3) { animation-delay: 0.3s; }
.safety-item:nth-child(4) { animation-delay: 0.4s; }
.safety-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для обеих секций */
@media (max-width: 1200px) {
    .tab-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-image {
        order: -1;
    }
    
    .content-image picture,
    .content-image img {
        height: 300px;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .requirements-header .section-title {
        font-size: 2rem;
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .zone-card {
        padding: 20px;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }
    
    .mobile-view {
        display: block;
    }
    
    #warehouse-requirements,
    #warehouse-details {
        padding: 60px 0;
    }
    
    .requirements-header {
        margin-bottom: 40px;
    }
    
    .requirements-header .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .mobile-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .ratio-bar {
        height: 50px;
    }
    
    .ratio-segment span:first-child {
        font-size: 0.8rem;
    }
    
    .ratio-segment span:last-child {
        font-size: 1rem;
    }
    
    .storage-type,
    .safety-item {
        padding: 15px;
    }
}

@media (max-width: 420px) {
    .requirements-header .section-title {
        font-size: 1.6rem;
    }
    
    .accordion-header {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 0 20px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 15px 20px;
    }
    
    .mobile-card {
        padding: 12px;
    }
    
    .mobile-card h4 {
        font-size: 0.85rem;
    }
    
    .mobile-card p {
        font-size: 0.75rem;
    }
    
    #warehouse-requirements,
    #warehouse-details {
        padding: 40px 0;
    }
    
    .content-navigation {
        margin-bottom: 30px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .content-text h2 {
        font-size: 1.6rem;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .content-image picture,
    .content-image img {
        height: 200px;
    }
    
    .equipment-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}