.ofis {
  --of-zemin: 6, 16, 38;
  background: #fff;
}

:root[data-renk="c"] .ofis {
  --of-zemin: 17, 20, 24;
}

.ofis__kap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.ofis__sahne {
  position: relative;
  height: min(640px, calc(100svh - 2 * var(--bolum-bosluk)));
  min-height: 460px;
  overflow: hidden;
  border-radius: 32px;
  background: rgb(var(--of-zemin));
}

.ofis__sahne {
  background:
    radial-gradient(circle 520px at 20% 110%, rgba(245, 124, 31, 0.16), transparent 70%),
    linear-gradient(180deg, rgb(var(--of-zemin)), rgba(var(--of-zemin), 0.96));
}

.ofis__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
}

.ofis__sahne::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--of-zemin), 0.78) 0%, rgba(var(--of-zemin), 0.45) 36%, rgba(var(--of-zemin), 0) 58%);
  pointer-events: none;
}

.ofis__yazi {
  position: absolute;
  top: 50%;
  left: 56px;
  z-index: 1;
  max-width: 440px;
  transform: translateY(-50%);
}

.ofis__ust {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #F7A55C;
}

.ofis__baslik {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}

.ofis__baslik span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
}

.ofis__giris {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.ofis__adres {
  display: flex;
  flex-direction: column;
  margin: 18px 0 0;
  font-size: 17px;
  font-style: normal;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.ofis__adres b {
  font-weight: 600;
  color: #fff;
}

.ofis__dugmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ofis__dugme {
  display: inline-flex;
  border: 0;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ofis__dugme i {
  font-size: 13px;
}

.ofis__dugme--ana {
  background: #fff;
  color: #1D2228;
}

.ofis__dugme--ana:hover {
  background: #F57C1F;
  color: #fff;
}

.ofis__dugme--ikincil {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ofis__dugme--ikincil:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.ofis__dugme:focus-visible {
  outline: 2px solid #F57C1F;
  outline-offset: 3px;
}

.ofis__harita {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: min(56%, 680px);
  overflow: hidden;
  border-radius: 22px;
  background: #E9EEF5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: haritaGiris 0.5s cubic-bezier(.16, 1, .3, 1);
}

.ofis__harita[hidden] {
  display: none;
}

.ofis__harita iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes haritaGiris {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .ofis__sahne {
    height: 560px;
  }

  .ofis__foto {
    object-position: 78% 55%;
  }

  .ofis__sahne::after {
    background: linear-gradient(90deg, rgba(var(--of-zemin), 0.9) 0%, rgba(var(--of-zemin), 0.6) 45%, rgba(var(--of-zemin), 0) 75%);
  }

  .ofis__yazi {
    left: 40px;
    max-width: 330px;
  }

  .ofis__harita {
    width: 48%;
  }
}

@media (max-width: 767px) {
  .ofis__kap {
    padding: 0 16px;
  }

  .ofis__sahne {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    border-radius: 24px;
  }

  .ofis__foto {
    position: relative;
    height: auto;
    aspect-ratio: 1;
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
  }

  .ofis__sahne::after {
    content: none;
  }

  .ofis__yazi {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    padding: 4px 22px 26px;
    transform: none;
  }

  .ofis__baslik {
    font-size: 30px;
  }

  .ofis__adres,
  .ofis__giris {
    font-size: 15px;
  }

  .ofis__harita {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ofis__harita {
    animation: none;
  }
}
