
/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #222;
}

.container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 15px;
}
.container_123 {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-12 {
    width: 100%;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Стили ссылок только внутри текстовых блоков WPBakery */
.wpb_text_column a {
    color: #0000cd;
    text-decoration: underline;
    transition: 0.2s ease;
    text-decoration: none;
}

.wpb_text_column a:hover {
    color: #ff6600; /* сделай какой хочешь */
    text-decoration: none;
}


/* Стили хедера */
#site-header-wrap {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid rgba(216, 216, 216, 0.5);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding img {
    height: 81px;
    width: auto;
}

/* Контактная информация */
.site-contact {
    display: flex;
    gap: 40px;
}

.ct-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ct-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 205, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.ct-icon i {
    color: #0000cd;
    font-size: 16px;
}

.ct-item-text .above {
    font-size: 15px;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.ct-item-text .bellow {
    font-size: 15px;
    color: #703b26;
    margin: 0;
}

.phone-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-phone img {
    width: 16px;
    height: 16px;
}

/* Основная навигация */
.site-header-main {
    padding: 0;
}

.site-navigation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 72px;
}

.mobile-logo {
    display: none;
}

.site-navigation-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    font-size: 13.5px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.81px;
    line-height: 72px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    white-space: nowrap;
    height: 72px;
}

.primary-menu > li > a:hover {
    color: #0000cd;
}

.menu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.primary-menu > li:hover > a .menu-arrow {
    transform: rotate(180deg);
}

/* Подменю */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 60px rgba(40,40,40,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    border-bottom: 3px solid #0000cd;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
}

.sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eaeaea;
    font-size: 13.5px;
    line-height: 1.4;
    transition: all 0.3s ease;
    min-width: 150px;
}

.sub-menu li a:hover {
    background: #f8f9fa;
    color: #0000cd;
    padding-left: 20px;
}

/* Стрелочки в подменю */
.sub-menu .menu-arrow {
    transform: rotate(-90deg);
    margin-left: 10px;
}

.sub-menu li:hover > a .menu-arrow {
    transform: rotate(-90deg);
}

/* Подменю второго уровня */
.sub-menu .sub-menu {
    top: -3px;
    left: 100%;
    transform: translateX(10px);
    border-bottom: 3px solid #0000cd;
}

.sub-menu li:hover > .sub-menu {
    transform: translateX(0);
}

/* Правая часть меню */
.site-menu-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
    height: 72px;
}

.h-btn-search {
    font-size: 17px;
    color: #222;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    height: 100%;
}

.h-btn-search:hover {
    color: #0000cd;
    background: #f8f9fa;
}

.popup-contact-button {
    background: #0000cd;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 100%;
}

.popup-contact-button:hover {
    background: #0000a0;
    color: #fff;
}

/* Мобильные контакты (фиксированный блок) */
.site-contact-mob {
    display: none;
    background: #f8f9fa;
    border-top: 1px solid #ebebeb;
    padding: 12px 0;
    /*position: fixed;*/
    /*top: 60px;*/
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mob-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.mob-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mob-phone-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    justify-content: center;
}

.mob-phone {
    color: #703b26;
    font-weight: 600;
}

.mob-operator {
    font-size: 10px;
    color: #666;
    background: #eee;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.mob-address-line,
.mob-reviews-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    justify-content: center;
}

.mob-address-line i,
.mob-reviews-line i {
    color: #0000cd;
    font-size: 13px;
    width: 13px;
}

.mob-reviews {
    color: #222;
    font-weight: 500;
}

.social-phone img {
    width: 14px;
    height: 14px;
}

/* Бургер меню */
.btn-nav-mobile {
    display: none;
    flex-direction: column;
    width: 24px;
    height: 18px;
    cursor: pointer;
    justify-content: space-between;
    position: relative;
}

.btn-nav-mobile span {
    display: block;
    height: 2px;
    width: 100%;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.btn-nav-mobile.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.btn-nav-mobile.active span:nth-child(2) {
    opacity: 0;
}

.btn-nav-mobile.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Мобильное меню оверлей - ИСПРАВЛЕНО позиционирование */
.mobile-menu-overlay {
    position: fixed;
    top: 60px; /* Начинается под фиксированной полосой */
    left: -100%;
    width: 100%;
    height: calc(100% - 60px); /* Высота минус фиксированная полоса */
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    transition: left 0.3s ease;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
}

/* Убираем хедер из мобильного меню так как у нас уже есть фиксированная полоса */
.mobile-menu-header {
    display: none;
}

/* Мобильная навигация */
.mobile-primary-menu {
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
}

.mobile-primary-menu li {
    border-bottom: 1px solid #eee;
    background: none;
}

.mobile-primary-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #222;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-primary-menu li a:hover {
    color: #0000cd;
}

.mobile-menu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.mobile-primary-menu li.active > a .mobile-menu-arrow {
    transform: rotate(180deg);
    color: #0000cd;
}

.mobile-primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    /*background: #f8f9fa;*/
    display: none;
    padding-left: 0;
    border-bottom: none;
    margin: 0;
}

.mobile-primary-menu .sub-menu.active {
    display: block;
}

.mobile-primary-menu .sub-menu li {
    border-bottom: 1px solid #e5e5e5;
    /*background: #f8f9fa;*/
}

.mobile-primary-menu .sub-menu li a {
    padding: 12px 0 12px 15px;
    font-size: 15px;
    font-weight: 400;
    color: #555;
}

.mobile-primary-menu .sub-menu li a:hover {
    color: #0000cd;
    background: #e9ecef;
}

/* Компактный блок контактов в мобильном меню */
.mobile-contact-info {
    border-top: 2px solid #0000cd;
    padding-top: 20px;
}

.mobile-ct-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-ct-item:last-child {
    border-bottom: none;
    margin-bottom: 15px;
}

.mobile-ct-item i {
    color: #0000cd;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Телефоны с иконками */
.mobile-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.mobile-phone-line {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.mobile-phone-line i {
    color: #0000cd;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-phones a {
    color: #703b26;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    flex: 1;
}

.mobile-phones a:hover {
    color: #0000cd;
}

/* Остальные контакты */
.mobile-ct-item a:not(.mobile-phones a),
.mobile-ct-item span {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    flex: 1;
}

.mobile-ct-item a:not(.mobile-phones a):hover {
    color: #0000cd;
}

.mobile-consultation-btn {
    display: block;
    background: #0000cd;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 205, 0.3);
}

.mobile-consultation-btn:hover {
    background: #0000a0;
    color: #fff;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #222;
}

/* Адаптивность - только 768px */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .site-navigation-main-content {
        display: none;
    }
    
    .mobile-logo {
        display: block !important;
    }
    
    .mobile-logo img {
        height: 42px;
        width: auto;
    }
    
    .btn-nav-mobile {
        display: flex;
    }
    
    .site-navigation-inner {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .site-contact-mob {
        display: block;
        margin-top: -45px;
    }
    
    /* Фиксируем мобильную полосу */
    .site-header-main {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1001;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Добавляем отступ для контента */
    body {
        padding-top: 120px;
    }
    
    /* Компактные отступы для мобильного меню */
    .mobile-menu-container {
        padding: 15px;
    }
    
    .mobile-primary-menu {
        margin-bottom: 20px;
    }
    
    .mobile-primary-menu li a {
        padding: 12px 0;
    }
    
    .mobile-contact-info {
        padding-top: 15px;
    }
    
    .mobile-ct-item {
        margin-bottom: 10px;
        padding: 6px 0;
        gap: 10px;
    }
    
    .mobile-phones {
        gap: 6px;
    }
    
    .mobile-phone-line {
        gap: 10px;
    }
    
    .mobile-consultation-btn {
        margin-top: 12px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .mob-contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .mob-contact-item {
        gap: 6px;
    }
    
    .mobile-menu-container {
        width: 100%;
        max-width: none;
        padding: 12px;
    }
    
    .mobile-ct-item {
        gap: 8px;
        text-align: left;
        padding: 8px 0;
    }
    
    .mobile-ct-item i {
        margin-top: 0;
    }
    
    .mobile-phones {
        gap: 6px;
    }
    
    .mobile-phone-line {
        justify-content: flex-start;
    }
}


/* ФИКСАЦИЯ НАВИГАЦИИ НА ПК - ПЛАВНАЯ ПРИ 200PX */
@media (min-width: 769px) {
    /* Разделяем хедер на две части */
    #site-header-wrap {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        background: #fff;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Верхняя часть хедера - плавно скрывается при скролле */
    .header-top {
        /*transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);*/
        transform: translateY(0);
        opacity: 1;
        max-height: 120px;
        overflow: hidden;
    }
    
    /* Навигационная часть - плавные изменения */
    .site-header-main {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Когда скроллим - плавно скрываем верхнюю часть */
    #site-header-wrap.scrolled .header-top {
        transform: translateY(-100%);
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border: none;
    }
    
    /* Компактный режим для навигации при скролле */
    #site-header-wrap.scrolled .site-header-main .site-navigation-inner {
        min-height: 60px;
        transition: min-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #site-header-wrap.scrolled .site-header-main .primary-menu > li > a {
        line-height: 60px;
        height: 60px;
        font-size: 13px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #site-header-wrap.scrolled .site-header-main .site-menu-right {
        height: 60px;
        transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #site-header-wrap.scrolled .site-header-main .popup-contact-button {
        padding: 10px 18px;
        font-size: 11px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Добавляем отступ для контента равный высоте хедера */
    body {
        padding-top: 180px; /* Примерная высота всего хедера */
        transition: padding-top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* При скролле плавно уменьшаем отступ */
    body.has-scrolled-header {
        padding-top: 72px; /* Высота только навигации */
    }
}
















/* Поиск для десктопа */
.search-desktop-wrapper {
    position: relative;
}

.search-form-desktop {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-form-desktop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-desktop form {
    display: flex;
    gap: 10px;
}

.search-form-desktop input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-form-desktop input:focus {
    outline: none;
    border-color: #0000cd;
}

.search-form-desktop button {
    background: #0000cd;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form-desktop button:hover {
    background: #0000a0;
}

/* Поиск в мобильном меню */
.mobile-search {
    padding: 0 0 20px 0;
    border-bottom: 2px solid #0000cd;
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
}

.search-input-wrapper input {
    flex: 1;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #0000cd;
    background: #fff;
}

.search-input-wrapper button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0000cd;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-input-wrapper button:hover {
    background: #0000a0;
}




























/* Страница поиска */
.search-page-wrapper {
    padding: 80px 0 60px;
    min-height: 70vh;
}

.search-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.search-title {
    font-size: 32px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-query {
    color: #0000cd;
    font-weight: 700;
}

.search-results-count {
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Форма поиска на странице */
.search-form-page {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-input-page {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-input-page:focus-within {
    border-color: #0000cd;
    box-shadow: 0 4px 20px rgba(0, 0, 205, 0.15);
}

.search-input-page input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    font-size: 16px;
    background: transparent;
}

.search-input-page input:focus {
    outline: none;
}

.search-submit-btn {
    background: #0000cd;
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-submit-btn:hover {
    background: #0000a0;
}

/* Список результатов */
.search-results-list {
    max-width: 800px;
    margin: 0 auto;
}

.search-result-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #0000cd;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.search-result-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.search-result-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: #0000cd;
}

.search-result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.search-result-type {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.search-result-excerpt {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.search-result-excerpt mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-result-link {
    color: #0000cd;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.search-result-link:hover {
    gap: 8px;
}

/* Пагинация */
.search-pagination {
    text-align: center;
    margin-top: 50px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #0000cd;
    color: #fff;
    border-color: #0000cd;
}

.page-numbers:hover:not(.current) {
    border-color: #0000cd;
    color: #0000cd;
}

/* Состояние "нет результатов" */
.no-search-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 64px;
    color: #e9ecef;
    margin-bottom: 30px;
}

.no-search-results h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-search-results p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.search-suggestions {
    text-align: left;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #0000cd;
}

.search-suggestions h4 {
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    margin-bottom: 8px;
}

.search-suggestions a {
    color: #0000cd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.search-suggestions a:hover {
    gap: 12px;
}

.search-suggestions a:before {
    content: "→";
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-page-wrapper {
        padding: 60px 0 40px;
    }
    
    .search-title {
        font-size: 26px;
    }
    
    .search-input-page {
        flex-direction: column;
    }
    
    .search-submit-btn {
        padding: 15px;
        justify-content: center;
    }
    
    .search-result-item {
        padding: 20px;
    }
    
    .search-result-title {
        font-size: 20px;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
}






















/* Модальное окно консультации - компактнее */
.consultation-modal {
    max-width: 800px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.consultation-form-wrapper {
    display: flex;
    min-height: 450px;
}

/* Левая часть - форма */
.consultation-form-left {
    flex: 1;
    padding: 30px;
    background: #fff;
}

.consultation-title {
    font-size: 24px;
    color: #222;
    margin-top: 25px;
    margin-bottom: 20px;
    font-weight: 700;
}

.consultation-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.4;
}

/* Поля формы - компактнее */
.wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #0000cd;
    box-shadow: 0 0 0 2px rgba(0, 0, 205, 0.1);
}

/* Текстовое поле */
.wpcf7-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Селект */
.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
        font-weight: 700;
}

/* Кнопка отправки */
.consultation-submit-btn {
    width: 100%;
    background: #0000cd;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.consultation-submit-btn:hover {
    background: #0000a0;
}

/* Правая часть - компактнее */
.consultation-info-right {
    flex: 0 0 250px;
    background: linear-gradient(135deg, #0000cd 0%, #0000a0 100%);
    padding: 25px 20px;
    color: #fff;
}

.info-block {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.info-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 14px;
}

.info-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-content p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
    margin: 0;
}

.contact-direct {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-direct p {
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.direct-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.direct-phone {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.direct-phone:hover {
    opacity: 0.8;
}

/* Сообщения CF7 */
.wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 12px !important;
    border-radius: 6px !important;
    border: none !important;
    font-size: 13px !important;
}

.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    color: #155724 !important;
}

.wpcf7-validation-errors {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .consultation-modal {
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .consultation-form-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .consultation-form-left {
        padding: 25px 20px;
    }
    
    .consultation-info-right {
        flex: none;
        padding: 20px;
    }
    
    .consultation-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .consultation-modal {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .consultation-form-left {
        padding: 20px 15px;
    }
    
    .consultation-info-right {
        padding: 15px;
    }
}





/* Контейнер для поля с ошибкой */
.wpcf7-form-control-wrap {
    position: relative;
    margin-bottom: 20px;
    display: block;
}

/* Сообщения об ошибках - ПЕРЕД полем */
.wpcf7-not-valid-tip {
    position: absolute;
    top: -25px;
    left: 0;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Стрелочка для ошибки */
.wpcf7-not-valid-tip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px;
    border: 5px solid transparent;
    border-top-color: #dc3545;
}

/* Поля с ошибками */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.1) !important;
}

.wpcf7-not-valid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

/* Общие сообщения CF7 */
.wpcf7-response-output {
    margin: 0px 0 0 !important;
    padding: 0px !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 14px !important;
    text-align: center !important;
}

.wpcf7-mail-sent-ok {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.wpcf7-validation-errors {
    background: #fef3f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.wpcf7 .ajax-loader {
    display: block;
    margin: 15px auto 0 !important;
}

/* Анимация появления ошибок */
.wpcf7-not-valid-tip {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Убираем стандартные отступы CF7 */
.wpcf7-form p {
    margin: 0 !important;
}

/* Поля формы */
.wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    margin: 0 !important;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #0000cd;
    box-shadow: 0 0 0 2px rgba(0, 0, 205, 0.1);
}

/* Селект */
.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Текстовое поле */
.wpcf7-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Кнопка */
.consultation-submit-btn {
    width: 100%;
    background: #0000cd;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px !important;
}

.consultation-submit-btn:hover {
    background: #0000a0;
}

.consultation-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}













/* Исправление наложения контента под фиксированный хедер */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
        padding-top: 0px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Высота мобильного хедера */
    }
}


/* Стили футера */
.site-footer {
    background-color: #222;
    background-image: url('/wp-content/uploads/2025/11/footer_right.webp');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
    color: #ededed;
    position: relative;
    margin-top: auto;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 40px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Логотип и описание */
.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-description p {
    font-size: 15px;
    color: #ededed;
    margin: 0;
    font-weight: 500;
}

.payment-methods {
    margin-bottom: 15px;
}

.payment-methods img {
    border-radius: 8px;
}

.payment-rules a {
    color: #ededed;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.payment-rules a:hover {
    color: #e2ab7f;
}

/* Заголовки разделов */
.footer-title {
    font-family: "Abhaya Libre", Sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-divider {
    height: 2px;
    background: #00f;
    width: 60px;
    margin-bottom: 20px;
}

/* Меню услуг */
.footer-services {
    min-width: 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li:not(:last-child) {
   /* margin-bottom: 10px;*/
}

.footer-menu a {
    color: #ededed;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    line-height: 1.3;
}

.footer-menu a:hover {
    color: #e2ab7f;
    gap: 12px;
}

/* Стрелочки для пунктов меню - Font Awesome */
.footer-menu a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: #ccccf5;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-menu a:hover::before {
    transform: translateX(3px);
}

/* Контактная информация */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon i {
    color: #ccccf5;
    font-size: 16px;
}

.contact-content {
    flex: 1;
}

.contact-content span,
.contact-content a {
    color: #ededed;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #e2ab7f;
}

/* Реквизиты */
.requisites-content {
    font-size: 14px;
    line-height: 1.5;
}

.requisites-content p {
    margin-bottom: 12px;
    color: #ededed;
    font-weight: 500;
}

.requisites-content p:last-child {
    margin-bottom: 0;
}

.requisites-content strong {
    color: #fff;
    font-weight: 700;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    color: #ededed;
}

.copyright a {
    color: #ededed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #e2ab7f;
}

/* Социальные иконки */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 15px;
}

/* Кнопка прокрутки наверх */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0000cd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 205, 0.3);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0000a0;
    transform: translateY(-3px);
}

.scroll-to-top i {
    font-size: 18px;
}

/* Адаптивность только для 768px */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .footer-title {
        font-size: 18px;
    }
    
    .contact-item {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-menu a {
        padding: 7px 0;
    }
}




























/* Custom Page Header Styles */
.custom-page-header-section {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.custom-page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.custom-page-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.custom-page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.custom-page-title {
    font-size: 49px; /* +1px */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.custom-page-breadcrumbs {
    margin-top: 15px;
}

.custom-breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.custom-breadcrumb-nav a,
.custom-breadcrumb-nav span {
    color: #fff;
    text-decoration: none;
    font-size: 17px; /* +1px */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.custom-breadcrumb-nav a:hover {
    color: #e2ab7f;
}

.custom-breadcrumb-separator {
    margin: 0 5px;
    color: #fff;
    font-size: 17px; /* +1px */
}

.custom-current-page {
    font-weight: 700; /* Более жирный */
    color: #ffc107; /* Яркий желтый вместо бежевого */
    background: rgba(255, 193, 7, 0.2); /* Легкий фон */
    padding: 2px 8px;
    border-radius: 4px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .custom-page-header-section {
        height: 300px;
        margin-top: 0;
    }
    
    .custom-page-title {
        font-size: 33px; /* +1px */
        margin-bottom: 15px;
        padding: 0 20px;
    }
    
    .custom-breadcrumb-nav {
        font-size: 15px; /* +1px */
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .custom-breadcrumb-nav a,
    .custom-breadcrumb-nav span {
        font-size: 15px; /* +1px */
        white-space: nowrap;
    }
    
    .custom-current-page {
        padding: 1px 6px;
        font-size: 15px;
    }
    
    .custom-page-breadcrumbs {
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .custom-page-header-section {
        height: 250px;
    }
    
    .custom-page-title {
        font-size: 29px; /* +1px */
        margin-bottom: 12px;
    }
    
    .custom-breadcrumb-nav {
        gap: 5px;
    }
    
    .custom-breadcrumb-separator {
        margin: 0 3px;
    }
    
    .custom-current-page {
        padding: 1px 4px;
        font-size: 14px;
    }
}




/* Темный скроллбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #555 #2d2d2d;
}