/* Header styles for Plus Delivery */
.header {
    background-color: #1f1f1f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    z-index: 100;
    width: 100%;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    gap: 24px;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__left a {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.header__logo {
    height: 100%;
    max-height: 100px;
    width: auto;
    max-width: 140px;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: 0;
    object-fit: contain;
    display: block;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__calculator-block {
    display: flex;
    align-items: center;
}

.service__price-button.calculator-button {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #FF2D2D;
    border-radius: 8px;
    border: 2px solid #FF2D2D;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 2px;
    cursor: pointer;
    font-size: 0;
}

.service__price-button.calculator-button:hover {
    background: #FF2D2D;
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.15);
}

.service__price-button.calculator-button svg {
    width: 38px;
    height: 38px;
    display: block;
}

.header__phone {
    display: flex;
    align-items: center;
    border-left: 1px solid #666;
    padding-left: 16px;
    margin-left: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    color: #fff;
}

.header__phone:hover {
    color: #FF0000;
}

.header__nav-link {
    font-size: 18px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.header__nav-link:hover {
    color: #FF0000;
}

.header__back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid #FF2D2D;
    border-radius: 50%;
    color: #FF2D2D;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255,0,0,0.08);
    outline: none;
}

.header__back-button:hover {
    background: #FF2D2D;
    color: #fff;
    border-color: #FF2D2D;
}

.header__back-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    margin: 0 auto;
    transition: color 0.2s;
}

@media (max-width: 991px) {
    .header__container {
        padding: 10px 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .header__left {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .header__logo {
        height: 40px;
        max-width: 80px;
    }

    .header__brand {
        display: none;
    }

    .header__nav {
        display: none;
    }

    .header__right {
        flex: 0 0 auto;
    }

    .header__phone {
        font-size: 14px;
        padding-left: 10px;
        margin-left: 10px;
        border-left: none;
    }

    .header__burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        margin-left: 10px;
    }

    .header__burger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: all 0.3s ease;
    }

    .header__burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #1f1f1f;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav-link {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    .mobile-menu .header__phone {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .header__container {
        padding: 8px 15px;
    }

    .header__logo {
        height: 35px;
        max-width: 70px;
    }

    .header__phone {
        font-size: 13px;
    }

    .header__burger {
        width: 22px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    body.delivery-page .header__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }
    body.delivery-page .header__left {
        display: flex;
        align-items: center;
    }
    body.delivery-page .header__logo {
        max-width: 60px;
        height: 26px;
        margin-left: 10px !important;
    }
    body.delivery-page .header__right {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    body.delivery-page .header__divider {
        width: 1.5px;
        height: 28px;
        background: rgba(255,255,255,0.6);
        border-radius: 2px;
        margin: 0 10px;
    }
    body.delivery-page .header__phone {
        font-size: 13px;
        margin-right: 8px;
        padding-left: 0;
    }
    body.purchase-page .header__logo {
        height: 60px !important;
        max-width: 120px !important;
        width: auto !important;
        margin-left: 0 !important;
    }
}

/* Для страницы delivery на мобильных */
@media (max-width: 480px) {
    body.delivery-page .header__logo {
        max-width: 60px;
        height: 26px;
        margin-left: 10px !important;
    }
} 