

/* Start:/local/templates/redteslamak/css/template_styles.css?177947719590495*/
@charset "UTF-8";

        :root {
            --brand-red: rgb(237, 50, 55);
            --brand-dark: #1a1a1a;
            --brand-gray: #f4f4f4;
            --text-main: #333333;
            --text-light: #ffffff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--text-main);
            background-color: #fff;
            line-height: 1.5;
        }

        h1, h2, h3, h4 {
            font-weight: 700;
            text-transform: uppercase;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Buttons */

        .btn {
            display: inline-block;
            padding: 15px 35px;
            font-weight: 700;
            text-decoration: none;
            text-transform: uppercase;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            border-radius: 4px;
        }

        .btn-red {
            background-color: var(--brand-red);
            color: var(--text-light);
            border: 2px solid var(--brand-red);
        }

        .btn-red:hover {
            background-color: #fff;
            color: var(--brand-red);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--text-light);
            border: 2px solid var(--text-light);
        }

        .btn-outline:hover {
            background-color: var(--brand-red);
            border-color: var(--brand-red);
        }

        .btn-outline-dark {
            background-color: transparent;
            color: var(--brand-dark);
            border: 2px solid var(--brand-dark);
        }

        .btn-outline-dark:hover {
            background-color: var(--brand-dark);
            color: white;
        }

        /* Header */

        header {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .header-top {
            border-bottom: 1px solid #eee;
            padding: 15px 0;
        }

        .header-top .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--brand-dark);
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            line-height: 1;
        }

        .header-city-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
            font-size: 0.85rem;
            color: #333;
        }

        .header-city-info .city {
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            position: relative;
        }

        .city-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            border-radius: 4px;
            z-index: 1001;
            min-width: 180px;
            padding: 5px 0;
            margin-top: 5px;
        }

        .city-dropdown.active {
            display: block;
        }

        .city-dropdown-item {
            padding: 10px 15px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: background 0.2s;
            color: var(--text-main);
            font-weight: 500;
        }

        .city-dropdown-item:hover {
            background: #f4f4f4;
            color: var(--brand-red);
        }

        .header-city-info .email {
            color: var(--brand-red);
            text-decoration: none;
            font-weight: 600;
        }

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

        .header-search {
            position: relative;
            width: 250px;
        }

        .header-search input {
            width: 100%;
            padding: 12px 35px 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 0.85rem;
            outline: none;
        }

        .header-search svg {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            fill: #999;
            cursor: pointer;
        }

        .header-socials {
            display: flex;
            gap: 10px;
        }

        .header-socials a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #f4f4f4;
            transition: background 0.3s;
        }

        .header-socials a:hover {
            background: #eee;
        }

        .header-socials svg {
            width: 18px;
            height: 18px;
        }

        .header-phones {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 3px;
        }

        .header-phones a {
            text-decoration: none;
            color: var(--brand-dark);
            font-weight: 700;
            font-size: 1rem;
        }

        .header-bottom {
            background: #fff;
            padding: 0;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            justify-content: start;
        }

        .nav-menu > li {
            position: relative;
        }

        .nav-menu > li > a {
            display: block;
            padding: 15px 25px;
            text-decoration: none;
            color: var(--brand-dark);
            font-weight: 700;
            font-size: 0.95rem;
            text-transform: uppercase;
            transition: color 0.3s;
        }

        .nav-menu > li > a:hover {
            color: var(--brand-red);
        }

        /* Dropdown */

        .nav-menu .dropdown:hover .dropdown-menu {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            min-width: 250px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-top: 3px solid var(--brand-red);
            list-style: none;
            padding: 10px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .dropdown-menu li a {
            display: block;
            padding: 10px 20px;
            text-decoration: none;
            color: #333;
            font-size: 0.9rem;
            transition: background 0.2s, color 0.2s;
            border-bottom: 1px solid #f9f9f9;
        }

        .dropdown-menu li:last-child a {
            border-bottom: none;
        }

        .dropdown-menu li a:hover {
            background: #f9f9f9;
            color: var(--brand-red);
            padding-left: 25px;
        }

        /* Hero Section Update */

        .main-screen {
            position: relative;
            height: 100vh;
            min-height: 600px;
            display: flex;
            align-items: center;
            margin-top: 135px; 
            overflow: hidden;
            background: #1a1a1a;
        }

        .video-box {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .video-box video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-box::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1;
        }

        .promo-slider__item-content {
            position: relative;
            z-index: 2;
            color: #fff;
            padding: 50px 0;
        }

        .promo-slider__item-content .title {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 25px;
            text-transform: uppercase;
        }

        .promo-slider__item-content .main-text {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 40px;
            max-width: 700px;
        }

        .promo-slider__buttons {
            display: flex;
            gap: 20px;
        }

        .btn--light {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 55px;
            padding: 0 35px;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            border: 2px solid #fff;
            color: #fff;
            transition: all 0.3s;
            border-radius: 4px;
        }

        .btn--light:hover {
            background: #fff;
            color: var(--brand-dark);
        }

        .promo-swiper__btn__colored {
            background: var(--brand-red);
            border-color: var(--brand-red);
        }

        .promo-swiper__btn__colored:hover {
            background: #fff;
            color: var(--brand-red);
            border-color: #fff;
        }

        /* Advantages List */

        .advantages-list {
            padding: 60px 0;
            background-color: #f4f4f4;
        }

        .adv-list-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            text-align: center;
        }

        .adv-list-item {
            padding: 20px;
        }

        .adv-list-icon {
            margin-bottom: 20px;
            color: var(--brand-red);
            display: flex;
            justify-content: center;
        }

        .adv-list-icon svg {
            width: 50px;
            height: 50px;
            stroke: var(--brand-red);
        }

        .adv-list-item h3 {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: #2c3e50;
            text-transform: none;
            font-weight: 600;
        }

        .adv-list-item p {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.4;
        }

        /* Frame Block (Download Catalog) */

        .frame {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            background-color: #2c3e50; /* Fallback */
            margin-top: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .frame-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .frame-bg__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .frame-inner {
            position: relative;
            z-index: 2;
            padding: 50px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #fff;
            background: linear-gradient(90deg, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.7) 100%); /* Overlay */
        }

        .frame__title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 30px;
            line-height: 1.2;
        }

        .frame-button-container {
            margin-bottom: 15px;
        }

        .frame__button {
            display: inline-flex;
            align-items: center;
            background-color: var(--brand-red);
            color: #fff;
            padding: 15px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }

        .frame__button:hover {
            background-color: #c0392b;
            color: #fff;
        }

        .frame__button-icon {
            display: flex;
            align-items: center;
            margin-right: 10px;
        }

        .frame__note {
            font-size: 0.9rem;
            opacity: 0.7;
        }

        @media (max-width: 768px) {
            .frame__title {
                font-size: 1.5rem;
            }
            .frame-inner {
                padding: 30px 20px;
            }
        }

        /* Section About (New) */

        .section-about {
            padding: 80px 0;
            background-color: #fff;
        }

        .section-about__container {
            display: flex;
            gap: 50px;
            align-items: center;
        }

        .section-about__content {
            flex: 1;
        }

        .section-about__content h2 {
            font-size: 2.5rem;
            margin-bottom: 25px;
            color: var(--brand-dark);
        }

        .section-about__content p {
            margin-bottom: 20px;
            line-height: 1.6;
            color: #555;
        }

        .section-about__btn {
            margin-top: 10px;
            background-color: transparent;
            border: 2px solid var(--brand-red);
            color: var(--brand-dark);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 50px;
            padding: 0 30px;
            font-weight: 700;
        }

        .section-about__btn:hover {
            background-color: var(--brand-red);
            color: #fff;
        }

        .section-about__video {
            flex: 1;
            width: 100%;
            min-width: 0;
            position: relative;
        }

        .video_slider video {
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: block;
        }

        .video_slider-prev, .video_slider-next {
            color: var(--brand-red);
        }

        .video_slider-scrollbar .swiper-scrollbar-drag {
            background: var(--brand-red);
        }

        .video_slider-pagination .swiper-pagination-bullet-active {
            background: var(--brand-red);
        }

        @media (max-width: 992px) {
            .section-about__container {
                flex-direction: column;
            }
            .section-about__content {
                text-align: center;
            }
        }

        /* Features Strip */

        .features-strip {
            background: var(--brand-red);
            color: var(--text-light);
            padding: 40px 0;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            text-align: center;
        }

        .feature-item h3 {
            font-size: 2.5rem;
            margin-bottom: 5px;
        }

        .feature-item p {
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Catalog Section (New) */

        .section-catalog {
            padding: 80px 0;
            background-color: #f9f9f9;
        }

        .section-catalog h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--brand-dark);
        }

        .section-catalog p {
            margin-bottom: 30px;
            color: #555;
            max-width: 900px;
        }

        .textlink {
            color: var(--brand-red);
            text-decoration: underline;
            font-weight: 600;
        }

        .section-catalog__list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            list-style: none;
            margin-bottom: 40px;
        }

        .section-catalog__item {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .section-catalog__item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .section-catalog__item a {
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .section-catalog__item-img {
            width: 100%;
            height: 250px;
            object-fit: contain;
            background: #fff;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }

        .section-catalog__item-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .section-catalog__item-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--brand-dark);
            line-height: 1.4;
        }

        .section-catalog__item-price {
            margin-top: auto;
            margin-bottom: 5px;
            font-weight: 700;
            color: var(--brand-dark);
            font-size: 1.1rem;
        }

        .section-catalog__item-available {
            font-size: 0.85rem;
            color: #27ae60; /* Green for available */
            font-weight: 600;
        }

        .section-catalog__item-available:contains("Под заказ") {
            color: #f39c12;
        }

        .link_catalog {
            background-color: var(--brand-dark);
            color: #fff;
            padding: 15px 40px;
        }

        .link_catalog:hover {
            background-color: var(--brand-red);
            color: #fff;
        }

        /* Banner Calculate */

        .banner-calculate {
            margin-top: 60px;
            background: linear-gradient(135deg, var(--brand-red) 0%, #a91b1f 100%);
            padding: 50px 0;
            color: #fff;
            border-radius: 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(237, 50, 55, 0.3);
        }

        .banner-calculate .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .banner-calculate__content {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .banner-calculate__icon {
            flex-shrink: 0;
            width: 80px;
            height: 80px;
            background: rgba(255,255,255,0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .banner-calculate__icon svg {
            width: 40px;
            height: 40px;
            stroke: #fff;
        }

        .banner-calculate__text {
            display: flex;
            flex-direction: column;
        }

        .banner-calculate__title {
            font-size: 1.8rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .banner-calculate__subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            font-weight: 500;
            max-width: 600px;
        }

        .banner-calculate__link {
            background: #fff;
            color: var(--brand-red);
            padding: 18px 45px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            white-space: nowrap;
            font-size: 1rem;
        }

        .banner-calculate__link:hover {
            background: var(--brand-dark);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        }

        .banner-calculate::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
            z-index: 1;
        }

        @media (max-width: 992px) {
            .banner-calculate .container {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .banner-calculate__content {
                flex-direction: column;
                text-align: center;
            }
            .banner-calculate__title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .banner-calculate {
                padding: 40px 0;
            }
            .banner-calculate__icon {
                width: 60px;
                height: 60px;
            }
            .banner-calculate__icon svg {
                width: 30px;
                height: 30px;
            }
            .section-catalog__list {
                grid-template-columns: 1fr;
            }
        }

        /* About / Concept */

        .about-section {
            padding: 100px 0;
            background: #fff;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 4px;
            box-shadow: 20px 20px 0 var(--brand-gray);
        }

        .section-title {
            color: var(--brand-red);
            font-size: 1rem;
            letter-spacing: 2px;
            margin-bottom: 10px;
            display: block;
            font-weight: 700;
            
        }

        .section-header {
            font-size: 2.5rem;
            color: var(--brand-dark);
            margin-bottom: 30px;
            line-height: 1.2;
        }

        /* Catalog Preview */

        .catalog-section {
            padding: 100px 0;
            background: var(--brand-gray);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .product-card {
            background: #fff;
            transition: transform 0.3s;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .product-img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-bottom: 4px solid var(--brand-red);
        }

        .product-info {
            padding: 30px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .product-info h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--brand-dark);
        }

        .product-price {
            margin-bottom: 10px;
            display: flex;
            flex-direction: column;
        }

        .price-val {
            font-size: 1.5rem;
            color: var(--brand-red);
            font-weight: 800;
            line-height: 1.2;
        }

        .price-tax {
            font-size: 0.85rem;
            color: #777;
            font-weight: 500;
            margin-top: 4px;
        }

        .product-status {
            color: #28a745;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .product-specs {
            list-style: none;
            margin: 0 0 20px;
            color: #666;
            font-size: 0.9rem;
        }

        .product-specs li {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
        }

        .product-specs li::before {
            content: '•';
            color: var(--brand-red);
            font-size: 1.5rem;
            line-height: 0;
            margin-right: 10px;
        }

        /* Advantages Icons */

        .advantages-section {
            padding: 100px 0;
        }

        .adv-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }

        .adv-card {
            padding: 40px;
            border: 1px solid #eee;
            text-align: center;
            transition: all 0.3s;
        }

        .adv-card:hover {
            border-color: var(--brand-red);
            background: #fff;
            box-shadow: 0 5px 20px rgba(237, 50, 55, 0.1);
        }

        .adv-icon {
            font-size: 3rem;
            color: var(--brand-red);
            margin-bottom: 20px;
            display: block;
        }

        /* CTA Section */

        .cta-section {
            background: var(--brand-dark);
            color: var(--text-light);
            padding: 80px 0;
            text-align: center;
        }

        .cta-section h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .form-wrapper {
            max-width: 500px; 
            margin: 0 auto; 
            background: white; 
            padding: 30px; 
            border-radius: 8px;
        }

        .form-row {
            margin-bottom: 15px;
            text-align: left;
        }

        .form-row label {
            display: block;
            margin-bottom: 5px;
            color: #333;
            font-weight: 600;
        }

        .form-row input {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: 'Montserrat', sans-serif;
        }

        .form-row input:focus {
            outline: none;
            border-color: var(--brand-red);
        }

        /* Footer */

        footer {
            background: #111;
            color: #888;
            padding: 60px 0;
            font-size: 0.9rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr;
            gap: 40px;
        }

        .footer-col h4 {
            color: #fff;
            margin-bottom: 20px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .footer-links a {
            color: #888;
            text-decoration: none;
        }

        .footer-links a:hover {
            color: var(--brand-red);
        }

        .contact-block {
            margin-bottom: 20px;
        }

        .contact-block strong {
            color: white;
            display: block;
            margin-bottom: 5px;
        }

        /* Mobile */

        @media (max-width: 992px) {
            .promo-slider__item-content .title { font-size: 2rem; }
            .promo-slider__buttons { flex-direction: column; width: 100%; }
            .btn--light { width: 100%;
              text-align:center;}
            .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
            .about-grid { grid-template-columns: 1fr; }
            .adv-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .nav-menu { display: none; }
            .header-contacts { display: none; }
            .nav-wrapper { justify-content: center; }
            .adv-list-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 576px) {
            .adv-list-grid { grid-template-columns: 1fr; }
        }

        /* Form Demo */

        .form-demo {
            padding: 80px 0;
            background-color: #fff;
        }

        .form-demo__form {
            max-width: 800px;
            margin: 0 auto;
            background: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border: 1px solid #eee;
        }

        .form-demo__title {
            font-size: 1.8rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 30px;
            color: var(--brand-dark);
        }

        .inputs__one {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }


        .input {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s;
        }

		.form-demo__form .inputs__one {
			max-width: 500px;
            margin: 0 auto;
		}

        .input:focus {
            border-color: var(--brand-red);
        }

        .inputs__two {
            text-align: center;
        }
         .form-demo__form .inputs__two {
margin-top: 1rem;
}
        .form-demo__subtext {
            margin-top: 20px;
            font-size: 0.85rem;
            color: #777;
            text-align: left;
        }

        .uc {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .uc-checkbox {
            margin-top: 4px;
        }

        .uc-text a {
            color: var(--brand-red);
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .inputs__one {
                grid-template-columns: 1fr;
            }
            .form-demo__form {
                padding: 20px;
            }
        }

        /* Section Reference */

        .section-reference {
            padding: 80px 0;
            background-color: #f9f9f9;
        }

        .section-reference__title {
            font-size: 2rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 40px;
            color: var(--brand-dark);
        }

        .section-reference__list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .reference-item {
            background: #fff;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            font-weight: 600;
            color: #888;
            border: 1px solid #eee;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .reference-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            color: var(--brand-red);
            border-color: var(--brand-red);
        }

        /* Map Fullscreen & Grayscale */

        .section-reference {
            padding: 0;
            width: 100%;
            max-width: 100%;
            position: relative;
        }

        .section-reference .container {
            width: 100%;
            max-width: 100%;
            padding: 0;
            margin: 0;
        }

        .section-reference__title {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            background: rgba(255,255,255,0.95);
            padding: 15px 40px;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            width: auto;
            margin: 0;
            font-size: 1.5rem;
            backdrop-filter: blur(5px);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        #map-reference {
            width: 100%;
            height: 90vh;
            filter: grayscale(100%);
            -webkit-filter: grayscale(100%);
        }

        /* Modal Styles */

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

        .gc-pop.active {
            display: flex;
        }

        .gc-pop__bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            cursor: pointer;
            backdrop-filter: blur(2px);
        }

        .gc-pop-container {
            position: relative;
            background: #fff;
            width: 95%;
            max-width: 1000px;
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            overflow: hidden;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            animation: popIn 0.3s ease-out;
        }

        @keyframes popIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .r-card-close {
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
            z-index: 20;
            background: rgba(0,0,0,0.05);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .r-card-close:hover {
            background: #e0e0e0;
            transform: rotate(90deg);
        }

        /* Modal Content & Tabs */

        .ref-popup {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .ref-popup-tabs-list {
            display: flex;
            border-bottom: 1px solid #eee;
            background: #f8f8f8;
        }

        .ref-popup-tabs-list__btn {
            padding: 20px 30px;
            cursor: pointer;
            font-weight: 600;
            color: #666;
            background: transparent;
            transition: all 0.2s;
            flex: 1;
            text-align: center;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
        }

        .ref-popup-tabs-list__btn:hover {
            background: rgba(0,0,0,0.02);
            color: #333;
        }

        .ref-popup-tabs-list__btn.active {
            background: #fff;
            color: var(--brand-red);
            box-shadow: 0 -2px 0 var(--brand-red) inset;
        }

        .ref-popup-tabs-content {
            padding: 40px;
            background: #fff;
        }

        .ref-popup-tab-content {
            display: none;
        }

        .ref-popup-tab-content.active {
            display: flex;
            gap: 40px;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 850px) {
            .ref-popup-tab-content.active {
                flex-direction: column;
            }
            .ref-popup-tab-content__image {
                height: 250px;
            }
        }

        /* Machine Tab Content */

        .ref-popup-tab-content__image {
            flex: 1.5;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            background: #111;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .responsive-container {
            position: relative;
            width: 100%;
            height: 100%;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ref-popup-video-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .ref-popup-tab-content__image:hover .ref-popup-video-preview {
            opacity: 0.5;
        }

        .ref-popup-video-preview-icon {
            position: absolute;
            z-index: 2;
            width: 80px;
            height: 80px;
            fill: #fff;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
            pointer-events: none;
        }

        .ref-popup-tab-content-props {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .ref-popup-tab-content-props__title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #222;
            line-height: 1.2;
        }

        .ref-popup-tab-content-prop {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 12px;
        }

        .ref-popup-tab-content-prop__title {
            font-weight: 500;
            color: #888;
            font-size: 0.95rem;
        }

        .ref-popup-tab-content-prop__value {
            font-weight: 700;
            color: #333;
            font-size: 1.1rem;
        }

        .ref-popup-tab-content-prop__detail {
            display: inline-block;
            margin-top: 15px;
            color: #fff;
            background: var(--brand-red);
            padding: 12px 30px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 600;
            align-self: flex-start;
            transition: background 0.2s;
        }

        .ref-popup-tab-content-prop__detail:hover {
            background: #c92226;
        }

        /* Feedback Form Styles */

        .reference-form {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .reference-description {
            margin-bottom: 30px;
            text-align: center;
        }

        .reference-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #333;
        }

        .reference-subtitle {
            color: #666;
            line-height: 1.5;
        }

        .reference-field {
            margin-bottom: 20px;
        }

        .reference-field span {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            color: #444;
        }

        .reference-input {
            width: 100%;
            padding: 14px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 1rem;
            background: #fdfdfd;
            transition: border-color 0.2s;
        }

        .reference-input:focus {
            border-color: var(--brand-red);
            outline: none;
        }

        .reference-submit {
            width: 100%;
            padding: 15px;
            font-size: 1.1rem;
            margin-top: 10px;
        }

        .section-reference__button-wrapper {
            text-align: center;
        }

        /* Service Section */

        .section-service {
            padding: 80px 0;
            background-color: #fff;
        }

        .section-service .section-title {
            /* Adapting to be a main header */
            font-size: 2.2rem;
            color: var(--brand-dark);
            margin-bottom: 20px;
            letter-spacing: normal;
            text-transform: uppercase;
        }

           @media (max-width: 576px) {
            .section-service .section-title { font-size: 1.5rem;
              /* Переносы */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    /* Поведение слов */
    word-break: normal;
    overflow-wrap: break-word;
    /* Улучшение рендеринга */
    text-rendering: optimizeLegibility;
            }
        }

        .section-title--center {
            text-align: center;
        }

        .section-service p {
            text-align: justify;
            text-align-last: left;
            margin: 0 auto;
            font-size: 1.1rem;
            color: #555;
            line-height: 1.6;
            -webkit-hyphens: auto;
            hyphens: auto;
        }

        .imgage-services-home {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-top: 20px;
            display: block;
        }

        .textlink {
            color: var(--brand-red);
            text-decoration: underline;
        }

        .textlink:hover {
            text-decoration: none;
        }

        /* Contacts Section */

        .section-contacts {
            padding: 80px 0;
            background-color: #fff;
        }

        .section-contacts .section-title {
            font-size: 2.2rem;
            color: var(--brand-dark);
            margin-bottom: 40px;
            text-align: center;
            text-transform: uppercase;
            font-weight: 700;
        }

        .section-contacts__container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: start;
        }

        .section-contacts__content {
            display: grid;
            gap: 25px;
        }

        .section-contacts__content-item dt {
            font-weight: 700;
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .section-contacts__content-item dd {
            font-size: 1.1rem;
            color: #333;
            font-weight: 500;
            line-height: 1.5;
        }

        .section-contacts__content-item a {
            color: #333;
            text-decoration: none;
            transition: color 0.2s;
            font-weight: 600;
        }

        .section-contacts__content-item a:hover {
            color: var(--brand-red);
        }

        .section-contacts__map {
            width: 100%;
            height: 100%;
            min-height: 500px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border: none;
        }

        @media (max-width: 992px) {
            .section-contacts__container {
                grid-template-columns: 1fr;
            }
            .section-contacts__map {
                min-height: 400px;
                order: -1;
            }
        }

        /* Footer New Styles */

        #main-footer {
            background-color: var(--brand-dark);
            color: #fff;
            padding: 60px 0 20px;
        }

        .footer__main {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            margin-bottom: 40px;
        }

        .footer__main-column h3, .footer__main-column .h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 25px;
            color: #fff;
            text-transform: uppercase;
        }

        .footer__main-column h4, .footer__main-column .h4 {
            font-size: 1rem;
            font-weight: 700;
            margin-top: 20px;
            margin-bottom: 15px;
            color: #fff;
            text-transform: uppercase;
        }

        .footer__main-column .btn {
            margin-top: 15px;
            width: 100%;
            text-align: center;
            cursor: pointer;
            background-color: var(--brand-red);
            color: #fff;
            font-size: 0.9rem;
            padding: 12px 20px;
        }

        .footer__main-column .btn:hover {
            background-color: #d92b30;
        }

        .footer__main-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer__main-column ul li {
            margin-bottom: 6px;
        }

        .footer__main-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.85rem;
            display: block;
            line-height: 1.2;
        }

        .footer__main-column ul li a:hover {
            color: var(--brand-red);
        }

        .footer__contact {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #ccc;
            text-decoration: none;
            margin-bottom: 15px;
            font-size: 1rem;
            transition: color 0.3s;
        }

        .footer__contact:hover {
            color: #fff;
        }

        .footer__contact svg, .footer__address svg {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
        }

        .footer__contact svg path, .footer__address svg path {
            fill: #fff;
        }

        .footer__address {
            display: flex;
            gap: 15px;
            color: #ccc;
            line-height: 1.5;
            font-size: 0.95rem;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .footer__bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            text-align: center;
            font-size: 0.9rem;
            color: #888;
        }

        .footer__logo {
            display: block;
            margin-bottom: 20px;
        }

        .review-yandex-map {
            margin-top: 20px;
        }

        .review-yandex-map img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }

        @media (max-width: 992px) {
            .footer__main {
                grid-template-columns: 1fr;
                gap: 40px;
            }
        }

        /* Mobile Header & Menu */

        .header-burger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            cursor: pointer;
            z-index: 1002;
        }

        .header-burger span {
            display: block;
            width: 100%;
            height: 3px;
            background-color: var(--brand-dark);
            border-radius: 3px;
            transition: all 0.3s;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #fff;
            z-index: 2000;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
        }

        .mobile-menu.active {
            transform: translateX(0);
        }

        .mobile-menu__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
        }

        .mobile-menu__title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--brand-dark);
            text-transform: uppercase;
        }

        .mobile-menu__close {
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;
            color: var(--brand-dark);
        }

        .mobile-menu__content {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .mobile-search {
            margin-bottom: 20px;
            position: relative;
        }

        .mobile-search input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
            outline: none;
        }

        .mobile-search svg {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            fill: #999;
        }

        .mobile-nav {
            list-style: none;
            padding: 0;
            margin: 0 0 30px 0;
        }

        .mobile-nav li {
            border-bottom: 1px solid #f4f4f4;
        }

        .mobile-nav li a {
            display: block;
            padding: 12px 0;
            text-decoration: none;
            color: var(--brand-dark);
            font-weight: 600;
            font-size: 1.1rem;
            text-transform: uppercase;
        }

        .mobile-nav li a:hover {
            color: var(--brand-red);
        }

        .mobile-contacts {
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .mobile-contacts .phone {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--brand-dark);
            text-decoration: none;
        }

        .mobile-contacts .email {
            color: var(--brand-red);
            font-weight: 600;
            text-decoration: none;
        }

        .mobile-socials {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        /* Media Queries */

        @media (max-width: 1200px) {
            .header-socials {
                display: none;
            }
        }

        @media (max-width: 1138px) {
            .nav-menu > li > a {
                padding: 10px 4px;
                white-space: nowrap;
            }
            
            .header-phones a {
                font-size: 0.8rem;
            }

            .header-right {
                gap: 15px;
            }
            
            .header-right .btn {
                padding: 8px 10px !important;
                font-size: 0.7rem !important;
                white-space: nowrap;
            }
        }

        @media (max-width: 1024px) {
            .header-burger {
                display: flex;
            }
            
            .header-city-info,
            .header-right,
            .header-bottom {
                display: none;
            }
            
            .header-top {
                padding: 10px 0;
            }
            
            .logo {
                font-size: 1.4rem;
            }
            
            .logo svg {
                height: 30px;
            }
            
            .main-screen {
                margin-top: 60px;
            }
        }

        /* Service Page Styles */

        .services_bg {
            background-color: var(--brand-gray);
            padding: 30px 0;
            margin-top: 135px;
            margin-bottom: 40px;
        }

        .main-title {
            font-size: 2rem;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--brand-dark);
            position: relative;
            padding-left: 20px;
            border-left: 5px solid var(--brand-red);
        }

        /* News Page Styles */

        .news-grid {
            display: grid;
/*             grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
 */            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-bottom: 60px;
        }

        .news-card {
            background: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .news-card:hover {
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transform: translateY(-5px);
            border-color: #e0e0e0;
        }

        .news-card__image {
            position: relative;
            height: 220px;
            background-color: #e0e0e0;
            overflow: hidden;
        }

        .news-card__image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .news-card:hover .news-card__image img {
            transform: scale(1.05);
        }

        .placeholder-img {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
            color: #999;
            font-weight: 600;
            font-size: 1.2rem;
            text-transform: uppercase;
        }

        .news-card__content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .news-card__date {
            font-size: 0.85rem;
            color: #888;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .news-card__date::before {
            content: '';
            display: block;
            width: 6px;
            height: 6px;
            background-color: var(--brand-red);
            border-radius: 50%;
        }

        .news-card__title {
            font-size: 0.9rem!important;
            line-height: 1.4;
            margin-bottom: 15px;
            font-weight: 500;
            text-transform: none;
              display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-card__title a {
            text-decoration: none;
            color: var(--brand-dark);
            transition: color 0.2s;
        }

        .news-card__title a:hover {
            color: var(--brand-red);
        }

        .news-card__excerpt {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .news-card__link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--brand-red);
            font-weight: 600;
            text-decoration: none;
            font-size: 0.9rem;
            text-transform: uppercase;
            margin-top: auto;
            transition: gap 0.2s;
        }

        .news-card__link:hover {
            gap: 10px;
        }

        /* Pagination */

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 80px;
        }

        .pagination__item {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 4px;
            background: #fff;
            border: 1px solid #eee;
            color: var(--brand-dark);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }

        .pagination__item:hover,
        .pagination__item.active {
            background: var(--brand-red);
            color: #fff;
            border-color: var(--brand-red);
        }

        .pagination__dots {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            width: 40px;
            height: 40px;
            color: #999;
            font-weight: 700;
            padding-bottom: 10px;
        }

        @media (max-width: 768px) {
            .news-grid {
                grid-template-columns: 1fr;
            }
            
            .news-card__image {
                height: 200px;
            }
        }

        /* News Detail Styles */

        .article-header {
            margin-bottom: 30px;
        }

        .article-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
            color: #888;
            font-size: 0.9rem;
        }

        .article-date {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .article-date::before {
            content: '';
            display: block;
            width: 6px;
            height: 6px;
            background-color: var(--brand-red);
            border-radius: 50%;
        }

        .article-image {
            width: 100%;
            height: 400px;
            margin-bottom: 40px;
            border-radius: 8px;
            overflow: hidden;
            background-color: #eee;
        }

        .article-content {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #444;
            max-width: 900px;
        }

        .article-content img {
           width:100%
        }

        .article-content p {
            margin-bottom: 20px;
        }

        .article-content h2 {
            margin-top: 40px;
            margin-bottom: 20px;
            color: var(--brand-dark);
        }

        .article-content blockquote {
            border-left: 4px solid var(--brand-red);
            padding-left: 20px;
            margin: 30px 0;
            font-style: italic;
            color: #666;
            background: #f9f9f9;
            padding: 20px;
            border-radius: 0 8px 8px 0;
        }

        .article-content ul {
            margin-bottom: 20px;
            padding-left: 20px;
        }

        .article-content li {
            margin-bottom: 10px;
        }

        .back-link a {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-top: 40px;
            color: var(--brand-dark);
            text-decoration: none;
            font-weight: 600;
            padding-bottom: 5px;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }

        .back-link a:hover {
            color: var(--brand-red);
            border-color: var(--brand-red);
        }

        .related-news {
            margin-top: 80px;
            padding-top: 60px;
            border-top: 1px solid #eee;
        }

        .related-news__title {
            font-size: 1.8rem;
            margin-bottom: 30px;
            color: var(--brand-dark);
        }

        /* Breadcrumbs */

        .breadcrumbs {
            padding: 0px 0;
            color: #888;
            font-size: 0.9rem;
        }

        .breadcrumbs a {
            color: #888;
            text-decoration: none;
            transition: color 0.2s;
        }

        .breadcrumbs a:hover {
            color: var(--brand-red);
        }

        .breadcrumbs span {
            margin: 0 5px;
        }

        .breadcrumbs .current {
            color: var(--brand-dark);
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .article-image {
                height: 250px;
            }
            
            .main-title {
                font-size: 1.8rem;
            }
        }

        main .container h1 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--brand-dark);
            line-height: 1.2;
        }

        main .container h2 {
            font-size: 1.5rem;
            margin: 40px 0 20px;
            color: var(--brand-dark);
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
        }

        main .container h3 {
            font-size: 1.2rem;
            margin: 25px 0 15px;
            color: var(--brand-dark);
        }

        main .container p {
            margin-bottom: 15px;
            line-height: 1.6;
            color: #444;
            font-size: 1rem;
        }

        main ul {
            list-style: none;
            padding-left: 0;
            margin-bottom: 20px;
        }

        main ul li {
            position: relative;
            padding-left: 25px;
            margin-bottom: 10px;
            line-height: 1.5;
            color: #444;
        }

        main ul li::before {
            content: "•";
            color: var(--brand-red);
            font-size: 1.5rem;
            position: absolute;
            left: 0;
            top: -5px;
            line-height: 1;
        }

        /* Service Items */

        .service__list {
            margin: 40px 0;
        }

        .service__item {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            margin-bottom: 30px;
        }

        .service__item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .service__item-title {
            background: var(--brand-dark);
            padding: 15px 25px;
            color: #fff;
        }

        .service__item-title .h3 {
            margin: 0;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .service__item-content {
            padding: 30px;
        }

        .service__item-flex {
            display: flex;
            gap: 30px;
            align-items: flex-start;
        }

        .service__item-img {
            flex: 0 0 40%;
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            object-fit: cover;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .service__item-desc {
            flex: 1;
        }

        .service__item-desc p b {
            color: var(--brand-dark);
            display: block;
            margin-bottom: 10px;
        }

        .btn-services {
            background-color: var(--brand-red);
            color: white;
            border: none;
            padding: 18px 45px;
            font-size: 1rem;
            text-transform: uppercase;
            font-weight: 700;
            border-radius: 4px;
            cursor: pointer;
            display: inline-block;
            margin-top: 20px;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(237, 50, 55, 0.3);
        }

        .btn-services:hover {
            background-color: #d12226;
            box-shadow: 0 6px 20px rgba(237, 50, 55, 0.5);
            transform: translateY(-2px);
        }

        @media (max-width: 1024px) {
            .services_bg {
                margin-top: 60px; /* Adjust for mobile header */
            }
        }

        @media (max-width: 768px) {
            .service__item-flex {
                flex-direction: column;
            }
            
            .service__item-img {
                flex: 0 0 auto;
                width: 100%;
                margin-bottom: 20px;
            }

            .main-title {
                font-size: 1.8rem;
            }
            
            main .container h1 {
                font-size: 1.5rem;
            }

            .service__item-content {
                padding: 20px;
            }
        }

        /* Reference Page Styles */

        .reference-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 30px;
            margin-top: 40px;
        }

        @media (max-width: 992px) {
            .reference-layout {
                grid-template-columns: 1fr;
            }
            .filter-sidebar {
                margin-bottom: 20px;
            }
        }

        #map {
            width: 100%;
            height: 500px;
            background: #eee;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 40px;
            margin-top: 20px;
        }

        .filter-sidebar {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #eee;
            height: fit-content;
        }

        .filter-group {
            margin-bottom: 25px;
        }

        .filter-title {
            font-weight: 700;
            margin-bottom: 15px;
            font-size: 1rem;
            text-transform: uppercase;
            color: var(--brand-dark);
        }

        .filter-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 0.9rem;
            user-select: none;
        }

        .checkbox-label input {
            display: none;
        }

        .checkbox-custom {
            width: 20px;
            height: 20px;
            border: 2px solid #ccc;
            border-radius: 4px;
            position: relative;
            transition: all 0.2s;
            background: #fff;
        }

        .checkbox-label input:checked + .checkbox-custom {
            background: var(--brand-red);
            border-color: var(--brand-red);
        }

        .checkbox-label input:checked + .checkbox-custom::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 6px;
            width: 5px;
            height: 9px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

/* About Page Styles */
.about-page {
    padding: 0 0 80px; 
}
.about-page__grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    align-items: flex-start;
}
.about-page__content {
    flex: 0 0 65%;
    max-width: 65%;
}
.about-page__image-wrapper {
    flex: 0 0 30%;
    max-width: 30%;
    position: sticky;
    top: 150px;
}
.about-page__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--brand-gray);
    object-fit: cover;
}

@media (max-width: 992px) {
    .about-page__grid {
        flex-direction: column;
    }
    .about-page__content, .about-page__image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .about-page__image-wrapper {
        position: static;
        margin-top: 30px;
    }
}

/* Catalog Page Styles */
.catalog-page {
    padding: 0 0 80px;
}
.catalog-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 40px;
}

/* Catalog Filter */
.catalog-filter {
    flex: 0 0 280px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    position: sticky;
    top: 150px;
}
.filter-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-red);
}
.filter-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--brand-dark);
}
.filter-group {
    margin-bottom: 25px;
}
.filter-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}
.filter-group .checkbox-label {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}
.filter-actions {
    margin-top: 30px;
}
.mt-10 {
    margin-top: 10px;
}
.w-100 {
    width: 100%;
}

/* Catalog Grid */
.catalog-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.product-card__image {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}
.product-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #4caf50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
    z-index:10;
}
.product-card__image img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.product-card__content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}
.product-card__title a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-card__title a:hover {
    color: var(--brand-red);
}
.product-card__specs-wrapper {
    margin-bottom: 25px;
}

/* Override default list styles for specs */
.product-card__specs {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.product-card__specs li {
    padding-left: 0 !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem;
    color: #333 !important;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 4px;
}
.product-card__specs li::before {
    display: none !important;
}
.product-card__specs li span {
    color: #777;
}

.product-card__actions {
    margin-top: auto;
    text-align:center;
}

@media (max-width: 992px) {
    .catalog-layout {
        flex-direction: column;
    }
    .catalog-filter {
        flex: 0 0 100%;
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
@media (max-width: 576px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Product Page Styles
   ========================================================================== */

.product-page {
    padding: 0 0 80px;
}
.breadcrumbs {
    font-size: 0.9rem;
 color: #444;
    opacity: 0.8;
    margin-bottom: 10px;
}
.breadcrumbs a {
color: var(--brand-red);

    text-decoration: none;
    transition: opacity 0.2s;
}
.breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Product Top Section */
.product-top {
    display: grid;
    grid-template-columns: 45% 1fr 320px;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* Product Gallery (Swiper) */
.product-gallery {
    width: 100%;
    overflow: hidden;
}
.product-swiper {
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    background: #f9f9f9;
}
.product-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.product-swiper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    mix-blend-mode: multiply;
}
.product-thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    background: #f9f9f9;
    padding: 5px;
    box-sizing: border-box;
}
.product-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--brand-red);
}
.product-thumbs img {
    max-width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* Main Info */
.product-main-info {
    display: flex;
    flex-direction: column;
}
.product-sku {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}
.product-sku span {
    font-weight: 600;
    color: #333;
}
.product-specs-list {
    margin-top: 10px !important;
}
.product-specs-list li {
    font-size: 1rem !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}

/* Action Box */
.product-action-box {
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 150px;
}
.product-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.product-status.label-order {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}
.product-status.label-stock {
    background: #e8f5e9;
    color: #4caf50;
    border: 1px solid #c8e6c9;
}
.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 15px;
}
.product-action-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Tabs Section */
.product-tabs-section {
    margin-bottom: 60px;
}
.tabs-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
/* Скрыть скроллбар для Chrome, Safari и Opera */
.tabs-nav::-webkit-scrollbar {
    display: none;
}
/* Скрыть скроллбар для IE, Edge и Firefox */
.tabs-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}
.tab-btn:hover {
    color: var(--brand-dark);
}
.tab-btn.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.component-card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.component-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.component-card img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
    mix-blend-mode: multiply;
}
.component-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
    line-height: 1.4;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    font-size: 1rem;
}
.specs-table tr:nth-child(even) {
    background-color: #fcfcfc;
}
.specs-table tr td:first-child {
    font-weight: 600;
    color: #555;
    width: 50%;
}
.specs-table tr td:last-child {
    color: #222;
    font-weight: 500;
}

/* Product Description Text */
.product-description-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}

/* Popular Section */
.popular-section {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #eaeaea;
}
.popular-section .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--brand-dark);
}

/* Responsive Product Page */
@media (max-width: 1200px) {
    .product-top {
        grid-template-columns: 40% 1fr 300px;
        gap: 30px;
    }
}
@media (max-width: 992px) {
    .product-top {
        grid-template-columns: 1fr 1fr;
    }
    .product-action-box {
        grid-column: span 2;
        position: static;
        margin-top: 20px;
    }
}
@media (max-width: 768px) {
    .product-top {
        grid-template-columns: 1fr;
    }
    .product-action-box {
        grid-column: span 1;
    }
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}



/* ==========================================================================
   Contacts Page Styles
   ========================================================================== */
.contacts-page {
    padding: 0 0 80px;
}
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: start;
}
.contacts-info h2, .contacts-form-wrapper h2 {
    font-size: 1.8rem;
    color: var(--brand-dark);
    margin-bottom: 15px;
    margin-top: 0;
}
.contacts-desc {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}
.contact-block {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.contact-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}
.contact-block p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #444;
}
.contact-block p strong {
    color: #333;
}
.contact-block p:last-child {
    margin-bottom: 0;
}
.contact-block a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
}
.contact-block a:hover {
    text-decoration: underline;
}
.phone-highlight {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Contact Form */
.contacts-form-wrapper {
    background: #fff;
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}
.contacts-form-wrapper p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background: #fafafa;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--brand-red);
    outline: none;
    background: #fff;
}
.contact-form textarea {
    resize: vertical;
}
.form-policy {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #777;
}
.form-policy label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}
.form-policy input {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}
.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 4px;
}

/* Map */
.contacts-map {
    margin-top: 0px;
}
.contacts-map h2 {
    font-size: 1.8rem;
    color: var(--brand-dark);
    margin-bottom: 25px;
}
.contacts-map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

/* Responsive */
@media (max-width: 992px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 576px) {
    .contacts-form-wrapper {
        padding: 25px 20px;
    }
}


/* Стили для сообщений об успехе/ошибке в форме */
.form-demo__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 30px;
    border: 2px solid #e8f5e9;
    animation: fadeIn 0.5s ease;
}

.form-demo__success svg {
    width: 64px;
    height: 64px;
    stroke: #4caf50;
    margin-bottom: 20px;
}

.form-demo__success-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.form-demo__success-text {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
}

.form-demo__errors {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    color: #d32f2f;
    font-size: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




        a {
            color: var(--brand-red);
            text-decoration: underline;
        }

        a:hover {
            text-decoration: none;
        }


     .text-word-break {
    /* Выравнивание */
    text-align: justify;
    text-align-last: left;

    /* Переносы */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    /* Поведение слов */
    word-break: normal;
    overflow-wrap: break-word;

    /* Улучшение рендеринга */
    text-rendering: optimizeLegibility;
}



.bx-pagination .bx-pagination-container ul li.bx-active span {
    background: var(--brand-red);
}


/* Стили исключительно для нового шаблона новости с сайдбаром */
.news-with-sidebar-container {
    font-family: inherit;
    padding-bottom: 60px;
}

.news-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

/* Основная колонка контента */
.news-sidebar-main {
    min-width: 0; /* предотвращает вылезание длинных ссылок из грида */
}

.news-detail-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-dark, #333);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.article-category {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--brand-red, #ED3237);
    font-weight: 600;
}

.news-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
}

.news-main-image-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #999;
}

.article-text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-text-body p {
    margin-bottom: 15px;
}

.article-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Стили исключительно для нового шаблона новости с сайдбаром */
.news-with-sidebar-container {
    font-family: inherit;
    padding-bottom: 60px;
}

.news-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

/* Основная колонка контента */
.news-sidebar-main {
    min-width: 0; /* предотвращает вылезание длинных ссылок из грида */
}

.news-detail-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-dark, #333);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.article-category {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--brand-red, #ED3237);
    font-weight: 600;
}

.news-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
}

.news-main-image-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #999;
}

.article-text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-text-body p {
    margin-bottom: 15px;
}

.article-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Галерея в основной колонке */
.news-sidebar-gallery {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-sidebar-gallery h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-dark, #333);
}

.news-sidebar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.news-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.news-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-gallery-item:hover img {
    transform: scale(1.05);
}

/* Боковая колонка (сайдбар) */
.news-sidebar-aside {
    flex-shrink: 0;
}

.news-sidebar-widget {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 230px; 
}

.news-sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-dark, #333);
}

.news-sidebar-placeholder {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}


.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.news-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.news-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    user-select: none;
}

.news-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.3s ease;
}

.news-lightbox-close:hover {
    color: var(--brand-red, #ED3237);
}

.news-lightbox-prev,
.news-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 100000;
}

.news-lightbox-prev:hover,
.news-lightbox-next:hover {
    color: var(--brand-red, #ED3237);
}

.news-lightbox-prev { left: 20px; }
.news-lightbox-next { right: 20px; }

/* Мобильная адаптация */
@media (max-width: 992px) {
    .news-sidebar-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-sidebar-widget {
        position: static;
        padding: 25px;
    }
    
    .news-detail-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-with-sidebar-container {
        padding-bottom: 40px;
    }

    .news-sidebar-grid {
        gap: 25px;
    }

    .news-detail-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    /* Выравнивание */
    text-align: justify;
    text-align-last: left;

    /* Переносы */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    /* Поведение слов */
    word-break: normal;
    overflow-wrap: break-word;

    /* Улучшение рендеринга */
    text-rendering: optimizeLegibility;
    }

    .news-main-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .article-text-body {
        font-size: 15px;
    }

    .news-sidebar-gallery h2 {
        font-size: 22px;
    }

    .news-sidebar-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .news-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .news-lightbox-prev,
    .news-lightbox-next {
        padding: 10px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .news-with-sidebar-container {
        padding-bottom: 30px;
    }

    .news-sidebar-grid {
        margin-top: 20px;
        gap: 20px;
    }

    .news-detail-content h1 {
        font-size: 22px;
            /* Выравнивание */
    text-align: justify;
    text-align-last: left;

    /* Переносы */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    /* Поведение слов */
    word-break: normal;
    overflow-wrap: break-word;

    /* Улучшение рендеринга */
    text-rendering: optimizeLegibility;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .news-sidebar-gallery h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .news-sidebar-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-sidebar-widget {
        padding: 20px;
    }

    .news-sidebar-widget h3 {
        font-size: 18px;
    }

    .related-news {
        margin-top: 40px;
    }

    .related-news h2 {
        font-size: 20px;
    }

    .news-lightbox-content {
        max-width: 95%;
    }

    .news-lightbox-prev { left: 5px; }
    .news-lightbox-next { right: 5px; }
}

body .b-quizgo-banner {
    margin: 0 auto;
    left: 0;
    right: 0;
}

/* End */


/* Start:/local/templates/redteslamak/components/bitrix/search.form/header_search/style.css?1777200240878*/
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search form {
    display: flex;
    width: 100%;
    position: relative;
}

.header-search input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 35px 8px 15px;
    font-size: 14px;
    outline: none;
    border-radius: 4px;
}

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

.header-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.header-search-btn svg {
    width: 18px;
    height: 18px;
    fill: #666;
    transition: fill 0.3s ease;
}

.header-search-btn:hover svg {
    fill: var(--brand-red, #ED3237);
}

/* End */


/* Start:/local/templates/redteslamak/components/bitrix/form.result.new/universal_modal/style.css?17770604522245*/
/* Стили универсальной формы для модального окна */
.universal-modal-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.um-form-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
    text-align: center;
}

.um-form-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.4;
}

.um-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.um-form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.um-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.um-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

.um-input:focus {
    border-color: #e52d27;
    box-shadow: 0 0 0 2px rgba(229, 45, 39, 0.1);
}

.um-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.um-form-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.um-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #e52d27;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.um-submit-btn:hover {
    background-color: #c7201a;
}

.um-privacy-policy {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 0;
}

.um-form-errors {
    background: #ffebe9;
    color: #d12c20;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #ffdce0;
}

.um-form-success {
    text-align: center;
    padding: 30px 15px;
}

.um-success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
    line-height: 1;
}

.um-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.um-success-text {
    font-size: 16px;
    color: #666;
}

/* End */
/* /local/templates/redteslamak/css/template_styles.css?177947719590495 */
/* /local/templates/redteslamak/components/bitrix/search.form/header_search/style.css?1777200240878 */
/* /local/templates/redteslamak/components/bitrix/form.result.new/universal_modal/style.css?17770604522245 */
