/* ----- ОБЩИЕ ПЕРЕМЕННЫЕ ----- */
:root {
    --primary-color: #E02E7A;
    --primary-dark: #b82362;
    --primary-light: #ff6aa8;
    --main-color: #E02E7A;      /* заменён цвет #fba038 → #E02E7A */
    --main-dark: #c12468;
    --main-light: #f7e3ec;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --border-color: #eaeaea;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 5px 20px rgba(0,0,0,0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    /* --Переменные для размера текста-- */
    --font-head1: clamp(36px, 4vw, 48px);  /* Плавно от 36 до 48 */
    --font-head2: clamp(28px, 3.5vw, 36px);
    --font-head3: clamp(20px, 2.5vw, 24px);
    --font-head4: clamp(18px, 2.2vw, 22px);
    --font-text: clamp(16px, 1.2vw, 18px);
    --font-button: clamp(14px, 1.1vw, 16px);
    --font-small: clamp(12px, 1vw, 14px);
}

/* Доп. брейкпоинт для очень узких экранов (до 480px) */
@media (max-width: 480px) {
    :root {
        --font-head1: 32px;   /* чтобы огромный заголовок не разрывал верстку */
        --font-head2: 26px;
        --font-head3: 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

a, .link {
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--main-color);
}

a:hover, .link:hover {
    color: var(--main-dark);
    text-decoration: none;
}

.container, .maxwidth-theme {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- КНОПКИ И АКЦЕНТЫ ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ----- ШАПКА (header) ----- */
/* === ОБЩИЕ СТИЛИ ХЕДЕРОВ === */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
    z-index: 100;
}

.header--normal {
    position: relative;
}

/* Основной хедер */
.home .header--normal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;            /* поверх контента, но под sticky */
    background: rgba(0,0,0,0.5);  /* прозрачный фон */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* для Safari */
    box-shadow: none;         /* убираем тень, чтобы не перекрывала видео */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home .header--normal .main-nav .nav-list > .menu-item > a {
    color: #fff;
}

.home .header--normal .main-nav .nav-list > .menu-item > a:hover {
    color: var(--primary-color);
}

.header--normal .main-nav .nav-list > .menu-item > a {
    font-size: 16px;
}

/* Фиксированный хедер */
.header--sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;                     /* уменьшенный паддинг */
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
    visibility: hidden;
}

.header--sticky.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

/* Учёт админ-панели */
/* .admin-bar .header--sticky {
    top: 32px;
} */

/* Скрываем декоративные полосы у фиксированного хедера */
.header--sticky::before,
.header--sticky::after {
    display: none;
}

/* Чтобы контент не прыгал резко при появлении отступа */
/* .site-main {
  transition: padding-top 0.3s ease;
} */



.header ul,
.header ol {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.header-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.logo-img {
    max-height: 100px;
    width: auto;
    display: block;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}
.logo-placeholder {
    width: 160px;
    height: 50px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}
.main-nav .nav-list a {
    color: #333;
    font-weight: 500;
}
.main-nav .nav-list a:hover {
    color: var(--primary-color);
}

.main-nav .menu-item {
    position: relative;
}
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    list-style: none;
}
.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}
.main-nav .dropdown-menu li {
    display: block;
    margin: 0;
    border-top: 1px solid #eff1f5;
}
.main-nav .dropdown-menu > li:first-child {
    border-top: none;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 20px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}
.main-nav .dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}
/* Для полноценного меню "Продукция" (full_dropdown) */
.main-nav .full_dropdown .dropdown-menu {
    width: 500px;
    padding: 20px;
    column-count: 2;
    column-gap: 30px;
}
.main-nav .full_dropdown .dropdown-menu li {
    break-inside: avoid;
    margin-bottom: 10px;
}
.main-nav .full_dropdown .dropdown-menu .menu_body > a {
    font-weight: 600;
    color: var(--primary-color);
    padding-left: 0;
}
.main-nav .full_dropdown .dropdown-submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}
.main-nav .full_dropdown .dropdown-submenu li a {
    padding: 5px 0;
    font-size: 14px;
}

.header-contacts {
    text-align: right;
}
.header-contacts .phone a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.home .header-contacts .phone a {
    color: #fff;
}
.v-mail {
    font-size: 13px;
}
.btn-callback {
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ========== Мобильная шапка (базово скрыта) ========== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.mobile-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    height: 60px;
}
.mobile-header__icons {
    display: flex;
    align-items: center;
    gap: 15px;
}
.mobile-header .burger {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
}
.mobile-header .burger svg {
    display: block;
}
.mobile-header .logo-img {
    max-height: 40px;
    width: auto;
}
.mobile-phone-icon {
    color: #333;
    display: flex;
    align-items: center;
}

/* Выезжающее меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 95vw;
    height: 100%;
    background: #fff;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu__inner {
    padding: 20px;
    position: relative;
}
.mobile-menu__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 5px;
}
.mobile-menu__logo {
    margin-bottom: 30px;
}
.mobile-menu__logo img {
    max-height: 50px;
}

/* Навигация */
.mobile-nav__view {
    position: relative;
}
.mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav__list li {
    position: relative;
    border-bottom: 1px solid #eee;
}
.mobile-nav__list a {
    display: block;
    padding: 12px 10px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}
.mobile-nav__list li.menu-item-has-children > a {
    padding-right: 40px; /* место под стрелку */
}
.menu-item-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 10px;
    color: #333;
    line-height: 0;
}

/* Шапка подуровня с кнопкой "Назад" */
.mobile-nav__header {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.mobile-nav__back {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}
.mobile-nav__title {
    margin-left: 10px;
    font-weight: 500;
    font-size: 16px;
    white-space: normal;      /* разрешаем перенос текста */
    word-break: break-word;   /* принудительный перенос длинных слов */
}

/* Контакты в меню */
.mobile-menu__contacts {
    margin-top: 20px;
    /* border-top: 1px solid #eee; */
    padding-top: 20px;
}
.mobile-menu__phones a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.mobile-menu__email {
    display: block;
    margin-bottom: 15px;
    color: #333;
    text-decoration: none;
}
.mobile-menu__callback {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

/* Оверлей */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* скрываем значок капчи*/
.grecaptcha-badge {
    visibility: hidden;
}

/* главный баннер */
.main-banner {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    color: #fff;
    padding: 100px 0;
}
.banner-text {
    max-width: 600px;
}
.banner-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.banner-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ----- О КОМПАНИИ ----- */
.company.front {
    padding: 60px 0;
    background: var(--white);
}
.company .text {
    padding-right: 40px;
}
.company .image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.company .preview-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}
.company .buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ----- НОВОСТИ ----- */
.news-items {
    padding: 60px 0;
    background: var(--bg-light);
}
.news-items .item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}
.news-items .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-items .body-info {
    padding: 20px;
}
.news-items .section_name {
    color: var(--main-color);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.news-items .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.news-items .date {
    color: #999;
    font-size: 13px;
}

/* ----- КОНТАКТЫ И КАРТА-ЗАГЛУШКА ----- */
.contacts.front {
    padding: 60px 0;
}
.left_block .top_block .title a {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
}
.left_block .address, .left_block .value {
    margin: 15px 0;
}
.property {
    margin-bottom: 20px;
}
.title-prop {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    color: #777;
}
.right_block .map-placeholder {
    width: 100%;
    height: 380px;
    background: #e9ecef;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    border: 1px dashed #ccc;
}

/* ----- ФУТЕР ----- */
.footer-v1 {
    background: #1a1f25;
    color: #b0b3b8;
    padding-top: 50px;
}
.footer-v1 a {
    color: #b0b3b8;
}
.footer-v1 a:hover {
    color: var(--main-color);
}
.bottom-menu .title a {
    font-weight: 600;
    color: #fff;
}
.bottom-menu .item {
    margin-bottom: 10px;
}
.contact-block .phone a, .contact-block .email a {
    color: #fff;
}
.copy-block {
    border-top: 1px solid #2c3138;
    padding: 20px 0;
    margin-top: 30px;
}
.social-block .social-icons ul {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
}
.confidentiality a, .print-link span {
    color: #b0b3b8;
}
.footer_middle {
    border-bottom: 1px solid #2c3138;
    padding-bottom: 20px;
}
/* вспомогательные классы */
.pull-right {
    float: right;
}
.pull-left {
    float: left;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
@media (max-width: 768px) {
    .banners-big .title {
        font-size: 28px;
    }
    .company .text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .right-icons {
        gap: 10px;
    }
}
.bg-placeholder {
    background: #f0f0f0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.img-placeholder {
    background: #e9ecef;
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
}
.banners-big .text {
    position: relative;
    z-index: 2;
}

.product-specs-table-wrapper {
    margin: 40px 0;
}
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-size: 0.95em;
}
.product-specs-table th,
.product-specs-table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
}
.product-specs-table th {
    background: #f5f5f5;
    font-weight: 600;
}
.product-specs-table td[colspan] {
    background: #eef2f7;
    font-weight: 600;
    text-align: center;
}

.breadcrumbs {
    margin: 15px 0;
    font-size: 14px;
    color: #bbb;
}
.breadcrumbs a {
    color: #bbb;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--primary-color);
}
.breadcrumbs__separator {
    margin: 0 6px;
    color: #aaa;
}
.breadcrumbs__current {
    color: #bbb;
}

/* Заголовок и описание над контейнером */
.news-single > .catalog-title {
    margin: 0 0 30px;
    font-size: 2.5rem;
    line-height: 1.5;
}

.swiper-slide-active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.swiper-pagination-bullet-active {
    background-color:var(--primary-color) !important;
}

.swiper-slide img {
    border-radius: 8px;
}

@media (max-width: 991px) {
    .header--normal,
    .header--sticky {
        display: none !important;
    }
    .mobile-header {
        display: block;
    }
    /* Чтобы контент не заезжал под фиксированную мобильную шапку */
    .site-main {
        padding-top: 60px;
    }
    h1 {
    margin-left: 10px;
    font-weight: bold;
    font-size: 16px;
    white-space: normal;
    word-break: normal;           /* не разрываем слова произвольно */
    overflow-wrap: break-word;    /* если слово длиннее контейнера, перенести целиком */
    hyphens: auto;                /* автоматические переносы с дефисами (если браузер поддерживает) */
    line-height: 1.3;
}
}