body {
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 14px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Golos Text', sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 5rem;
  font-weight: 700;
}
h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.container {
  width: 100%;
  height: 100%;
  width: 100%;
  display: flex;
}

.box {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  text-decoration: none;
  display: flex;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: inherit;
  background-position: inherit;
  background-image: inherit;
  transform: scale(1);
  transition: transform 0.3s ease;
  z-index: 1;
}

.box:after {
  content: '';
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.box:hover {
  filter: grayscale(0%);
}

.box:hover::after {
  opacity: 0;
}

.box:hover::before {
  transform: scale(1.1);
}

.box h2,
.box p {
  color: white;
}

.text-overlay {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  height: 100%;
  transition: clip-path 0.3s ease;
}

.text-overlay .content {
  padding: 2rem;
  z-index: 6;
  position: relative;
}

.text-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, black, transparent);
  z-index: 5;
}

.text-overlay:hover::before {
  clip-path: inset(10px 10px 10px 10px round 5px);
}

.glass-bg {
  background: url('./images/glass.webp') no-repeat center center/cover;
}

.transport-bg {
  background: url('./images/transport.jpg') no-repeat center center/cover;
}

.wood-bg {
  background: url('./images/wood.png') no-repeat center center/cover;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  h2 {
    font-size: 2rem;
  }
}
