/* your styles go here */
/* Example site test */

.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
    font-size: 18px;
    min-height: 150px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

.form-image {
    max-height: 650px;
    margin: 0 auto;
    border-radius: 4px;
}

.custom-carousel-block {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    padding: 60px 0 !important;
    background: radial-gradient(circle, #64c3d5  0%, #38a7bb 100%) !important;
}

.custom-carousel-block h1 {
    color: #ffffff !important;
    margin: 10px !important;
    padding: 0px !important;
}

#content p, .post p, .blog-post p {
    font-size: 18px; /* Сделайте размер, какой вам нравится (например, 16px, 18px или 1.1rem) */
    line-height: 1.6;
}

#top p {
    font-size: 16px;
}

/* Поднимаем круглый контейнер (ваши настройки) */
#top .social a:has(.max-custom-font) {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-bottom: 10px !important;
}

/* Настраиваем саму иконку через CSS-маску */
#top .social a i.max-custom-font {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    margin-top: 0px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    /* Вместо background-image используем маску */
    -webkit-mask-image: url('/img/max-icon.svg') !important;
    mask-image: url('/img/max-icon.svg') !important;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* Сбрасываем старый фильтр */
    filter: none !important;

    /* 🎨 УСТАНАВЛИВАЕМ ТОЧНЫЙ ЦВЕТ ИКОНКИ */
    /* Тема Universal по умолчанию использует цвет #999999 или прозрачный белый.
       Если этот серый все еще отличается, просто впишите сюда HEX-код цвета соседней иконки (например, #ccc или #aaa) */
    background-color: #999999 !important;

    transition: background-color 0.2s ease-out;
}

/* При наведении делаем иконку чисто белой под стиль темы */
#top .social a:hover i.max-custom-font {
    filter: none !important;
    background-color: #ffffff !important;
}

.clearfix table th,
.clearfix table td {
    padding: 12px 20px !important; /* 12px сверху/снизу и 20px слева/справа */
    border: 1px solid #e6e6e6 !important; /* Чёткая тонкая линия между колонками */
    text-align: left; /* Выравнивание по умолчанию */
}

/* Выделяем шапку таблицы, чтобы она тоже не сливалась */
.clearfix table thead th {
    background-color: #f8f9fa !important; /* Лёгкий серый фон для шапки */
    font-weight: 700 !important;
    border-bottom: 2px solid #cccccc !important;
}

/* Делаем саму таблицу на всю ширину контента */
.clearfix table {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-collapse: collapse;
}

@media (min-width: 992px) {
    /* 1. Выравниваем все элементы li по одной высоте */
    #navigation .navbar-nav {
        display: flex !important;
        align-items: stretch !important; /* Растягивает ховеры на всю высоту */
    }

    #navigation .navbar-nav > li {
        display: flex !important;
    }

    /* 2. Настраиваем ссылки внутри пунктов */
    #navigation .navbar-nav > li > a {
        display: flex !important;
        align-items: center !important;    /* Центрирует текст по вертикали */
        justify-content: center !important; /* Центрирует текст по горизонтали */
        white-space: normal !important;
        line-height: 1.2 !important;
        text-align: center !important;
        height: 100% !important;           /* Занимает всю доступную высоту дива */
        padding-top: 0 !important;         /* Сбрасываем жесткие паддинги темы */
        padding-bottom: 0 !important;
        min-height: 60px;                  /* Базовая высота вашей шапки (подгоните при необходимости) */
    }
}

@media (min-width: 1024px) {
    .responsive-margins {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .responsive-margins {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

@media (max-width: 768px) {
    .responsive-margins {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 991px) {
    /* Скрываем горизонтальное меню */
    .navbar-collapse {
        display: none !important;
        height: auto !important;
    }

    /* Показываем бургер-кнопку */
    .navbar-toggle {
        display: block !important;
        float: right !important;
        margin: 10px 15px 10px 0 !important;
    }

    /* Логотип слева, бургер справа */
    .navbar-header {
        float: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .navbar-brand {
        float: none !important;
        margin-right: auto !important;
    }

    /* Когда бургер нажат — показываем меню */
    .navbar-collapse.in {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 10px 0;
    }

    /* Вертикальный список меню */
    .navbar-nav {
        float: none !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .navbar-nav > li {
        float: none !important;
        width: 100% !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav > li > a {
        display: block !important;
        padding: 12px 20px !important;
        text-align: left !important;
        white-space: normal !important;
        height: auto !important;
        line-height: 1.4 !important;
    }

    /* Скрываем <br> в названиях */
    .navbar-nav > li > a br {
        display: none !important;
    }

    /* Выпадающие подменю */
    .navbar-nav .open .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: #f9f9f9 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .navbar-nav .open .dropdown-menu > li > a {
        padding-left: 40px !important;
    }
}

.home-carousel h1,
.owl-carousel .item h1 {
    font-size: 28px;
    line-height: 1.2;
}

.home-carousel .item img {
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

/* Сброс стилей темы для кастомных классов */
.text-compact,
.text-medium,
.text-expanded {
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.text-compact h1,
.text-medium h1,
.text-expanded h1 {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.text-compact p,
.text-medium p,
.text-expanded p {
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
}

.text-compact ul,
.text-medium ul,
.text-expanded ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.text-compact li,
.text-medium li,
.text-expanded li {
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
}

/* Размеры шрифта для разных классов */
.text-compact h1 { font-size: 24px !important; }
.text-compact li { font-size: 20px !important; }

.text-medium h1 { font-size: 28px !important; }
.text-medium li { font-size: 22px !important; }

.text-expanded h1 { font-size: 32px !important; }
.text-expanded li { font-size: 24px !important; }

/* Планшеты */
@media (min-width: 768px) and (max-width: 1024px) {
    .text-compact h1 { font-size: 20px !important; }
    .text-compact li {
        line-height: 1.0;
        font-size: 14px !important;
    }

    .text-medium h1 { font-size: 24px !important; }
    .text-medium li { font-size: 14px !important; }

    .text-expanded h1 { font-size: 24px !important; }
    .text-expanded li { font-size: 16px !important; }
}

/* Мобильные */
@media (max-width: 767px) {
    .home-carousel h1,
    .owl-carousel .item h1 {
        font-size: 20px !important;
    }

    .text-compact h1 { font-size: 24px !important; }
    .text-compact li { font-size: 14px !important; }

    .text-medium h1 { font-size: 24px !important; }
    .text-medium li { font-size: 14px !important; }

    .text-expanded h1 { font-size: 24px !important; }
    .text-expanded li { font-size: 14px !important; }
}

/* Скрываем картинку карусели на мобильных */
@media (max-width: 767px) {
    .home-carousel .col-sm-3,
    .owl-carousel .item .col-sm-3 {
        display: none !important;
    }

    /* Растягиваем текст на всю ширину */
    .home-carousel .col-sm-9,
    .owl-carousel .item .col-sm-9 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 991px) {
    /* Находим строку, которая содержит форму, и скрываем первую колонку (картинку) */
    .row:has(#contact-form-top) .col-md-6:first-child,
    .row:has(#contact-form-bottom) .col-md-6:first-child {
        display: none !important;
    }

    /* Растягиваем вторую колонку (форму) на всю ширину */
    .row:has(#contact-form-top) .col-md-6:last-child,
    .row:has(#contact-form-bottom) .col-md-6:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Компактные поля формы */
    #contact-form-top .form-group,
    #contact-form-bottom .form-group {
        margin-bottom: 10px !important;
    }

    #contact-form-top label,
    #contact-form-bottom label {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    #contact-form-top .form-control,
    #contact-form-bottom .form-control {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }

    #contact-form-top textarea.form-control,
    #contact-form-bottom textarea.form-control {
        min-height: 60px !important;
    }

    #contact-form-top .btn,
    #contact-form-bottom .btn {
        font-size: 14px !important;
        padding: 8px 15px !important;
    }
}

/* Базовые стили для картинки */
.custom-img {
    height: auto !important;
    display: block !important;
}

/* Десктоп (> 1500px) — стандартное поведение темы */
@media (min-width: 1500px) {
    .custom-img.pull-right {
        max-width: 25% !important;
        margin-left: 40px !important;
        margin-bottom: 15px !important;
        float: right !important;
    }

    .custom-img.pull-left {
        max-width: 25% !important;
        margin-right: 40px !important;
        margin-bottom: 15px !important;
        float: left !important;
    }
}

/* Экраны 992px - 1499px — картинка 40% */
@media (min-width: 992px) and (max-width: 1499px) {
    .custom-img.pull-right {
        max-width: 40% !important;
        margin-left: 30px !important;
        margin-bottom: 15px !important;
        float: right !important;
    }

    .custom-img.pull-left {
        max-width: 40% !important;
        margin-right: 30px !important;
        margin-bottom: 15px !important;
        float: left !important;
    }
}

/* Мобильные (< 992px) — картинка 50%, по центру */
@media (max-width: 991px) {
    .custom-img {
        max-width: 50% !important;
        float: none !important; /* Сбрасываем pull-right/pull-left */
        display: block !important;
        margin: 0 auto 15px auto !important; /* Центрируем */
    }
}

/* Очень маленькие экраны (< 576px) — картинка 100% */
@media (max-width: 575px) {
    .custom-img {
        max-width: 100% !important;
    }
}



/* =========================================
   FEATURES: 2 КОЛОНКИ НА 992-1199px
   ========================================= */

@media (min-width: 992px) and (max-width: 1199px) {
    .features .col-sm-4,
    .features .col-md-4,
    section.bar .col-sm-4,
    section.bar .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: left !important;
    }
}
