/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Description: Astra Child Theme
 Author: Your Name
 Template: astra
 Version: 1.0.0
*/

/* Оранжевый блок */
#content_bottom_wrapper {
    background: #e18728;
    padding: 70px 0 80px;
    color: #fff;
}

/* Бассейн — фон на всю ширину */
#section_7_wrapper {
    width: 100%;
    height: 420px;
    background: url('/wp-content/themes/astra-child/assets/files/styles/flexslider_full/public/proektirovanie-basseynov.jpg')
                center center no-repeat;
    background-size: cover;
}

/* Текст поверх фона */
.hero-text {
    margin-top: -260px;
    text-align: center;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

/* Серый блок "Что мы делаем" */
#section_8_wrapper {
    width: 100%;
    background: url('/wp-content/themes/astra-child/assets/images/bg1.gif') repeat;
    padding: 70px 0 80px;
}

/* Картинка снизу */
#section_8_wrapper .frame img {
    max-width: 468px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Контакты — правая колонка */
.sidebar-form {
    background: #f3f3f3;
    padding: 20px;
    border-radius: 6px;
}

.sidebar-form input[type="text"],
.sidebar-form textarea {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
}

.sidebar-form .form-submit {
    background: #006cb7;
    color: #fff;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
}

/* Карта */
.contacts-map iframe,
.contacts-map {
    width: 100% !important;
}

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

/* Блок с картой поверх */
.contacts-map-wrapper {
    margin: 40px 0 50px;
}

/* Нижний блок с двумя колонками */
.contacts-bottom {
    margin-bottom: 60px;
}

/* Левая колонка */
.contacts-left p {
    margin: 0 0 6px;
}

/* Правая колонка — форма */
.order-master-form .form-item {
    margin-bottom: 12px;
}

.order-master-form input[type="text"],
.order-master-form input[type="email"],
.order-master-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font: inherit;
}

.order-master-form textarea {
    resize: vertical;
}

.order-master-form .form-submit {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: #c34d32; /* как кнопка на скрине */
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

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

.company-intro ul {
    margin-left: 20px;
    list-style: disc;
}

.company-blocks {
    margin-top: 30px;
}

.company-blocks .views-row {
    margin-bottom: 20px;
}

/* Секция 9 — фон с баннером */
#section_9_wrapper {
    width: 100%;
    background: url('/wp-content/themes/astra-child/assets/files/bg03.jpg') center center no-repeat #333;
    background-size: cover;
    padding: 60px 0;
    text-align: center;
}

#section_9_wrapper p {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Секция 10 — светлый блок с заголовком */
#section_10_wrapper {
    width: 100%;
    background: #f5f5f5;
    padding: 50px 0 60px;
    text-align: left;
}

#section_10_wrapper .company-license {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 400;
}

/* Убираем голубой фон Astra на страницах продукции */
.single-dantherm_product .site-content,
.single-dantherm_product #main-wrapper,
.single-dantherm_product .main-wrapper,
.single-dantherm_product main {
    background: #ffffff !important;
}

/* Верхний блок: Ремонт / Диагностика / Установка */
/* Базовое состояние кнопок */
#content_top_wrapper .btn a {
    display: inline-block;
    padding: 12px 28px;
    background: #c95435;      /* оранжевый как на скрине */
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
}

/* Одинаковый hover для всех трёх */
#content_top_wrapper .btn a:hover {
    background: #2f65c8;      /* синий, если тебе нравится этот вариант */
    color: #ffffff;
}

/* На всякий случай добиваем старые спец-правила для третьей */
#content_top_wrapper #block-views-articles-block-3 .btn a,
#content_top_wrapper .grid-4.omega .btn a {
    background: #c95435 !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
}

#content_top_wrapper #block-views-articles-block-3 .btn a:hover,
#content_top_wrapper .grid-4.omega .btn a:hover {
    background: #2f65c8 !important;
}

/* Серый блок "Что мы делаем" */
#section_8_wrapper {
    width: 100%;
    background: url('/wp-content/themes/astra-child/assets/images/bg1.gif') repeat;
    padding: 70px 0 80px;
}

/* ВНУТРЕННЯЯ РАМКА, КАК НА СКРИНЕ 2 */
#section_8_wrapper .whatwedo-block .views-row {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 40px;
    border: 1px solid #dcdcdc;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Левая колонка с картинкой */
#section_8_wrapper .frame {
    flex: 0 0 468px;
}

#section_8_wrapper .frame img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0; /* убираем центрирование */
}

/* Правая колонка с текстом */
#section_8_wrapper .whatwedo-text {
    flex: 1;
}

/* Заголовок справа — синим, как на макете */
#section_8_wrapper .whatwedo-text h4 {
    font-size: 24px;
    margin: 0 0 15px;
}

#section_8_wrapper .whatwedo-text h4 a {
    color: #2f65c8;
    text-decoration: none;
}

/* Текст под заголовком */
#section_8_wrapper .whatwedo-text p {
    margin: 0 0 20px;
}

/* Кнопка "подробнее" */
#section_8_wrapper .whatwedo-text .btn a {
    display: inline-block;
    padding: 10px 24px;
    background: #c95435;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.page-title {
    text-align: center;
}

/* Белый фон для одиночных постов */
.single-post,
.single,
body.single-post,
body.single {
    background-color: #ffffff !important;
}

/* Белый фон внутреннего контейнера темы Astra */
.single-post .site,
.single-post .ast-container,
.single .site,
.single .ast-container {
    background-color: #ffffff !important;
}

/* Убираем голубой фон у .content-area, если Astra его делает */
.single-post .content-area,
.single .content-area {
    background: #ffffff !important;
}

/* На всякий случай — общий контент */
.single-post #main-wrapper,
.single #main-wrapper {
    background-color: #ffffff !important;
}

/* === Блок формы в попапе (аналог #block-webform-client-block-267) === */
.pum .wpcf7 {
    overflow: hidden;
}

/* Заголовок формы (аналог h2 внутри блока) */
.pum .cf7-callback-title {
    margin: 10px 0;
    padding: 0;
    font: bold 20px "Open Sans", Arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
}

/* Метки (аналог label в #webform-client-form-267) */
.pum .wpcf7-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

/* Оболочка формы (аналог #webform-client-form-267.webform-client-form) */
.pum .wpcf7-form {
    padding: 0 20px 20px;
    width: 240px;          /* как в оригинале */
    margin: 0 auto;        /* центрируем внутри попапа */
    box-sizing: border-box;
}

/* Первый “item” (первое поле) без верхнего отступа */
.pum .wpcf7-form p:first-of-type {
    margin-top: 0;
}

/* Последний блок (кнопка) без нижнего отступа */
.pum .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

/* Поля формы (аналог input width:100%) */
.pum .wpcf7-form input[type="text"],
.pum .wpcf7-form input[type="email"],
.pum .wpcf7-form input[type="tel"],
.pum .wpcf7-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    font: 14px/1.4 "Open Sans", Arial, sans-serif;
}

/* Текстовое поле */
.pum .wpcf7-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Кнопка отправки — твой оранжевый стиль */
.pum .wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px 0;
    border: none;
    background: #c95435;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.pum .wpcf7-form input[type="submit"]:hover {
    background: #b14730;
}

/* === POPUP MAKER: окно как на макете === */
.pum {
    z-index: 9999; /* на всякий случай поверх всего */
}

.pum .pum-container {
    max-width: 420px !important; /* ширина попапа */
    padding: 0 !important;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    background: #ffffff;
}

/* убираем лишние отступы внутри */
.pum .pum-content {
    padding: 30px 35px 25px;
}

/* фон-оверлей чуть темнее */
.pum-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Кастомный курсор-крест для клика вне формы */
.pum-overlay {
    cursor: url("/wp-content/themes/astra-child/assets/cursor-close.svg") 16 16, auto !important;
}


/* === ЗАГОЛОВОК "ВЫЗОВ МАСТЕРА" === */
.pum .cf7-callback-title {
    margin: 0 0 20px;
    padding: 0;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === ПОЛЯ ФОРМЫ === */
.pum .wpcf7-form p {
    margin: 0 0 12px;
}

.pum .wpcf7-form input[type="text"],
.pum .wpcf7-form input[type="email"],
.pum .wpcf7-form input[type="tel"],
.pum .wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 0;
    background: #ffffff;
    font: 14px/1.4 "Open Sans", Arial, sans-serif;
}

.pum .wpcf7-form textarea {
    min-height: 90px;
    resize: vertical;
}

/* placeholder'ы чуть светлее */
.pum .wpcf7-form ::placeholder {
    color: #999;
}

/* === КНОПКА ОТПРАВКИ === */
.pum .wpcf7-form input[type="submit"] {
    width: 100%;
    display: block;
    margin-top: 10px;
    padding: 11px 0;
    border: none;
    background: #c95435;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.pum .wpcf7-form input[type="submit"]:hover {
    background: #b14730;
}

/* убираем серую полоску / спиннер под полями, если мешает */
.pum .wpcf7-spinner {
    margin-top: 10px;
}

/* Убрать белый прямоугольник на картинках "Последние работы" */
.views-field-field-portfolio-image.frame a::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Исправляем постоянную подсветку ссылки "Студия Впереди" */
.region-footer-top-4 a {
    color: #ddd !important;   /* такой же цвет, как у остальных ссылок до наведения */
    text-decoration: none;
}

/* И цвет при наведении — как у других */
.region-footer-top-4 a:hover {
    color: #E07A2D !important;
}


/* ===== мобильный хедер ===== */
.dantherm-mobile-header {
    display: none; /* покажем только на мобилках */
    align-items: center;
    padding: 8px 10px;
    background: #dedede;
}

.dmh-toggle {
    width: 32px;
    height: 24px;
    margin-right: 12px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.dmh-toggle span {
    display: block;
    height: 3px;
    background: #111;
}

.dmh-logo img {
    max-height: 36px;
    height: auto;
    width: auto;
}

/* выпадающее меню */
.dantherm-mobile-nav {
    display: none;
    background: #dedede;
    border-top: 1px solid #ccc;
}

.dantherm-mobile-nav.is-open {
    display: block;
}

.dmh-menu {
    list-style: none;
    margin: 0;
    padding: 8px 10px;
}

.dmh-menu li {
    margin: 4px 0;
}

.dmh-menu a {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #222;
}

.dmh-menu a:hover {
    color: #c95435;
}

/* ===== медиа ===== */
/* на мобилках показываем мобильный хедер, прячем десктопный */
@media (max-width: 768px) {
    .dantherm-mobile-header {
        display: flex;
    }
    .dantherm-desktop-header {
        display: none !important;
    }
}

/* на десктопе наоборот */
@media (min-width: 769px) {
    .dantherm-mobile-header,
    .dantherm-mobile-nav {
        display: none !important;
    }
}

/* Телефон в правой части мобильного хедера */
@media (max-width: 921px) {
    /* делаем строку хедера флексом */
    .ast-header-break-point .ast-primary-header-bar .ast-container {
        display: flex;
        align-items: center;
    }

    /* блок с телефоном – справа */
    .ast-header-break-point .header-phone-mobile {
        margin-left: auto;
        display: block;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap; /* чтобы номер не ломался на две строки */
    }
}

/* Наши преимущества — иконка слева, текст справа */
#content_bottom_wrapper .advantage-item {
    position: relative;
    padding-left: 120px;   /* место под иконку слева */
    min-height: 90px;      /* чтобы блок не схлопывался по высоте иконки */
}

/* сам блок с иконкой */
#content_bottom_wrapper .advantage-item .views-field-field-service-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;          /* подгони под размер своей иконки, если надо */
    text-align: center;
}

/* чтобы иконка ужималась корректно */
#content_bottom_wrapper .advantage-item .views-field-field-service-image img {
    max-width: 100%;
    height: auto;
}
