*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

body{
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f2f2f2;
}

.box-container{
    width: 1200px;
    margin: auto;
}

.header{
    width: 100%;
    min-height: 105px;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

/* Десктопная версия - видна только на десктопе */
.header-desktop{
    display: block;
    width: 100%;
    position: relative;
}

.header-desktop .header-content{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.header-desktop .mobile-menu-toggle{
    display: none;
}

.header-desktop .logo{
    flex: 0 0 auto;
}

.header-desktop .menu{
    flex: 1 1 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.header-desktop .header-right{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.header-desktop .contact-info{
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Мобильная версия - скрыта на десктопе */
.header-mobile{
    display: none;
    width: 100%;
}

.header-mobile .header-content{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.header-mobile .header-top{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-mobile .header-bottom{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.header-mobile .header-callback-button{
    display: block;
    background-color: #e53b24;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Varela Round", sans-serif;
}

.header-mobile .header-callback-button:hover{
    background-color: #c5321d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 59, 36, 0.3);
}

.header-mobile .mobile-menu-toggle{
    display: block;
    background: #133E71;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.header-mobile .mobile-menu-toggle:hover{
    background: #0a2a4a;
    transform: scale(1.05);
}

.logo img{
    height: 60px;
}

.menu{
    display: flex;
    gap: 30px;
}

.menu-link{
    color: #133E71;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link:hover{
    color: #0a2a4a;
    transform: translateY(-2px);
}

.menu-link::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #133E71;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-link:hover::after{
    width: 100%;
}

.header-right{
    display: flex;
    align-items: center;
    gap: 20px;
}

.vk-link{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #133E71;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.vk-link:hover{
    background-color: #0a2a4a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
}

.vk-icon{
    width: 30px;
    height: 30px;
}

.contact-info{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.contact-item{
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.contact-item:hover{
    background-color: rgba(19, 62, 113, 0.1);
    transform: translateX(5px);
}

.contact-icon{
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.phone-icon{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E71'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.email-icon{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E71'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.contact-text{
    color: #133E71;
    font-size: 14px;
    font-weight: 500;
}

.footer{
    width: 100%;
    background: #133e71;
    padding: 30px 0;
}

.footer-content-blocks{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-content-block-item{
    width: 250px;
    background: #fff;
    border-radius: 5px;
    height: 185px;
    padding: 15px;
}

.footer-logo{
    width: 115px;
    margin-bottom: 10px;
}

.footer-content-block-item p{
    color: #133e71;
    font-size: 14px;
}

.footer-content-block-item p+p{
    margin-top: 5px;
}

.footer-content-block-item h2{
    color: #e53b24;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-content-block-item ul{
    list-style: none;
}

.footer-content-block-item ul li{
    margin-top: 5px;
}

.footer-content-block-item ul li a{
    text-decoration: none;
    color: #133e71;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-content-block-item ul li a:hover{
    color: #e53b24;
    padding-left: 5px;
}


.footer-recall-form{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label{
    font-weight: 700;
    font-size: 16px;
}

.form-group input{
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    padding: 0 10px;
    margin-top: 5px;
}

.form-submit{
    color: #fff;
    background: #e53b24;
    border: none;
    width: 100%;
    height: 40px;
    cursor: pointer;
    margin-top: 10px;
}

.copyright{
    margin-top: 20px;
    width: 100%;
    text-align: right;
    color: #fff;
}

.vk-link_footer{
    margin-top: 10px;
}

.breadcrumbs{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumbs a{
    color: #133E71;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumbs a:hover{
    color: #e53b24;
    text-decoration: underline;
}

.breadcrumbs .separator{
    color: #999;
    font-weight: 400;
    user-select: none;
}

.breadcrumbs .current{
    color: #333;
    font-weight: 600;
}

.catalog-page-block{
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.filters-sidebar{
    width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-block{
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-block:last-child{
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title{
    color: #133E71;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.filter-options{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-options::-webkit-scrollbar{
    width: 6px;
}

.filter-options::-webkit-scrollbar-track{
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb{
    background: #133E71;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover{
    background: #0a2a4a;
}

.checkbox-label{
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label:hover{
    background-color: rgba(19, 62, 113, 0.05);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #133E71;
}

.checkbox-label span{
    color: #333;
    font-size: 14px;
}

.price-range{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-slider-container{
    position: relative;
    width: 100%;
    height: 6px;
    margin: 20px 0;
    background: #e0e0e0;
    border-radius: 3px;
}

.price-slider{
    position: absolute;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: none;
    outline: none;
    cursor: pointer;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
}

.price-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #133E71;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 3;
    transition: transform 0.1s ease;
}

.price-slider::-webkit-slider-thumb:hover{
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #133E71;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 3;
    transition: transform 0.1s ease;
}

.price-slider::-moz-range-thumb:hover{
    transform: scale(1.1);
}

.price-slider-min{
    z-index: 2;
}

.price-slider-max{
    z-index: 2;
}

.price-values{
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.category-item{
    margin-bottom: 5px;
}

.category-header{
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.category-header:hover{
    background-color: rgba(19, 62, 113, 0.05);
}

.category-header.selected{
    background-color: transparent;
}

.category-header.selected .category-toggle{
    color: #133E71;
}

.category-header.selected .category-name{
    color: #133E71;
    font-weight: 700;
}

.category-header .category-toggle{
    pointer-events: auto;
}

.category-header.has-subcategories .category-name{
    pointer-events: none;
}

.category-toggle{
    color: #133E71;
    font-size: 14px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    flex-shrink: 0;
    cursor: pointer;
}

.category-name{
    color: #333;
    font-size: 14px;
    font-weight: 400;
    flex: 1;
    cursor: pointer;
}

.category-subcategories{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 26px;
    margin-top: 0;
}

.category-subcategories.active{
    max-height: 300px;
    margin-top: 5px;
}

.subcategory-link{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #333;
    font-size: 14px;
    margin-bottom: 0;
}

.subcategory-link:hover{
    background-color: rgba(19, 62, 113, 0.05);
}

.subcategory-link.selected{
    background-color: transparent;
    color: #133E71;
    font-weight: 700;
}

.subcategory-link input[type="radio"]{
    display: none;
}

.subcategory-link.selected span{
    color: #133E71;
    font-weight: 700;
}

.search-box{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input{
    width: 100%;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.search-input:focus{
    border-color: #133E71;
    box-shadow: 0 0 0 3px rgba(19, 62, 113, 0.1);
}

.search-input::placeholder{
    color: #999;
}

.search-button{
    width: 100%;
    height: 40px;
    background: #133E71;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover{
    background: #0a2a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
}

.search-button:active{
    transform: translateY(0);
}

.filter-apply-button{
    width: 100%;
    height: 40px;
    background: #133E71;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.filter-apply-button:hover{
    background: #0a2a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
}

.filter-apply-button:active{
    transform: translateY(0);
}

.filter-reset-button{
    display: block;
    width: 100%;
    height: 40px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.filter-reset-button:hover{
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: #fff;
}

.filter-reset-button:active{
    transform: translateY(0);
}

.catalog-main{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sort-container{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.sort-label{
    color: #133E71;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.sort-select{
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.sort-select:focus{
    outline: none;
    border-color: #133E71;
    box-shadow: 0 0 0 3px rgba(19, 62, 113, 0.1);
}

.sort-select:hover{
    border-color: #133E71;
}

.products-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    align-content: start;
}

.product-card{
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover{
    box-shadow: 0 4px 16px rgba(19, 62, 113, 0.2);
    transform: translateY(-5px);
}

.product-image{
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info{
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-article{
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

.product-name{
    color: #133E71;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.product-category{
    color: #666;
    font-size: 13px;
}

.product-status-line{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.product-condition{
    background: #133E71;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-availability{
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-price{
    color: #e53b24;
    font-size: 22px;
    font-weight: 700;
    margin-top: auto;
}

.product-button{
    display: block;
    background: #133E71;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.product-button:hover{
    background: #0a2a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
}

.catalog-title{
    margin-top: 10px;
    font-size: 32px;
    color: #133E71;
}

.advertise-info{
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.advertise-info > * {
    min-width: 0;
}

.advertise-main{
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.advertise-gallery{
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-main-image{
    width: 100%;
    max-width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 15px;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.gallery-main-image img{
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

.gallery-thumbnails{
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumb{
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb:hover{
    border-color: #133E71;
}

.gallery-thumb.active{
    border-color: #e53b24;
}

.gallery-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advertise-details{
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.detail-item{
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child{
    border-bottom: none;
}

.detail-label{
    color: #666;
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
}

.detail-value{
    color: #133E71;
    font-size: 14px;
    font-weight: 700;
}

.advertise-manager{
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #133E71;
}

.manager-title{
    color: #133E71;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.manager-info{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manager-item{
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-label{
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.manager-value{
    color: #133E71;
    font-size: 14px;
    font-weight: 700;
}

.call-button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.call-button:hover{
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.call-button svg{
    flex-shrink: 0;
}

.advertise-price{
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.price-label{
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-value{
    color: #133E71;
    font-size: 28px;
    font-weight: 700;
}

.advertise-content{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.info-block{
    background: #fff;
    padding: 25px;
    border-radius: 8px;
}

.info-block-title{
    color: #133E71;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #133E71;
}

.info-block-content{
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.info-block-content p{
    margin-bottom: 10px;
}

.info-block-content p:last-child{
    margin-bottom: 0;
}

.info-block-content ul{
    list-style: none;
    padding-left: 0;
}

.info-block-content ul li{
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.info-block-content ul li:before{
    content: "•";
    position: absolute;
    left: 0;
    color: #133E71;
    font-weight: 700;
    font-size: 18px;
}

.highlight-text{
    color: #e53b24;
    font-weight: 700;
}

.warning-text{
    background: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin: 15px 0;
}

.success-text{
    background: #d4edda;
    padding: 15px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin: 15px 0;
}

.lightbox{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active{
    display: flex;
}

.lightbox-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content{
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image{
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close{
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover{
    color: #e53b24;
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 62, 113, 0.8);
    border: none;
    color: #fff;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-prev{
    left: 20px;
}

.lightbox-next{
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover{
    background: #e53b24;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter{
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: rgba(19, 62, 113, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Пагинация */
.pagination-wrapper{
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination{
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item{
    margin: 0;
    padding: 0;
}

.pagination-link{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #133E71;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-link:hover:not(.disabled):not(.active){
    background: #133E71;
    color: #fff;
    border-color: #133E71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
}

.pagination-link.active{
    background: #133E71;
    color: #fff;
    border-color: #133E71;
    cursor: default;
}

.pagination-link.disabled{
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info{
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


/* Стили для Bootstrap пагинации */
.catalog-main > nav,
.catalog-main .pagination-wrapper > nav{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.catalog-main nav .d-flex{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog-main nav .d-none.flex-sm-fill{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.catalog-main nav .d-none.flex-sm-fill > div:first-child{
    flex: 0 0 auto;
}

.catalog-main nav .d-none.flex-sm-fill > div:last-child{
    flex: 0 0 auto;
}

.pagination .page-item{
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-link{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #133E71;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 4px;
}

.pagination .page-link:hover:not(.disabled){
    background: #133E71;
    color: #fff;
    border-color: #133E71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
}

.pagination .page-item.active .page-link{
    background: #133E71;
    color: #fff;
    border-color: #133E71;
    cursor: default;
}

.pagination .page-item.disabled .page-link{
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover{
    transform: none;
    box-shadow: none;
}

/* Стили для информации о пагинации Bootstrap */
.small.text-muted{
    color: #666 !important;
    font-size: 14px;
    font-weight: 500;
}

.fw-semibold{
    font-weight: 600;
}

/* Мобильная адаптация */
@media (max-width: 768px){
    /* Контейнер */
    .box-container{
        width: 100%;
        padding: 0 15px;
    }

    /* Шапка */
    .header{
        height: auto;
        padding: 15px 0;
    }

    /* Скрыть десктопную версию на мобильных */
    .header-desktop{
        display: none;
    }

    /* Показать мобильную версию на мобильных */
    .header-mobile{
        display: block;
    }

    .header-mobile .header-content{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .header-mobile .header-top{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-mobile .logo{
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .header-mobile .logo img{
        height: 50px;
    }

    .header-mobile .header-bottom{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
        flex-wrap: wrap;
    }

    .header-mobile .menu{
        width: 100%;
        flex-direction: column;
        gap: 10px;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin-top: 15px;
    }

    .header-mobile .menu.active{
        display: flex;
    }

    .header-mobile .menu-link{
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .header-mobile .header-right{
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-mobile .contact-info{
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    .header-mobile .contact-item{
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: flex-start;
    }

    .header-mobile .contact-text{
        font-size: 13px;
        white-space: nowrap;
    }

    .header-mobile .vk-link{
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .header-mobile .vk-icon{
        width: 24px;
        height: 24px;
    }

    /* Кнопка обратного звонка в шапке */
    .header-callback-button{
        display: block;
        background: #e53b24;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-callback-button:hover{
        background: #c9321f;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(229, 59, 36, 0.3);
    }

    .header-content{
        position: relative;
    }

    .header .box-container{
        position: relative;
    }

    /* Хлебные крошки */
    .breadcrumbs{
        font-size: 12px;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .breadcrumbs .separator{
        margin: 0 5px;
    }

    /* Заголовок каталога */
    .catalog-title{
        font-size: 24px;
        margin-top: 5px;
    }

    /* Блок каталога */
    .catalog-page-block{
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    /* Боковая панель фильтров */
    .filters-sidebar{
        width: 100%;
        position: static;
        padding: 15px;
        order: 1;
    }

    /* Кнопка открытия фильтров на мобильных */
    .mobile-filters-toggle{
        display: block;
        width: 100%;
        height: 45px;
        background: #133E71;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .mobile-filters-toggle:hover{
        background: #0a2a4a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(19, 62, 113, 0.3);
    }

    .mobile-filters-toggle.active{
        background: #e53b24;
    }

    .mobile-filters-toggle.active:hover{
        background: #c9321f;
    }

    /* Контейнер дополнительных фильтров */
    .mobile-filters-container{
        display: none;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .mobile-filters-container.active{
        display: block;
    }

    .filter-block{
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    /* Первый блок (поиск) всегда видим */
    .filters-sidebar > .filter-block:first-child{
        display: block;
    }

    .filter-title{
        font-size: 15px;
        margin-bottom: 12px;
    }

    .filter-options{
        max-height: none;
        gap: 8px;
    }

    /* Поиск */
    .search-box{
        gap: 8px;
    }

    .search-input{
        height: 38px;
        font-size: 14px;
        padding: 0 12px;
    }

    .search-button{
        height: 38px;
        font-size: 14px;
    }

    /* Ценовой диапазон */
    .price-slider-container{
        margin: 15px 0;
    }

    .price-values{
        font-size: 12px;
    }

    /* Кнопки фильтров */
    .filter-apply-button,
    .filter-reset-button{
        height: 38px;
        font-size: 14px;
        margin-top: 15px;
    }

    /* Основной контент каталога */
    .catalog-main{
        gap: 15px;
        order: 2;
    }

    .sort-container{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sort-label{
        font-size: 14px;
    }

    .sort-select{
        width: 100%;
        min-width: auto;
        padding: 8px 12px;
        font-size: 14px;
    }

    .products-wrapper{
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Карточка товара */
    .product-card{
        border-radius: 6px;
    }

    .product-image{
        height: 180px;
    }

    .product-info{
        padding: 12px;
        gap: 6px;
    }

    .product-article{
        font-size: 11px;
    }

    .product-name{
        font-size: 15px;
    }

    .product-category{
        font-size: 12px;
    }

    .product-status-line{
        gap: 8px;
    }

    .product-condition,
    .product-availability{
        font-size: 11px;
        padding: 3px 8px;
    }

    .product-price{
        font-size: 20px;
    }

    .product-button{
        padding: 10px;
        font-size: 13px;
    }

    /* Подвал */
    .footer{
        padding: 25px 0;
    }

    .footer-content-blocks{
        flex-direction: column;
        gap: 15px;
    }

    .footer-content-block-item{
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .footer-content-block-item h2{
        font-size: 20px;
        margin-bottom: 8px;
    }

    .footer-content-block-item p{
        font-size: 13px;
    }

    .footer-logo{
        width: 100px;
    }

    .copyright{
        text-align: center;
        font-size: 12px;
        margin-top: 15px;
    }

    /* Форма обратного звонка */
    .form-group label{
        font-size: 14px;
    }

    .form-group input{
        height: 38px;
        font-size: 14px;
    }

    .form-submit{
        height: 38px;
        font-size: 14px;
    }

    /* Пагинация */
    .pagination-link{
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-info{
        font-size: 12px;
    }
    
    .catalog-main nav .d-none.flex-sm-fill{
        flex-direction: column;
        gap: 15px;
    }
    
    .catalog-main nav .d-none.flex-sm-fill > div:first-child,
    .catalog-main nav .d-none.flex-sm-fill > div:last-child{
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .pagination .page-link{
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        margin: 0 2px;
    }
    
    .small.text-muted{
        font-size: 12px;
    }

    /* Страница объявления */
    .advertise-info{
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .advertise-main{
        position: static;
    }

    .advertise-gallery{
        padding: 15px;
    }

    .gallery-main-image{
        height: 300px;
    }

    .gallery-thumb{
        width: 60px;
        height: 60px;
    }

    .advertise-details{
        padding: 15px;
    }

    .detail-item{
        flex-direction: column;
        gap: 5px;
        padding: 8px 0;
    }

    .detail-label{
        min-width: auto;
        font-size: 13px;
    }

    .detail-value{
        font-size: 13px;
    }

    .advertise-manager{
        padding: 15px;
    }

    .manager-title{
        font-size: 16px;
        margin-bottom: 12px;
    }

    .manager-label,
    .manager-value{
        font-size: 13px;
    }

    .call-button{
        padding: 12px 15px;
        font-size: 14px;
    }

    .advertise-price{
        padding: 15px;
    }

    .price-label{
        font-size: 13px;
    }

    .price-value{
        font-size: 24px;
    }

    .info-block{
        padding: 15px;
    }

    .info-block-title{
        font-size: 18px;
        margin-bottom: 12px;
    }

    .info-block-content{
        font-size: 14px;
    }

    /* Lightbox */
    .lightbox-prev,
    .lightbox-next{
        width: 50px;
        height: 50px;
        font-size: 40px;
    }

    .lightbox-prev{
        left: 10px;
    }

    .lightbox-next{
        right: 10px;
    }

    .lightbox-close{
        top: 10px;
        right: 10px;
        font-size: 36px;
    }

    .lightbox-counter{
        bottom: 10px;
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px){
    .box-container{
        width: 100%;
        padding: 0 20px;
    }

    .catalog-main{
        gap: 20px;
    }

    .products-wrapper{
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .filters-sidebar{
        width: 250px;
    }

    .footer-content-blocks{
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-content-block-item{
        width: calc(50% - 10px);
    }
}

/* Десктопная версия */
@media (min-width: 769px){
    .mobile-menu-toggle{
        display: none;
    }

    .header-top{
        display: none;
    }

    .header-bottom{
        display: none;
    }

    .header-content{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header-callback-button{
        display: none;
    }

    .mobile-filters-toggle{
        display: none;
    }

    .mobile-filters-container{
        display: block !important;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px){
    .box-container{
        padding: 0 10px;
    }

    .header{
        padding: 10px 0;
    }

    .header-top{
        gap: 10px;
    }

    .header-bottom{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo img{
        height: 40px;
    }

    .mobile-menu-toggle{
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .vk-link{
        width: 35px;
        height: 35px;
    }

    .vk-icon{
        width: 20px;
        height: 20px;
    }

    .contact-info{
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
    }

    .contact-item{
        flex: 0 0 auto;
    }

    .contact-text{
        font-size: 12px;
    }

    .header-callback-button{
        padding: 8px 15px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .mobile-filters-toggle{
        height: 40px;
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .catalog-title{
        font-size: 20px;
    }

    .filters-sidebar{
        padding: 12px;
    }

    .filter-title{
        font-size: 14px;
    }

    .filter-options{
        gap: 6px;
    }

    .checkbox-label span{
        font-size: 13px;
    }

    .product-image{
        height: 160px;
    }

    .product-name{
        font-size: 14px;
    }

    .product-price{
        font-size: 18px;
    }

    .product-button{
        padding: 8px;
        font-size: 12px;
    }

    .footer-content-block-item{
        padding: 12px;
    }

    .footer-content-block-item h2{
        font-size: 18px;
    }

    .footer-content-block-item p{
        font-size: 12px;
    }

    .gallery-main-image{
        height: 250px;
    }

    .gallery-thumb{
        width: 50px;
        height: 50px;
    }

    .price-value{
        font-size: 20px;
    }

    .pagination .page-link{
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
        margin: 0 1px;
    }
}