/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
    padding-top: 160px;
    transition: padding-top 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для фиксированной шапки */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sticky-header .main-nav-updated {
    transition: all 0.3s ease;
}

.sticky-header.scrolled .main-nav-updated {
    background: rgba(83, 108, 121, 0.95);
    backdrop-filter: blur(5px);
}

/* Дополнительные стили для нового дизайна */
.header-redesigned {
    background: white;
    padding: 10px 0;
    position: relative;
}

.header-inner-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 400px;
}

.logo-main-new {
    height: 140px;
    width: auto;
    transition: transform 0.3s ease;
    background: white;
    padding: 5px;
    object-fit: contain;
}

.logo-main-new:hover {
    transform: scale(1.05);
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.contacts-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.contact-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
}

.contact-compact i {
    color: #536C79;
    font-size: 18px;
}

.contact-link-compact {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link-compact:hover {
    color: #536C79;
}

.contact-text {
    color: #2c3e50;
    font-weight: 500;
}

.main-nav-updated {
    background: #536C79;
    border-bottom: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list-updated {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.nav-item-updated {
    margin: 0;
}

.nav-link-updated {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 0;
}

.nav-link-updated:hover,
.nav-link-updated.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.has-dropdown {
    position: relative;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 4px;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-link:hover {
    background: #f8f9fa;
}

/* Герой секция */
.hero {
    position: relative;
    height: 500px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(83, 108, 121, 0.15);
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateZ(-1px) scale(1.2);
    transition: transform 0.3s ease-out;
}

.slide:hover .slide-bg {
    transform: translateZ(-1px) scale(1.25);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.slider-prev,
.slider-next {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Основной контент */
.main {
    padding: 60px 0;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content > section {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.content > section:nth-child(1) { animation-delay: 0.1s; }
.content > section:nth-child(2) { animation-delay: 0.3s; }
.content > section:nth-child(3) { animation-delay: 0.5s; }
.content > section:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #536C79, #FF6B6B);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Карточки продукции с изображениями 125x125 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(83, 108, 121, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(83, 108, 121, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #536C79, #3a4c57);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card__image {
    height: 165px;
    width: 165px;
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    width: 125px;
    height: 125px;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 4px;
}

.product-card:hover .product-card__image img {
    transform: scale(1.1);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #536C79;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
}

.product-card__badge.new {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }
}

.product-card__content {
    padding: 15px 25px 25px 25px;
}

.product-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0 15px 0;
    text-align: center;
}

.product-card__description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.product-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #536C79;
    font-size: 14px;
    justify-content: center;
}

.feature i {
    font-size: 16px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #536C79, #3a4c57);
    color: white;
    box-shadow: 0 4px 15px rgba(83, 108, 121, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(83, 108, 121, 0.4);
    background: linear-gradient(45deg, #3a4c57, #536C79);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    display: block;
    margin: 0 auto;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    background: linear-gradient(45deg, #495057, #6c757d);
}

.full-width {
    width: 100%;
}

/* Эффект волны для кнопок */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Вкладки */
.application-tabs {
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #536C79;
}

.tab-btn.active {
    background: linear-gradient(45deg, #536C79, #3a4c57);
    color: white;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.2);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.tabs-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-pane h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.tab-pane p {
    margin-bottom: 15px;
    color: #666;
}

.tab-pane ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.tab-pane li {
    margin-bottom: 8px;
    color: #555;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(83, 108, 121, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(83, 108, 121, 0.2);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #536C79, #3a4c57);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #536C79, #3a4c57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(83, 108, 121, 0.3);
}

.advantage-card:hover .advantage-icon {
    transform: rotateY(180deg) scale(1.1);
    background: linear-gradient(135deg, #3a4c57, #536C79);
}

.advantage-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    line-height: 1.5;
}

/* Боковая панель */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #536C79, #3a4c57) border-box;
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(83, 108, 121, 0.1), transparent);
    transition: left 0.6s ease;
}

.quick-link:hover::before {
    left: 100%;
}

.quick-link:hover {
    transform: translateX(10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(83, 108, 121, 0.15);
}

.quick-link i {
    color: #536C79;
    font-size: 18px;
}

/* Новости */
.news-scroll-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 15px;
}

.news-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #536C79;
    border-radius: 3px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #3a4c57;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    font-size: 12px;
    color: #536C79;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-link {
    font-size: 13px;
    color: #536C79;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #3a4c57;
}

.offer-widget {
    text-align: center;
}

.offer-widget p {
    color: #666;
    margin-bottom: 20px;
}

/* Модальные окна */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal-overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    z-index: 2001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal.active {
    display: block;
}

.modal-content {
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
    color: #555;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #536C79;
    box-shadow: 0 0 0 3px rgba(83, 108, 121, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Модальное окно для подробного описания продукции */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.product-modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: translateY(0);
}

.product-modal-header {
    background: #536C79;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.product-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.product-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.product-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
}

.product-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.product-modal-features {
    margin-bottom: 20px;
}

.product-modal-features h4 {
    color: #536C79;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-modal-features ul {
    padding-left: 20px;
    margin: 0;
}

.product-modal-features li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-modal-specs {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-modal-specs h4 {
    color: #536C79;
    margin-bottom: 10px;
    font-size: 18px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-name {
    color: #666;
}

.spec-value {
    font-weight: 500;
    color: #2c3e50;
}

.product-modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-modal-price {
    font-size: 20px;
    font-weight: 600;
    color: #536C79;
}

.product-modal-contact-btn {
    background: #536C79;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-modal-contact-btn:hover {
    background: #3a4c57;
    transform: translateY(-2px);
}

/* Текстовое модальное окно */
.text-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.text-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.text-modal-header {
    padding: 20px;
    background: #536C79;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 22px;
}

.text-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.text-modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.text-modal-body {
    padding: 30px;
    line-height: 1.6;
    color: #333;
    max-height: 60vh;
    overflow-y: auto;
}

.text-modal-body h3 {
    color: #536C79;
    margin-top: 20px;
    margin-bottom: 10px;
}

.text-modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.text-modal-body li {
    margin-bottom: 5px;
}

/* Кнопка для открытия текстового модального окна */
.open-text-modal-btn {
    display: inline-block;
    margin: 15px 0;
    padding: 12px 25px;
    background-color: #536C79;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.open-text-modal-btn:hover {
    background-color: #3a4c57;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Футер */
.footer-updated {
    background: #536C79;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content-updated {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-updated {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.footer-subtext-updated {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-title-updated {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.footer-links-updated {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-updated li {
    margin-bottom: 10px;
}

.footer-links-updated a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-updated a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contacts-updated {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts-updated li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.footer-contacts-updated i {
    color: white;
    margin-top: 3px;
    min-width: 20px;
}

.footer-bottom-updated {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright-updated {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-legal-updated {
    display: flex;
    gap: 20px;
}

.footer-legal-updated a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal-updated a:hover {
    color: white;
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #536C79;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(83, 108, 121, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #3a4c57;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(83, 108, 121, 0.4);
}

/* Современные скроллбары */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #536C79, #3a4c57);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #3a4c57, #536C79);
}

/* Эффект ripple для кнопок */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Стили для иконок мессенджеров в шапке */
.messenger-icons {
    display: flex;
    gap: 8px;
}

.messenger-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.messenger-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.messenger-icons i {
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 992px) {
    body {
        padding-top: 140px;
    }
    
    .layout {
        grid-template-columns: 1fr;
    }
    
    .header-inner-new {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 10px;
        justify-content: center;
        max-width: 100%;
    }
    
    .header-content {
        align-items: center;
    }
    
    .contacts-compact {
        justify-content: center;
    }
    
    .nav-list-updated {
        justify-content: center;
    }
    
    .logo-main-new {
        height: 120px;
    }
    
    .product-modal-content {
        width: 95%;
    }
    
    .text-modal-content {
        width: 90%;
    }
    
    .slide-title {
        font-size: 36px;
    }
    
    .slide-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }
    
    .contacts-compact {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .nav-list-updated {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item-updated {
        width: 100%;
        text-align: center;
    }
    
    .footer-content-updated {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-updated {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-main-new {
        height: 100px;
    }
    
    .news-scroll-container {
        max-height: 250px;
    }
    
    .sticky-header .main-nav-updated {
        padding: 5px 0;
    }
    
    .nav-link-updated {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .product-modal-body {
        padding: 20px;
    }
    
    .product-modal-title {
        font-size: 20px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .product-modal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .text-modal-body {
        padding: 20px;
        max-height: 70vh;
    }
    
    .text-modal-content {
        margin: 5% auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-text {
        font-size: 16px;
    }
    
    .hero {
        height: 400px;
    }
    
    /* Адаптивность для изображений в карточках продукции */
    .product-card__image {
        width: 100px;
        height: 100px;
    }
    
    .product-card__image img {
        width: 100px;
        height: 100px;
    }
    
    .product-card__badge {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    /* Адаптивность для иконок мессенджеров */
    .messenger-icons {
        gap: 6px;
    }
    
    .messenger-icons a {
        width: 22px;
        height: 22px;
    }
    
    .messenger-icons i {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }
    
    .logo-main-new {
        height: 80px;
    }
    
    .nav-link-updated {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .news-scroll-container {
        max-height: 200px;
    }
    
    .contact-compact {
        font-size: 14px;
    }
    
    .contact-compact i {
        font-size: 16px;
    }
    
    .product-modal-header {
        padding: 15px;
    }
    
    .product-modal-body {
        padding: 15px;
    }
    
    .product-modal-title {
        font-size: 18px;
    }
    
    .text-modal-header {
        padding: 15px;
    }
    
    .text-modal-body {
        padding: 15px;
    }
    
    .text-modal-header h2 {
        font-size: 18px;
    }
    
    .open-text-modal-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero {
        height: 350px;
    }
    
    /* Адаптивность для изображений в карточках продукции */
    .product-card__image {
        width: 80px;
        height: 80px;
    }
    
    .product-card__image img {
        width: 80px;
        height: 80px;
    }
    
    .product-card__badge {
        top: 5px;
        right: 5px;
        padding: 3px 6px;
        font-size: 8px;
    }
    
    /* Адаптивность для иконок мессенджеров */
    .messenger-icons {
        gap: 4px;
    }
    
    .messenger-icons a {
        width: 20px;
        height: 20px;
    }
    
    .messenger-icons i {
        font-size: 12px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    body {
        padding-top: 90px;
    }
    
    .logo-main-new {
        height: 70px;
    }
    
    .contacts-compact {
        gap: 5px;
    }
    
    .contact-compact {
        font-size: 13px;
    }
    
    /* Адаптивность для изображений в карточках продукции */
    .product-card__image {
        width: 70px;
        height: 70px;
    }
    
    .product-card__image img {
        width: 70px;
        height: 70px;
    }
    
    .product-card__badge {
        top: 5px;
        right: 5px;
        padding: 2px 4px;
        font-size: 7px;
    }
    
    /* Адаптивность для иконок мессенджеров */
    .messenger-icons {
        gap: 3px;
    }
    
    .messenger-icons a {
        width: 18px;
        height: 18px;
    }
    
    .messenger-icons i {
        font-size: 11px;
    }
}
/* Стили для скрытия шапки на мобильных устройствах */
#stickyHeader {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#stickyHeader.header-hidden {
    transform: translateY(-100%);
}

/* Для больших экранов шапка всегда видна */
@media (min-width: 768px) {
    #stickyHeader {
        transform: translateY(0) !important;
    }
}
/* Модальное окно для полноразмерных изображений */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.fullscreen-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: auto;
    animation: zoomIn 0.3s ease;
    position: relative;
}

.fullsize-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.fullscreen-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.fullscreen-modal-caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

.fullscreen-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.fullscreen-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-modal-prev {
    left: 20px;
}

.fullscreen-modal-next {
    right: 20px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .fullscreen-modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .fullscreen-modal-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .fullscreen-modal-prev {
        left: 10px;
    }
    
    .fullscreen-modal-next {
        right: 10px;
    }
    
    .fullscreen-modal-caption {
        font-size: 16px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .fullscreen-modal-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    .fullscreen-modal-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
.messenger-link .max-icon {
    font-style: normal;
    display: inline-block;
    color: #FF3366;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}