
    <style>
/* --- Основные стили табов (ПК) --- */
.tabs-container {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 50px;
    padding-top: 20px;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 7px outset #003162;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: #003162;
    color: white;
    border-color: #003162;
}

.tab-content {
    display: none;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tab-content.active {
    display: block;
}

/* --- АККОРДЕОН ДЛЯ МОБИЛЬНЫХ --- */
.mobile-accordion {
    display: none;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-title {
    border-radius: 15px;
    display: flex;
    position: relative;
    padding: 15px;
    border: 7px outset #003162;
    color: #413232;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    justify-content: center;
}

.accordion-title::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: bold;
}

.accordion-title.active::after {
    content: "-";
}

.accordion-body {
    display: none;
    background: white;
    padding: 15px;
}

.accordion-body.active {
    display: block;
}

/* --- АДАПТИВ: на мобильных скрываем табы, включаем аккордеон --- */
@media (max-width: 768px) {
    .tabs-header {
        display: none;
    }
    .tab-content {
        display: none !important;
    }
    .mobile-accordion {
        display: block;
        width: 100%;
    }
}
/* СТИЛИ ДЛЯ КОНТЕНТА В ЗАГОЛОВКАХ */
.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 24px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.image-item {
    cursor: pointer;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0,  ͏0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}



.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px 8px 0 0;
}


.image-caption {
    margin-top: 12px;
    padding: 16px 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    background: white;
    border-radius: 0 0 8px 8px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}




@media (min-width: 992px) {
.image-item:hover .image-caption {
    color: #4d90fe;
}
.image-item:hover img {
    transform: scale(1.08);
}
.image-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
} 

 .image-item:focus {
    outline: 3px solid #4d90fe;
    outline-offset: 2px;
}

.image-item:active {
    transform: translateY(-2px) scale(1.01);
    transition-duration: 0.1s;
} 

 .image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4d90fe, #34a853);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.image-item:hover::before {
    transform: scaleX(1);
}

}



.image-item .image-description {
    display: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e2e8f0;
}

.image-item:hover .image-description {
    display: block;
    animation: fadeIn 0.3s ease;
}





/* Контейнер */
.gate-construction {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Блок с картинкой */
.gate-visual {
    flex: 0 0 350px;
    margin: 0;
}

.gate-visual img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Блок со списком */
.gate-components {
    flex: 1;
    min-width: 280px;
}

/* Список */
.components-list {
    counter-reset: item;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.components-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    line-height: 1.45;
    font-size: 15px;
    color: #333;
}

/* Красивые нумераторы */
.components-list li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: #2f3ba5;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптив */
@media (max-width: 768px) {

    .gate-construction {
        flex-direction: column;
        align-items: center;
    }

    .gate-visual {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .gate-components {
        width: 100%;
    }

    .components-list li {
        font-size: 14px;
    }
}







.measure-block {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    font-family: sans-serif;
    padding: 0 15px;
}

.measure-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.measure-section .subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #777;
    margin: 10px 0;
}

.text {
    margin: 20px 0;
    line-height: 1.6;
    color: #333;
}

.measure-btn {
    background: #2f3ba5;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    max-width: 460px;
    margin: 20px auto;
    display: block;
}

.measure-btn:hover {
    opacity: 0.9;
}

.line {
    display: block;
    width: 50%;
    height: 1px;
    background: #ccc;
    margin: 30px auto 15px;
}




.measure-steps {
    max-width: 800px;
    margin: 40px auto;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 0 15px;
}

.measure-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 25px;
}

.measure-text p {
    margin: 10px 0;
    font-size: 16px;
}

.measure-text b {
    color: #2f3ba5; /* тот же синий, что на кнопке из предыдущего блока */
}



.montage-block {
    max-width: 900px;
    margin: 40px auto;
    font-family: sans-serif;
    padding: 0 15px;
    text-align: center;
}

.subtitle-center {
    color: #666;
    font-size: 20px;
    margin-bottom: 5px;
}

.line {
    display: block;
    width: 60%;
    height: 1px;
    background: #ccc;
    margin: 15px auto 25px;
}

.montage-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.montage-btn {
    background: #2f3ba5;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 30px;
}



.percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #2f3ba5;
    font-weight: bold;
}



.pdf-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-btn {
    display: inline-block;
    background: #2f3ba5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}



/* Для мобильных */
@media (max-width: 768px) {
  .gate-construction {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }
  
  .gate-visual,
  .gate-components {
    min-width: 100%;
  }
  
  .component-item {
    padding: 10px 0 10px 35px;
    font-size: 15px;
  }
}




@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .image-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
        padding: 12px;
    }
    
    .image-item img {
        height: 160px;
    }
    
    .image-caption {
        font-size: 1rem;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .image-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}
        
        /* Стили для таблицы */
        .size-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        
        .size-table th,
        .size-table td {
            border: 1px solid #ddd;
            padding: 15px;
            text-align: left;
        }
        
        .size-table th {
            background: #003162;
            color: white;
            font-size: 1.2em;
        }
        
        h4{
            font-size: 26px;
            display: flex;
            justify-content: center;
            text-align: center;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .tabs-header {
                flex-direction: column;
            }
            
            .image-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }
        .pros1, .pros2{
            display: flex;
            justify-content: center;
            gap: 100px;
            margin-top: 20px;
        }
        .pros1 img, .pros2 img{
            border-radius: 30px;
            border: 2px solid #2f3ba5;
        }

         /* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 2%;
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    font-size: 1.1em;
    font-family: Arial, sans-serif;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    color: #ccc;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    transition: 0.3s;
    user-select: none;
    z-index: 1001;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover, .modal-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .modal-caption {
        width: 95%;
        font-size: 1em;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-prev, .modal-next {
        font-size: 30px;
        padding: 10px;
    }
}