/* =========================================================
   ШАПКА
========================================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #d9d9d9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 25px;
}

.header .container {
    padding: 0 ;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

/* =========================================================
   ЛЕВАЯ ЧАСТЬ: БУРГЕР + ЛОГОТИП (МОНОЛИТ)
========================================================= */

.header__left {
    display: flex;
    align-items: center;
    gap: 0px;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
    min-width: 280px;
    min-height: 55px;
    margin-left: 0;
}

/* При открытом меню — меняем фон и рамку */
.header__left.active {
    border-color: #d9d9d9;
    background: #d9d9d9;
}

/* ===== БУРГЕР-КНОПКА ===== */
.navbar-toggler {
    border: none;
    border-radius: 15px;
    width: 44px;
    height: 44px;
    background: #f25336;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0;
}

.navbar-toggler:hover {
    background: #f25336;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Иконка бургера — БЕЛАЯ */
.navbar-toggler .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler .navbar-toggler-icon::after {
    top: 7px;
}



/* ===== ЛОГОТИП ===== */
.navbar-brand.logo {
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 0 0 auto;
    width: 200px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.navbar-brand.logo:hover {
    background: rgba(0, 0, 0, 0.03);
}

.navbar-brand.logo img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    padding: 4px 16px;
}

.navbar-brand.logo:hover img {
    transform: scale(1.02);
}

/* =========================================================
   ВЫПАДАЮЩЕЕ МЕНЮ
========================================================= */

.mobile-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    min-width: 280px;
    max-width: 280px;
    border: 2px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 16px 16px;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: #ffffff;
    z-index: 1;
    border-radius: 0;
}

/* При открытом меню — фон серый, рамка серая */
.mobile-menu-wrapper.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    border-color: #d9d9d9;
    background: #d9d9d9;
}

.mobile-menu-wrapper.active::before {
    background: #d9d9d9;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-list .nav-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.mobile-menu-list .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px !important;
    background: transparent;
    color: #020103;
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 20px;
    border-radius: 0;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mobile-menu-list .nav-link:hover,
.mobile-menu-list .nav-link:focus {
    background: rgba(0, 0, 0, 0.05);
    color: #020103;
}

/* При открытом меню — текст БЕЛЫЙ */
.mobile-menu-wrapper.active .mobile-menu-list .nav-link {
    color: #ffffff;
}

.mobile-menu-wrapper.active .mobile-menu-list .nav-link:hover,
.mobile-menu-wrapper.active .mobile-menu-list .nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* =========================================================
   ПРАВАЯ ЧАСТЬ: КОНТАКТЫ
========================================================= */

.header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    flex-shrink: 0;
}

.header__phone,
.header__email {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.header__phone {
    color: #111111;
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.header__email {
    color: #f25336;
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.header__icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eeeeee;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ffffff;
    transition: none;
}

.header__icon img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
    transition: none;
    scale: 1.5;
}

/* =========================================================
   ОСНОВНОЕ МЕНЮ (ПК)
========================================================= */

.desktop-menu {
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.desktop-menu .nav-link {
    background: #d5d5d5;
    color: #000000;
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 0 16px !important;
    border-radius: 30px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.desktop-menu .nav-link:hover,
.desktop-menu .nav-link:focus {
    background: #ea5536;
    color: #ffffff;
}
/* =========================================================
   КНОПКА В МОБИЛЬНОМ МЕНЮ
========================================================= */

.mobile-menu-list .nav-link.btn-offer {
    background: #f25336;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 24px !important;
    border-radius: 30px;
    margin-top: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
    justify-content: center;
    white-space: normal; /* ← чтобы текст переносился */
}

.mobile-menu-list .nav-link.btn-offer:hover,
.mobile-menu-list .nav-link.btn-offer:focus {
    background: #d9442a;
    transform: scale(1.02);
}

/* При открытом меню — кнопка остаётся оранжевой с белым текстом */
.mobile-menu-wrapper.active .mobile-menu-list .nav-link.btn-offer {
    background: #f25336;
    color: #ffffff;
}

.mobile-menu-wrapper.active .mobile-menu-list .nav-link.btn-offer:hover,
.mobile-menu-wrapper.active .mobile-menu-list .nav-link.btn-offer:focus {
    background: #d9442a;
    color: #ffffff;
}

/* =========================================================
   АДАПТИВ
========================================================= */

/* === ПК: 1246px и больше (полная версия) === */
@media (min-width: 1246px) {
    /* Всё в базовом стиле, ничего не меняем */
}

/* === Маленькие ноутбуки: 992-1245px === */
@media (min-width: 992px) and (max-width: 1245px) {
    .header__left {
        min-width: 240px;
        min-height: 48px;
        border-radius: 20px 20px 0 0;

    }
    .navbar-toggler {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .navbar-toggler .navbar-toggler-icon {
        width: 16px;
    }
    .navbar-toggler .navbar-toggler-icon::before,
    .navbar-toggler .navbar-toggler-icon::after {
        width: 16px;
    }
    .navbar-toggler .navbar-toggler-icon::before {
        top: -6px;
    }
    .navbar-toggler .navbar-toggler-icon::after {
        top: 6px;
    }
    .navbar-brand.logo {
        width: 160px;
        height: 38px;
    }
    .navbar-brand.logo img {
        max-width: 240px;
        min-width: 200px;
        padding: 3px 12px;
    }
    .desktop-menu {
        gap: 10px;
    }
    .desktop-menu .nav-link {
        font-size: 11px;
        padding: 0 10px !important;
        height: 28px;
        border-radius: 20px;
    }
    .header__phone {
        font-size: 16px;
    }
    .header__email {
        font-size: 10px;
    }
    .header__icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }
    .header__icon img {
        width: 14px;
        height: 14px;
        scale: 1.2;
    }
    .mobile-menu-wrapper {
        min-width: 240px;
        max-width: 240px;
        border-radius: 0 0 14px 14px;
    }
    .mobile-menu-list .nav-link {
        font-size: 18px;
        padding: 10px 16px !important;
    }
    .mobile-menu-list .nav-link.btn-offer{
        font-size: 10px;
    }
}

/* === Планшеты: 768-991px === */
@media (min-width: 768px) and (max-width: 991px) {
    .desktop-menu {
        display: none !important;
        gap: 8px;
    }
    .desktop-menu .nav-link {
        font-size: 10px;
        padding: 0 8px !important;
        height: 26px;
        border-radius: 16px;
    }
    .header__left {
        min-width: 220px;
        min-height: 44px;
        border-radius: 18px 18px 0 0;
    }
    .navbar-toggler {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .navbar-toggler .navbar-toggler-icon {
        width: 15px;
    }
    .navbar-toggler .navbar-toggler-icon::before,
    .navbar-toggler .navbar-toggler-icon::after {
        width: 15px;
    }
    .navbar-toggler .navbar-toggler-icon::before {
        top: -5px;
    }
    .navbar-toggler .navbar-toggler-icon::after {
        top: 5px;
    }
    .navbar-brand.logo {
        width: 140px;
        height: 36px;
    }
    .navbar-brand.logo img {
        max-width: 180px;
        min-width: 180px;
        padding: 2px 10px;
    }
    .header__phone {
        font-size: 14px;
    }
    .header__email {
        font-size: 9px;
    }
    .header__icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
    .header__icon img {
        width: 12px;
        height: 12px;
        scale: 1.2;
    }
    .mobile-menu-wrapper {
        min-width: 220px;
        max-width: 220px;
        border-radius: 0 0 12px 12px;
    }
    .mobile-menu-list .nav-link {
        font-size: 16px;
        padding: 8px 14px !important;
    }
    .mobile-menu-list .nav-link.btn-offer{
        font-size: 8px;
    }
}

/* === Мобильные: до 767px === */
@media (max-width: 767px) {
    .desktop-menu {
        display: none !important;
    }
    .header__left {
        min-width: 180px;
        min-height: 40px;
        border-radius: 16px 16px 0 0;
    }
    .header .container {
        padding: 0 ;
    }
    .navbar-toggler {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .navbar-toggler .navbar-toggler-icon {
        width: 14px;
    }
    .navbar-toggler .navbar-toggler-icon::before,
    .navbar-toggler .navbar-toggler-icon::after {
        width: 14px;
    }
    .navbar-toggler .navbar-toggler-icon::before {
        top: -5px;
    }
    .navbar-toggler .navbar-toggler-icon::after {
        top: 5px;
    }
    .navbar-brand.logo {
        width: 120px;
        height: 34px;
    }
    .navbar-brand.logo img {
        max-width: 150px;
        min-width: 150px;
        padding: 2px 8px;
    }
    .mobile-menu-wrapper {
        min-width: 180px;
        max-width: 180px;
        left: 0;
        border-radius: 0 0 12px 12px;
    }
    .mobile-menu-list .nav-link {
        font-size: 14px;
        padding: 8px 14px !important;
    }
    .header__right {
        gap: 0px;
        flex-direction: column;
        align-items: flex-start;
    }
    .header__phone {
        font-size: 12px;
    }
    .header__email {
        font-size: 8px;
    }
    .header__icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
    .header__icon img {
        width: 10px;
        height: 10px;
        scale: 1.2;
    }
    .mobile-menu-list .nav-link.btn-offer{
        font-size: 8px;
    }
}

/* === Маленькие телефоны: до 480px === */
@media (max-width: 480px) {
    .header__left {
        min-width: 143.36px;
        max-width: 150px;
        min-height: 34px;
        border-radius: 12px 12px 0 0;
    }
    .navbar-toggler {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
    .navbar-toggler .navbar-toggler-icon {
        width: 12px;
    }
    .navbar-toggler .navbar-toggler-icon::before,
    .navbar-toggler .navbar-toggler-icon::after {
        width: 12px;
    }
    .navbar-toggler .navbar-toggler-icon::before {
        top: -4px;
    }
    .navbar-toggler .navbar-toggler-icon::after {
        top: 4px;
    }
    .navbar-brand.logo {
        width: 100px;
        height: 28px;
    }
    .navbar-brand.logo img {
        max-width: 115px;
        min-width: 115px;
        padding: 2px 6px;
    }
    .mobile-menu-wrapper {
        min-width: 10px;
        max-width: 143.36px;
        border-radius: 0 0 10px 10px;
    }
    .mobile-menu-list .nav-link {
        font-size: 12px;
        padding: 6px 12px !important;
    }
    .header__phone {
        font-size: 10px;
    }
    .header__email {
        font-size: 7px;
    }
    .header__icon {
        width: 16px;
        height: 16px;
        margin-right: 3px;
    }
    .header__icon img {
        width: 8px;
        height: 8px;
        scale: 1;
    }
}

/* =========================================================
   ОТСТУП ДЛЯ КОНТЕНТА
========================================================= */
main {
    padding-top: 100px;
}