/*  
Theme Name: rentural_v2
Theme URI: http://seomi.ru
Description: Тема для сайта алмазной резки и бурения
Version: 2.1
Author: M.Dubovikov
Author URI: http://seomi.ru/
*/

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
body {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px;
    color: #fff;
    background-color: #131e24;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    pointer-events: none;
}

a {
    color: #f90;
    transition: color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
}

a:hover {
    color: #f9c000;
}

a:focus {
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    border: none;
    margin: 0;
    display: block;
    clear: both;
}

/* ===== КОНТЕЙНЕРЫ И СЕТКА ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===== ХЕДЕР (ШАПКА САЙТА) ===== */
.header {
    padding: 15px 0;
    background-color: #131e24;
    position: relative;
    z-index: 100;
}

.header .row {
    align-items: center;
}

/* Логотип */
.logo {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 992px) {
    .logo {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.logo_wrap {
    position: relative;
}


/* Центральный блок (почта) */
.header_center {
    text-align: center;
}

.header_center.pochta {
    display: none;
}

@media (min-width: 992px) {
    .header_center.pochta {
        display: block;
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ===== ИКОНКА ТЕЛЕФОНА ===== */
.mobile-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    border-radius: 50%;
    margin-left: auto;
    transition: all 0.2s ease;
    border: 2px solid #f8bf2c;
}

.mobile-phone-icon:hover {
    background-color: rgba(248, 191, 44, 0.1);
    transform: scale(1.05);
}

.mobile-phone-icon svg {
    width: 24px;
    height: 24px;
    fill: #f8bf2c;
}

/* ===== ИКОНКА БУРГЕР-МЕНЮ ===== */
.icon_menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    width: 44px;
    height: 44px;
    margin-left: 5px;
}

.icon_menu svg {
    width: 28px;
    height: 24px;
    stroke: #f8bf2c;
    stroke-width: 2.5;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.icon_menu svg:hover {
    stroke: #ffd966;
    transform: scale(1.05);
}

/* Контейнер для правых иконок на мобильных */
.mobile-right-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* ===== БЛОК С КОНТАКТАМИ В ШАПКЕ (ТОЛЬКО ДЛЯ ДЕСКТОПА) ===== */
.header_right {
    text-align: right;
    font-weight: bold;
}

@media (min-width: 992px) {
    .header_right {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.header_right .phone1,
.header_right .phone2 {
    color: #f9c000;
}

.header_right .phone1 {
    font-size: 18px;
}

.header_right .phone2 {
    font-size: 14px;
}

.header_right a {
    color: #f9c000;
    text-decoration: none;
}

.header_right a:hover {
    color: #ffd966;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #1e2a33;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch;
}

.mobile_menu.active {
    transform: translateX(0);
}

/* Затемнение фона */
body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Кнопка закрытия меню */
.back_menu {
    display: block;
    padding: 25px 20px 15px;
    text-align: right;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.back_menu .back_icon {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.back_menu .back_icon svg polyline {
    stroke: #f8bf2c;
    stroke-width: 2.5;
}

/* Навигация в мобильном меню */
.mainmenu_mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainmenu_mobile ul li {
    margin: 0;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.3s ease forwards;
}

/* Задержки для анимации пунктов меню */
.mainmenu_mobile ul li:nth-child(1) { animation-delay: 0.1s; }
.mainmenu_mobile ul li:nth-child(2) { animation-delay: 0.15s; }
.mainmenu_mobile ul li:nth-child(3) { animation-delay: 0.2s; }
.mainmenu_mobile ul li:nth-child(4) { animation-delay: 0.25s; }
.mainmenu_mobile ul li:nth-child(5) { animation-delay: 0.3s; }
.mainmenu_mobile ul li:nth-child(6) { animation-delay: 0.35s; }
.mainmenu_mobile ul li:nth-child(7) { animation-delay: 0.4s; }
.mainmenu_mobile ul li:nth-child(8) { animation-delay: 0.45s; }
.mainmenu_mobile ul li:nth-child(9) { animation-delay: 0.5s; }
.mainmenu_mobile ul li:nth-child(10) { animation-delay: 0.55s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mainmenu_mobile ul li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.mainmenu_mobile ul li a:hover {
    background-color: rgba(248, 191, 44, 0.1);
    color: #f8bf2c;
    padding-left: 30px;
}

/* Подменю */
.mainmenu_mobile ul.sub-menu {
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
}

.mainmenu_mobile ul.sub-menu li a {
    padding-left: 40px;
    font-size: 14px;
}

.mainmenu_mobile ul li.menu-item-has-children > a {
    position: relative;
    padding-right: 45px;
}

.mainmenu_mobile ul li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #f8bf2c;
    border-bottom: 2px solid #f8bf2c;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.3s ease;
}

.mainmenu_mobile ul li.menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(45deg);
}

.mainmenu_mobile ul li.menu-item-has-children.active > .sub-menu {
    display: block;
}

/* ===== КОНТАКТЫ В МОБИЛЬНОМ МЕНЮ ===== */
.mobile-contacts {
    padding: 30px 25px;
    margin: 20px 15px;
    background: #0c1117;
    border-radius: 12px;
    border-left: 4px solid #f8bf2c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mobile-contacts .city_header {
    position: static;
    width: auto;
    color: #f8bf2c;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-contacts .city_adr {
    position: static;
    width: auto;
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    opacity: 0.8;
    line-height: 1.4;
}

.mobile-contacts .phone1 {
    margin-bottom: 12px;
}

.mobile-contacts .phone1 a {
    color: #f8bf2c;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.mobile-contacts .phone1 a:hover {
    color: #ffd966;
}

.mobile-contacts .phone2 {
    margin-bottom: 15px;
}

.mobile-contacts .phone2 a {
    color: #f8bf2c;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.mobile-contacts .bot_phone {
    color: #999;
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.mobile-contacts .email-link {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.mobile-contacts .email-link:hover {
    color: #f8bf2c;
    border-bottom-color: #f8bf2c;
}

/* Социальные иконки в меню */
.mobile-social {
    display: flex;
    gap: 15px;
    margin: 25px 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0c1117;
    border: 1px solid #f8bf2c;
    transition: all 0.2s ease;
}

.mobile-social a:hover {
    background: #f8bf2c;
    transform: translateY(-3px);
}

.mobile-social a svg {
    width: 20px;
    height: 20px;
    fill: #f8bf2c;
}

.mobile-social a:hover svg {
    fill: #131e24;
}

/* Кнопка калькулятора в меню */
.mobile_menu .calculation {
    display: block;
    width: calc(100% - 30px);
    margin: 20px auto;
    height: 50px;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #f8bf2c;
    background: url("images/calc.png") no-repeat center center;
    background-size: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile_menu .calculation:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(248, 191, 44, 0.3);
}

/* ===== ВЕРХНЕЕ МЕНЮ (ДЕСКТОП) ===== */
.top_polosochki {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    height: 9px;
    margin: 15px 0;
}

.top_polosochki:after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header_menu ul.menu {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.header_menu ul.menu li {
    list-style: none;
    margin: 0;
}

.header_menu ul.menu li a {
    padding: 10px 12px;
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header_menu ul.menu li:first-child a {
    padding-left: 0;
}

.header_menu ul.menu li:last-child a {
    padding-right: 0;
}

.header_menu ul.menu li a:hover {
    color: #f90;
}

/* ===== ЛЕВОЕ МЕНЮ (САЙДБАР) ===== */
.left_menu {
    margin-left: 10px;
}

.left_menu ul {
    padding-left: 0;
    margin-left: 0;
}

.left_menu ul li {
    display: block;
    list-style: none;
}

.left_menu ul li a {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.left_menu ul li a:hover {
    margin-left: 3px;
    opacity: 0.7;
    color: #ff8800;
}

.left_menu ul li ul li a {
    font-size: 12px;
    padding: 5px 0;
    display: block;
}

.left_menu .sub-menu {
    display: none;
}

.current-menu-item > a {
    color: #f90 !important;
}

.left_menu .current-menu-item .sub-menu,
.left_menu .current-menu-parent .sub-menu {
    display: block !important;
}

.left_menu ul ul {
    margin-bottom: 10px;
    margin-left: 10px;
    margin-top: 5px;
}

/* ===== САЙДБАР БЛОКИ ===== */
.sidebar_block {
    background: #0c1117;
    width: 100%;
    border-radius: 15px;
    border-left: 1px solid #141f25;
    border-right: 1px solid #141f25;
    border-bottom: 1px solid #383f45;
    padding: 20px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.title_sidebar {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.sidebar_block .title_news {
    color: #fff;
    font-weight: bold;
}

.sidebar_block .date_news {
    font-size: 11px;
    color: #999;
}

.news {
    margin-bottom: 15px;
}

/* ===== ФОРМЫ ===== */
.form-sidebar-left {
    margin-bottom: 15px;
    position: sticky;
    left: 0;
    top: 15px;
}

.block-form-left {
    display: inline-block;
    padding: 13px;
    width: 100%;
    background: #0c1117;
    border-radius: 15px;
    border-left: 1px solid #141f25;
    border-right: 1px solid #141f25;
    border-bottom: 1px solid #383f45;
    color: #fff;
    box-sizing: border-box;
}

.form-left-sidebar {
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}

.block-form-left p {
    margin: 8px;
}

.block-form-left input,
.block-form-left textarea {
    border-radius: 7px;
    color: #000 !important;
    outline: none;
    border: none;
    background-color: #fff;
    font-size: 14px;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.block-form-left textarea {
    max-height: 120px;
    resize: vertical;
}

.submit-form-sidebar {
    display: flex;
    justify-content: center;
}

/* Поиск */
#searchform {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#searchform input[type="text"] {
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

#searchsubmit {
    width: 100%;
    border-radius: 10px;
    background-color: #ff860a;
    background-image: linear-gradient(2deg, #ff9f42, #ff860a);
    color: #ffffff;
    display: inline-block;
    font-size: 14px;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchsubmit:hover,
.wpcf7-submit:hover {
    background-color: #fdff42;
    background-image: linear-gradient(2deg, #fdff42, #ffc20a);
}

/* Contact Form 7 */
div.wpcf7 {
    color: #333;
}

.wpcf7-textarea {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    margin: 5px 0 0;
    padding: 10px;
    width: 100%;
    resize: none;
    box-sizing: border-box;
}

div.wpcf7 label {
    font-size: 14px;
}

div.wpcf7 input {
    width: 100%;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 5px 10px;
    box-sizing: border-box;
}

div.wpcf7 input.wpcf7-submit {
    border-radius: 10px;
    background-color: #ff860a;
    background-image: linear-gradient(2deg, #ff9f42, #ff860a);
    color: #ffffff;
    font-size: 14px;
    width: auto;
    min-width: 150px;
    padding: 10px 20px;
    height: auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7-not-valid {
    border: 1px solid red !important;
    border-radius: 7px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main_content {
    font-size: 16px;
    line-height: 1.6;
}

.main_content img.alignleft,
.wp-caption.alignleft {
    float: left;
    margin: 0 15px 15px 0;
}

.main_content img.alignright,
.wp-caption.alignright {
    float: right;
    margin: 0 0 15px 15px;
}

.aligncenter {
    margin: 0 auto;
    display: block;
}

.alignleft {
    float: left;
    margin: 15px 15px 15px 0;
}

.alignright {
    float: right;
    margin: 15px 0 15px 15px;
}

.wp-caption {
    background: #444;
    padding-top: 5px;
    text-align: center;
    max-width: 100%;
}

.wp-caption-text {
    margin: 0;
    padding: 5px 0;
}

/* Таблицы */
.main_content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.main_content table td {
    border: 1px solid #555;
    padding: 8px 10px;
}

@media (max-width: 767px) {
    table {
        overflow-x: auto;
        display: block;
        width: 100%;
    }
}

/* Списки */
.main_content ul,
.main_content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

ol li {
    color: #f8bf2c;
}

ol li span {
    color: #fff;
}

li p {
    margin: 0;
    display: inline;
}

/* ===== СТРАНИЦА ДИЗАЙН 01 ===== */
.page_design_01 {
    font-size: 18px;
}

.page_design_01 .h1_image {
    position: relative;
    margin-bottom: 30px;
}

.page_design_01 .h1_image img {
    width: 100%;
    height: auto;
}

.page_design_01 .h1_image .shadow {
    background: rgba(6, 6, 57, 0.6);
    border-top: 5px solid #f8bf2c;
    height: 100%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.post_title {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.post_title h1 {
    color: #f8bf2c;
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .post_title h1 {
        font-size: 24px;
    }
}

.page_design_01 h2 {
    font-size: 32px;
    font-family: 'Roboto Slab', serif;
    margin: 30px 0 20px;
    color: #fff;
}

@media (max-width: 768px) {
    .page_design_01 h2 {
        font-size: 24px;
    }
}

/* ===== ГАЛЕРЕЯ НОВОСТЕЙ ===== */
.gallery_news {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
}

.gallery_news .gallery_news_item {
    width: 33.333%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

@media (max-width: 991px) {
    .gallery_news .gallery_news_item {
        width: 50%;
    }
}

.gallery_news .gallery_news_item .image {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
}

.gallery_news .gallery_news_item .image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery_news .gallery_news_item:hover .image img {
    transform: scale(1.05);
}

.gallery_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

@media (hover: hover) {
    .gallery_news .gallery_news_item:hover .gallery_content {
        background-color: rgba(0, 0, 0, 0.8);
        opacity: 1;
        pointer-events: auto;
    }
}

.gallery_news .gallery_news_item:focus-within .gallery_content {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    pointer-events: auto;
}

.gallery_content .title {
    color: #f8bf2c;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gallery_content .post-date {
    color: #fff;
    font-size: 13px;
    margin-bottom: 15px;
}

.gallery_news_link {
    color: #f8bf2c;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #f8bf2c;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gallery_news_link:hover {
    background-color: #f8bf2c;
    color: #131e24;
}

/* ===== НОВОСТИ ===== */
.news-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: #0c1117;
    border-radius: 10px;
    padding: 20px;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
}

.news-item__cover {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-item__cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item__content {
    flex-grow: 1;
}

.news-item__title {
    font-size: 18px;
    color: #f8bf2c;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.news-item__desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #ddd;
}

.news-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item__date {
    font-size: 13px;
    color: #999;
}

.news-item__more {
    padding: 6px 12px;
    border: 1px solid #f8bf2c;
    color: #f8bf2c;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.news-item__more:hover {
    background-color: #f8bf2c;
    color: #131e24;
}

/* Новости в сайдбаре */
.news-sidebar__title {
    display: block;
    font-size: 18px;
    color: #f8bf2c;
    margin-bottom: 20px;
    text-decoration: none;
}

.news-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-sidebar-item__title {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.news-sidebar-item__title:hover {
    color: #f8bf2c;
}

.news-sidebar-item__date {
    color: #999;
    font-size: 12px;
}

.news-sidebar__more {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #f8bf2c;
    color: #f8bf2c;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.news-sidebar__more:hover {
    background-color: #f8bf2c;
    color: #131e24;
}

/* ===== КОММЕНТАРИИ ===== */
#comments {
    margin: 40px 0;
}

.comments-title {
    font-size: 24px;
    color: #f8bf2c;
    margin-bottom: 30px;
}

.commentlist {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    background: #0c1117;
    border-radius: 10px;
    overflow: hidden;
}

.comment-author {
    background: #1e2a33;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-meta {
    font-size: 12px;
    color: #999;
}

.comment-content {
    padding: 20px;
}

.reply {
    padding: 0 20px 20px;
}

.reply a {
    color: #f8bf2c;
    text-decoration: none;
    font-size: 13px;
}

.children {
    list-style: none;
    padding-left: 50px;
    margin-top: 20px;
}

/* Форма комментария */
#respond {
    background: #0c1117;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}

#reply-title {
    color: #f8bf2c;
    font-size: 20px;
    margin-bottom: 20px;
}

#commentform input,
#commentform textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    background: #1e2a33;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

#commentform input[type="submit"] {
    width: auto;
    padding: 10px 30px;
    background: #f8bf2c;
    color: #131e24;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#commentform input[type="submit"]:hover {
    background: #ffd966;
}

/* ===== КАЛЬКУЛЯТОРЫ ===== */
.calc {
    background: #1e2a33;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.calc h2 {
    color: #f8bf2c;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.calc .pole {
    margin-bottom: 15px;
}

.calc .pole span {
    display: inline-block;
    width: 45%;
    vertical-align: middle;
    color: #fff;
}

.calc .pole input,
.calc .pole select {
    width: 52%;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a3a45;
    color: #fff;
    box-sizing: border-box;
}

.itog {
    font-size: 20px;
    color: #f8bf2c;
    margin: 20px 0;
    font-weight: bold;
}

.zametka {
    font-size: 13px;
    color: #999;
    margin: 10px 0;
}

.btn {
    background: url("images/rasschet.png") no-repeat;
    border: none;
    cursor: pointer;
    height: 41px;
    width: 180px;
    transition: none;
}

.btn:hover {
    background-position: 0 -49px;
}

.btn:active {
    background-position: 0 -98px;
}

.calculators {
    overflow: hidden;
    max-width: 540px;
    margin: 0 auto;
}

.slide_calc {
    position: relative;
    width: 200%;
    transition: right 0.5s ease;
}

.raschet1,
.raschet2 {
    float: left;
    height: 65px;
    width: 240px;
    cursor: pointer;
}

.raschet1 {
    background: url("images/calc_1.jpg") no-repeat;
}

.raschet2 {
    background: url("images/calc_2.jpg") no-repeat;
}

.raschet1.active,
.raschet2.active {
    background-position: 0 -130px;
}

.calculation {
    background: url("images/calc.png") no-repeat;
    background-size: cover;
    display: block;
    width: 100%;
    padding-bottom: 27.4%;
    transition: none;
}

.calculation:hover {
    background-position: 0 50%;
    background-size: cover;
}

.calculation:active {
    background-position: 0 100%;
    background-size: cover;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    padding: 10px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumbs a {
    color: #f8bf2c;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== ГОРОДА ===== */
.goroda {
    display: inline-block;
    position: relative;
}

.vash_gorod {
    position: relative;
}

.vash_gorod > a,
.vash_gorod > span {
    border-bottom: 1px dashed;
    line-height: 24px;
    cursor: pointer;
    color: #f8bf2c;
}

.select_city {
    background: rgba(30, 42, 51, 0.95);
    border-radius: 5px;
    top: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    margin-top: 5px;
    padding: 15px;
    position: absolute;
    width: 200px;
    z-index: 100;
    transition: all 0.3s ease;
    right: 0;
}

.goroda .vash_gorod:hover .select_city {
    opacity: 1;
    visibility: visible;
}

.select_city a {
    color: #fff;
    font-size: 14px;
    line-height: 2;
    text-align: left;
    width: 100%;
    display: block;
    transition: color 0.2s ease;
}

.select_city a:hover {
    color: #f8bf2c;
}

/* ===== СОЦИАЛЬНЫЕ ИКОНКИ ===== */
.social_icon {
    display: inline-block;
    margin-right: 20px;
}

.social_icon a {
    display: inline-block;
    position: relative;
    margin: 0 2px;
}

.social_icon a:after {
    content: "";
    opacity: 0.2;
    border-radius: 50%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: opacity 0.3s ease;
    background-color: #fff;
    position: absolute;
}

.social_icon a:hover:after {
    opacity: 0.5;
}

/* ===== КНОПКА ВВЕРХ ===== */
#totop {
    cursor: pointer;
    position: fixed;
    left: 30px;
    bottom: 90px;
    display: none;
    outline: none;
    z-index: 9990;
}

/* ===== ФУТЕР ===== */
.footer {
    background-color: #111a20;
    font-size: 13px;
    color: #999;
    margin-top: 50px;
    padding: 30px 0;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #f8bf2c;
}

.footer ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer ul.menu li {
    margin: 0;
    padding: 0;
}

.footer ul.menu li a {
    padding: 5px 10px;
    display: block;
}

.footer_left,
.footer_center,
.footer_right {
    margin-bottom: 20px;
}

.footer_left {
    text-align: center;
}

@media (min-width: 768px) {
    .footer_left {
        text-align: left;
    }
    
    .footer_center {
        text-align: center;
    }
    
    .footer_right {
        text-align: right;
    }
}

/* ===== ВСПЛЫВАЮЩИЕ ФОРМЫ ===== */
#feedback-fot {
    display: none;
}

.feedback-fot {
    max-width: 400px;
}

.feedback-fot form {
    color: #333;
}

/* ===== РАЗНОЕ ===== */
.garant {
    font-size: 8pt;
    height: 35px;
    position: absolute;
    right: 95px;
    text-align: center;
    width: 200px;
    z-index: 99;
}

.garant a {
    color: orange;
}

.garant div {
    background: url("images/strah.png") repeat;
    color: black;
    display: none;
    font-size: 7pt;
    height: 78px;
    padding: 20px 12px 10px;
    position: inherit;
    top: 35px;
}

.vopros-otvet h2 {
    color: #f0f0f0;
    cursor: pointer;
}

.vopros-otvet .otvet {
    background: #22313c;
    border-radius: 10px;
    color: #fed759;
    font-style: italic;
    margin-top: 0;
    padding: 15px;
}

iframe {
    max-width: 100%;
}

.grecaptcha-badge {
    display: none !important;
}

.hidden {
    opacity: 0;
}

.visible {
    opacity: 1;
}

.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .header_right {
        display: none !important;
    }
    
    .city_header,
    .city_adr {
        position: static !important;
        width: auto !important;
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 10px;
    }
    
    .header .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .header [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .post_title h1 {
        font-size: 24px;
    }
    
    .page_design_01 h2 {
        font-size: 22px;
    }
    
    .page_design_01 {
        font-size: 15px;
    }
    
    ol.commentlist {
        padding-left: 0;
    }
    
    ol.commentlist ul.children {
        padding-left: 20px;
    }
    
    .calc {
        padding: 15px;
    }
    
    .calc .pole span {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .calc .pole input,
    .calc .pole select {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .post_title h1 {
        font-size: 20px;
    }
    
    .triple_row {
        display: none;
    }
    

    .calc {
        width: 100%;
    }
}
/* ===== ФИНАЛЬНЫЕ СТИЛИ ДЛЯ БЛОКА СТОИМОСТИ ===== */
/* Демонтаж, резка, бурение - центрирование */

.stoimost-block {
    text-align: center !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
    float: none !important;
}

.stoimost-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin: 20px auto !important;
    width: 100% !important;
}

.stoimost-label {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    width: auto !important;
    display: inline-block !important;
}

.stoimost-price {
    font-size: clamp(50px, 15vw, 90px) !important;
    font-weight: 900 !important;
    color: #f3b33d !important;
    line-height: 1 !important;
    text-align: center !important;
    display: inline-block !important;
    vertical-align: middle !important;
    text-shadow: 0 2px 10px rgba(243, 179, 61, 0.2) !important;
    letter-spacing: -1px !important;
}

.stoimost-unit {
    font-size: clamp(16px, 4vw, 28px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-left: 5px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.stoimost-season {
    font-size: 0.85rem !important;
    color: #f3b33d !important;
    text-align: center !important;
    margin: 5px auto !important;
    font-weight: 500 !important;
    width: 100% !important;
    display: block !important;
}

.stoimost-note {
    font-size: 0.9rem !important;
    color: #9fb0c0 !important;
    font-style: italic !important;
    border-top: 1px dashed #2d404d !important;
    padding: 20px 0 0 0 !important;
    margin: 25px auto 0 auto !important;
    text-align: center !important;
    max-width: 600px !important;
    width: 100% !important;
    display: block !important;
}

/* Убираем влияние родительских элементов */
p:has(.stoimost-block) {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 768px) {
    .stoimost-block {
        padding: 0 10px !important;
        margin: 30px auto 35px auto !important;
    }
    
    .stoimost-row {
        flex-direction: column !important;
        gap: 10px !important;
        margin: 15px auto !important;
    }
    
    .stoimost-label {
        font-size: 1rem !important;
        width: 100% !important;
    }
    
    .stoimost-price {
        font-size: 70px !important;
    }
    
    .stoimost-unit {
        font-size: 22px !important;
    }
    
    .stoimost-note {
        font-size: 0.85rem !important;
        padding-top: 15px !important;
        margin-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .stoimost-price {
        font-size: 55px !important;
    }
    
    .stoimost-unit {
        font-size: 20px !important;
    }
    
    .stoimost-label {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 360px) {
    .stoimost-price {
        font-size: 45px !important;
    }
    
    .stoimost-unit {
        font-size: 18px !important;
    }
    
    .stoimost-label {
        font-size: 0.9rem !important;
    }
}
/* ===== ИСПРАВЛЕННАЯ ШАПКА ===== */
.header {
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
}

.header .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
}

/* ЛОГОТИП - крупный */
.logo {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 280px !important;
}

.logo_wrap img {
    max-height: 90px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* КОНТЕЙНЕР ИКОНОК - вплотную справа */
.mobile-right-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* Иконка телефона */
.mobile-phone-icon {
    width: 36px !important;
    height: 36px !important;
    border: 2px solid #ffffff !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.mobile-phone-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
}

/* Гамбургер */
.icon_menu {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.icon_menu svg {
    width: 22px !important;
    height: 18px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

/* Убираем отступы Bootstrap */
.header .col-6,
.header [class*="col-"] {
    padding: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

/* ===== ВЕРХНЕЕ МЕНЮ (ГЛАВНАЯ-О КОМПАНИИ-СТАТЬИ-КОНТАКТЫ) ===== */
.header_menu {
    width: 100%;
    margin: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header_menu .menu-verhnee-menyu-container {
    max-width: 600px;
    margin: 0 auto;
}

.header_menu ul.menu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.header_menu ul.menu li a {
    display: block !important;
    padding: 15px 20px !important;
    color: #fff !important;
    font-size: 16px !important;
    transition: color 0.2s ease !important;
}

/* Активный пункт и наведение */
.header_menu ul.menu li a:hover,
.header_menu ul.menu li.current-menu-item a,
.header_menu ul.menu li.current_page_item a,
body.home .header_menu ul.menu li:first-child a {
    color: #f8bf2c !important;
}

/* ===== ЛЕВОЕ МЕНЮ (САЙДБАР) ===== */
.left_menu > ul > li > a {
    display: block !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    color: #fff !important;
}

.left_menu > ul > li > a:hover,
.left_menu ul li.current-menu-item > a {
    background: rgba(248, 191, 44, 0.1) !important;
    color: #f8bf2c !important;
}

.left_menu ul ul li a {
    padding: 8px 15px 8px 30px !important;
    font-size: 14px !important;
    color: #ccc !important;
    border-left: 2px solid transparent !important;
}

.left_menu ul ul li a:hover,
.left_menu ul ul li.current-menu-item a {
    color: #f8bf2c !important;
    border-left-color: #f8bf2c !important;
}

/* ===== МОБИЛЬНОЕ МЕНЮ (БУРГЕР) ===== */
.mobile_menu {
    background: #1a2630 !important;
}

.mainmenu_mobile ul li a {
    padding: 15px 25px !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.mainmenu_mobile ul li a:hover,
.mainmenu_mobile ul li.current-menu-item > a {
    background: rgba(248, 191, 44, 0.1) !important;
    color: #f8bf2c !important;
    padding-left: 30px !important;
}

.mainmenu_mobile ul.sub-menu li a {
    padding-left: 40px !important;
    font-size: 14px !important;
}

.back_menu .back_icon svg polyline {
    stroke: #f8bf2c !important;
    stroke-width: 2.5 !important;
}

/* ===== ТРОЙНОЙ БЛОК (3 КАРТИНКИ) ===== */
.triple_image {
    display: block;
    transition: transform 0.4s ease;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
}

.triple_image .triple_block {
    position: relative;
    max-width: 268px;
}

.triple_image .triple_block:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.triple_image .triple_block:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(203, 107, 0, 0) 0%, rgba(203, 107, 0, 1) 60%);
    content: '';
    opacity: 0;
    transform: translate3d(0, 50%, 0);
    transition: opacity 0.35s, transform 0.35s;
    z-index: 20;
}

.triple_image:hover .triple_block:before {
    opacity: 1;
    transform: translate3d(0, 25%, 0);
}

.triple_image img {
    border-radius: 15px;
    width: 100%;
    height: auto;
}

.triple_image .triple_title {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    color: #fff !important;
    transform: translate3d(0, -50%, 0);
    transition: transform 0.35s;
}

.triple_image .triple_description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    z-index: 20;
    font-size: 14px;
    padding: 2em;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.35s, transform 0.35s;
}

.triple_image:hover .triple_description {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.triple_image:hover .triple_title {
    transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
}

/* Показываем только на десктопе */
@media (min-width: 768px) {
    .row.triple_row {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .row.triple_row {
        display: none !important;
    }
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .logo {
        max-width: 200px !important;
    }
    .logo_wrap img {
        max-height: 80px !important;
    }
    
    .header_menu ul.menu li a {
        padding: 12px 10px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 170px !important;
    }
    .logo_wrap img {
        max-height: 70px !important;
    }
    
    .header_menu ul.menu li a {
        padding: 10px 5px !important;
        font-size: 13px !important;
    }
}

/* ===== ОТСТУПЫ ПО КРАЯМ ===== */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Исправление: Скрываем видео из сайдбара, которое вылезает в подвале */
.sidebar_block:has(figure#sidebar-video),
.sidebar_block figure#sidebar-video,
#sidebar-video {
    display: none !important;
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНОГО МЕНЮ ===== */
.mobile_menu .menu-item-has-children > a {
    position: relative;
}

.mobile_menu .menu-item-has-children > a::after {
    content: '›';
    position: absolute;
    right: 20px;
    font-size: 24px;
    line-height: 1;
    color: #f8bf2c;
    transition: transform 0.3s ease;
}

.mobile_menu .menu-item-has-children.active > a::after {
    transform: rotate(90deg);
}

.mobile_menu .sub-menu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.mobile_menu .menu-item-has-children.active > .sub-menu {
    display: block;
}

/* Пункты подменю */
.mobile_menu .sub-menu a {
    padding-left: 40px !important;
    font-size: 14px !important;
}

/* ===== СТИЛИ ТОЛЬКО ДЛЯ СТРАНИЦЫ КОНТАКТЫ ===== */
.page-id-223 .main_content {
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* ЮР. ИНФОРМАЦИЯ */
.page-id-223 .legal-info {
    background: #0f1a24;
    padding: 25px 20px;
    border-radius: 24px;
    margin-bottom: 30px;
    border-left: 5px solid #f5b342;
    color: white;
}

.page-id-223 .company-name {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 8px;
}

.page-id-223 .company-name .orange {
    color: #f5b342;
}

.page-id-223 .company-name .white-part {
    color: white;
}

.page-id-223 .company-details {
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 16px;
    display: inline-block;
    margin-top: 5px;
}

/* ===== КАРТОЧКИ АДРЕСОВ - КОМПАКТНАЯ ВЕРСИЯ ===== */
.page-id-223 .cards-grid {
    display: block !important;
    margin: 20px 0 !important;
    width: 100% !important;
}

.page-id-223 .contact-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px !important;
    background: white;
    border-radius: 24px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #edf2f9;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Убираем лишние float и flex из предыдущих версий */
.page-id-223 .contact-card {
    float: none !important;
    clear: both !important;
}

.page-id-223 .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(245, 180, 66, 0.12);
    border-color: #f5b342;
}

/* Десктоп - увеличенные отступы (но меньше чем было) */
@media (min-width: 1024px) {
    .page-id-223 .contact-card {
        padding: 22px 25px;
        margin-bottom: 18px !important;
        border-radius: 26px;
    }
}

/* Заголовок города - уменьшен */
.page-id-223 .card-city {
    font-size: clamp(22px, 3.5vw, 26px);
    font-weight: 800;
    color: #f5b342;
    margin-bottom: 12px;
}

/* Блок с деталями (адрес, телефон) - уменьшен межстрочный интервал */
.page-id-223 .card-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.3;
    color: #1e2b37;
    word-break: break-word;
}

@media (min-width: 1024px) {
    .page-id-223 .card-detail {
        font-size: 16px;
        gap: 12px;
        margin-bottom: 12px;
    }
}

.page-id-223 .card-detail .emoji {
    font-size: 20px;
    min-width: 28px;
}

.page-id-223 .card-detail a {
    color: #1e2b37;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.page-id-223 .card-detail a:hover {
    color: #f5b342;
    border-bottom-color: #f5b342;
}

/* ===== БЛОК ТЕЛЕФОНА (ВОССТАНОВЛЕН И УМЕНЬШЕН) ===== */
.page-id-223 .card-phone-block {
    margin: 12px 0 8px;
    background: #f8fafd;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eef2f8;
    flex-wrap: wrap;
    gap: 10px;
}

.page-id-223 .card-phone {
    font-size: clamp(18px, 3.5vw, 22px);
    font-weight: 700;
    color: #1a2634;
}

.page-id-223 .card-phone a {
    color: inherit;
    text-decoration: none;
}

.page-id-223 .card-phone a:hover {
    color: #f5b342;
}

.page-id-223 .card-phone-small {
    font-size: 15px;
    font-weight: 600;
    color: #f5b342;
    white-space: nowrap;
    background: rgba(245, 180, 66, 0.1);
    padding: 4px 12px;
    border-radius: 30px;
}

/* Ссылка на карту - компактнее */
.page-id-223 .map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f5b342 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    padding: 3px 0;
    margin-top: 5px;
}

.page-id-223 .map-link:hover {
    color: #1e2b37 !important;
    border-bottom-color: #f5b342;
}

.page-id-223 .map-link span {
    font-size: 16px;
}

/* Убираем все медиа-запросы для grid/flex */
@media (min-width: 768px) {
    .page-id-223 .contact-card {
        /* Никаких float или grid */
    }
}

@media (min-width: 1024px) {
    .page-id-223 .contact-card {
        /* Никаких float или grid */
    }
}

/* ===== БЛОК РУКОВОДИТЕЛЯ ===== */
.page-id-223 .ceo-section {
    margin: 40px 0;
    overflow: hidden;
    border-radius: 30px;
}

.page-id-223 .ceo-video-container {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 720 / 1280;
    max-height: 70vh;
    background-color: #0f1a24; /* Добавлен фон для полей при contain */
}

/* АЛЬТЕРНАТИВНЫЙ ВАРИАНТ: видео помещается полностью без обрезания */
.page-id-223 .ceo-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Видео целиком в контейнере (могут быть поля) */
    display: block;
    background-color: #0f1a24; /* Фон для заполнения полей */
}

/* Если нужен вариант с заполнением контейнера и фокусом на верхнюю часть (лицо), 
   раскомментируйте код ниже и закомментируйте вариант выше */
/*
.page-id-223 .ceo-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; 
    display: block;
}
*/

.page-id-223 .ceo-card {
    background: linear-gradient(145deg, #0f1a24 0%, #1f2e3a 100%);
    padding: 30px 22px 35px;
    color: white;
}

.page-id-223 .ceo-name {
    font-size: 32px;
    font-weight: 700;
    color: #f5b342;
    margin-bottom: 5px;
}

.page-id-223 .ceo-title {
    font-size: 17px;
    color: #b0c9e0;
    margin-bottom: 20px;
}

.page-id-223 .ceo-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.page-id-223 .ceo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 15px;
}

.page-id-223 .ceo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-id-223 .ceo-btn-phone {
    background: #f5b342;
    color: #0f1a24;
    box-shadow: 0 10px 25px rgba(245, 180, 66, 0.4);
}

.page-id-223 .ceo-btn-tg {
    background: transparent;
    color: white;
    border: 2px solid #f5b342;
}

.page-id-223 .ceo-save-number {
    font-size: 17px;
    color: #f5b342;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page-id-223 .ceo-save-number strong {
    font-size: 20px;
    display: block;
    margin-top: 5px;
    color: white;
}

/* ДЕСКТОП */
@media (min-width: 1024px) {
    .page-id-223 .ceo-section {
        display: flex;
        align-items: stretch;
        background: linear-gradient(145deg, #0f1a24 0%, #1f2e3a 100%);
        border-radius: 40px;
    }
    
    .page-id-223 .ceo-video-container {
        flex: 1;
        aspect-ratio: auto;
        max-height: 450px;
    }
    
    .page-id-223 .ceo-card {
        flex: 1;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .page-id-223 .ceo-actions {
        flex-direction: row;
    }
    
    .page-id-223 .ceo-btn {
        width: auto;
        flex: 1;
    }
    
    .page-id-223 .ceo-save-number {
        text-align: left;
    }
    
    .page-id-223 .ceo-save-number strong {
        display: inline;
        margin-left: 8px;
    }
}

/* ===== ВОПРОС-ОТВЕТ ===== */
.page-id-223 .qa-block {
    margin: 40px 0;
}

.page-id-223 .qa-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0f1a24;
}

.page-id-223 .qa-item {
    background: white;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #edf2f9;
}

.page-id-223 .qa-author {
    font-weight: 700;
    color: #f5b342;
    margin-bottom: 5px;
    font-size: 16px;
}

.page-id-223 .qa-date {
    font-size: 13px;
    color: #7f8fa0;
    margin-bottom: 12px;
}

.page-id-223 .qa-text {
    font-size: 15px;
    margin-bottom: 15px;
    color: #1e2b37;
}

.page-id-223 .qa-answer {
    background: #f4f7fb;
    padding: 16px;
    border-radius: 18px;
    border-left: 4px solid #f5b342;
    color: #1e2b37;
}

.page-id-223 .qa-answer p {
    margin: 6px 0 0 0;
    color: #1e2b37;
    font-size: 14px;
}

.page-id-223 .qa-answer strong {
    color: #f5b342;
    display: block;
    margin-bottom: 4px;
}

/* Скрываем дублирующиеся элементы темы */
.page-id-223 .main_content hr,
.page-id-223 .main_content h2:not(.qa-title):not(.form-title),
.page-id-223 .main_content #comments,
.page-id-223 .main_content .comment-respond,
.page-id-223 .main_content .comments-area,
.page-id-223 .main_content .commentlist,
.page-id-223 .main_content .comment-form {
    display: none !important;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЬИ ===== */
.page-id-4169 .page_design_01 ul.sub-menu {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    padding: 30px 0 20px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (min-width: 600px) {
    .page-id-4169 .page_design_01 ul.sub-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .page-id-4169 .page_design_01 ul.sub-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Стили для карточки - ТЕМНАЯ ТЕМА */
.page-id-4169 .page_design_01 ul.sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    background: #1e2a36;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 180, 70, 0.15);
    list-style: none !important;
}

.page-id-4169 .page_design_01 ul.sub-menu li:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(248, 191, 44, 0.3);
    border-color: rgba(248, 191, 44, 0.4);
}

/* Ссылка на всю карточку */
.page-id-4169 .page_design_01 ul.sub-menu li a {
    display: flex !important;
    flex-direction: column;
    text-decoration: none !important;
    padding: 0 !important;
    background: transparent !important;
    height: 100%;
}

/* КОНТЕЙНЕР ДЛЯ КАРТИНКИ */
.page-id-4169 .page_design_01 ul.sub-menu li a .article-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a3847;
    transition: transform 0.3s ease;
    position: relative;
    border-bottom: 3px solid #f8bf2c;
}

/* Легкое затемнение при наведении */
.page-id-4169 .page_design_01 ul.sub-menu li a .article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.page-id-4169 .page_design_01 ul.sub-menu li:hover a .article-image::after {
    background: rgba(0, 0, 0, 0.2);
}

/* НАЗВАНИЕ СТАТЬИ - СВЕТЛЫЙ ТЕКСТ НА ТЕМНОМ ФОНЕ */
.page-id-4169 .page_design_01 ul.sub-menu li a span {
    display: block !important;
    padding: 18px 16px !important;
    font-family: 'Roboto Slab', serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    background: #1e2a36;
    border-top: 3px solid #f8bf2c;
    transition: all 0.2s ease;
    min-height: 85px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.page-id-4169 .page_design_01 ul.sub-menu li:hover a span {
    color: #f8bf2c !important;
    background: #253542;
}

/* Скрываем старую картинку в шапке */
.page-id-4169 .page_design_01 .h1_image {
    display: none !important;
}

/* Стили для заголовка H1 - СВЕТЛЫЙ НА ТЕМНОМ ФОНЕ */
.page-id-4169 .page_design_01 .post_title h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff !important;
    position: relative;
    padding-bottom: 15px;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-id-4169 .page_design_01 .post_title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #f8bf2c;
    border-radius: 2px;
}

/* Защита от проблем с масштабированием */
.page-id-4169 .page_design_01 ul.sub-menu li a .article-image {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
}

/* Анимация только при наведении */
.page-id-4169 .page_design_01 ul.sub-menu li:hover a .article-image {
    transform: scale(1.05) translateZ(0);
}

/* Возврат к нормальному размеру */
.page-id-4169 .page_design_01 ul.sub-menu li:not(:hover) a .article-image {
    transform: scale(1) translateZ(0);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .page-id-4169 .page_design_01 .post_title h1 {
        font-size: 36px;
        padding-bottom: 12px;
    }
    
    .page-id-4169 .page_design_01 .post_title h1::after {
        width: 60px;
        height: 3px;
    }
    
    .page-id-4169 .page_design_01 ul.sub-menu li a span {
        font-size: 16px !important;
        padding: 14px 12px !important;
        min-height: 70px;
        border-top-width: 3px;
    }
}

@media (max-width: 480px) {
    .page-id-4169 .page_design_01 .post_title h1 {
        font-size: 28px;
    }
    
    .page-id-4169 .page_design_01 ul.sub-menu {
        gap: 12px;
    }
    
    .page-id-4169 .page_design_01 ul.sub-menu li a span {
        font-size: 15px !important;
        padding: 12px 10px !important;
        min-height: 65px;
    }
}

/* Улучшаем отображение на планшетах */
@media (min-width: 600px) and (max-width: 991px) {
    .page-id-4169 .page_design_01 ul.sub-menu {
        gap: 20px;
    }
    
    .page-id-4169 .page_design_01 ul.sub-menu li a span {
        font-size: 17px !important;
        min-height: 80px;
    }
}

/* Дополнительная защита от багов с масштабированием */
.page-id-4169 .page_design_01 ul.sub-menu li a .article-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease;
}
/* ===== ФОТО ГОРОДОВ В КАРТОЧКАХ АДРЕСОВ (ВАРИАНТ С ФОНОМ) ===== */
.page-id-223 .contact-card {
    position: relative;
    background: none; /* Убираем белый фон */
    color: white; /* Текст делаем белым, чтобы был виден на фоне */
    z-index: 1;
    border: none; /* Убираем рамку, добавим свою */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent; /* Прозрачный фон */
}

/* Псевдоэлемент для фонового изображения */
.page-id-223 .contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 24px; /* Совпадает с border-radius карточки */
    z-index: -2; /* Помещаем фон позади текста */
    transition: transform 0.3s ease;
}

/* Затемняющий слой для читаемости текста */
.page-id-223 .contact-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 24px;
    z-index: -1; /* Слой затемнения между фоном и текстом */
    transition: opacity 0.3s ease;
}

/* При наведении убираем затемнение, показываем фото ярче */
.page-id-223 .contact-card:hover::after {
    opacity: 0.7;
}

/* ФОТО ДЛЯ КАЖДОГО ГОРОДА */
/* ВСТАВЛЕНЫ ВАШИ ССЫЛКИ */

/* Екатеринбург */
.page-id-223 .contact-card[data-city="ekb"]::before {
    background-image: url('https://rentural.ru/wp-content/uploads/2026/03/nochnoj_ekb_2017_04.jpg');
}

/* Нижний Тагил */
.page-id-223 .contact-card[data-city="tagil"]::before {
    background-image: url('https://rentural.ru/wp-content/uploads/2026/03/b23b6750c0c133d8342b9622915890526df8cb0185b6c2cce209b4177272.jpg');
}

/* Каменск-Уральский */
.page-id-223 .contact-card[data-city="kamensk"]::before {
    background-image: url('https://rentural.ru/wp-content/uploads/2026/03/scale_1200.jpg');
}

/* Первоуральск */
.page-id-223 .contact-card[data-city="pervouralsk"]::before {
    background-image: url('https://rentural.ru/wp-content/uploads/2026/03/e7ba36c898ee4a06abca576cbd273f58.max-1200x800-1.jpg');
}

/* Затем переопределяем цвета текста внутри карточки на белые */
.page-id-223 .card-city,
.page-id-223 .card-detail,
.page-id-223 .card-detail a,
.page-id-223 .card-phone a,
.page-id-223 .card-phone-small {
    color: white !important;
    position: relative; /* Чтобы текст был над слоями */
    z-index: 1;
}

.page-id-223 .card-detail a:hover,
.page-id-223 .card-phone a:hover {
    color: #f5b342 !important; /* Акцентный цвет при наведении */
}

/* Блок телефона делаем полупрозрачным, чтобы был виден фон */
.page-id-223 .card-phone-block {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-id-223 .card-phone {
    color: white;
}

.page-id-223 .map-link {
    color: #f5b342 !important;
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 30px;
}
/* Добавляем отступ снизу для блока с кнопкой калькулятора */
.buttons {
    margin-bottom: 15px !important;
}
/* ===== КНОПКИ ПОЗВОНИТЬ В КАРТОЧКАХ ГОРОДОВ ===== */
.page-id-223 .city-call-btn {
    display: inline-block;
    background: #f5b342;
    color: #0f1a24 !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin: 12px 0 8px;
    border: 2px solid #f5b342;
    box-shadow: 0 4px 12px rgba(245, 180, 66, 0.3);
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Эффект при наведении */
.page-id-223 .city-call-btn:hover {
    background: transparent;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(245, 180, 66, 0.4);
    border-color: #f5b342;
}

/* Эффект при нажатии (active) */
.page-id-223 .city-call-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(245, 180, 66, 0.3);
    background: rgba(245, 180, 66, 0.9);
    transition: all 0.05s ease;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .page-id-223 .city-call-btn {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}
/* ===== СТИЛИ ДЛЯ БЛОКА СТОИМОСТИ (ДЕМОНТАЖ, РЕЗКА, БУРЕНИЕ) ===== */

/* Базовые стили для всех устройств */
.stoimost-block {
    margin: 35px auto 40px auto;
    color: #e0e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Ряд с ценой */
.stoimost-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
    width: 100%;
}

/* Текст-подпись */
.stoimost-label {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Контейнер для цены и единицы измерения */
.stoimost-row > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Цена */
.stoimost-price {
    font-size: clamp(50px, 15vw, 90px);
    font-weight: 900;
    color: #f3b33d;
    line-height: 1;
    text-align: center;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(243, 179, 61, 0.2);
    letter-spacing: -1px;
}

/* Единица измерения */
.stoimost-unit {
    font-size: clamp(16px, 4vw, 28px);
    font-weight: 700;
    color: #ffffff;
    margin-left: 5px;
    display: inline-block;
}

/* Сезонная заметка */
.stoimost-season {
    font-size: 0.85rem;
    color: #f3b33d;
    text-align: center;
    margin: 5px auto;
    font-weight: 500;
    width: 100%;
}

/* Основное примечание */
.stoimost-note {
    font-size: 0.9rem;
    color: #9fb0c0;
    font-style: italic;
    border-top: 1px dashed #2d404d;
    padding: 20px 15px 0 15px;
    margin: 25px auto 0 auto;
    text-align: center;
    max-width: 600px;
    box-sizing: border-box;
}

/* Исправление для родительского тега p */
p:has(.stoimost-block) {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА ===== */
@media (max-width: 768px) {
    .stoimost-block {
        padding: 0 10px;
        margin: 30px auto 35px auto;
    }
    
    .stoimost-row {
        flex-direction: column;
        gap: 10px;
        margin: 15px auto;
    }
    
    .stoimost-label {
        font-size: 1rem;
        width: 100%;
    }
    
    .stoimost-price {
        font-size: 70px;
    }
    
    .stoimost-unit {
        font-size: 22px;
    }
    
    .stoimost-note {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 0.85rem;
    }
}

/* ===== МАЛЕНЬКИЕ МОБИЛЬНЫЕ ===== */
@media (max-width: 480px) {
    .stoimost-price {
        font-size: 55px;
    }
    
    .stoimost-unit {
        font-size: 20px;
    }
    
    .stoimost-label {
        font-size: 0.95rem;
    }
    
    .stoimost-note {
        font-size: 0.8rem;
        padding: 15px 10px 0 10px;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ===== */
@media (max-width: 360px) {
    .stoimost-price {
        font-size: 45px;
    }
    
    .stoimost-unit {
        font-size: 18px;
    }
    
    .stoimost-label {
        font-size: 0.9rem;
    }
}