/* =========================
   Hero
========================= */

.hero-section {
  background: #eef8ff;
}

.hero-grid {
  min-height: auto;
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 36px;
}

.hero-content {
  align-self: center;
  transform: translateY(10px);
}

.hero-content h1 {
  max-width: 430px;
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-content p {
  margin: 16px 0 0;
  color: #606060;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-image {
  height: 430px;
  position: relative;
}

.hero-main-image,
.hero-image .placeholder-image {
  position: absolute;
  right: 0;
  width: 94%;
  height: 100%;
  border-radius: 24px;
}

.hero-main-image {
  object-fit: contain;
  object-position: center bottom;
}

.hero-image .placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   Devices
========================= */

.devices-section {
  overflow: visible;
  background: #f9fbff;
}

.devices-row {
  display: flex;
  gap: 24px;
  margin-left: -78px;
  margin-right: -78px;
  padding: 12px 78px;
  width: auto;
  overflow-x: auto;
  overflow-y: visible;
  scroll-padding-left: 78px;
  scrollbar-width: none;
}

.devices-row::-webkit-scrollbar {
  display: none;
}

.device-card {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  height: 400px;
  min-height: 400px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  background: #ffffff;
  transition: 0.2s ease;
}

.device-card:hover {
  transform: translateY(-6px);
  border-color: #d5edff;
  background: #eef8ff;
  box-shadow: 0 18px 44px rgba(106, 170, 215, 0.22);
}

.device-card span {
  position: absolute;
  left: 22px;
  top: 40px;
  z-index: 2;
  max-width: calc(100% - 44px);
  color: #111111;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.device-image {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 254px;
  height: 254px;
  margin: 0;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
}

.device-image img {
  width: 254px;
  height: 254px;
  object-fit: contain;
  object-position: center center;
}

.device-image img[src*="device-airpods"] {
  transform: scale(0.72);
  transform-origin: center center;
}

@media (min-width: 1530px) {
  .devices-row {
    justify-content: center;
    overflow-x: visible;
  }
}
