/* CRO: контакты в шапке + адаптивное скрытие второстепенных элементов
   Layout desktop grid — в style.css (@media min-width 1280px) */

/* Контакты внутри .header-right */
.header-contacts {
    display: none;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media screen and (min-width: 1280px) {
    .header-contacts {
        display: flex;
    }

    /* Перебивает @media (max-width: 1679px) из style.css — иначе middle фиксируется 630px */
    .header-middle {
        max-width: none;
        margin: 0;
        width: auto;
    }

    .header-search-input {
        max-width: 100%;
    }
}

.header-phone {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.header-phone:hover {
    color: #4334A1;
}

.header-callback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #4334A1, #5B46D9);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-callback-btn:hover {
    box-shadow: 0 4px 16px rgba(67, 52, 161, .35);
}

.header-messengers {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.header-messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-messenger-tg {
    background: #229ED9;
    color: #fff;
}

.header-messenger-wa {
    background: #25D366;
    color: #fff;
}

/* Приоритет: телефон + кнопка. Сначала убираем TG/WA и второстепенные иконки */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
    .header-messengers {
        display: none;
    }

    .header-link.link-compare,
    .header-link.link-favorite {
        display: none;
    }

    .header-blocks {
        column-gap: 12px;
    }

    .header-search-input {
        max-width: 320px;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1366px) {
    .header-phone {
        font-size: 16px;
    }

    .header-callback-btn {
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .header-buttons {
        margin-left: 20px !important;
    }

    .header-button-catalog a,
    .header-button-service a {
        padding: 0 16px;
        font-size: 15px;
    }

    .header-search-input {
        max-width: 240px;
    }

    .header-personal-text {
        display: none;
    }
}

@media screen and (min-width: 1680px) {
    .header-phone {
        font-size: 19px;
    }

    .header-callback-btn {
        height: 44px;
        padding: 0 18px;
        font-size: 15px;
    }

    .header-blocks {
        column-gap: 20px;
    }
}

@media screen and (min-width: 1920px) {
    .header-phone {
        font-size: 20px;
    }

    .header-blocks {
        column-gap: 24px;
    }

    .header-search-input {
        max-width: 480px;
    }
}

/* Мобильные контакты в бургер-меню */
.mobile-menu-contacts {
    padding: 16px 0;
    border-bottom: 1px solid #F0EFEF;
    margin-bottom: 12px;
}

.mobile-menu-contacts .header-phone {
    display: block;
    font-size: 22px;
    margin-bottom: 12px;
}

.mobile-menu-contacts .header-callback-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    margin-bottom: 12px;
}

.mobile-menu-contacts .header-messengers {
    justify-content: center;
    gap: 12px;
}

.mobile-menu-contacts .header-messenger {
    width: 44px;
    height: 44px;
}

@media screen and (max-width: 1279px) {
    .mobile-menu-contacts {
        display: block;
    }
}

/* Sticky CTA — мобильная конверсия */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    gap: 10px;
}

@media screen and (max-width: 767px) {
    .sticky-cta-mobile {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

.sticky-cta-call,
.sticky-cta-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

.sticky-cta-call {
    color: #4334A1;
    border: 2px solid #4334A1;
    background: #fff;
}

.sticky-cta-form {
    color: #fff !important;
    background: linear-gradient(135deg, #4334A1, #5B46D9);
}

.modal-feedback-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #666;
    text-align: center;
}
