
/* Общие стили */
body {
  background-color: #ffffff;
  color: #212529;
}


/* --- Верхний колонтитул --- */
.top-header {
  background-color: #808285;
  padding: 5px 0;
  font-size: 14px;
}

.top-header .nav-link {
  color: #fff;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.top-header .nav-link:hover {
  color: #ddd;
  text-decoration: underline;
}

.top-header .nav-item:not(:last-child) {
  border-right: 1px solid #a9a9a9;
}

.top-header .nav-item:first-child > a {
    padding-left: 10px;
}
    
.top-header .nav-link {
  padding: 0 20px; /* Упрощенный селектор */
}

.top-header .search-form {
  position: relative;
}

.top-header .search-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding-right: 30px;
  height: 32px;
  font-size: 14px;
}

.top-header .search-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: #808285;
  padding: 0 10px;
}

/* --- Основной колонтитул --- */
.main-header {
  background-color: #fff;
  padding: 25px 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-svg {
  width: 100px;
  height: auto;
  margin-right: 15px;
}

.logo-text .h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #000;
  line-height: 1.1;
}

.logo-text .h1 span {
  display: block;
  border-bottom: 2px solid #0072ce;
  padding-bottom: 5px;
}

.logo-text p {
  font-size: 16px;
  color: #6d6e71;
  margin: 5px 0 0;
  letter-spacing: 3px;
}

.logo-text .d-flex {
  display: flex;
  align-items: flex-end;
}

.header-info {
  font-size: 14px;
  color: #6d6e71;
}

.header-info .d-flex {
  display: flex;
  align-items: flex-end;
}

.header-info .icon {
    color: #0072ce;
    font-size: 20px;
    margin-right: 10px;
}

.header-info .address-info {
    display: flex; /* Делаем address-info flex-элементом */
    flex-direction: column; /* Располагаем элементы вертикально */
}

.header-info .time {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.contact-info .email-container {
    display: flex; /* Делаем email-container flex-элементом */
    align-items: center; /* Выравниваем по вертикали */
}

.contact-info .d-flex {
  display: flex;
  align-items: flex-end;
}

.header-info .address {
    font-weight: bold;
    color: #000;
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-info .phone-number a {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  text-decoration: none;
}


.contact-info .phone-number  a .icon {
  font-size: 22px;
  color: #0072ce;
}

.contact-info .email-link {
  display: block;
  color: #6d6e71;
  font-size: 14px;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.contact-info .email-link:hover {
  color: #0072ce;
}


.btn-callback {
  background-color: #ff8d00;
  color: #fff;
  font-weight: bold;
  border: 1px solid #ff8d00;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn-callback:hover {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ff8c01;
}

/* --- Custom Navbar Styles --- */
.custom-navbar {
    background-color: #0078d7;
    padding: 0;
    font-size: 15px;
}

.custom-navbar .navbar-brand {
    display: none; /* No brand visible in the image */
}

.custom-navbar .navbar-nav {
    width: 100%;
    justify-content: space-around;
}

.custom-navbar .nav-item {
    text-align: center;
}

.custom-navbar .nav-item > a:hover {
    text-decoration: underline;
}

/* --- Nav Link Styles --- */
.custom-navbar .nav-link {
    color: #ffffff;
    padding: 10px 20px;
    line-height: 1.3;
    transition: background-color 0.2s ease-in-out;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    height: 100%;
   /* width: 165px;*/
}

.custom-navbar .nav-item:last-child .nav-link {
    border-right: none;
    height: 100%;
}

/* --- Dropdown Menu Styles --- */
.custom-navbar .dropdown-menu {
    background-color: rgb(128 128 128 / 87%);
    border-radius: 0 0 8px 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}


.custom-navbar .dropdown-item {
    color: #e0e0e0;
    padding: 6px 20px;
    font-size: 15px;
    transition: none;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
    color: #ffffff;
    background-color: transparent;
    text-decoration: underline;
}

.custom-navbar .nav-item.dropdown:last-child {
    position: relative;
}

.custom-navbar .nav-item.dropdown:last-child .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
}

.nav-link:focus-visible {
    box-shadow: none
}

/* --- Hover/Active Tab Effect (Desktop) --- */
@media (min-width: 992px) {
    .custom-navbar .nav-item.dropdown:hover .nav-link,
    .custom-navbar .nav-item.dropdown.show .nav-link {
        background-color: #0c85e0;
        color: #fff;
        position: relative;
        z-index: 1051;
        
    }

    .custom-navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
        z-index: 1050;
    }

    .custom-navbar .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* --- Responsive Styles --- */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-nav {
        align-items: flex-start;
    }
    .custom-navbar .nav-item {
        width: 100%;
        text-align: left;
    }
    .custom-navbar .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }
     .custom-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .custom-navbar .dropdown-menu {
        background-color: #707070; /* Slightly darker for contrast */
        box-shadow: none;
        border-radius: 0;
        padding-left: 15px; /* Indent sub-menu */
    }
    .custom-navbar .nav-item:hover .nav-link, 
    .custom-navbar .nav-item.show .nav-link {
         background-color: #0c85e0;
    }
}


       /* --- Carousel Section Wrapper --- */
        .carousel-section {
            padding: 2rem 0;
            transition: all 0.3s ease-in-out;
        }

        /* --- Main Carousel Container --- */
        #fenceCarousel {
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .carousel-inner {
            border-radius: 18px;
        }

        /* --- Carousel Caption (Text & Button) --- */
        .carousel-caption {
            top: 15%;
            left: 5%;
            right: auto;
            bottom: auto;
            text-align: left;
            width: auto;
            max-width: 90%;
        }

        .carousel-caption .h1 {
            font-size: 3.5rem;
            font-weight: 700;
            color: #fff;
            text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
            line-height: 1.2;
        }

        .carousel-caption .btn-custom-orange {
            background-color: #ff8d00;
            border-color: #ff8d00;
            color: #fff;
            font-weight: bold;
            padding: 0.75rem 1.75rem;
            border-radius: 6px;
            margin-top: 1.5rem;
            transition: background-color 0.3s ease;
            letter-spacing: 0.5px;
        }

        .carousel-caption .btn-custom-orange:hover {
            background-color: #fff;
            border-color: #ff8d00;
            color: #000;
        }

        /* --- Carousel Controls (Arrows) --- */
        .carousel-control-prev,
        .carousel-control-next {
            background-color: rgba(215, 215, 215, 0.7);
            width: 45px;
            height: 45px;
            border-radius: 10px;
            opacity: 1;
            transition: background-color 0.3s ease;
            top: 85%;
            transform: translateY(-50%);
        }

        .carousel-control-prev {
            left: 20px;
        }

        .carousel-control-next {
            right: 20px;
        }

        .carousel-control-prev:hover,
        .carousel-control-next:hover {
            background-color: rgba(190, 190, 190, 0.9);
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            /*display: none; */
        }
        
        .carousel-control-prev .fa-solid,
        .carousel-control-next .fa-solid {
            font-size: 1.2rem;
            color: #4a4a4a;
        }

        /* --- Carousel Indicators (Bottom Bars) --- */
        .carousel-indicators {
            bottom: 20px;
        }

        .carousel-indicators [data-bs-target] {
            width: 40px;
            height: 6px;
            border: 0;
            border-radius: 5px;
            background-color: #fff;
            opacity: 0.8;
            margin: 0 5px;
            transition: opacity 0.6s ease, background-color 0.6s ease;
        }

        .carousel-indicators .active {
            opacity: 1;
            background-color: #8C9BA5;
        }
        
        /* --- Responsive Breakpoints --- */
        /* Tablet */
        @media (max-width: 992px) {
            .carousel-caption {
                top: 10%;
                left: 5%;
            }
            .carousel-caption .h1 {
                font-size: 2.8rem;
            }
            .carousel-caption .btn-custom-orange {
                padding: 0.6rem 1.5rem;
                margin-top: 1rem;
            }
        }

        /* Mobile */
        @media (max-width: 768px) {
            .carousel-caption {
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 90%;
                text-align: center;
            }
            .carousel-caption .h1 {
                font-size: 2.2rem;
            }
            .carousel-caption .btn-custom-orange {
                padding: 0.5rem 1.25rem;
                font-size: 0.9rem;
            }
            .carousel-control-prev,
            .carousel-control-next {
                width: 35px;
                height: 35px;
            }
            .carousel-control-prev {
                left: 10px;
            }
            .carousel-control-next {
                right: 10px;
            }
            .carousel-indicators [data-bs-target] {
                width: 25px;
                margin: 0 4px;
            }
        }
        
        @media (max-width: 576px) {
             .carousel-caption .h1 {
                font-size: 1.8rem;
            }
        }

/* --- Калькуляторы --- */
        .calculator-card {
            background-color: #f7f7f9;
            border: 1px solid #e9ecef;
            border-radius: 14px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            padding: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            overflow: hidden;
            height: 100%;
            cursor: pointer;
        }

        .calculator-card:hover {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        }

        .card-content {
            flex: 1;
            padding-right: 20px;
        }

        .card-title {
            font-size: 22px;
            font-weight: 700;
            color: #212529;
            margin-bottom: 15px;
            line-height: 1.35;
        }
        .card-title a {
            color: #000;
            text-decoration: none;
        }
        .card-title a:hover {
            text-decoration: underline;
        }

        .card-text {
            font-size: 16px;
            color: #495057;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        .card-link {
            font-size: 17px;
            color: #0d6efd;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .calculator-card:hover .card-link {
            text-decoration: underline;
        }

        .card-image-wrapper {
            flex-shrink: 0;
        }

        .calculator-img {
            max-width: 145px;
            height: auto;
        }


        /* Responsive adjustments */
        @media (max-width: 991.98px) {
            .calculator-card {
                flex-direction: column;
                text-align: center;
                padding: 25px;
            }

            .card-content {
                padding-right: 0;
                margin-bottom: 25px;
                order: 2;
            }

            .card-image-wrapper {
                order: 1;
                margin-bottom: 20px;
            }

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

            .card-text {
                font-size: 15px;
            }
            
            .calculator-img {
                max-width: 130px;
            }
        }

         @media (max-width: 575.98px) {
             .card-title {
                font-size: 18px;
             }
         }



/* --- Каталог продукции --- */
.catalog-section {
  padding: 50px 0;
}

.catalog-title {
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: 0.1em;
  color: #343a40;
  margin-bottom: 40px;
}

.product-card {
  background-color: #f7f7f9;
  border: 1px solid #777777;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top-container {
  padding: 20px 20px 0;
}

.product-card .card-img-top {
  width: 100%;
  height: auto;
}

.product-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 16px;
}

.product-card .card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #495057;
  flex-grow: 1;
}

.product-card .card-list li {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.product-card .card-link {
  text-decoration: none;
  color: #0d6efd;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid #0d6efd;
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 20px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-card .card-link:hover {
  color: #0a58ca;
  border-color: #0a58ca;
}


        .product-links {
            padding-left: 0;
            list-style: none;
            margin-bottom: 10px;
        }

        .product-links li {
            margin-bottom: 0.3rem;
        }
        
        .product-links li:last-child {
            margin-bottom: 0;
        }

        .product-links a {
            color: #6c757d;
            text-decoration: none;
            border-bottom: 1px dotted #a0a0a0;
            font-size: 1rem; /* ~16px */
            transition: color 0.2s, border-color 0.2s;
            display: inline;
            background: none;
            padding: 0;
            cursor: pointer;
        }

        .product-links a:hover {
            color: #343a40;
            border-bottom-style: solid;
        }

        .product-links a.toggle-link-blue {
            color: #0d6efd;
            border-bottom-color: #0d6efd;
        }

        .product-links a.toggle-link-blue:hover {
            color: #0d6efd;
            border-bottom-color: #0d6efd;
        }
        
        /* Ensure the last visible list item before toggle has margin */
        .product-links li:has(+ li > a.toggle-link) {
            margin-bottom: 0.8rem !important;
        }
        .product-links li:has(> a.toggle-link) {
            margin-top: 1rem;
        }



.catalog-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    margin-top: 20px;
    display: inline-block;
}

.catalog-link:hover {
    color: #0a58ca;
}

.catalog-link i {
    font-size: 0.9em;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.catalog-link:hover i {
    transform: translateX(4px);
}
        
        
/* --- Основной контент --- */
.content-section {
  padding-top: 50px; /* Объединено с .content-section в разделе "Видео" */
  padding-bottom: 50px;
}

.main-heading {
  font-weight: bold; 
  font-size: 2.5rem; 
  margin-bottom: 30px; 
  color: #000;
}
.content-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
}

/* --- Форма обратной связи --- */
.callback-section {
  background-color: #0078d7;
  color: #fff;
  padding: 50px 15px;
  text-align: center; /* Добавлено для центрирования контента */
}

.callback-section .h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.callback-section .h2 a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
}

.callback-section .h2 a:hover {
  opacity: 0.8;
}

.callback-section .subheading {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.callback-form .form-control {
  background-color: #fff;
  border: 2px solid white;
  border-radius: 8px;
  height: 55px;
  padding: 0.75rem 1.25rem;
  color: #333;
  font-size: 1.1rem;
}

.callback-form .form-control::placeholder {
  color: #999;
  opacity: 1;
}

.callback-form .captcha-group {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}

.callback-form .captcha-label {
    width: 105px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 7px 0 0;
    background: #fff;
    border-radius: 10px;
}

.callback-form .captcha-input {
  width: 80px;
  text-align: center;
}


.callback-section .btn-callback {
  background-color: #ff8c01;
  color: #fff;
  border-radius: 8px;
  height: 55px;
  font-weight: 700;
  font-size: 1rem;
  padding: 0 25px;
  width: 100%;
  transition: background-color 0.3s ease;
}


.callback-section .btn-callback:hover {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ff8c01;
}


.callback-section .btn-callback:active {
  transform: scale(0.98);
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer a:hover {
  color: #fff;
}

/* --- Видео --- */

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}



.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}




/* --- Футер --- */
.site-footer {
  background-color: #787878;
  color: #e0e0e0;
  padding: 50px 0;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 50px;
}

.site-footer .h5 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 25px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .footer-links {
  list-style: none;
  padding-left: 0;
}

.site-footer .footer-links li {
  margin-bottom: 5px;
}

.footer-column:last-child .footer-contact-item {
  font-size: 18px;
}

.footer-column:last-child .btn-call-request {
  display: block;
  margin-left: auto;
  margin-right: 0;
}


.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.footer-logo {
  width: 70px;
  height: auto;
  margin-right: 15px;
}

.footer-brand-text {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-info-item i {
  color: #ff8d00;
  margin-right: 12px;
  font-size: 16px;
  margin-top: 4px;
}

.footer-disclaimer {
    margin-top: 40px;
    padding-top: 30px;
    font-size: 13px;
    color: #c0c0c0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  justify-content: flex-end;
}

.footer-contact-item i {
  color: #ff8d00;
  margin-right: 12px;
  font-size: 18px;
}

a.btn-call-request {
  background-color: #ff8d00;
  color: #fff;
  border: 1px solid #ff8d00;
  border-radius: 5px;
  padding: 12px 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 220px;
}

a.btn-call-request:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #ff8d00;
  text-decoration: none;
}


        /* --- Modal Customization --- */
        .modal-backdrop {
            background-color: transparent !important; /* The image has no dark overlay, just a gray page */
        }

        .modal-dialog {
            max-width: 550px;
            margin-top: 5rem;
        }

        .modal.fade .modal-dialog {
             transform: translate(0, -25px);
             transition: transform 0.3s ease-out;
        }

        .modal.show .modal-dialog {
            transform: translate(0, 0);
        }

        .modal-content {
            border-radius: 12px;
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            text-align: center;
            border-bottom: none;
            padding: 2rem 2.5rem 0.5rem;
            position: relative;
            justify-content: center;
        }

        .modal-title {
            font-size: 1.75rem;
            font-weight: 600;
            color: #333;
            width: 100%;
        }

        .modal-header .btn-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            opacity: 1;
            font-size: 1.2rem;
            color: #888;
            transition: color 0.2s ease, transform 0.2s ease;
        }
        
        .modal-header .btn-close:hover {
            color: #000;
            transform: scale(1.1);
        }
        
        .modal-header .btn-close:focus {
            box-shadow: none;
        }

        .modal-body {
            padding: 0.5rem 2.5rem 2rem;
        }
        
        .modal-body p.subtitle {
            text-align: center;
            color: #555;
            margin-bottom: 2rem;
            font-size: 1rem;
        }

        .form-control {
            border-radius: 8px;
            padding: 0.8rem 1rem;
            border: 1px solid #e0e0e0;
            font-size: 1rem;
        }

        .form-control:focus {
            border-color: #f9a825;
            box-shadow: 0 0 0 0.25rem rgba(249, 168, 37, 0.25);
        }
        
        .form-control::placeholder {
            color: #999;
        }

        textarea.form-control {
            resize: vertical;
            min-height: 100px;
        }
        
        .form-check {
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem; 
        }
        
        
        .form-check-input {
            width: 1.25em;
            height: 1.25em;
            margin-left: -2em; /* Position checkbox correctly */
            border-radius: 4px;
            border: 1px solid #ccc;
        }

        .form-check-input:checked {
            background-color: #0d6efd;
            border-color: #0d6efd;
        }
        
        .form-check-input:focus {
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
            border-color: #0d6efd;
        }
        
        .form-check-label {
            font-size: 0.95rem;
            color: #555;
        }

        .form-check-label a {
            color: #0d6efd;
            text-decoration: none;
            border-bottom: 1px solid #0d6efd;
            transition: color 0.2s, border-color 0.2s;
        }
        
        .form-check-label a:hover {
            color: #0a58ca;
            border-color: #0a58ca;
        }

        .btn-submit-custom {
            background-color: #ff8d00;
            color: #fff;
            font-weight: 600;
            padding: 0.8rem 1.5rem;
            border: 1px solid #ff8c01;
            border-radius: 8px;
            width: 100%;
            text-transform: uppercase;
            transition: background-color 0.2s ease-in-out, transform 0.1s ease;
        }

        .btn-submit-custom:hover {
            background-color: #ffffff;
            color: #000;
            border: 1px solid #ff8c01;
        }
        
        .btn-submit-custom:active {
            transform: translateY(0);
        }
        
        .form-control.is-invalid, .was-validated .form-control:invalid {
            border-color: var(--bs-form-invalid-border-color);
            border-width: 2px;
        }        


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

  .main-header .row > div {
    margin-bottom: 20px;
  }

  .main-header .row > div:last-child {
    margin-bottom: 0;
  }

  .contact-block {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .btn-callback {
    margin-top: 15px;
  }

  .main-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
  }

  .main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .main-nav .navbar-nav {
    justify-content: flex-start;
  }

  .main-nav .nav-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .main-nav .nav-link {
    text-align: left;
  }

  .product-card { /* Каталог */
    margin-bottom: 24px;
  }

  .row > *:last-child .product-card { /* Каталог */
    margin-bottom: 0;
  }

  .col-lg-6 { /* Калькуляторы */
    width: 70%;
  }

  .site-footer .h5 { /* Нижний колонтитул */
    margin-top: 0;
  }

  .footer-column { /* Нижний колонтитул */
    margin-bottom: 40px;
  }

  .content-section { /* Основной контент и Видео */
    text-align: center;
  }
}

@media (max-width: 767px) {
  .main-header {
    padding: 15px 0;
  }

  .logo-wrapper,
  .header-info,
  .contact-info,
  .contact-block {
    justify-content: center !important;
    text-align: center;
  }
  
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}



  .header-info,
  .contact-block {
    align-items: center !important;
  }

  .contact-info .email-link {
    text-align: center;
  }

  .logo-wrapper {
    flex-direction: column;
  }

  .logo-svg {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .catalog-title { /* Каталог */
    font-size: 1.8rem;
  }

  .col-lg-6 { /* Калькуляторы */
    width: 85%;
  }

  .callback-section .h2 { /* Форма обратной связи */
    font-size: 1.6rem;
  }

  .callback-section .subheading { /* Форма обратной связи */
    font-size: 1rem;
  }

  .site-footer { /* Нижний колонтитул */
    text-align: center;
  }

  .footer-brand,
  .footer-info-item,
  .footer-contact-item { /* Нижний колонтитул */
    justify-content: center;
    text-align: left;
  }

  .footer-brand { /* Нижний колонтитул */
    flex-direction: column;
    text-align: center;
  }

  .footer-logo { /* Нижний колонтитул */
    margin-right: 0;
    margin-bottom: 15px;
  }

  .footer-links { /* Нижний колонтитул */
    display: inline-block;
    text-align: center;
  }

  .btn-call-request { /* Нижний колонтитул */
    margin: 0 auto;
  }


}

@media (max-width: 576px) {
  .category-card-wrapper { /* Карточка категории */
    padding: 1rem 0.5rem;
  }

  .card-content-overlay { /* Карточка категории */
    padding: 1.5rem;
  }

  .category-card-title { /* Карточка категории */
    font-size: 1.6rem;
    max-width: 220px;
  }

  .btn-catalog { /* Карточка категории */
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
  }


  .callback-form .row { /* Форма обратной связи */
    --bs-gutter-y: 1rem;
  }

  .callback-form .col-lg-auto { /* Форма обратной связи */
    width: auto;
  }

  .callback-section .btn-callback { /* Форма обратной связи */
    max-width: 300px;
  }
     .modal-dialog {
        margin: 0.5rem;
        margin-top: 2rem;
    }
    .modal-content {
        height: calc(100% - 4rem);
    }
    .modal-header {
        padding: 1.5rem 1.5rem 0.5rem;
    }
    .modal-body {
        padding: 0.5rem 1.5rem 1.5rem;
    }
    .modal-title {
        font-size: 1.5rem;
    }
            
}



    /* --- Breadcrumb Styling --- */
    .custom-breadcrumb {
        --bs-breadcrumb-divider-color: #808285;
        --bs-breadcrumb-divider: '»';
        font-size: 13px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .custom-breadcrumb .breadcrumb-item a {
        color: #808285;
        text-decoration: none;
        transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
    }

    .custom-breadcrumb .breadcrumb-item a:hover {
        color: #808285;
        text-decoration: underline;
    }

    .custom-breadcrumb .breadcrumb-item.active {
        color: #808285;
    }

    /* --- Title and Lines Styling --- */
    .title-container {
        align-items: center;
    }

    .page-title {
        font-size: 26px;
        font-weight: bold;
        color: #333333;
        white-space: nowrap;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .title-lines {
        height: 12px;
        position: relative;
        top: 2px; /* Fine-tune vertical alignment with text */
        background-image: repeating-linear-gradient(
            to bottom,
            #e9e9e9,
            #e9e9e9 1px,
            transparent 1px,
            transparent 4px
        );
        background-size: 100% 4px;
    }

    /* --- Responsive Adjustments --- */
    @media (max-width: 768px) {
        .page-title {
            font-size: 22px;
        }

        .custom-breadcrumb {
            font-size: 14px;
        }
    }

    @media (max-width: 576px) {
        .page-title {
            font-size: 20px;
        }

        .custom-breadcrumb {
            font-size: 13px;
            margin-bottom: 1.5rem;
        }
        
        .title-lines {
            margin-left: 0.75rem !important; /* Use Bootstrap's ms-2 class */
        }
    }
    
    