/* ================= HEADER ================= */

.header {
    width: 100%;
    padding: 16px 0;
    margin-top: -8px;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
}

/* ================= LOGO ================= */

.logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= ACTIONS (RIGHT SIDE GROUP) ================= */

.header-actions {
    margin-left: auto;          /* 🔥 pushes to right */
    display: flex;
    align-items: center;
    gap: 16px;                  /* space between buttons */
    flex-wrap: nowrap;          /* NEVER stack */
}

/* ================= BUTTONS ================= */

.header-link,
.header-phone {
    height: 48px;
    padding: 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);

    flex-shrink: 0;
}

/* ================= TEXT ================= */

.header-link span,
.header-phone span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: #0A2F2F;
    white-space: nowrap;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

    .header-link,
    .header-phone {
        height: 42px;
        padding: 0 20px;
        border-radius: 10px;
    }

    .header-link span,
    .header-phone span {
        font-size: 13px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 400px) {

    .header-container {
        width: 100vw;
        max-width: 100%;
        padding: 0 12px;
        margin: 0;

        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .logo-frame {
        width: 50px;
        height: 50px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-link,
    .header-phone {
        height: 34px;
        padding: 0 8px;
    }

    .header-link span,
    .header-phone span {
        font-size: 9.5px;
    }
    
    .header-actions {
        margin-left: auto !important; /* 🔥 force right */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

/* ================= HOVER ================= */

.header-link,
.header-phone {
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.header-link:hover,
.header-phone:hover {
    background: rgba(10, 47, 47, 0.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}
