.kastid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 3.5rem clamp(1.5rem, 5vw, 5rem);
}

.kast {
  display: flex;
  background-color: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kast:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.kast__pilt {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.kast__pilt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.kast__pilt.lotta img{
  object-position: center 30%;
}

.kast:hover .kast__pilt img {
  transform: scale(1.04);
}

.kast__sisu {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem 2.25rem;
}

.kast__pealkiri {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.kast__tekst {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

.hero__bg {
    filter: none;
    object-position: center 65%;

}


@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .navbar__logo {
    font-size: 1.15rem;
  }

  .navbar__nav {
    gap: 1rem;
  }

  .navbar__nav a {
    font-size: 0.85rem;
  }

  .hero {
    height: 400px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__links {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .kast,
  .kast--reverse {
    flex-direction: column;
  }

  .kast__pilt {
    min-height: 240px;
    flex: none;
  }

  .kast__sisu {
    padding: 2rem 1.5rem 2.5rem;
  }

  .kast--reverse .kast__sisu {
    background-color: var(--color-bg);
  }
    .kastid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 2.5rem;
    gap: 1.75rem;
  }
}