footer { display: flex; /* включаем flex-контейнер */ /* [web:7] */ justify-content: flex-end; /* весь контент прижать вправо */ /* [web:7] */ position: relative; margin-top: 130px; background-color: #E2E2E2; margin-top: 400px; padding: 10px; width: 100%; overflow: visible; } .footer-content{ display: flex; gap: 25px; flex-direction: column; margin-right: 120px; padding: 50px; } footer::after{ content: ""; position: absolute; left: 0; /* прижали к левому краю */ /* [web:61] */ right: auto; /* на всякий случай сбросили */ /* [web:62] */ top: 0; transform: translate(0, -60%); /* только вверх, без сдвига влево */ /* [web:42][web:45] */ width: clamp(320px, 80vw, 1425px); height: calc(clamp(320px, 80vw, 1425px) * (510 / 1425)); background-size: contain; background: url('/footer.svg') no-repeat; background-size: contain; background-position: left top; /* совпадает с left:0 */ /* [web:66] */ pointer-events: none; z-index: 0; } .to-top { position: absolute; right: 20%; top: 0; transform: translate(-50%, -50%); /* половина кнопки за пределами футера */ display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; background: #22353A; color: #fff; text-decoration: none; z-index: 10; cursor: pointer; } @media (max-width: 767px) { footer{ margin-top: 70px; width: 100%; max-width: 100%; } .footer-content{ width: 100%; } footer::after{ background: url("public/footer-mob.svg") no-repeat; transform: translate(0, -26%); } .to-top { right: 5%; } }