.dp-home-hero {
  --dp-home-hero-overlap: 74px;
  --dp-home-hero-accent: #d8fbff;
  position: relative;
  width: 100%;
  isolation: isolate;
}

.dp-home-hero::before {
  content: '';
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 136, 157, 0.18) 0%, rgba(32, 136, 157, 0) 72%);
  z-index: 0;
  pointer-events: none;
}

.dp-home-hero__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.86fr);
  align-items: stretch;
  min-height: 560px;
}

.dp-home-hero__media {
  position: relative;
  min-width: 0;
  min-height: inherit;
  display: flex;
  padding: 22px;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f2f9fb 100%);
  box-shadow: 0 28px 60px rgba(17, 59, 83, 0.12);
}

.dp-home-hero__media::before {
  content: '';
  position: absolute;
  inset: 16px auto auto 16px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(32, 136, 157, 0.12), rgba(32, 136, 157, 0));
  transform: rotate(-12deg);
  pointer-events: none;
}

.dp-home-hero__image {
  position: relative;
  flex: 1 1 auto;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #eaf3f5;
}

.dp-home-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 36, 54, 0) 22%, rgba(13, 36, 54, 0.12) 100%);
  pointer-events: none;
}

.dp-home-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--dp-home-hero-obj-x, center) var(--dp-home-hero-obj-y, center);
}

.dp-home-hero--fit-contain .dp-home-hero__image img {
  object-fit: contain;
}

.dp-home-hero__floating-card {
  position: absolute;
  left: 42px;
  bottom: 38px;
  z-index: 2;
  max-width: min(320px, calc(100% - 84px));
  padding: 18px 20px;
  border-radius: 22px;
  background: #ffffff;
  color: #1d4f67;
  box-shadow: 0 18px 40px rgba(17, 59, 83, 0.16);
}

.dp-home-hero__floating-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #218197;
}

.dp-home-hero__floating-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.dp-home-hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-left: calc(var(--dp-home-hero-overlap) * -1);
  padding: clamp(30px, 4vw, 54px);
  border-radius: 34px;
  background: linear-gradient(145deg, #2489a0 0%, #176b83 100%);
  color: #ffffff;
  box-shadow: 0 30px 60px rgba(17, 59, 83, 0.24);
  overflow: hidden;
}

.dp-home-hero__content::before {
  content: '';
  position: absolute;
  top: 26px;
  right: 26px;
  width: 118px;
  height: 118px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.8;
  pointer-events: none;
}

.dp-home-hero__content::after {
  content: '';
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
  pointer-events: none;
}

.dp-home-hero--image-right .dp-home-hero__media {
  order: 2;
}

.dp-home-hero--image-right .dp-home-hero__content {
  order: 1;
  margin-left: 0;
  margin-right: calc(var(--dp-home-hero-overlap) * -1);
}

.dp-home-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.dp-home-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.dp-home-hero__title-main,
.dp-home-hero__title-accent {
  display: block;
}

.dp-home-hero__title-accent {
  margin-top: 10px;
  color: var(--dp-home-hero-accent);
  font-weight: 800;
}

.dp-home-hero__description,
.dp-home-hero__description p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.dp-home-hero__description p + p {
  margin-top: 12px;
}

.dp-home-hero__actions {
  position: relative;
  z-index: 1;
  display: block;
}

.dp-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #176b83;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(12, 35, 51, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dp-home-hero__button:hover,
.dp-home-hero__button:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(12, 35, 51, 0.2);
}

@media (max-width: 1024px) {
  .dp-home-hero {
    --dp-home-hero-overlap: 42px;
  }

  .dp-home-hero__shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    min-height: 480px;
  }

  .dp-home-hero__media {
    padding: 18px;
    border-radius: 30px;
  }

  .dp-home-hero__floating-card {
    left: 28px;
    bottom: 28px;
    max-width: min(260px, calc(100% - 56px));
  }

  .dp-home-hero__content {
    gap: 16px;
    padding: clamp(24px, 3vw, 38px);
    border-radius: 28px;
  }

  .dp-home-hero__title {
    font-size: clamp(1.95rem, 4vw, 3rem);
  }

  .dp-home-hero__description,
  .dp-home-hero__description p {
    font-size: 16px;
    line-height: 1.55;
  }
}

@media (max-width: 767px) {
  .dp-home-hero {
    --dp-home-hero-overlap: 0px;
  }

  .dp-home-hero::before {
    display: none;
  }

  .dp-home-hero__shell {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .dp-home-hero__media {
    min-height: 520px;
    padding: 0;
    border-radius: 24px;
  }

  .dp-home-hero__media::before {
    display: none;
  }

  .dp-home-hero__image {
    border-radius: inherit;
  }

  .dp-home-hero__image::after {
    background:
      linear-gradient(
        180deg,
        rgba(6, 22, 32, 0.08) 0%,
        rgba(10, 34, 48, 0.18) 24%,
        rgba(12, 45, 64, 0.62) 62%,
        rgba(15, 92, 113, 0.96) 100%
      );
  }

  .dp-home-hero__floating-card {
    display: none;
  }

  .dp-home-hero--image-right .dp-home-hero__media,
  .dp-home-hero--image-right .dp-home-hero__content {
    order: initial;
  }

  .dp-home-hero__content,
  .dp-home-hero--image-right .dp-home-hero__content {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    min-height: 100%;
    padding: 220px 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 68, 85, 0) 0%, rgba(18, 68, 85, 0.1) 28%, rgba(18, 68, 85, 0.78) 68%, rgba(18, 68, 85, 0.96) 100%);
    box-shadow: none;
  }

  .dp-home-hero__content::before {
    display: none;
  }

  .dp-home-hero__content::after {
    display: none;
  }

  .dp-home-hero__eyebrow {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
  }

  .dp-home-hero__title {
    font-size: clamp(2rem, 8vw, 2.85rem);
    line-height: 1.02;
    max-width: 12ch;
  }

  .dp-home-hero__description,
  .dp-home-hero__description p {
    max-width: 32ch;
    font-size: 15px;
    line-height: 1.55;
  }

  .dp-home-hero__actions {
    margin-top: 6px;
  }

  .dp-home-hero__button {
    min-height: 46px;
    width: auto;
    padding: 12px 18px;
  }
}
