/* =========================
   HERO MORENTEK
========================= */

.navbar-fixed-top {
    z-index: 999;
}

.morentek-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: auto !important;
}

/* Затемнение фона */
.morentek-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
}

/* Основной контент первого экрана */
.morentek-hero .intro-content {
    position: relative !important;
    z-index: 2;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    width: 100% !important;
    max-width: 1600px !important;

    text-align: left !important;
    margin-left: auto !important;
    margin-right: auto !important;

    padding: clamp(110px, 15vh, 170px) 15px 100px 15px;
}

/* Убираем центрирование внутренних блоков шаблона */
.morentek-hero .brand-name,
.morentek-hero .brand-name-subtext,
.morentek-hero .hero-buttons {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 780px;
}

/* Заголовок */
.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

/* Подзаголовок */
.hero-subtitle {
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.45;
    margin-top: 20px;
    color: #fff;
    max-width: 720px;
}

/* Линия под заголовком */
.morentek-hero hr.colored {
    margin-left: 0 !important;
    margin-right: auto !important;
    background: linear-gradient(to right, #16365d 0%, #ffffff 100%) !important;
    border: 0 !important;
    height: 3px !important;
    width: 220px !important;
}

/* Кнопки */
.hero-buttons {
    margin-top: clamp(35px, 8vh, 100px);
}

.hero-buttons .btn {
    margin-right: 12px;
    margin-bottom: 10px;
    border: 1px solid #fff !important;
    background: linear-gradient(to right, #16365d 0%, #ffffff 100%) !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-buttons .btn:hover {
    background: #fff !important;
    color: #16365d !important;
    border-color: #fff !important;
}

/* Преимущества */
.hero-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    width: 100%;
    margin-top: clamp(50px, 10vh, 120px);
    padding: 0 40px;

    text-align: center;
}

.hero-features div {
    flex: 1;
    padding: 14px 18px;

    border: 1px solid rgba(255,255,255,.65);
    border-radius: 30px;

    color: #fff;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.2;
    text-align: center;

    background: rgba(0, 0, 0, 0.15);
}

/* Стрелка вниз */
.morentek-hero .scroll-down {
    position: absolute !important;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    z-index: 3;
}

/* Цвет кольца/линии у кнопки скролла */
.morentek-hero .scroll-down .btn {
    border-color: #fff !important;
    color: #fff !important;
}

/* Средние экраны и увеличение масштаба */
@media (max-width: 1200px), (max-height: 760px) {
    .morentek-hero .intro-content {
        padding: 120px 60px 80px 60px;
    }

    .hero-features {
        margin-top: 30px;
        padding: 0;
    }
}

/* Если совсем мало места — убираем стрелку, но кнопки оставляем */
@media (max-height: 560px) and (min-width: 768px) {
    .morentek-hero .scroll-down {
        display: none;
    }

    .morentek-hero .intro-content {
        padding-top: 90px;
        padding-bottom: 50px;
    }
}

/* Мобильная версия */
@media (max-width: 767px) {
    .morentek-hero {
        min-height: 100vh;
        height: auto !important;
    }

    .morentek-hero .intro-content {
        padding: 120px 20px 90px 20px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .hero-features {
        display: none;
    }

    .morentek-hero .scroll-down {
        bottom: 15px;
    }
}

/* FORCE HERO DESKTOP POSITION */
@media (min-width: 768px) {
    .morentek-hero .intro-content {
        padding-top: 100px !important;
    }
}

/* =========================
   MORENTEK NAVBAR
   Схема без наложений:
   логотип = отдельная зона
   контакты = отдельная зона
   меню = отдельная зона
========================= */

.navbar,
.navbar.navbar-expanded,
.navbar-inverse {
    background: linear-gradient(to right, #16365d 0%, #ffffff 100%) !important;
    border: none !important;
    min-height: 58px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar .container {
    position: relative;
    min-height: 58px !important;
}

/* Логотип занимает свою фиксированную зону слева */
.navbar-header {
    float: left;
    width: 175px;
    min-height: 58px;
}

.navbar-brand {
    padding: 4px 0 !important;
    height: 58px !important;
    line-height: 58px !important;
}

.navbar-brand img {
    max-height: 80px !important;
    width: auto !important;
    display: block !important;
    transform: translateY(-10px);
}

/* Контакты занимают свою зону после логотипа и НЕ уходят в гамбургер
   Регулировка:
   width — ширина зоны контактов;
   margin-left — расстояние от логотипа;
   transform translateY — сдвиг вверх/вниз;
   font-size в .morentek-phone и .morentek-mail — размер строк.
*/
.morentek-top-contacts {
    float: left;
    width: 245px;
    min-height: 58px;
    margin-left: 16px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;

    overflow: hidden;
    transform: translateY(0px);
}

.morentek-top-contacts a {
    color: #fff !important;
    line-height: 1.05;
    text-decoration: none !important;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* В header.php сначала стоит email, потом phone.
   Эти order принудительно ставят телефон сверху, почту снизу. */
.morentek-top-contacts .morentek-phone {
    order: 1;
    font-size: 17px;
    font-weight: 800;
}

.morentek-top-contacts .morentek-mail {
    order: 2;
    font-size: 13px;
    font-weight: 700;
}

.morentek-top-contacts a:hover {
    color: #d9ecff !important;
}

/* Меню справа */
.navbar-collapse {
    float: right;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
}

.navbar-nav {
    white-space: nowrap;
}

.navbar-nav > li > a {
    padding-top: 19px !important;
    padding-bottom: 19px !important;
    line-height: 20px !important;
}

.navbar-inverse .navbar-nav > li > a {
    color: #fff !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    background: rgba(255,255,255,0.85) !important;
    color: #16365d !important;
    border-radius: 6px;
    text-shadow: none;
}

.navbar-inverse .navbar-toggle {
    border-color: #fff !important;
    background: transparent !important;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff !important;
}

/* =========================
   NAVBAR ADAPTIVE
   При нехватке места в гамбургер уходит только меню.
   Контакты остаются рядом с логотипом.
========================= */

@media (max-width: 1300px) {
    .navbar-header {
        width: 155px;
    }

    .navbar-brand img {
        max-height: 80px !important;
        transform: translateY(-3px);
    }

    .morentek-top-contacts {
        width: 215px;
        margin-left: 12px;
    }

    .morentek-top-contacts .morentek-phone {
        font-size: 15px;
    }

    .morentek-top-contacts .morentek-mail {
        font-size: 11px;
    }

    .navbar-nav > li > a {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 19px !important;
        padding-bottom: 19px !important;
        font-size: 13px;
    }
}

@media (max-width: 1150px) {
    .navbar-header {
        width: 140px;
    }

    .navbar-brand img {
        max-height: 80px !important;
        transform: translateY(-1px);
    }

    .morentek-top-contacts {
        width: 185px;
        margin-left: 10px;
    }

    .morentek-top-contacts .morentek-phone {
        font-size: 13px;
    }

    .morentek-top-contacts .morentek-mail {
        font-size: 10px;
    }

    .navbar-nav > li > a {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 12px;
    }
}

@media (max-width: 1050px) {
    /* Здесь меню ЕЩЁ НЕ уходит в гамбургер — только ужимаем элементы */
    .navbar-header {
        width: 130px;
    }

    .navbar-brand img {
        max-height: 80px !important;
        transform: translateY(1px);
    }

    .morentek-top-contacts {
        width: 165px;
        margin-left: 8px;
    }

    .morentek-top-contacts .morentek-phone {
        font-size: 12px;
    }

    .morentek-top-contacts .morentek-mail {
        font-size: 9px;
    }

    .navbar-nav > li > a {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 11px;
    }
}

@media (max-width: 991px) {
    /* Только здесь меню уходит в гамбургер */
    .navbar-header {
        width: 150px;
    }

    .navbar-brand img {
        max-height: 80px !important;
        transform: translateY(-1px);
    }

    .morentek-top-contacts {
        width: calc(100% - 215px);
        min-height: 58px;
        margin-left: 0;
        padding-right: 58px;
    }

    .morentek-top-contacts .morentek-phone {
        font-size: 14px;
    }

    .morentek-top-contacts .morentek-mail {
        font-size: 11px;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 !important;
        z-index: 30;
    }

    .navbar-collapse {
        float: none;
        clear: both;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(to right, #16365d 0%, #ffffff 100%) !important;
        border-top: 1px solid rgba(255,255,255,0.25) !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.25) !important;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in {
        display: block !important;
    }

    .navbar-nav {
        float: none !important;
        margin: 7px 0;
    }

    .navbar-nav > li {
        float: none;
    }

    .navbar-nav > li > a {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .navbar,
    .navbar.navbar-expanded,
    .navbar-inverse {
        min-height: 62px !important;
    }

    .navbar .container {
        min-height: 62px !important;
    }

    .navbar-header {
        width: 135px;
        min-height: 62px;
    }

    .navbar-brand {
        height: 62px !important;
    }

    .navbar-brand img {
        max-height: 38px !important;
        transform: translateY(0);
    }

    .morentek-top-contacts {
        width: calc(100% - 190px);
        min-height: 62px;
        padding-right: 50px;
    }

    .morentek-top-contacts .morentek-phone {
        font-size: 12px;
    }

    .morentek-top-contacts .morentek-mail {
        font-size: 10px;
    }

    .navbar-collapse {
        top: 62px;
    }

    .navbar-toggle {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .navbar-header {
        width: 115px;
    }

    .navbar-brand img {
        max-height: 32px !important;
    }

    .morentek-top-contacts {
        width: calc(100% - 168px);
        padding-right: 44px;
    }

    .morentek-top-contacts .morentek-phone {
        font-size: 11px;
    }

    .morentek-top-contacts .morentek-mail {
        font-size: 9px;
    }
}
.navbar-header {
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    height: 58px !important;
    padding: 0 !important;
}

.navbar-brand img {
    transform: none !important;
}