body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  flex-direction: row;
}

.column {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.column1::before,
.column2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.7s cubic-bezier(0.4,0.3,0.2,1);
  will-change: transform;
}

.column1::before {
  background-image: url('obrazy/tlo_naslodko.jpg');
}

.column2::before {
  background-image: url('obrazy/tlo_naslono.jpg');
}

.column:hover::before {
  transform: scale(1.1);
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image {
  /* zostaw puste lub np. nadpisuj, jeśli chcesz inne obrazki w środku */
}

/* Responsywność: do 1024px układ w kolumnie */
@media (max-width: 1024px) {
  html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }
  .container {
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
  }
  .column {
    width: 100vw;
    height: 50vh;
    min-height: 50vh;
    max-height: none;
  }
}