.cstm-a-link {
    color: white;
}

.cstm-a-link:hover {
    text-decoration: none;
}

.lng-link {
    font-size: 15px;
    padding: 2px 1px 2px 4px;
}

.main-header-down {
    background-color: var(--tab-color, #0088ad);
    color: #ffffff;
    width: 100%;
    height: 46px;
}

.main-header-down {
    display: flex;
    gap: 10px; /* расстояние между блоками */
}

.search-form-in-header {
    flex: 1;
    min-width: 980px;
    width: 100%;
}

.main-header-container {
    background-color: var(--tab-color, #0088ad);
    color: #ffffff;
    flex: 1; /* чтобы они были равными по ширине */
    padding: 10px;
    text-align: center;
}

.header-logo-position {
    text-align: end;
}

.header-logo-img {
    background-color: transparent;
    max-height: 30px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.header-button-img {
    background-color: transparent;
    border: none;
}

.header-form {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-form form {
    height: 30px;
    display: flex;
    width: 100%;
}

.header-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 150px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    transition: width 0.2s ease;
}

.header-form-btn {
    margin-left: 4px;
    height: 30px;
    padding: 0 12px;
    background-color: #007bff;
    border: none;
    border-left: none;
    cursor: pointer;
}

.header-nav-btn {
    border: none;
    border-radius: 5px;
    height: 31px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1FD4A8;
}

.m-size-8 {
    margin: 0 80px;
}

.ml-750 {
    margin-left: 750px
}

.mr-150 {
    margin-right: 150px;
}

.header-lang-active {
    border: 1px solid white;
    border-radius: 7px;
}


#mobile-down-header {
    display: none;
}

/* Нижняя панель */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* элементы прижаты к низу панели */
    z-index: 1000;
    height: 64px; /* высота при видимом тексте */
    transition: height 0.3s ease; /* анимация изменения высоты */
}

/* Когда текст скрыт — панель становится ниже */
.bottom-nav.hide-text {
    height: 48px; /* уменьшаем высоту, панель опускается */
}

/* Элементы */
.nav-item {
    flex: 1;
    text-align: center;
    color: #555;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.nav-item .nav-icon {
    font-size: 22px;
    display: block;
    transition: transform 0.3s ease;
}

/* Текст под иконкой */
.nav-item .nav-label {
    display: block;
    font-size: 12px;
    color: #555;
    line-height: 1;
    font-weight: 500;
    margin-top: 4px;
    height: 14px; /* высота текста */
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease, margin-top 0.3s ease;
}

/* Прячем текст */
.bottom-nav.hide-text .nav-label {
    opacity: 0;
    height: 0;
    margin-top: 0;
}


/* Бейджи */
.badge {
    position: absolute;
    top: -4px;
    right: 24%;
    background: var(--header-top-color, #007bff);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}

.badge.plus {
    background: orange;
    border-radius: 8px;
    padding: 2px 4px;
}

.header-top-color {
    /*background-color: var(--header-top-color, #005f73);*/
    background-color: var(--main-color, #045CFB);
}

.header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    /*padding: 5px 0;*/
}

span.nav-icon > svg, span.nav-icon > img {
    width: 25px;
}