/* --- Основные стили хедера --- */
.myservice__header {
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    background: #f9fafb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 100;
    color: #3a3a3a;
}

/* Верхняя часть хедера */
.myservice__header-top {
    padding: 10px 0;
    background: #25c0ff;
}

.myservice__header-top-inner {
    /* max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* Логотип */
.myservice__header-top-logo a img {
    height: 50px;
    display: block;
    transition: transform 0.3s ease;
}

.myservice__header-top-logo a:hover img {
    transform: scale(1.05);
}

/* Выбор города */
.myservice__header-top-city {
    font-weight: 600;
    /*cursor: pointer;*/
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/*
.myservice__header-top-city:hover {
    color: #f1be4c;
} 

.myservice__header-top-city:hover {
    color: transparent;
    background: linear-gradient(90deg, #a0c4ff 0%, #4361ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
*/

.myservice__header-top-city .icon-angle-down {
    font-size: 12px;
    color: #999;
}

/* Поиск */
.myservice__header-top-search {
    flex-grow: 1;
    max-width: 450px;
    min-width: 250px;
    position: relative;
}

.fantazy__header-center-search form.form-search {
    position: relative;
    display: flex;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    background: #fff;
}

.form-search input[type="text"] {
    flex-grow: 1;
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    color: #333;
    outline: none;
}

.form-search input[type="text"]::placeholder {
    color: #aaa;
    font-style: italic;
}

.search-buttons {
    display: flex;
    /* background: #f1be4c; */
}

.form-search button {
    border: none;
    background: transparent;
    color: #25c0ff;
    width: 40px;
    font-family: "icomoon";
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.form-search button.icon-search::before {
    content: "\f002";
}

.form-search button.icon-mic::before {
    content: "\f130";
}

.form-search button:hover {
    color: #20309f;
    /*background: linear-gradient(90deg, #a0c4ff 0%, #4361ee 100%);
    -webkit-background-clip: text;
    background-clip: text;*/
}

/* Результаты поиска */
#block_result {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    z-index: 50;
    display: none; /* показывайте через JS */
}

/* Телефоны */
.myservice__header-top-phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #3a3a3a;
    white-space: nowrap;
}

.myservice__header-top-phone a,
.myservice__header-top-phone p {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* При наведении на <a> меняем цвет текста на градиент с прозрачным фоном и обрезкой */
.myservice__header-top-phone a:hover {
    color: #20309f;
    /*background: linear-gradient(90deg, #a0c4ff 0%, #4361ee 100%);*/
    -webkit-background-clip: text;
    background-clip: text;
}

/* У span внутри <a> цвет по умолчанию */
.myservice__header-top-phone a span,
.myservice__header-top-phone p span {
    color: #20309f;
    font-size: 18px;
    transition: inherit; /* наследуем переход */
}

/* При наведении на <a> меняем цвет <span> на прозрачный с градиентом, чтобы совпадало */
.myservice__header-top-phone a:hover span {
    color: #fff;
    /*background: linear-gradient(90deg, #a0c4ff 0%, #4361ee 100%);
    -webkit-background-clip: text;
    background-clip: text;*/
}

/* Дополнительные иконки справа */
.myservice__header-top-add {
    display: flex;
    align-items: center;
    gap: 18px;
}

.myservice__header-top-add-item {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    transition: color 0.3s ease;
}

.myservice__header-top-add-item:hover {
    color: #20309f;
    /*background: linear-gradient(90deg, #a0c4ff 0%, #4361ee 100%);
    -webkit-background-clip: text;
    background-clip: text;*/
}

.myservice__header-top-add-item span {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f1be4c;
    color: #3a3a3a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    line-height: 1;
}

/* Модальное меню */
.myservice__header-top-modal {
    position: relative;
}

.myservice__header-top-modal > span.icon-angle-down {
    font-size: 20px;
    cursor: pointer;
    color: #20309f;
    background: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    transition: color 0.3s ease;
}

.myservice__header-top-modal:hover > span.icon-angle-down {
    border: 1px solid #20309f;
    /*background: linear-gradient(90deg, #a0c4ff 0%, #4361ee 100%);
    -webkit-background-clip: text;
    background-clip: text;*/
}

.myservice__header-top-modal-drop {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background: #fff;
    border: 2px solid #20309f;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 100;
}

/* .myservice__header-top-modal:hover .myservice__header-top-modal-drop {
    display: block;
} */

.myservice__header-top-modal-drop ul {
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.myservice__header-top-modal-drop ul li {
    padding: 8px 15px;
}

.myservice__header-top-modal-drop ul li a {
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all .2s ease;
}

.myservice__header-top-modal-drop ul li a:hover {
    color: #25c0ff;
    /*background: #f1be4c;
    color: #3a3a3a;
    border-radius: 4px;*/
}

/* .myservice__header-top-modal-drop ul li a span.bordbot {
    border-bottom: 1px dotted #ccc;
} */

/* Форма заказа звонка */

/* Кнопка отправки */
/* .default_btn {
    background: #f1be4c;
    border: none;
    color: #3a3a3a;
    padding: 12px 0;
    width: 100%;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
} */

/* .default_btn:hover {
    background: #d99e1a;
    color: #fff;
} */

/* Радио-кнопки */
.form__radiobox label {
    display: block;
    position: relative;
    padding-left: 5px;
    margin: 0 0 10px 20px;
    /* margin-bottom: 10px; */
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #444;
}

.myservice__header-top-modal > span.close-drop::before {
  content: "\f106";
}

.myservice-open__login.expanded i.icon-user-o::before {
  content: "\f00d";
}

.radio-box {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-style {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    border: 2px solid #f1be4c;
    border-radius: 50%;
}

.radio-box:checked + .radio-style::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f1be4c;
}

/* Чекбокс */
.checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox__label {
    display: block;
    position: relative;
}

.checkbox__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #f1be4c;
    border-radius: 3px;
    background: #fff;
}

.checkbox input[type="checkbox"]:checked + .checkbox__label::before {
    background: #25c0ff;
}

/* Ссылки в чекбоксе */
.order__call .checkbox__label a {
    color: #25c0ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.order__call .checkbox__label a:hover {
    text-decoration: underline;
    color: #20309f;
}

/* Нижнее меню */
/* .myservice__header-menu-wrapper {
    background: #fff;
    border-top: 1px solid #e5e5e5;
} */

/* .myservice__header-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
} */

.myservice__header-menu-wrapper {
    background: #20309f;
}

.myservice__header-menu-wrapper.myservice__header-menu-wrapper-fixed {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /*position: fixed;*/
    width: 100%;
    top: 0;
    z-index: 20;
}

.myservice__header-nav {
    display: flex;
    align-items: center;
    height: 60px;
    position: relative;
}

.myservice__header-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    width: 100%;
    /* justify-content: space-between; */
}

.myservice__header-menu > li {
    position: relative;
    /*flex: none;*/
    text-align: center;
    height: 60px;
}

.myservice__header-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3a3a3a;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    /*padding: 0 10px;*/
    height: 100%;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.myservice__header-menu > li > a {
    color: #fff;
    transition: color 0.3s ease;
}

/* При наведении на ссылку */
.myservice__header-menu > li:hover > a {
    color: #25c0ff;
}

/* Иконка внутри ссылки - обычное состояние */
.myservice__header-menu > li > a span {
    /*color: #3a3a3a;*/
    font-size: 18px;
    transition: inherit;
}

/* Иконка при наведении на ссылку */
.myservice__header-menu > li:hover > a span {
    color: #25c0ff;
}

/* Активный пункт меню - ссылка */
.myservice__header-menu > li.active > a {
    color: #25c0ff;
}

/* Иконка в активном пункте */
/*.myservice__header-menu > li.active > a span {
    color: #fff;
}
*/

/* Иконки в меню */
.myservice__header-menu > li > a span {
    /*color: #fff;*/
    font-size: 18px;
}

/* Выпадающее меню */
.catalog-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #25c0ff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 280px;
    max-width: 320px;
    z-index: 9999;
    padding: 15px 20px;
    font-size: 14px;
}

.menu-item:hover > .catalog-menu {
    display: block;
}

/* Категории в выпадающем меню */
.catalog-category,
.subcategory {
    margin-bottom: 10px;
}

.catalog-category-link,
.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.catalog-category-link:hover,
.subcategory-link:hover {
    background: #20309f;
}

.product-count {
    background-color: #fff;
    color: #3a3a3a;
    border-radius: 50%;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

.myservice-login__wrapper {
    display: none;
    position: absolute;
    background: #f8f8f8;
    border: 1px solid #ccc;
    max-width: 320px;
    width: 320px;
    right: 0;
    padding: 15px;
    z-index: 9999;
    top: 50px;
}

form.sign-in h4 {
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 500;
    color: #666;
    margin: 0 0 15px;
    text-align: center;
}

.form_login-item {
    position: relative;
}
.default-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 1.5px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    margin: 0 0 20px;
}
.form_login-item span.icon-eye {
    position: absolute;
    right: 12px;
    top: 15px;
    cursor: pointer;
    font-size: 16px;
}
form.sign-in a {
    color: #3a3d45;
    transition: all .3s;
    padding: 5px 0;
    display: block;
}
form.sign-in button {
    width: 100%;
    margin: 15px 0 0;
    cursor: pointer;
    letter-spacing: 2px;
}

/* -------- myservice__header-top-modal-form -------- */
.myservice__header-top-modal-form {
    display: none;
    max-width: 400px;
    width: 100%;
    cursor: auto !important;
    padding: 10px 10px 20px;
    background: #ffff;
    border: 2px solid #25c0ff;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 10px auto 0;
}

.order__call h3 {
    color: #333;
    font-size: 30px;
    font-weight: 500;
    margin: 15px 0;
    text-align: center;
}

.order__call-item {
    position: relative;
    margin: 0 0 10px;
}

.order__call-item span {
    position: absolute;
    top: 16px;
    left: -25px;
    font-size: 22px;
    color: #25c0ff;
}

.order__call-item input,
.order__call-item textarea {
    padding: 10px 10px 10px 40px;
    width: 100%;
    border: 1px solid #20309f;
    background: #fff;
    border-radius: 5px;
}

.order__call-item input:focus,
.order__call-item textarea:focus {
    border: 1px solid #25c0ff;
    outline: none;
}

.myservice__header-top-modal-form .fancybox-close-small {
    color: #25c0ff;
    padding: 0;
    border: 1px solid #25c0ff;
    border-radius: 0 5px 0 0;
    opacity: 1;
    width: 30px;
    height: 30px;
    transition: all .3s ease;
}

.myservice__header-top-modal-form .fancybox-close-small:hover {
    color: #20309f;
    border: 1px solid #20309f;
}

.form__radiobox {
    text-align: left;
}

.radio-box {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.radio-style {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #25c0ff;
    margin: 0 0 0 -20px;
    border-radius: 50%;
}

.radio-box:checked + .radio-style::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #25c0ff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.form__checkbox {
    margin: 0 0 20px;
}

.checkbox {
    text-align: left;
}

input.checkbox__choice {
    width: 17px;
    height: 17px;
    position: absolute;
    opacity: 0;
}

.checkbox__label {
    display: block;
    cursor: pointer;
    position: relative;
    padding: 0 0 0 25px;
    line-height: 18px;
    color: #333;
    font-size: 13px;
}

.order__call .checkbox__label a {
    text-decoration: none;
}

.order__call .checkbox__label a:hover {
    text-decoration: underline;
}

.checkbox__label::before {
    border: 2px solid #25c0ff;
    border-radius: 3px;
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    width: 17px;
    height: 17px;
}

.order__call .checkbox__choice:checked + .checkbox__label::before {
    background-color: #25c0ff;
}

.checkbox__choice:checked + .checkbox__label {
    opacity: 1;
}

body.compensate-for-scrollbar {
    overflow: auto !important;
    margin: 0;
}

/* Адаптив */
@media (max-width: 900px) {
    .myservice__header-top-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .myservice__header-top-search {
        max-width: 100%;
        order: 3;
    }

    .myservice__header-top-phone {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        order: 4;
        width: auto;
    }

    .myservice__header-top-add {
        justify-content: center;
        width: auto;
        order: 5;
        gap: 15px;
    }

    .myservice__header-menu {
        flex-wrap: wrap;
        gap: 10px;
    }

    .myservice__header-menu > li {
        flex: none;
        width: auto;
    }

    .myservice__header-nav {
        height: auto;
    }

    .myservice__header-menu > li > a {
        padding: 20px 10px !important;
        font-size: 12px !important;
    }
}
