
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #2681d4;
            --primary-dark: #1a5c9a;
            --primary-light: #4a9eff;
            --secondary: #5a6a77;
            --dark: #1e2a32;
            --gray: #6c7a89;
            --light-gray: #f8fafc;
            --border: #e2edf2;
            --white: #ffffff;
            --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.05);
            --shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.12);
            --radius: 24px;
            --radius-sm: 16px;
            --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        body {
            font-family: 'Montserrat', sans-serif;
            font-size: 16px;
            line-height: 1.5;
            color: var(--dark);
            background: var(--white);
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ==================== HEADER ==================== */
        .header {
            position: sticky;
            top: 16px;
            z-index: 1000;
            width: calc(100% - 32px);
            max-width: 1400px;
            margin: 16px auto 0;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            border-radius: 80px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }
        .header.scrolled {
            top: 8px;
            box-shadow: var(--shadow);
            background: rgba(255, 255, 255, 0.98);
        }
        .header__inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 28px;
            gap: 20px;
        }
        .header__logo img{
            height: 52px;
            width: auto;
            transition: transform 0.2s;
        }
        .header__nav {
            display: flex;
            gap: 0px;
            flex-wrap: wrap;
        }
        .header__nav a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            padding: 0px 12px;
            border-radius: 50px;
            transition: var(--transition);
            white-space: nowrap;
        }
        .header__nav a:hover, .header__nav a.active {
            background: rgba(38, 129, 212, 0.1);
            color: var(--primary);
        }
        .header__actions {
            display: flex;
            align-items: center;
            gap: 24px;
        }
        .header__phone{
            display: flex;
            flex-direction: column;
        }
        .header__phone a {
            
            font-weight: 800;
            font-size: 1rem;
            color: var(--dark);
            text-decoration: none;
        }
        .header__phone-label {
            font-size: 11px;
            color: var(--gray);
        }
        .header__btn {
            background: linear-gradient(105deg, var(--primary), var(--primary-light));
            color: white;
            border: none;
            padding: 10px 28px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(38,129,212,0.3);
        }
        .menu-btn {
            display: none;
            background: none;
            border: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
        }
        .menu-btn .line {
            margin-bottom: 3px;
            width: 28px;
            height: 3px;
            background: var(--primary);
            border-radius: 4px;
        }

        /* Mobile Menu */
        .menu-mb {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(8px);
            z-index: 2000;
            visibility: hidden;
            opacity: 0;
            transition: 0.25s;
        }
        .menu-mb.active {
            visibility: visible;
            opacity: 1;
        }
        .menu-mb__dialog {
            position: absolute;
            right: 0;
            top: 0;
            width: 85%;
            max-width: 380px;
            height: 100%;
            background: white;
            padding: 32px 28px;
            transform: translateX(100%);
            transition: 0.3s;
            display: flex;
            flex-direction: column;
        }
        .menu-mb.active .menu-mb__dialog {
            transform: translateX(0);
        }
        .menu-mb__list {
            list-style: none;
            margin-top: 30px;
            flex: 1;
        }
        .menu-mb__item {
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }
        .menu-mb__link {
            font-weight: 600;
            text-decoration: none;
            color: var(--dark);
            font-size: 1.1rem;
        }
        .menu-mb__contacts {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }
        .menu-mb__phone {
            font-weight: 800;
            font-size: 1.3rem;
            display: block;
            margin-bottom: 16px;
            color: var(--primary);
        }
        .menu-mb__btn {
            width: 100%;
            background: var(--primary);
            border: none;
            padding: 14px;
            border-radius: 60px;
            color: white;
            font-weight: 700;
        }

        /* ==================== MAIN LAYOUT ==================== */
        .mainblock__inner1 {
            display: grid;
            gap: 32px;
            margin: 40px 0 60px;
        }
         .mainblock__inner {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 32px;
            margin: 40px 0 60px;
        }
        .catalog-list-panel {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            padding: 28px 20px;
            position: sticky;
            top: 100px;
        }
        .catalog-list-panel-title {
            font-weight: 800;
            font-size: 1.3rem;
            display: block;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 3px solid var(--primary);
            display: inline-block;
        }
        .catalog-section-list-line-list {
            list-style: none;
            margin-top: 20px;
        }
        .catalog-section-list-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            border-radius: 60px;
            margin-bottom: 6px;
            transition: 0.2s;
            cursor: pointer;
        }
        .catalog-section-list-item:hover {
            background: #eef4fc;
        }
        .catalog-section-list__img {
            font-size: 26px;
            color: var(--primary);
        }
        .catalog-section-list-item-link {
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            color: var(--dark);
        }

        /* Slider */
        .main__slider-banner {
            height: 480px;
            border-radius: 32px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background-size: cover;
            background-position: center;
            background-image: url('/image/hero1.png');
            background-color: #1e3a4e;
        }
        .main__slider-content {
            
            padding: 40px 32px;
            border-radius: 48px;
            max-width: 90%;
            text-align: left;
        }
        .main__slider-title {
            font-size: clamp(32px, 6vw, 54px);
            font-weight: 800;
            color: white;
        }
        .main__slider-text {
            font-size: 1.2rem;
            color: white;
            margin: 16px 0 24px;
        }
        .main__slider-btn {
            background: white;
            color: var(--primary);
            padding: 14px 40px;
            border-radius: 60px;
            font-weight: 700;
            text-decoration: none;
            display: inline-block;
        }
        .main-service__list {
            display: grid;
            list-style: none;
            grid-template-columns: repeat(3,1fr);
            gap: 24px;
            margin-top: 32px;
        }
        .main-service__img-box {
            max-height: 140px;
            width: 100%;
            border-radius: 24px;
            overflow: hidden;
            aspect-ratio: 16/9;
            background: #f0f4f8;
        }
        .main-service__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.3s;
        }

        /* Headline */
        .headline {
            font-size: 2.2rem;
            text-align: center;
            margin: 60px 0 40px;
            font-weight: 700;
        }
        .headline::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: var(--primary);
            margin: 14px auto 0;
            border-radius: 4px;
        }

        /* Catalog Grids */
        .main-catalog-list__row, .main-catalog__row {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
            gap: 30px;
        }
        .main-catalog-list__box {
            background: white;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: 0.25s;
            text-decoration: none;
            color: inherit;
        }
        .main-catalog-list__box:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow);
        }
        .main-catalog-list__img-box {
            height: 90%;
            overflow: hidden;
        }
        .main-catalog-list__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .main-catalog-list__title {
            padding: 20px;
            font-weight: 700;
            text-align: center;
        }

        /* Advantages */
        .advantage__row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 28px;
            background: var(--light-gray);
            padding: 48px 32px;
            border-radius: 48px;
            margin: 40px 0;
        }
        .advantage__col {
            display: flex;
            gap: 20px;
            align-items: flex-start;
            padding: 20px;
            background: white;
            border-radius: 28px;
            transition: 0.2s;
        }
        .advantage__col--bg {
            background: linear-gradient(120deg, var(--primary), var(--primary-light));
            color: white;
        }
        .advantage__col--bg .advantage__title, 
        .advantage__col--bg .advantage__text {
            color: white;
        }
        .advantage__img {
            width: 48px;
            flex-shrink: 0;
        }

        /* Product Cards */
        .product-item-container {
            background: white;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: 0.25s;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .product-item-container:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow);
        }
        .product-item-image-original {
            width: 100%;
 
            object-fit: cover;
        }
        .product-item-title {
            font-weight: 600;
            padding: 18px 18px 8px;
            font-size: 0.95rem;
            min-height: 70px;
        }
        .product-item-info-container {
            display: flex;
            gap: 12px;
            padding: 12px 18px 24px;
        }
        .catalog-order__btn, .catalog__btn {
            flex: 1;
            padding: 12px;
            border-radius: 60px;
            font-weight: 600;
            font-size: 13px;
            text-align: center;
            cursor: pointer;
            border: none;
            transition: 0.2s;
        }
        .catalog-order__btn {
            background: var(--primary);
            color: white;
        }
        .catalog__btn {
            background: #f0f3f8;
            text-decoration: none;
            color: var(--dark);
        }

        /* History & News */
        .mainother__row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 36px;
            margin: 60px 0;
        }
        .mainother__card {
            background: white;
            border-radius: 32px;
            padding: 32px;
            box-shadow: var(--shadow-sm);
        }
        .history__gallery {
            display: grid;
            grid-template-columns: repeat(5,1fr);
            gap: 12px;
            margin-top: 20px;
        }
        .history__gallery-img {
            width: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 18px;
        }
        .news__inner {
            display: flex;
            gap: 18px;
            margin-bottom: 28px;
            text-decoration: none;
            color: inherit;
            transition: 0.2s;
        }
        .news__inner:hover {
            transform: translateX(5px);
        }
        .news__img-box {
            width: 110px;
            flex-shrink: 0;
            border-radius: 20px;
            overflow: hidden;
            height: 90px;
        }
        .news__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Footer */
        .footer {
            background: #f2f6f9;
            border-radius: 40px 40px 0 0;
            padding: 50px 0 30px;
            margin-top: 40px;
        }
        .footer__row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 40px;
        }
        .footer__menu-list {
            list-style: none;
        }
        .footer__menu-list li {
            margin-bottom: 12px;
        }
        .footer__menu-list a {
            text-decoration: none;
            color: var(--secondary);
            transition: 0.2s;
        }
        .map {
            width: 100%;
            height: 220px;
            border-radius: 24px;
            border: 0;
        }

        /* Social & Modals */
        .social-buttons__list {
            list-style: none;
            position: fixed;
            bottom: 28px;
            right: 28px;
            display: flex;
            gap: 14px;
            z-index: 1100;
        }
        .social-buttons__link {
            width: 54px;
            height: 54px;
            background: var(--primary);
            border-radius: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            text-decoration: none;
            color: white;
            box-shadow: var(--shadow);
        }
        .eit-modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 3000;
        }
        .eit-modal.active {
            display: flex;
        }
        .eit-modal-dialog {
            background: white;
            border-radius: 40px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow: auto;
            padding: 32px;
        }
        .form-control {
            width: 100%;
            padding: 14px 18px;
            border: 1.5px solid var(--border);
            border-radius: 60px;
            margin-top: 8px;
            font-family: inherit;
        }
        .order__btn {
            background: var(--primary);
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 60px;
            color: white;
            font-weight: 700;
            margin-top: 20px;
        }
        @media (max-width: 350px) {
            .news__header{
                flex-direction: column;
                align-items: flex-start;
                align-items: flex-start !important;
            }
        }
        /* Responsive */
        @media (max-width: 1200px) {
            .header__nav {
                display: none;
            }
            .menu-btn {
                display: flex;
            }
            .mainblock__inner {
                grid-template-columns: 1fr;
            }
            .catalog-list-panel {
                display: none;
            }
        }
        @media (max-width: 992px) {
            .main-service__list {
                grid-template-columns: 1fr;
            }
            .mainother__row {
                grid-template-columns: 1fr;
            }
            .history__gallery {
                grid-template-columns: repeat(3,1fr);
            }
            .main__slider-banner {
                height: 420px;
            }
        }
        @media (max-width: 768px) {
            .header__phone {
                display: none;
            }
            .header__inner {
                padding: 10px 20px;
            }
            .advantage__row {
                grid-template-columns: 1fr;
            }
            .main-catalog-list__row, .main-catalog__row {
                grid-template-columns: repeat(2,1fr);
                gap: 20px;
            }
            .footer__row {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 540px) {
            .container {
                padding: 0 16px;
            }
            .main-catalog-list__row, .main-catalog__row {
                grid-template-columns: 1fr;
            }
            .headline {
                font-size: 1.8rem;
            }
            .social-buttons__list {
                bottom: 16px;
                right: 16px;
            }
        }
        @media (max-width: 420px){
            .header__logo img{
                height: 35px;
            }
            .header__btn{
                padding: 5px 28px;
            }
        }
         @media (max-width: 370px){
            .header__logo img{
                height: 35px;
            }
            .header__btn{
                padding: 10px 6px;
                font-size: 12px;
            }
        }
        .fade-in {
            opacity: 1;
            transform: translateY(20px);
            transition: 0.6s;
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        * a{
            text-decoration: none;
        }
.catalog-section-list-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalog-section-list-item.active {
    background: #eef4fc;
    border-radius: 60px;
}

.catalog-section-list-item.active i {
    color: var(--primary);
}

.catalog-section-list-item.active a {
    color: var(--primary);
}.main__slider-banner {
    position: relative;
    height: 480px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.main__slider-content {
    position: relative;
    z-index: 3;
   
    padding: 40px 32px;
    border-radius: 48px;
    max-width: 90%;
    text-align: left;
}

.main__slider-title {
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 800;
    color: white;
    margin: 0;
}

.main__slider-text {
    font-size: 1.2rem;
    color: white;
    margin: 16px 0 24px;
}

.main__slider-btn {
    background: white;
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.main__slider-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: white;
}

@media (max-width: 992px) {
    .main__slider-banner {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .main__slider-banner {
        height: 350px;
    }
    
    .main__slider-content {
        padding: 25px 20px;
    }
}/* Детальная страница истории */
.history-detail-page {
    padding: 40px 0 60px;
}

.history-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.history-detail__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
    text-align: center;
}

.history-detail__main-image {
    margin-bottom: 40px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-detail__main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.history-detail__content {
    margin-bottom: 50px;
}

.history-detail__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 30px;
}

.history-detail__text p {
    margin-bottom: 20px;
}

.history-detail__gallery {
    
    margin-top: 40px;
}

.history-detail__gallery-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.history-detail__gallery-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.history-detail__gallery-grid {
    flex-direction: row;
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.history-detail__gallery-item {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.history-detail__gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.history-detail__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-detail__gallery-item:hover img {
    transform: scale(1.05);
}

.history-detail__empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
}

.history-detail__empty p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .history-detail__title {
        font-size: 1.8rem;
    }
    
    .history-detail__gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .history-detail__text {
        font-size: 1rem;
    }
}/* Страница новостей */
.news-page {
    padding: 40px 0 60px;
}

.news-page__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--dark);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.news-page__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

/* Сетка новостей */
.news-grid__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
/* Ошибки валидации */
.form-input.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-input.success {
    border-color: #27ae60;
}

.form-error {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.form-required {
    color: #e74c3c;
}

/* Сообщение формы */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Скрытие антиспам-поля */
.antispam-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Анимация кнопки */
.modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.news-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.news-card__image-link {
    
    display: flex;
   
    display: block;
    overflow: hidden;
}

.news-card__image {

    height: 100%;
    overflow: hidden;
}

.news-card__image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.news-card__image--empty svg {
    width: 60px;
    height: 60px;
}

.news-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.news-card__date svg {
    width: 14px;
    height: 14px;
}

.news-card__title-link {
    text-decoration: none;
    color: inherit;
}

.news-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--dark);
    transition: color 0.3s ease;
}

.news-card__title-link:hover .news-card__title {
    color: var(--primary);
}

.news-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 20px;
    flex: 1;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.news-card__link:hover {
    gap: 10px;
}

/* Пагинация */
.news-pagination {
    margin-top: 50px;
    text-align: center;
}

.news-pagination .modern-page-navigation {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.news-pagination .modern-page-navigation a,
.news-pagination .modern-page-navigation span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-pagination .modern-page-navigation a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-pagination .modern-page-current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-pagination .modern-page-prev,
.news-pagination .modern-page-next {
    background: white;
}

/* Пустые новости */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
}

.news-empty p {
    font-size: 1.2rem;
    color: var(--gray);
}

/* Адаптив */
@media (max-width: 992px) {
    .news-grid__row {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news-grid__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-page__title {
        font-size: 2rem;
    }
    
    .news-card__content {
        padding: 20px;
    }
    
    .news-card__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 540px) {
    .news-page {
        padding: 20px 0 40px;
    }
    
    .news-card__content {
        padding: 16px;
    }
}
.cont_div{
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}
.cont_div div{
    text-align: left;
}
/* Блок новостей */
.mainother__card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.mainother__card:hover {
    box-shadow: var(--shadow);
}

.news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.news__inner {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.news__inner:hover {
    transform: translateX(8px);
}

.news__inner:last-child {
    margin-bottom: 0;
}

.news__img-box {
    width: 110px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    height: 90px;
    background: #f0f4f8;
}

.news__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news__inner:hover .news__img {
    transform: scale(1.05);
}

.news__inner h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
}

.news__inner:hover h5 {
    color: var(--primary);
}

.news__inner p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

.news__inner span {
    font-size: 0.75rem;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
@media (max-width: 1200px) {
    .mm-trigger{
        display: flex !important;
    }
}
@media (max-width: 540px) {
    .mainother__card {
        padding: 20px;
    }
    
    .news__inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .news__img-box {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .news__inner h5 {
        font-size: 0.95rem;
    }
}
/* Переменные для легкой настройки */
:root {
    --mm-width: 320px;
    --mm-bg: #ffffff;
    --mm-text: #333333;
    --mm-accent: #007bff; /* Цвет активной ссылки или кнопки */
    --mm-overlay-bg: rgba(0, 0, 0, 0.6);
    --mm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Кнопка Бургер --- */
.mm-trigger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Поверх меню */
    position: relative;
}

.mm-trigger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: var(--mm-transition);
}

/* Анимация бургера в крестик */
.mm-trigger.active .mm-trigger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mm-trigger.active .mm-trigger__line:nth-child(2) {
    opacity: 0;
}
.mm-trigger.active .mm-trigger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Обертка меню --- */
.mm-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none; /* Чтобы клики проходили сквозь закрытое меню */
}

/* Затемнение */
.mm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mm-overlay-bg);
    opacity: 0;
    visibility: hidden;
    transition: var(--mm-transition);
}

/* Панель меню */
.mm-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--mm-width);
    max-width: 85%;
    height: 100%;
    background: var(--mm-bg);
    transform: translateX(100%);
    transition: var(--mm-transition);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* Состояние "Открыто" */
.mm-wrapper.is-open {
    pointer-events: auto;
}
.mm-wrapper.is-open .mm-overlay {
    opacity: 1;
    visibility: visible;
}
.mm-wrapper.is-open .mm-panel {
    transform: translateX(0);
}
/* Блокировка скролла страницы при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* --- Хедер меню --- */
.mm-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mm-panel__title {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--mm-text);
}

.mm-panel__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--mm-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Контент меню --- */
.mm-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Стили для вывода Bitrix меню (стандартные ul/li) */
.mm-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.mm-nav li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.mm-nav a {
    display: block;
    text-decoration: none;
    color: var(--mm-text);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
}

.mm-nav a:hover, .mm-nav a.selected {
    color: var(--mm-accent);
}

/* --- Контакты --- */
.mm-contacts {
    margin-top: auto; /* Прижать к низу */
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mm-contacts__phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mm-text);
    text-decoration: none;
    text-align: center;
}

.mm-contacts__btn {
    width: 100%;
    padding: 12px;
    background-color: var(--mm-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mm-contacts__btn:hover {
    opacity: 0.9;
}
/* --- Переменные для настройки --- */
:root {
    --modal-bg: #ffffff;
    --modal-overlay-bg: rgba(0, 0, 0, 0.6);
    --modal-accent: #007bff; /* Цвет кнопки */
    --modal-accent-hover: #0056b3;
    --modal-text: #333333;
    --modal-text-light: #666666;
    --modal-radius: 12px;
    --modal-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* --- Обертка (Overlay) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(5px); /* Эффект размытия фона */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Состояние "Открыто" */
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* --- Окно модального окна --- */
.modal-window {
    background: var(--modal-bg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--modal-radius);
    box-shadow: var(--modal-shadow);
    position: relative;
    
    /* Анимация появления самого окна */
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal-window {
    transform: translateY(0) scale(1);
}

/* --- Кнопка закрытия (Крестик) --- */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--modal-text);
}

/* --- Контент --- */
.modal-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--modal-text);
    text-align: center;
}

.modal-desc {
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    color: var(--modal-text-light);
    text-align: center;
    line-height: 1.5;
}

/* --- Форма --- */
.modal-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
  
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--modal-text);
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--modal-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* --- Кнопка отправки --- */
.modal-submit {
    background-color: var(--modal-accent);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
}

.modal-submit:hover {
    background-color: var(--modal-accent-hover);
}

.modal-submit:active {
    transform: scale(0.98);
}

/* --- Политика конфиденциальности --- */
.form-policy {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.form-policy a {
    color: #999;
    text-decoration: underline;
}

/* --- Адаптив для мобильных --- */
@media (max-width: 480px) {
    .modal-window {
        padding: 25px 20px;
        max-width: 90%;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
}

/* Блокировка скролла страницы при открытом модалке */
body.modal-open {
    overflow: hidden;
}
/* ============================================
   🎨 БАЗОВЫЕ СТИЛИ СТРАНИЦЫ ТОВАРА
   ============================================ */
/* === Сетка и контейнер === */
.pd-page {
    padding: 40px 0;
}

.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* === Галерея === */
.pd-gallery {
    position: relative;
}

.pd-gallery__main {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Навигация галереи */
.pd-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.pd-gallery__nav:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.pd-gallery__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.pd-gallery__nav--prev { left: 16px; }
.pd-gallery__nav--next { right: 16px; }

/* Миниатюры */
.pd-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pd-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.pd-gallery__thumbs::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
}

.pd-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
}

.pd-gallery__thumb:hover {
    transform: scale(1.05);
    border-color: #ddd;
}

.pd-gallery__thumb.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Счетчик изображений */
.pd-gallery__counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

/* === Информация о товаре === */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #333;
    line-height: 1.3;
}

.pd-article {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.pd-article span {
    font-weight: 600;
    color: #333;
}

/* Цена */
.pd-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.pd-price__current {
    font-size: 32px;
    font-weight: 700;
    color: #007bff;
}

.pd-price__old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

/* Состав */
.pd-composition {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 24px;
}

.pd-composition h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.pd-composition__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Описание анонса */
.pd-preview-text {
    padding: 15px 0;
    margin-bottom: 24px;
}

.pd-preview-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.pd-preview-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Кнопки действий */
.pd-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.pd-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.pd-btn--primary {
    background: #007bff;
    color: white;
    flex: 1;
    min-width: 200px;
}

.pd-btn--primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.pd-btn--primary:active {
    transform: translateY(0);
}

.pd-btn--secondary {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.pd-btn--secondary:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9fa;
}

/* Ошибка */
.pd-error {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
    color: #666;
}

/* Анимация появления */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Доступность: фокус */
.pd-btn:focus-visible,
.pd-gallery__nav:focus-visible,
.pd-gallery__thumb:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}


/* ============================================
   📱 АДАПТИВЫ (до 320px)
   ============================================ */

/* Планшеты: ≤1024px */
@media (max-width: 1024px) {
    .pd-grid {
        gap: 32px;
    }
}

/* Планшеты портрет: ≤768px */
@media (max-width: 768px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pd-page {
        padding: 30px 0;
    }
    
    .pd-title {
        font-size: 24px;
    }
    
    .pd-gallery__thumb {
        width: 60px;
        height: 60px;
    }
    
    .pd-gallery__nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .pd-composition,
    .pd-preview-text {
        padding: 12px 0;
    }
}

/* Мобильные: ≤480px */
@media (max-width: 480px) {
    .pd-container {
        padding: 0 16px;
    }
    
    .pd-title {
        font-size: 22px;
    }
    
    .pd-article {
        font-size: 13px;
    }
    
    .pd-price__current {
        font-size: 28px;
    }
    
    .pd-price__old {
        font-size: 16px;
    }
    
    .pd-composition {
        padding: 12px 16px;
        border-radius: 6px;
    }
    
    .pd-composition h3 {
        font-size: 16px;
    }
    
    .pd-composition__text {
        font-size: 14px;
    }
    
    .pd-preview-text h3 {
        font-size: 16px;
    }
    
    .pd-preview-text p {
        font-size: 15px;
    }
    
    .pd-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    
    .pd-btn {
        width: 100%;
        padding: 13px 24px;
        font-size: 15px;
    }
    
    .pd-gallery__main {
        border-radius: 10px;
    }
    
    .pd-gallery__nav {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .pd-gallery__nav--prev { left: 12px; }
    .pd-gallery__nav--next { right: 12px; }
    
    .pd-gallery__counter {
        bottom: 12px;
        right: 12px;
        font-size: 11px;
    }
}

/* Маленькие мобильные: ≤360px */
@media (max-width: 360px) {
    .pd-container {
        padding: 0 14px;
    }
    
    .pd-page {
        padding: 24px 0;
    }
    
    .pd-title {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .pd-article {
        font-size: 12px;
    }
    
    .pd-price {
        gap: 8px;
    }
    
    .pd-price__current {
        font-size: 26px;
    }
    
    .pd-price__old {
        font-size: 14px;
    }
    
    .pd-composition {
        padding: 10px 14px;
    }
    
    .pd-composition h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .pd-composition__text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .pd-preview-text {
        padding: 10px 0;
    }
    
    .pd-preview-text h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .pd-preview-text p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .pd-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .pd-gallery__thumb {
        width: 56px;
        height: 56px;
        border-radius: 6px;
    }
    
    .pd-gallery__thumbs {
        gap: 8px;
    }
    
    .pd-error {
        padding: 40px 16px;
    }
}

/* Очень маленькие экраны: ≤320px */
@media (max-width: 320px) {
    .pd-container {
        padding: 0 12px;
    }
    
    .pd-title {
        font-size: 18px;
    }
    
    .pd-article {
        font-size: 11px;
    }
    
    .pd-price__current {
        font-size: 24px;
    }
    
    .pd-composition {
        padding: 8px 12px;
    }
    
    .pd-composition h3 {
        font-size: 14px;
    }
    
    .pd-composition__text {
        font-size: 12px;
    }
    
    .pd-preview-text h3 {
        font-size: 14px;
    }
    
    .pd-preview-text p {
        font-size: 13px;
    }
    
    .pd-actions {
        gap: 10px;
    }
    
    .pd-btn {
        padding: 11px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .pd-gallery__main {
        border-radius: 8px;
    }
    
    .pd-gallery__thumb {
        width: 50px;
        height: 50px;
    }
    
    .pd-gallery__nav {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .pd-gallery__counter {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* 🔄 Ландшафтная ориентация на низких экранах */
@media (max-height: 500px) and (orientation: landscape) {
    .pd-gallery__main {
        aspect-ratio: 16 / 9;
        max-height: 70vh;
    }
    
    .pd-page {
        padding: 16px 0;
    }
    
    .pd-actions {
        margin-top: 16px;
    }
    
    .pd-gallery__thumbs {
        margin-top: 12px;
    }
}

/* ♿ Доступность: уменьшение анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .pd-btn {
        transition: none;
    }
}