/*
Theme Name: Теплотекс АПВ
Theme URI: https://teplotex.ru
Author: Masnev
Author URI:
Description: Тема для сайта производителя пластинчатых теплообменников
Version: 1.0
License: GPL v2 or later
Text Domain: teplotex.ru
*/

button br {
    display: none;
}
.alignleft, .leftimg {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.aligncenter, .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignright, .rightimg {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}

.typography img, #tinymce img {
    margin: 10px 10px;
    padding: 0;
    border: 1px solid #68666b;
    border-radius: 3px;
    box-shadow: 1px 3px 5px #000;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.strong {
    font-weight: bold
}

.bold {
    font-weight: bold
}

.middle {
    vertical-align: middle
}

.upper {
    text-transform: uppercase
}

.clear {
    clear: both;
    height: 0;
    font-size: 0;
}

.imgM0 IMG {
    margin-left: 0;
}

.color-red, #content .color-red, #content a.color-red {
    color: #e52e2e
}

.color-black {
    color: #000
}

.color-white, #content a.color-white {
    color: #fff
}

.bg-blue {
    background-color: #5181ff
}

.breadcrumbs {
    -webkit-text-stroke: 0.3px black;
    text-stroke: 0.3px black;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.headline {
    /* Обводка */
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;

    /* Тень */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);

}

.headingblock__intro {
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
    color: #fff;
}

.headingblock-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.headingblock-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit; /* Наследует фон родителя */
    filter: blur(5px); /* Размытие — регулируйте значение */
    z-index: 1;
}

.headingblock-image * {
    position: relative;
    z-index: 2;
}


.table th {
    border: 1px solid #000;
    margin: 0px;
    padding: 5px;
    text-align: center
}

table.table {
    margin: 10px 0;
    padding: 0px;
    border-collapse: collapse;
    border-spacing: 0px;
    color: rgb(0, 0, 0);
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 13px;
    background-color: rgb(210, 218, 228);
    border: 1px solid #000
}

table.table thead tr, table.table > :not(tbody) > tr:first-child, table.table .thead {
    margin: 0px;
    padding: 0px;
    color: rgb(255, 255, 255);
    background: rgb(0, 51, 102)
}

table.table thead tr th {
    color: #fff;
}

table.table img {
    margin: unset;
}

table.table td {
    font-size: 120%;
    border: 1px solid #000;
    margin: 0px;
    padding: 5px;
    /*text-align: center*/
}

table.table td.left {
    text-align: left
}

table.table > :not(thead) > tr:nth-child(even) {
    margin: 0px;
    padding: 0px;
    background: rgb(173, 187, 207) !important
}


.objekty {
    text-align: center
}

.objekty .blogItem {
    width: 230px;
    display: inline-block;
    vertical-align: top;
    text-align: center
}

.objekty .blogItem H2 a {
    font-size: 13px;
    text-align: center;
    vertical-align: middle
}

.objekty .blogItem h2 {
    line-height: unset;
    margin-top: 0px;
    margin-bottom: 0px;
}

.objekty .page-header {
}

.blog.articles .page-header h2 {
}

.articles {
    text-align: center
}

.articles .blogItem {
    width: 450px;
    display: inline-block;
    vertical-align: top;
    text-align: center
}

.articles .blogItem H2 {
    line-height: unset;
}
.articles .blogItem H2 a {
    font-size: 13px;
    text-align: center;
    vertical-align: middle
}

.articles .page-header {
}


/* Стили для выбора города */
.cityselect__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cityselect__item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cityselect__item:hover {
    background: #e0e0e0;
    transform: translateX(5px);
}

/* Индикатор выбранного города (опционально) */
.header__city-selector {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.header__city-selector:hover {
    background: #e0e0e0;
}

.header__city-selector .city-name {
    font-weight: 500;
}

.header__city-selector svg {
    width: 16px;
    height: 16px;
}

.quote_prevent, .content_forms {
    min-height: 60px;
    margin: 30px;
    display: flex;
    align-items: center;
}

img.quote_prevent--img, img.content_forms--img {
    position: absolute;
    width: 60px;
    margin: auto;
    border: none;
    border-radius: unset;
    box-shadow: none;
}

.quote_prevent--title {
    margin-left: 70px;
}

.quote_prevent--title ul {
    margin: 0;
    margin-top: 6px;
}


@media (max-width: 575px) {
    .quote_prevent, .content_forms {
        margin: 30px 0;
    }
}


/* Стили для формы опросного листа */
.questionnaire-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
}

.form-section {
    /*margin-bottom: 40px;*/
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e5ec;
}

.form-section__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #002094;
}

.form-section__subtitle {
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 15px;
    color: #002094;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #1D2023;
}
/*
.form__col--25 {
    flex-basis: 25%;
}

.form__col--50 {
    flex-basis: 50%;
}

.form__col--75 {
    flex-basis: 75%;
}

.form__col--100 {
    flex-basis: 100%;
}*/

.form__footer {
    text-align: center;
    margin-top: 30px;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #28a745;
}

@media (max-width: 768px) {
    .questionnaire-form {
        padding: 20px;
    }
}

/* Стили для ошибок валидации CF7 */
.wpcf7-not-valid {
    border-color: #e52e2e !important;
}

.wpcf7-not-valid-tip {
    color: #e52e2e;
    font-size: 12px;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.wpcf7-spinner {
    display: none;
}

/* Стили для поля загрузки файла */
.wpcf7-file {
    width: 100%;
    padding: 15px;
    border: 2px solid #e52e2e;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

.wpcf7-file:hover {
    background-color: #e52e2e;
    color: #e52e2e!important;
}

/* Стили для чекбокса */
.feedback__policy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-list-item-label {
    margin-left: 5px;
}


/* Современная форма подбора теплообменника */
.typography .modern-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.typography .modern-form .form__row {
    align-items: center;
    justify-content: space-between;
}

.typography .form-header {
    text-align: center;
    margin-bottom: 40px;
}

.typography .form-header h2 {
    font-size: 32px;
    color: #002094;
    margin-bottom: 12px;
}

.typography .form-header p {
    color: #5D6770;
    font-size: 16px;
}

/* Заголовки секций */
.typography .form-section__title {
    font-size: 20px;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.typography .form-section__title.form-section__title--red {
    background: linear-gradient(135deg, #e52e2e 0%, #e52e2e 100%);
    color: #fff;
    border: none;
}

.typography .form-section__title.form-section__title--blue {
    background: linear-gradient(135deg, #002094 0%, #001561 100%);
    color: #fff;
    border: none;
}

.typography .form-section__icon {
    font-size: 24px;
}

/* Секции греющей и нагреваемой среды */
.typography .form-section--heating,
.typography .form-section--heated {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Центральное изображение */
.typography .form__center-image {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.typography .center-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    border: none;
    box-shadow: none;
}

.typography .center-image:hover {
    transform: scale(1.02);
}

/* Стилизация полей ввода */
.modern-form .form__input,
.modern-form .wpcf7-text,
.modern-form .wpcf7-number,
.modern-form .wpcf7-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E4E9F0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modern-form .form__input:focus,
.modern-form .wpcf7-text:focus,
.modern-form .wpcf7-number:focus,
.modern-form .wpcf7-select:focus {
    border-color: #002094;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 32, 148, 0.1);
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1D2023;
    font-size: 14px;
}

/* Кнопка отправки */
.modern-form .btn--blue {
    background: linear-gradient(135deg, #002094 0%, #e52e2e 100%);
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 40px;
    transition: all 0.3s ease;
    width: 100%;
    margin: 30px 0;
}

.modern-form .btn--blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 32, 148, 0.3);
}

/* Секция контактов */
.form-section--contacts {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Поле загрузки файла */
.modern-form .wpcf7-file {
    padding: 12px;
    border: 2px dashed #C7DBF0;
    border-radius: 12px;
    background: #fafbfd;
    cursor: pointer;
}

.modern-form .wpcf7-file:hover {
    border-color: #e52e2e;
    background: #fff5f7;
}

/* Чекбокс */
.modern-form .feedback__policy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Адаптив для планшетов */
@media (max-width: 992px) {
    .typography .modern-form {
        padding: 25px;
    }

    .typography .form__center-image {
        display: none;
    }
    .typography .form__center-image::before,
    .typography .form__center-image::after {
        display: none;
    }

    .typography .center-image {
        max-width: 200px;
    }
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .typography .modern-form {
        padding: 20px;
    }

    .typography .form-header h2 {
        font-size: 24px;
    }

    .typography .form-section--heating,
    .typography .form-section--heated {
        margin-bottom: 20px;
    }

    .typography .form__center-image {
        margin: 20px 0;
    }

    .typography .center-image {
        max-width: 160px;
    }
}

.form__fieldset textarea {
    width: 100%;
}



/* Три колонки для полей */
.form__fieldset--column {
    display: flex;
    gap: 10px;
}

.form__fieldset--column > * {
    flex: 1;
    display: flex;
    gap: 10px;
}

/* Адаптив для трёх колонок */
@media (max-width: 768px) {
    .form__fieldset--column, .form__fieldset--column > * {
        flex-direction: column;
        gap: 15px;
    }
}

/* Три колонки для полей */
/*.form__fieldset--threecolumn {
    display: flex;
    gap: 10px;
}

.form__fieldset--threecolumn > * {
    flex: 1;
}

!* Адаптив для трёх колонок *!
@media (max-width: 768px) {
    .form__fieldset--threecolumn {
        flex-direction: column;
        gap: 15px;
    }
}*/

/* Улучшенные стили для секций */
/*.form-section--heating,
.form-section--heated {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-section--heating:hover,
.form-section--heated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}*/

/* Стили для дополнительной секции */
.form-section--additional {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .form-section--heating,
    .form-section--heated {
        margin-bottom: 20px;
    }

    /*.form__fieldset--twocolumn {
        flex-direction: column;
        gap: 10px;
    }

    .form__fieldset--twocolumn select {
        width: 100%;
    }*/
}

/* Стили для секций-блоков */
.modern-form .form-section {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
}

.modern-form .form-section:hover {
    /*transform: translateY(-2px);*/
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Заголовки блоков */
.modern-form .form-section__title {
    font-size: 20px;
    font-weight: 600;
    /*color: #002094;*/
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e52e2e;
    /*display: inline-block;*/
}

/* Подсказки для полей */
/*.form__hint {
    font-size: 12px;
    color: #5D6770;
    margin-top: 5px;
}*/

/* Единицы измерения рядом с полем */
/*.form__unit {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #f0f2f5;
    border-radius: 8px;
    color: #5D6770;
    font-size: 14px;
}*/

/* Адаптив */
@media (max-width: 768px) {
    /*.modern-form .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }*/

    /*.form__unit {
        margin-top: 8px;
        justify-content: center;
        padding: 8px 12px;
    }*/
}


/* Стили для сообщений */
.wpcf7-response-output {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 280px;
    max-width: 500px;
    padding: 14px 24px;
    border-radius: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: cf7SlideDown 0.3s ease;
}

.wpcf7 form .wpcf7-response-output {
    padding: 14px 24px;
    background-color: #fff;
}

@keyframes cf7SlideDown {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 30px;
        opacity: 1;
    }
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: none;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border: none;
}

.wpcf7-spam-blocked {
    background: #fff3cd;
    color: #856404;
    border: none;
}

/* Авто-закрытие через 4 секунды */
.wpcf7-response-output {
    animation: cf7SlideDown 0.3s ease, cf7FadeOut 0.4s ease 3.6s forwards;
}

@keyframes cf7FadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 576px) {
    .wpcf7-response-output {
        top: 10px;
        font-size: 12px;
        padding: 10px 16px;
        width: calc(100% - 40px);
        border-radius: 8px;
    }
}

/* Стили для спиннера CF7 */
.wpcf7-spinner {
    display: flex;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
    background: none;
    border-radius: 50%;
    position: absolute;
    right: 0;
    animation: cf7-spinner 1s infinite linear;
}

.wpcf7-spinner::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin: 2px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-top-color: #002094;
    animation: cf7-spinner 0.8s infinite linear;
}

@keyframes cf7-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Скрываем стандартную кнопку CF7, если она появляется */
.wpcf7-submit[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 575px) {
    .wpcf7-submit[type="submit"] {
        gap: normal;
        width: 100%;
    }
}

/* Убираем стандартный спиннер CF7, используем свой */
.ajax-loader {
    display: none !important;
}
/* Стили для сообщений  ----- */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-content {
    margin: 10px 0 0 20px;
}

@media (max-width: 991px) {
    .deviceHide {
        display: none;
    }
}

/* ========================================
   Адаптивные таблицы для мобильных устройств
   ======================================== */

@media (max-width: 991px) {
    .tablewrap {
        position: relative;
        margin: 0 0 20px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .tablewrap::-webkit-scrollbar {
        height: 6px;
    }

    .tablewrap::-webkit-scrollbar-track {
        background: #EDEFF7;
        border-radius: 10px;
    }

    .tablewrap::-webkit-scrollbar-thumb {
        background: #002094;
        border-radius: 10px;
    }

    .tablewrap::-webkit-scrollbar-thumb:hover {
        background: #e52e2e;
    }

    .table {
        min-width: 600px;
    }

    .table td,
    .table th {
        padding: 12px 16px !important;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Подсказка о скролле */
    .tablewrap::before {
        content: '← прокрутите →';
        display: block;
        text-align: center;
        font-size: 11px;
        color: #5D6770;
        margin-bottom: 8px;
        padding: 4px;
        background: #EDEFF7;
        border-radius: 20px;
    }
}

@media (max-width: 575px) {
    body {
        touch-action: pan-y
    }
    .table td,
    .table th {
        padding: 10px 12px !important;
        font-size: 11px;
    }

    .tablewrap::before {
        font-size: 9px;
    }

    /* Отступ для контента, чтобы он не уходил под шапку */
    body {
        padding-top: 86px; /* высота вашей шапки */
    }
}


.header.header--hidden {
    transform: translateY(-100%);
}
/* Добавьте в ваш CSS */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    transition: transform 0.5s ease;
}

.bodyoverlay .header {
    display: none;
}

.header__container {
}

.grecaptcha-badge {
    right: -1000px!important;
}

/* Контейнер-родитель (обертка для фото) */
.photo {
    display: flex;
    gap: 20px; /* Расстояние между картинками */
    justify-content: space-between; /* Равномерное распределение пространства */
    margin-right: 20px;
}

/* Стили для каждой ссылки-обертки */
.photo a , .photo ul {
    flex: 1; /* Все элементы получают равную долю ширины */
    display: block;
}

/* Сами изображения */
.photo img {
    width: 100%; /* Растягиваем на всю ширину родителя (ссылки) */
    height: auto; /* Сохраняем пропорции */
    display: block;
    object-fit: cover; /* Если картинки разного размера - аккуратно обрезает, можно заменить на contain */
}

/* Мобильная версия: до 768px (или до вашего брейкпоинта) */
@media (max-width: 768px) {
    .photo {
        flex-direction: column; /* Ставим элементы в столбик */
        gap: 15px; /* Вертикальный отступ между картинками */
    }

    .photo a {
        flex: none; /* Отключаем равномерное распределение */
        width: 100%; /* Растягиваем на всю ширину */
    }

    .typography img {
        margin: 10px 0;
    }
}