/* =========================================
   BASE
   ========================================= */

body {
    width: 100%;
    height: 100%;
    background: #f5f7fa;
}

h1, h2, h3, h4, h5, h6 {
    color: #444;
}

legend {
    padding: 7px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

label {
    font-size: 12px;
    font-weight: normal;
}

button:focus {
    outline: none !important;
}

main {
    padding-top: 20px;
}


/* =========================================
   LAYOUT
   ========================================= */

#container {
    width: 100%;
    min-height: 100%;
    position: relative;
}

#content,
#column-left,
#column-right {
    padding-bottom: 0;
}

#alert {
    z-index: 9999;
    position: fixed;
    top: 30%;
    left: 50%;
    width: 400px;
    margin-left: -200px;
}

@media (min-width: 992px) {
    #alert {
        width: 600px;
        margin-left: -300px;
    }
}

#alert .alert            { margin-bottom: 15px; }
#alert .alert-primary    { box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1); }
#alert .alert-secondary  { box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1); }
#alert .alert-success    { box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1); }
#alert .alert-warning    { box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1); }
#alert .alert-danger     { box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1); }
#alert .alert-info       { box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1); }
#alert .alert-light      { box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1); }
#alert .alert-dark       { box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1); }


/* =========================================
   HEADER — NEW LAYOUT
   ========================================= */

.site-header {
    padding: 18px 0 5px;
}


/* ---------- Верхняя строка ---------- */

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    min-height: 55px;
}


/* ---------- Верхнее меню ---------- */

.top-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
}

.top-nav a {
    position: relative;

    color: #333;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;

    white-space: nowrap;

    transition: color .2s ease;
}

.top-nav a:hover {
    color: #d6001c;
}

.top-nav a.active {
    color: #d6001c;
}

.top-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;

    height: 2px;

    background: #d6001c;
}


/* ---------- Контакты ---------- */

.header-contacts {
    flex: 0 0 auto;

    text-align: right;
    white-space: nowrap;

    color: #444;

    font-size: 14px;
    line-height: 1.5;
}

.header-contact-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 18px;

    font-size: 14px;
}

.header-address-line {
    margin-bottom: 3px;
}

.header-contacts a {
    color: #444;
    text-decoration: none;

    transition: color .2s ease;
}

.header-contacts a:hover {
    color: #d6001c;
}


/* =========================================
   ЛОГОТИП + ПОИСК
   ========================================= */

.header-search-row {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 45px;

    margin-top: 22px;
    margin-bottom: 15px;
}


/* ---------- Логотип ---------- */

.header-logo-wrap {
    flex-basis: 220px !important;
    width: 220px !important;
}

.header-logo-image {
    display: block;

    width: 190px;
    max-width: 220px !important;
    height: auto;
}


/* ---------- Поиск ---------- */

.header-search {
    flex: 0 1 1050px !important;
    width: 100% !important;
    max-width: 1050px !important;
    min-width: 0;

    margin: 0;
}

.header-search .input-group,
.header-search form {
    width: 100%;
}

#search {
    width: 100%;
    margin: 0;
}

#search .form-control-lg {
    height: 52px;

    font-size: 16px;
    line-height: 52px;

    padding: 0 18px;

    border-radius: 10px 0 0 10px;
}

#search .btn-lg {
    height: 52px;

    padding: 0 24px;

    border-radius: 0 10px 10px 0;
}


/* Cart */

#cart {
    margin-bottom: 10px;
    margin-top: 10px;
}

#cart .img-thumbnail { min-width: 100px; }

#cart .btn-lg {
    font-size: 15px;
    line-height: 18px;
    padding: 14px 35px;
}

#cart .dropdown-menu { background: #eee; }

#cart .dropdown-menu li { min-width: 300px; }

@media (max-width: 768px) {
    #cart .dropdown-menu li { min-width: 100%; }
}


/* Contacts in header */

.header-contacts {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    text-align: right;
    white-space: nowrap;
}

.header-contacts a {
    color: #444;
    text-decoration: none;
    font-weight: 400;
    padding-right: 10px;
    transition: color 0.2s ease;
}

.header-contacts a:hover {
    color: #e4002b;
}

.header-address {
    font-size: 12px;
    font-weight: 400;
    color: #777;
    margin-bottom: 4px;
}

.header-contact-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 400;
    color: #444;
}

.contact-separator { color: #aaa; }


/* =========================================
   NAVIGATION MENU
   ========================================= */

#menu {
    background: #d5001c !important;
    border: none;
    min-height: 56px;
    border-radius: 12px;
    padding: 0 20px;
    margin-top: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    width: 100%;
    overflow: visible;
}

#menu .navbar-nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
}

#menu .navbar-nav > .nav-item {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

#menu .navbar-nav > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 4px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-shadow: none;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

#menu .navbar-nav > .nav-item > .nav-link:hover {
    background: #d5001c;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

/* Underline indicator */
#menu .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: #d5001c;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

#menu .navbar-nav > .nav-item > .nav-link:hover::after {
    transform: scaleX(1);
}

/* Active item */
#menu .navbar-nav > .nav-item.active > .nav-link {
    background: #d5001c !important;
    color: #fff !important;
}

#menu .navbar-nav > .nav-item.active > .nav-link::after {
    background: #111 !important;
    transform: scaleX(1);
}

/* Dropdown */
#menu .dropdown-menu {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
}

#menu .dropdown-inner {
    display: flex;
    flex-direction: column;
}

#menu .dropdown-inner ul {
    width: 100%;
    min-width: 200px;
}

#menu .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

@media (min-width: 960px) {
    #menu .dropdown-inner { flex-direction: row; }

    #menu .nav-item + .nav-item + .nav-item .dropdown-column-3                              { left: -200px; }
    #menu .nav-item + .nav-item + .nav-item .dropdown-column-4                              { left: -400px; }
    #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2                  { left: -200px; }
    #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3                  { left: -400px; }
    #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4                  { left: -600px; }
}

#category {
    float: left;
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

#menu .navbar-toggler i {
    color: #fff;
    border-color: #fff;
    font-size: 0.9em;
}


/* =========================================
   FORMS / BOOTSTRAP OVERRIDES
   ========================================= */

div.required .col-form-label:before,
div.required .form-label:before {
    content: "* ";
    color: #F00;
    font-weight: bold;
}

.form-switch-lg {
    font-size: 20px;
    min-height: 30px;
    line-height: 30px;
}

.nav-tabs {
    margin-bottom: 15px;
}

.form-check .form-check-input {
    margin-top: 0.25rem;
}

.form-control {
    border: 2px solid #d4d4d4;
}

@media (min-width: 768px) {
    .col-form-label { text-align: right; }
}


/* =========================================
   BUTTONS
   ========================================= */

.btn-primary {
    background: #d5001c;
    border-color: #d5001c;
    border-radius: 8px;
    font-weight: 600;
    transition: .2s;
}

.btn-primary:hover {
    background: #b30017;
    border-color: #b30017;
}

.btn-secondary {
    border-radius: 8px;
}


/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb {
    margin: 0 0 14px;
    padding: 11px 20px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.breadcrumb i {
    color: #d5001c;
    font-size: 16px;
}

.breadcrumb > li.breadcrumb-item {
    padding: 0 16px;
    position: relative;
    white-space: nowrap;
    text-shadow: none;
}

.breadcrumb > li.breadcrumb-item > a {
    color: #555;
    text-decoration: none;
    transition: .2s;
}

.breadcrumb > li.breadcrumb-item > a:hover {
    color: #d5001c;
}

.breadcrumb > li.breadcrumb-item.active {
    color: #111;
    font-weight: 600;
}

.breadcrumb > li.breadcrumb-item:after {
    content: "›";
    position: absolute;
    right: -6px;
    top: 0;
    color: #bbb;
    font-size: 18px;
}

.breadcrumb > li:last-child:after,
.breadcrumb > li.breadcrumb-item + li:before {
    display: none;
}


/* =========================================
   PAGE TITLES
   ========================================= */

.page-title,
.catalog-title {
    font-size: 36px;
    font-weight: 700;
    margin: 12px 0 18px;
}

main h1 {
    margin-top: 12px;
    margin-bottom: 18px;
}


/* =========================================
   PRODUCT CARDS
   ========================================= */

.product-thumb {
    position: relative;
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: all .25s ease;
}

.product-thumb:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.product-thumb .image {
    text-align: center;
    background: #fafafa;
    padding: 20px;
}

.product-thumb .image a:hover { opacity: 0.8; }

.product-thumb .description {
    padding: 22px;
    margin-bottom: 55px;
}

.product-thumb .description h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.product-thumb .button {
    display: flex;
    position: absolute;
    width: 100%;
    bottom: 0;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.product-thumb .button button {
    width: 33.33%;
    border: none;
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-gray-600);
    line-height: 38px;
    text-align: center;
}

.product-thumb .button button:hover {
    color: var(--bs-gray-600);
    background-color: #ddd;
    text-decoration: none;
    cursor: pointer;
}

.product-thumb .button button + button {
    border-left: 1px solid var(--bs-border-color);
}

.product-thumb .caption { padding: 18px; }

.product-thumb h4 a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.product-thumb h4 a:hover { color: #d5001c; }

@media (min-width: 960px) {
    .product-list .product-thumb { display: flex; }
    .product-list .product-thumb .image { flex-direction: column; margin-bottom: 0; }
    .product-list .product-thumb .content { flex-direction: column; flex: 75%; position: relative; }
    .product-list .product-thumb .button { border-left: 1px solid #ddd; width: calc(100% - 15px); margin-left: 15px; }
}


/* Rating */

.rating .fa-stack { width: 20px; }
.rating .fa-star   { color: #FC0; font-size: 15px; }
.rating .fa-star + .fa-star { color: #E69500; }


/* Price */

.price       { color: #444; }
.price-new   { font-weight: 600; }
.price-old   { color: #dc512c; text-decoration: line-through; }
.price-tax   { color: #999; font-size: 12px; display: block; }
.price-request { color: #d5001c; font-weight: 700; font-size: 18px; }
.price-note    { color: #666; margin-top: 8px; font-size: 15px; }


/* =========================================
   CATALOG PAGE
   ========================================= */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 60px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-card:hover {
    color: #222;
    border-color: #c5c5c5;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.10);
}

.catalog-card-image {
    width: 100%;
    height: 170px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e2e2;
    overflow: hidden;
}

.catalog-card-image img {
    max-height: 145px;
    max-width: 80%;
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.04);
}

.catalog-card-content {
    min-height: 125px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.catalog-card span {
    color: #d6001c;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .catalog-grid { grid-template-columns: 1fr; }
}


/* =========================================
   CATEGORY SIDEBAR
   ========================================= */

.category-sidebar {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.category-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    padding: 9px 12px;
    border-bottom: 1px solid #ddd;
}

.category-sidebar-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.category-sidebar-link {
    display: block;
    padding: 5px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.25;
    transition: background-color 0.15s ease;
}

.category-sidebar-link:hover {
    background: #f5f5f5;
    color: #d9002b;
}

/* Bootstrap list-group overrides */
.list-group {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.list-group-item {
    border-bottom: 1px solid #ececec;
    background: #d5001c;
    color: #fff;
}

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

.list-group-item:hover,
.list-group-item.active {
    background: #d5001c;
    color: #fff;
}

.list-group-item.active {
    background: #111;
    border-color: #111;
}


/* =========================================
   MANUFACTURER FILTER
   ========================================= */

.manufacturer-filter {
    background: #fff;
    accent-color: #e30613;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.manufacturer-filter-title {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.manufacturer-filter-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 6px 8px;
}

.manufacturer-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 4px;
    margin: 0;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    transition: .15s ease;
}

.manufacturer-filter-item:hover {
    background: #f7f7f7;
    color: #d5001c;
}

.manufacturer-filter-item input {
    flex: 0 0 auto;
    margin: 0;
    accent-color: #d5001c;
    cursor: pointer;
}

.manufacturer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manufacturer-count {
    margin-left: auto;
    color: #999;
    font-size: 10px;
}

.manufacturer-filter-item:hover .manufacturer-count { color: #d5001c; }

.manufacturer-reset {
    width: calc(100% - 16px);
    margin: 4px 8px 8px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #d5001c;
    border-radius: 5px;
    color: #d5001c;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
}

.manufacturer-reset:hover {
    background: #d5001c;
    color: #fff;
}

.manufacturer-loading {
    padding: 6px 10px 9px;
    color: #999;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 767px) {
    .manufacturer-filter-list { grid-template-columns: 1fr; }
    .manufacturer-filter-item { font-size: 12px; padding: 6px 4px; }
}


/* =========================================
   HOME HERO
   ========================================= */

.home-hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 1240px;
    height: 520px;

    margin: 30px auto 70px;
}


/* =========================================
   ТЕКСТОВАЯ ЧАСТЬ
   ========================================= */

.home-hero-content {
    position: relative;
    z-index: 3;

    width: 58%;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 45px;

    background: transparent;
    color: #1f3b57;
}

.home-hero-brand {
    margin-bottom: 28px;
    color: #ed1b2f;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.home-hero-brand span {
    display: block;
    margin-top: 7px;
    color: #66717c;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.home-hero-content h1 {
    margin: 0 0 25px;

    color: #263746;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
}

.home-hero-content p {
    color: #66717c;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 30px;
}


/* =========================================
   КНОПКА
   ========================================= */

.home-hero-button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 18px;

    padding: 15px 24px;

    background: #ed1b2f;
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 3px;
    transition: all 0.2s ease;
}

.home-hero-button span {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.home-hero-button:hover {
    background: #d91427;
    color: #fff;
    text-decoration: none;
}

.home-hero-button:hover span {
    transform: translateX(4px);
}


/* =========================================
   ФОТО
   ========================================= */

.home-hero-image {
    position: absolute;
    z-index: 1;

    top: 0;
    right: 0;

    width: 72%;
    height: 100%;

    overflow: hidden;
}

.home-hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================
   ПЛАВНЫЙ ПЕРЕХОД ФОТО → ТЕКСТ
   ========================================= */

.home-hero-image::after {
    content: "";

    position: absolute;
    z-index: 2;

    inset: 0;

    background: linear-gradient(
        to right,
        #fff 0%,
        rgba(255, 255, 255, 0.98) 8%,
        rgba(255, 255, 255, 0.90) 17%,
        rgba(255, 255, 255, 0.65) 27%,
        rgba(255, 255, 255, 0.30) 38%,
        rgba(255, 255, 255, 0) 52%
    );

    pointer-events: none;
}


/* =========================================
   ABOUT PAGE
   ========================================= */

.about-banner {
    display: flex;
    width: 100%;
    height: 460px;
    margin-top: 30px;
    overflow: hidden;
}

.about-image {
    width: 65%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-title {
    width: 35%;
    background: #ed1b2f;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 45px;
}

.about-title h1 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.about-text {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.about-text p { margin-bottom: 20px; }

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 55px;
    margin-bottom: 60px;
    text-align: center;
}

.about-features .feature h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
}

.about-features .feature p {
    margin-top: 8px;
    font-size: 16px;
}


/* =========================================
   SERVICES PAGE
   ========================================= */

.services-title { margin-bottom: 25px; }

.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 800px);
    margin-bottom: 60px;
}

.service-card {
    display: block;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    color: #222;
    border-color: #c5c5c5;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.service-card-image {
    width: 100%;
    height: 360px;
    background: #f5f5f5;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img { transform: scale(1.02); }

.service-card-content { padding: 25px 28px 28px; }

.service-card-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 600;
    color: #293b4f;
}

.service-card-content p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.service-card-link {
    display: inline-block;
    color: #ed1b2f;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.service-card:hover .service-card-link { color: #c90018; }

@media (max-width: 767px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card-image { height: 280px; }
    .service-card-content { padding: 20px; }
    .service-card-content h2 { font-size: 23px; }
}


/* =========================================
   SERVICE DETAIL PAGE
   ========================================= */

.service-page {
    margin-top: 25px;
    margin-bottom: 60px;
}

.service-hero {
    display: flex;
    width: 100%;
    height: 395px;
    overflow: hidden;
}

.service-hero-image {
    width: 65%;
    overflow: hidden;
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.service-hero-title {
    width: 35%;
    background: #ed1b2f;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 35px;
}

.service-hero-title h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
}

.service-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
    margin-top: 32px;
}

.service-description {
    font-size: 14px;
    line-height: 1.55;
    color: #293b4f;
}

.service-description .service-intro { margin-top: 0; margin-bottom: 15px; }

.service-description h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 500;
    color: #293b4f;
}

.service-description ul { padding-left: 22px; }
.service-description li { margin-bottom: 3px; }
.service-description a  { color: #008acb; }

.service-form {
    background: #ed1b2f;
    padding: 18px 17px 16px;
    color: #fff;
}

.service-form h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.service-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-form input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: none;
    border-radius: 2px;
    padding: 0 12px;
    background: #fff;
    font-size: 13px;
}

.service-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.service-form-policy {
    font-size: 9px;
    line-height: 1.45;
    color: #fff;
    margin-top: 2px;
}

.service-form-policy a { color: #fff; text-decoration: underline; }

.service-form button {
    height: 40px;
    margin-top: 8px;
    border: none;
    border-radius: 2px;
    background: #fff;
    color: #ed1b2f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.service-form button:hover { background: #f2f2f2; }

@media (max-width: 900px) {
    .service-hero { height: auto; flex-direction: column; }
    .service-hero-image, .service-hero-title { width: 100%; }
    .service-hero-image { height: 350px; }
    .service-hero-title { min-height: 130px; box-sizing: border-box; }
    .service-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .service-hero-image { height: 260px; }
    .service-hero-title { padding: 25px; }
    .service-hero-title h1 { font-size: 24px; }
}


/* =========================================
   CONTACTS PAGE
   ========================================= */

.contacts-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin: 40px 0;
}

.contacts-info,
.contacts-map {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.contacts-info { flex: 1; }

.contacts-map {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

.contact-form .btn-primary {
    background: #d6001c;
    border-color: #d6001c;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background: #b50018;
    border-color: #b50018;
}


/* =========================================
   BLOG
   ========================================= */

.blog-thumb {
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.blog-thumb h4 { font-weight: bold; }

.blog-thumb .image {
    text-align: center;
    margin-bottom: 15px;
}

.blog-thumb .image a:hover { opacity: 0.8; }

.blog-thumb .description { padding: 15px; }


/* =========================================
   EMPTY STATE
   ========================================= */

.empty-page {
    padding: 50px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
    text-align: center;
}

.empty-page h2 { margin-bottom: 15px; color: #d6001c; }

.empty-page p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #666;
}


/* =========================================
   COOKIE BANNER
   ========================================= */

#cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 9999;
    opacity: 0.95;
    color: #ecf0f1;
    background: #343a40;
}

#cookie div {
    font-size: 16px;
    color: #fff;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    margin-top: 30px;
    background: #303030;
    color: #fff;
}

.site-footer .container {
    padding-top: 25px;
    padding-bottom: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1.2fr;
    gap: 35px;
}

.footer-column h5 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

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

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

.footer-column a {
    color: #cfcfcf;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-column a:hover { color: #d9001b; }

.footer-column p {
    margin: 0 0 8px;
    color: #cfcfcf;
    line-height: 1.4;
}

.footer-contacts p:first-of-type {
    color: #fff;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
}

/* Legacy footer (kept for compatibility) */
footer {
    position: relative;
    width: 100%;
    padding-top: 25px;
    padding-bottom: 15px;
    background-color: #303030;
    border-top: 1px solid #ddd;
    color: #e2e2e2;
    box-sizing: border-box;
}

footer hr {
    border-top: none;
    border-bottom: 1px solid #666;
    margin-top: 20px;
    margin-bottom: 12px;
}

footer a          { color: #ccc; text-decoration: none; }
footer a:hover    { color: #fff; }
footer h5         { font-family: "Open Sans", sans-serif; font-size: 13px; font-weight: bold; color: #fff; margin-top: 5px; margin-bottom: 8px; }
footer ul         { margin-bottom: 0; }
footer li         { margin-bottom: 5px; }
footer p          { margin-bottom: 5px; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .site-footer .container { padding-top: 35px; }
}


/* ================================
   NEWS
   ================================ */

/* Список новостей */

.news-card {
    width: 750px;
    max-width: 100%;
    margin: 0 0 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Баннер */

.news-card-image {
    display: block;
    width: 100%;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Содержимое */

.news-card-body {
    padding: 20px 28px 24px;
}

.news-card-date {
    margin-bottom: 7px;
    font-size: 13px;
    color: #777;
}

.news-card-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

.news-card-description {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.news-card-link {
    font-size: 15px;
    color: #e30613;
    text-decoration: none;
}

.news-card-link:hover {
    color: #b9040f;
}


/* ================================
   NEWS ARTICLE
   ================================ */

.news-article {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Заголовок статьи */

.news-article-header {
    margin-bottom: 5px;
}

.news-article-title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
    color: #333;
}

.news-article-date {
    font-size: 14px;
    line-height: 1.5;
    color: #888;
}

/* Баннер статьи */

.news-article-image {
    text-align: center;
    margin-bottom: 25px;
}

.news-article-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    margin: 0 auto;
    border-radius: 4px;
}

/* Текст статьи */

.news-article-content {
    max-width: 900px;
    margin: 0 auto;
}

.news-article-description {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.news-article-description p {
    margin-bottom: 18px;
}

/* Кнопка регистрации */

.news-article-action {
    margin-top: 30px;
}

.news-article-action .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 767px) {

    .news-card {
        width: 100%;
        max-width: 100%;
    }

    .news-card-body {
        padding: 18px;
    }

    .news-card-title {
        font-size: 22px;
    }

    .news-card-description {
        font-size: 14px;
    }

    .news-article {
        padding: 20px;
    }

    .news-article-title {
        font-size: 26px;
    }

    .news-article-description {
        font-size: 16px;
    }
}
/* =========================================
   HOME CATEGORIES
   ========================================= */

.home-categories {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 70px;
    box-sizing: border-box;
}

.home-section-header {
    margin-bottom: 35px;
}

.home-section-header > span {
    display: block;
    margin-bottom: 10px;
    color: #ed1b2f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-section-header h2 {
    margin: 0 0 12px;
    color: #243447;
    font-size: 34px;
    line-height: 1.2;
}

.home-section-header p {
    max-width: 650px;
    margin: 0;
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 28px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;

    transition: 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: #ed1b2f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.home-category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fef0f1;
    color: #ed1b2f;

    font-size: 24px;
    font-weight: 600;
}

.home-category-card h3 {
    margin: 0 0 10px;
    color: #243447;
    font-size: 21px;
}

.home-category-card p {
    margin: 0 0 20px;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.home-category-card span {
    margin-top: auto;
    color: #ed1b2f;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .home-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .home-section-header h2 {
        font-size: 28px;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-category-card {
        min-height: 200px;
    }
}
/* =========================================
   HOME SCROLL HINT
   ========================================= */

.home-scroll-hint {
    text-align: center;
    margin: 28px 0 95px;
}

.home-scroll-hint a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 13px 24px;

    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 4px;

    color: #263746;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.home-scroll-hint b {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.2s ease;
}

.home-scroll-hint a:hover {
    color: #ed1b2f;
    border-color: #ed1b2f;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
    text-decoration: none;
}

.home-scroll-hint a:hover b {
    transform: translateY(4px);
}
/* =========================================
   HOME NEWS
   ========================================= */

.home-news {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 80px;
    box-sizing: border-box;
}

.home-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.home-news-header > div > span {
    display: block;
    margin-bottom: 10px;
    color: #ed1b2f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-news-header h2 {
    margin: 0 0 12px;
    color: #243447;
    font-size: 34px;
    line-height: 1.2;
}

.home-news-header p {
    max-width: 650px;
    margin: 0;
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
}

.home-news-all {
    flex-shrink: 0;
    color: #ed1b2f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.home-news-all:hover {
    color: #c90018;
}


/* Сетка */

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* Карточка */

.home-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;

    background: #fff;
    border: 1px solid #e5e7eb;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

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


/* Изображение */

.home-news-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f7fa;
}

.home-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.3s ease;
}

.home-news-card:hover .home-news-image img {
    transform: scale(1.03);
}


/* Текст */

.home-news-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 22px 24px 25px;
}

.home-news-date {
    margin-bottom: 8px;
    color: #8a949e;
    font-size: 13px;
}

.home-news-body h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

.home-news-body h3 a {
    color: #243447;
    text-decoration: none;
}

.home-news-body h3 a:hover {
    color: #ed1b2f;
}

.home-news-body p {
    margin: 0 0 20px;

    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.home-news-link {
    margin-top: auto;

    color: #ed1b2f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-news-link:hover {
    color: #c90018;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 991px) {

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

}

@media (max-width: 767px) {

    .home-news-header {
        display: block;
    }

    .home-news-all {
        display: inline-block;
        margin-top: 18px;
    }

    .home-news-header h2 {
        font-size: 28px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-image {
        height: 220px;
    }

}
/* =========================================
   WHY NAVGEOCOM
   ========================================= */

.home-why {
    width: 100%;
    margin: 0 auto 70px;
}

.home-why-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}


/* Заголовок */

.home-why-header {
    margin-bottom: 35px;
}

.home-why-header > span {
    display: block;

    margin-bottom: 10px;

    color: #ed1b2f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.home-why-header h2 {
    margin: 0 0 12px;

    color: #243447;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
}

.home-why-header p {
    max-width: 650px;
    margin: 0;

    color: #718096;
    font-size: 16px;
    line-height: 1.6;
}

.home-why-header strong {
    color: #243447;
    font-weight: 600;
}


/* Показатели */

.home-why-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-why-stat {
    min-height: 120px;
    padding: 28px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e5e7eb;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-why-value {
    margin-bottom: 8px;

    color: #243447;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
}

.home-why-label {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 991px) {

    .home-why-inner {
        padding: 0 20px;
    }

    .home-why-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 767px) {

    .home-why-header h2 {
        font-size: 28px;
    }

    .home-why-stats {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   MOBILE — FINAL ADAPTATION
   ========================================= */

@media (max-width: 767px) {

    /* ---------- Global ---------- */

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    main {
        padding-top: 10px;
    }

    .container {
        max-width: 100%;
    }


    /* ---------- Header ---------- */

    header {
        padding: 10px 0 0;
    }

    .header-top {
        display: block;
        width: 100%;
        padding: 10px 0 0;
    }

    .header-wrapper {
        display: block;
        width: 100%;
    }

    .header-logo {
        display: block;
        width: 180px;
        max-width: calc(100% - 32px);
        height: auto;
        max-height: none;
        margin: 0 auto 22px;
    }

    .header-logo img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto;
    }

    .header-right {
        display: block;
        width: 100%;
        min-width: 0;
    }


    /* ---------- Navigation ---------- */

    .top-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 4px;
        width: 100%;
        margin: 0 auto 14px;
        box-sizing: border-box;
    }

    .top-nav a {
        display: inline-block;
        padding: 5px 7px;
        font-size: 14px;
        line-height: 1.35;
        white-space: nowrap;
    }

    .top-nav a.active::after {
        bottom: -2px;
    }


    /* ---------- Header contacts ---------- */

    .header-contacts {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto 14px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 13px;
        line-height: 1.5;
    }

    .header-address {
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
    }

    .header-contact-line {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 12px;
        font-size: 13px;
        line-height: 1.5;
    }

    .header-contacts a {
        padding-right: 0;
        white-space: normal;
    }


    /* ---------- Search ---------- */

    .header-search {
    flex: 0 1 1050px !important;
    width: 100% !important;
    max-width: 1050px !important;
    margin: 0 0 18px;
    box-sizing: border-box;
    }

    #search {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    #search .input-group,
    #search form {
        width: 100%;
        max-width: 100%;
    }

    #search .form-control-lg {
        min-width: 0;
        width: 100%;
        height: 50px;
        box-sizing: border-box;
        padding: 0 15px;
        font-size: 16px;
        line-height: 50px;
    }

    #search .btn-lg {
        flex: 0 0 52px;
        width: 52px;
        height: 50px;
        box-sizing: border-box;
        padding: 0;
    }


    /* ---------- Main menu, if present ---------- */

    #menu {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 8px;
        overflow: visible;
    }

    #menu .navbar-nav {
        flex-wrap: wrap;
    }


    /* ---------- Page titles / breadcrumb ---------- */

    .breadcrumb {
        margin-bottom: 12px;
        padding: 9px 12px;
        border-radius: 8px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .breadcrumb > li.breadcrumb-item {
        padding: 0 8px;
    }

    .page-title,
    .catalog-title,
    main h1 {
        font-size: 28px;
        line-height: 1.2;
    }


    /* ---------- Home hero ---------- */

    .home-hero {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 15px 0 35px;
        overflow: hidden;
    }

    .home-hero-content {
        position: relative;
        z-index: 3;
        width: 100%;
        height: auto;
        padding: 32px 22px 34px;
        box-sizing: border-box;
        background: #f5f7fa;
    }

    .home-hero-brand {
        margin-bottom: 20px;
        font-size: 23px;
    }

    .home-hero-brand span {
        margin-top: 5px;
        font-size: 15px;
    }

    .home-hero-content h1 {
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 1.15;
        overflow-wrap: break-word;
    }

    .home-hero-content p {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.55;
    }

    .home-hero-button {
        width: 100%;
        min-height: 50px;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 14px 18px;
    }

    .home-hero-image {
        position: relative;
        z-index: 1;
        top: auto;
        right: auto;
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

    .home-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .home-hero-image::after {
        background: linear-gradient(
            to bottom,
            rgba(245, 247, 250, 0) 0%,
            rgba(245, 247, 250, 0.15) 35%,
            rgba(245, 247, 250, 0.75) 82%,
            #f5f7fa 100%
        );
    }


    /* ---------- Home ---------- */

    .home-categories,
    .home-news,
    .home-why {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-section-header,
    .home-news-header,
    .home-why-header {
        margin-bottom: 25px;
    }

    .home-section-header h2,
    .home-news-header h2,
    .home-why-header h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .home-section-header p,
    .home-news-header p,
    .home-why-header p {
        font-size: 15px;
        line-height: 1.55;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-category-card {
        min-height: 0;
        padding: 22px;
    }

    .home-category-icon {
        margin-bottom: 16px;
    }

    .home-scroll-hint {
        margin: 20px 0 55px;
    }

    .home-scroll-hint a {
        padding: 11px 18px;
        font-size: 13px;
    }


    /* ---------- Why NAVGEOCOM ---------- */

    .home-why-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-why-stat {
        min-height: 100px;
        padding: 22px;
    }

    .home-why-value {
        font-size: 25px;
    }


    /* ---------- Home news ---------- */

    .home-news {
        margin-bottom: 55px;
    }

    .home-news-header {
        display: block;
    }

    .home-news-all {
        display: inline-block;
        margin-top: 15px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-news-image {
        height: 190px;
    }

    .home-news-body {
        padding: 18px;
    }

    .home-news-body h3 {
        font-size: 20px;
    }


    /* ---------- Catalog ---------- */

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .catalog-card-image {
        height: 150px;
    }

    .catalog-card-content {
        min-height: 0;
        padding: 16px 18px;
    }


    /* ---------- Product cards ---------- */

    .product-thumb .description,
    .product-thumb .caption {
        padding: 16px;
    }

    .product-thumb .description {
        margin-bottom: 50px;
    }

    .product-thumb .description h4 {
        font-size: 19px;
    }


    /* ---------- Manufacturer filter ---------- */

    .manufacturer-filter-list {
        grid-template-columns: 1fr;
    }

    .manufacturer-filter-item {
        font-size: 13px;
        padding: 7px 4px;
    }


    /* ---------- Services ---------- */

    .service-card-image {
        height: 240px;
    }

    .service-card-content {
        padding: 20px;
    }

    .service-card-content h2 {
        font-size: 23px;
    }


    /* ---------- Service detail ---------- */

    .service-hero {
        height: auto;
        flex-direction: column;
    }

    .service-hero-image,
    .service-hero-title {
        width: 100%;
    }

    .service-hero-image {
        height: 240px;
    }

    .service-hero-title {
        min-height: 0;
        padding: 24px;
    }

    .service-hero-title h1 {
        font-size: 24px;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    /* ---------- Contacts ---------- */

    .contacts-wrapper {
        flex-direction: column;
        gap: 20px;
        margin: 25px 0;
    }

    .contacts-info,
    .contacts-map {
        padding: 20px;
    }

    .contacts-map {
        padding: 0;
    }

    .contacts-map iframe {
        min-height: 320px;
    }


    /* ---------- News ---------- */

    .news-card {
        width: 100%;
        max-width: 100%;
    }

    .news-card-body {
        padding: 18px;
    }

    .news-card-title {
        font-size: 22px;
    }

    .news-article {
        padding: 20px;
    }

    .news-article-title {
        font-size: 26px;
    }

    .news-article-description {
        font-size: 16px;
    }


    /* ---------- Footer ---------- */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer .container {
        padding-top: 30px;
    }
}
html {
    overflow-y: scroll;
}
/* =========================
   Attribute filters
   ========================= */

.attribute-filter {
    margin-top: 20px;
}

.category-filter-title,
.manufacturer-filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.attribute-filter-group {
    padding: 11px 0;
    border-top: 1px solid #e5e5e5;
}

.attribute-filter-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.attribute-filter-name {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0;
    margin: 0 0 7px;

    border: 0;
    background: none;

    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    text-align: left;
    cursor: pointer;
}

.attribute-filter-name:hover {
    color: #e30613;
}

.attribute-filter-toggle {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-left: 10px;

    color: #999;
    font-size: 18px;
    font-weight: 400;
    line-height: 16px;

    text-align: center;

    transition: transform 0.2s ease, color 0.2s ease;
}

.attribute-filter-name:hover .attribute-filter-toggle {
    color: #e30613;
}
.attribute-filter-group[data-collapsed="1"] .attribute-filter-toggle {
    transform: rotate(180deg);
}

.attribute-filter-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attribute-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 26px;

    font-size: 13px;
    line-height: 1.3;

    cursor: pointer;
    color: #444;
}

.attribute-filter-checkbox {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 15px;
    cursor: pointer;
    accent-color: #e30613;
}

.attribute-filter-label {
    flex: 1;
}

.attribute-filter-count {
    color: #999;
    font-size: 12px;
    min-width: 20px;
    text-align: right;
}

.attribute-filter-item:hover .attribute-filter-label {
    color: #111;
}
/* Leica pagination */
#product-pagination .pagination {
    margin: 0;
}

#product-pagination .pagination .page-item .page-link {
    color: #e30613;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 36px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: all 0.2s ease;
}

#product-pagination .pagination .page-item:first-child .page-link {
    border-radius: 4px 0 0 4px;
}

#product-pagination .pagination .page-item:last-child .page-link {
    border-radius: 0 4px 4px 0;
}

#product-pagination .pagination .page-item .page-link:hover {
    color: #fff;
    background: #e30613;
    border-color: #e30613;
}

#product-pagination .pagination .page-item.active .page-link {
    color: #fff;
    background: #e30613;
    border-color: #e30613;
}
/* =========================================
   GLOBAL FONT SIZE
   ========================================= */

html {
    font-size: 16px;
}

body {
    font-size: 16px;
    line-height: 1.55;
}


/* Основной текст */
p,
li,
td,
th,
label {
    font-size: 16px;
}


/* Ссылки */
a {
    font-size: inherit;
}


/* Формы */
.form-control,
.form-select,
button,
input,
select,
textarea {
    font-size: 16px;
}


/* Хлебные крошки */
.breadcrumb,
.breadcrumb a {
    font-size: 15px;
}


/* Категории */
.category-filter-title,
.manufacturer-filter-title {
    font-size: 17px;
}

.category-filter-list,
.category-filter-list a,
.manufacturer-filter-list,
.manufacturer-filter-item {
    font-size: 15px;
}


/* Карточки товаров */
.product-thumb .caption h4,
.product-thumb .description h4 {
    font-size: 19px;
}

.product-thumb .caption p,
.product-thumb .description p {
    font-size: 16px;
}


/* Карточки каталога */
.catalog-card-content h3,
.catalog-card-content h4 {
    font-size: 21px;
}

.catalog-card-content p {
    font-size: 16px;
}


/* Заголовки страниц */
h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}


/* Футер */
.site-footer {
    font-size: 15px;
}

.footer-column a,
.footer-column p {
    font-size: 15px;
}
@media (max-width: 767px) {

    body {
        font-size: 16px;
    }

    p,
    li,
    td,
    th,
    label {
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 19px;
    }

    .category-filter-list,
    .category-filter-list a,
    .manufacturer-filter-list,
    .manufacturer-filter-item {
        font-size: 15px;
    }
}
/* ---------- Компактнее главная страница ---------- */

.site-header {
    padding-top: 8px;
    padding-bottom: 0;
}

.header-search-row {
    margin-top: 14px !important;
    margin-bottom: 8px !important;
}

.home-hero {
    margin-top: 5px !important;
    margin-bottom: 18px !important;
}

.home-hero-image {
    height: 260px;
}

.home-scroll-hint {
    margin-top: 10px !important;
}
/* ---------- Фикс главного баннера ---------- */

.home-hero {
    margin-top: 20px !important;
    margin-bottom: 25px !important;
}

.home-hero-inner {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: stretch;
}

.home-hero-content {
    position: relative;
    z-index: 3;
    width: 50%;
    min-height: 540px;
    padding: 55px 35px 45px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-image {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 72%;
    height: 520px;
    overflow: hidden;
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-image::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        to right,
        #f5f7fa 0%,
        rgba(245,247,250,.95) 8%,
        rgba(245,247,250,.70) 18%,
        rgba(245,247,250,.35) 28%,
        rgba(245,247,250,0) 42%
    );
}

.home-hero-content h1 {
    margin-bottom: 20px;
}

.home-hero-content p {
    margin-bottom: 28px;
    max-width: 570px;
}

.home-hero-button {
    width: 220px;
}

.home-scroll-hint {
    margin-top: 18px !important;
}
/* ========================================
   ПЕРВЫЙ ЭКРАН ГЛАВНОЙ
   ======================================== */

#common-home {
    min-height: calc(100vh - 185px);
}

/* Hero занимает доступную высоту экрана */
.home-hero {
    min-height: calc(100vh - 285px);
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

/* Сам баннер */
.home-hero-inner {
    min-height: 520px;
}

/* Кнопка "Смотреть дальше" */
.home-scroll-hint {
    margin-top: 18px !important;
    padding-bottom: 20px;
}
@media (max-height: 800px) {
    .home-hero {
        min-height: 570px;
    }
}

@media (min-height: 900px) {
    .home-hero {
        min-height: calc(100vh - 285px);
    }
}
/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ФИНАЛЬНЫЕ ПРАВКИ
   ======================================== */

@media (max-width: 767px) {

    /* ---------- ШАПКА ---------- */

    .site-header {
        padding: 8px 0 5px !important;
    }

    .header-main-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .header-main-row .top-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 14px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .header-main-row .top-nav a {
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .header-main-row .header-contacts {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
        gap: 3px !important;
    }

    .header-contact-line {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px 12px !important;
        font-size: 13px !important;
    }

    .header-search-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 12px !important;
        margin-bottom: 10px !important;
    }

    .header-logo-wrap,
    .header-logo-image {
        width: 190px !important;
        max-width: 190px !important;
        flex: 0 0 auto !important;
    }

    .header-search {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }

    .header-search .input-group,
    .header-search form,
    #search {
        width: 100% !important;
    }


    /* ---------- ГЛАВНАЯ / HERO ---------- */

    #common-home {
        min-height: auto !important;
    }

    .home-hero {
        min-height: 0 !important;
        height: auto !important;
        margin: 10px 0 20px !important;
    }

    .home-hero-inner {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .home-hero-content {
        position: relative !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 30px 22px 28px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .home-hero-brand {
        margin-bottom: 16px !important;
        font-size: 21px !important;
    }

    .home-hero-brand span {
        font-size: 14px !important;
    }

    .home-hero-content h1 {
        margin-bottom: 16px !important;
        font-size: 30px !important;
        line-height: 1.2 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .home-hero-content p {
        margin-bottom: 22px !important;
        max-width: none !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .home-hero-button {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .home-hero-image {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 300px !important;
        min-height: 300px !important;
        overflow: hidden !important;
    }

    .home-hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

@media (max-width: 767px) {

    .home-hero-image {
        position: relative !important;
        background: #f5f7fa !important;
        overflow: hidden !important;
    }

    .home-hero-image::after {
        content: "" !important;
        position: absolute !important;
        z-index: 2 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 35% !important;
        pointer-events: none !important;

        background: linear-gradient(
            to bottom,
            rgba(245,247,250,0) 0%,
            rgba(245,247,250,.08) 30%,
            rgba(245,247,250,.25) 55%,
            rgba(245,247,250,.55) 75%,
            rgba(245,247,250,.85) 92%,
            rgba(245,247,250,1) 100%
        ) !important;
    }
}

    .home-scroll-hint {
        margin-top: 10px !important;
        padding-bottom: 15px !important;
    }
}
/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ — СТРАНИЦА «О КОМПАНИИ»
   ======================================== */

@media (max-width: 767px) {

    /* Заголовок страницы */
    .about-page-title {
        font-size: 30px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    /* Фото + красный блок */
    .about-banner {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 0 25px !important;
        overflow: hidden !important;
    }

    .about-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 260px !important;
        flex: none !important;
        overflow: hidden !important;
    }

    .about-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .about-title {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 130px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 25px 20px !important;
    }

    .about-title h1 {
        margin: 0 !important;
        font-size: 30px !important;
        line-height: 1.2 !important;
    }


    /* Текст компании */
    .about-text {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    .about-text p {
        font-size: 16px !important;
        line-height: 1.55 !important;
        margin-bottom: 20px !important;
    }


    /* Статистика */
    .about-features {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 25px !important;
        gap: 0 !important;
    }

    .about-features .feature {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 20px 15px !important;
        border-bottom: 1px solid #ddd !important;
    }

    .about-features .feature:last-child {
        border-bottom: none !important;
    }

    .about-features .feature h2 {
        margin: 0 0 5px !important;
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    .about-features .feature p {
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}
/* ========================================
   МОБИЛЬНЫЙ ФИЛЬТР КАТЕГОРИИ
   ======================================== */

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

@media (max-width: 767px) {

    /* Кнопка фильтров */
    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0 0 15px;
        padding: 13px 16px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        color: #222;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-filter-arrow {
        font-size: 13px;
    }

    /* По умолчанию фильтр скрыт */
    #product-category > .row > aside {
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* После нажатия показываем */
    #product-category > .row > aside.mobile-filter-open {
        display: block !important;
    }

    /* Сам фильтр занимает всю ширину */
    #product-category > .row > aside > * {
        width: 100%;
        box-sizing: border-box;
    }

    /* Немного компактнее раскрытый фильтр */
    .category-sidebar,
    .manufacturer-filter-block,
    .category-filter {
        margin-bottom: 18px !important;
    }

    .category-sidebar-title,
    .manufacturer-filter-title,
    .category-filter-title {
        font-size: 17px !important;
    }
}
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 767px) {

    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0 0 15px;
        padding: 13px 16px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        color: #222;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-filter-arrow {
        font-size: 13px;
    }

    /* Фильтр скрыт */
    .category-filter-sidebar {
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Фильтр открыт */
    .category-filter-sidebar.mobile-filter-open {
        display: block !important;
    }
}
@media (max-width: 767px) {

    .home-hero-image {
        position: relative !important;
        background: #f5f7fa !important;
        overflow: hidden !important;
    }

    .home-hero-image::after {
        display: none !important;
    }

    .home-hero-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 48%,
            rgba(0,0,0,.95) 58%,
            rgba(0,0,0,.75) 70%,
            rgba(0,0,0,.45) 82%,
            rgba(0,0,0,.15) 94%,
            transparent 100%
        ) !important;

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 48%,
            rgba(0,0,0,.95) 58%,
            rgba(0,0,0,.75) 70%,
            rgba(0,0,0,.45) 82%,
            rgba(0,0,0,.15) 94%,
            transparent 100%
        ) !important;
    }
}