.dp-home-hero {
  --dp-home-hero-overlap: 74px;
  --dp-home-hero-accent: var(--dp-color-secondary-light, #d8fbff);
  position: relative;
  width: 100%;
  isolation: isolate;
  font-family: var(--dp-font-base, inherit);
  font-weight: var(--dp-font-base-weight, 400);
}

.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: var(--dp-hero-media-radius, var(--dp-radius-lg, 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: var(--dp-hero-image-radius, var(--dp-radius-md, 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: var(--dp-hero-floating-radius, var(--dp-radius-lg, 22px));
  background: var(--dp-color-surface, #ffffff);
  color: var(--dp-color-primary-dark, #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: var(--dp-color-primary, #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: var(--dp-hero-content-radius, var(--dp-radius-lg, 34px));
  background: var(--dp-gradient-primary, 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: var(--dp-radius-pill, 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;
  font-family: var(--dp-font-heading, inherit);
  font-weight: var(--dp-font-heading-weight, 700);
}

.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: var(--dp-radius-pill, 999px);
  background: var(--dp-color-primary, #1a86a2);
  color: #ffffff;
  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);
}

.dp-home-hero--visual-full .dp-home-hero__shell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 560px;
  overflow: hidden;
}

.dp-home-hero--visual-full .dp-home-hero__media {
  grid-area: 1 / 1;
  min-height: auto;
  height: 100%;
  padding: 0;
  border-radius: var(--dp-hero-media-radius, var(--dp-radius-lg, 20px));
  box-shadow: none;
  background: #d8e3e7;
}

.dp-home-hero--visual-full .dp-home-hero__media::before,
.dp-home-hero--visual-full .dp-home-hero__floating-card {
  display: none;
}

.dp-home-hero--visual-full .dp-home-hero__image {
  min-height: 100%;
  border-radius: var(--dp-hero-image-radius, var(--dp-radius-lg, 20px));
}

.dp-home-hero--visual-full .dp-home-hero__image::after {
  background:
    linear-gradient(90deg, rgba(18, 35, 44, 0.48) 0%, rgba(18, 35, 44, 0.3) 42%, rgba(18, 35, 44, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(10, 23, 31, 0.18) 100%);
}

.dp-home-hero--visual-full .dp-home-hero__content {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  align-self: stretch;
  width: min(680px, 58%);
  max-width: none;
  margin: 0 0 0 clamp(52px, 8.5vw, 150px);
  padding: clamp(44px, 6vw, 82px) 0;
  border-radius: var(--dp-hero-content-radius, var(--dp-radius-lg, 20px));
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.dp-home-hero--visual-full .dp-home-hero__content::before,
.dp-home-hero--visual-full .dp-home-hero__content::after,
.dp-home-hero--visual-full .dp-home-hero__eyebrow {
  display: none;
}

.dp-home-hero--visual-full .dp-home-hero__title {
  max-width: 100%;
  font-size: clamp(3rem, 4.1vw, 4.45rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0;
}

.dp-home-hero--visual-full .dp-home-hero__title-accent {
  margin-top: 0;
  color: inherit;
  font-weight: inherit;
}

.dp-home-hero--visual-full .dp-home-hero__description,
.dp-home-hero--visual-full .dp-home-hero__description p {
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.dp-home-hero--visual-full .dp-home-hero__actions {
  margin-top: 8px;
}

.dp-home-hero--visual-full .dp-home-hero__button {
  min-height: 50px;
  padding: 14px 30px;
  border-radius: var(--dp-radius-pill, 999px);
  background: var(--dp-color-primary, #0f8fb3);
  color: #ffffff;
  box-shadow: none;
}

@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: var(--dp-hero-media-radius, var(--dp-radius-lg, 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: var(--dp-hero-content-radius, var(--dp-radius-lg, 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;
  }

  .dp-home-hero--visual-full .dp-home-hero__content {
    width: min(620px, 64%);
    margin-left: 48px;
    padding: 48px 0;
  }

  .dp-home-hero--visual-full .dp-home-hero__title {
    font-size: clamp(2.8rem, 5.8vw, 4rem);
  }
}

@media (max-width: 767px) {
  .dp-home-hero {
    --dp-home-hero-overlap: 0px;
  }

  .dp-home-hero::before {
    display: none;
  }

  .dp-home-hero__shell {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .dp-home-hero__media {
    grid-area: 1 / 1;
    min-height: clamp(580px, 150vw, 720px);
    padding: 0;
    border-radius: var(--dp-hero-media-radius, var(--dp-radius-lg, 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 {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    align-self: stretch;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    min-height: 100%;
    padding: clamp(160px, 42vw, 220px) 20px 18px;
    border-radius: var(--dp-hero-content-radius, var(--dp-radius-lg, 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;
  }

  .dp-home-hero--visual-full .dp-home-hero__media {
    min-height: 100%;
    border-radius: var(--dp-hero-media-radius, var(--dp-radius-lg, 20px));
  }

  .dp-home-hero--visual-full .dp-home-hero__content,
  .dp-home-hero--visual-full.dp-home-hero--image-right .dp-home-hero__content {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    width: 88%;
    margin: 0;
    padding: 34px 22px;
    min-height: 100%;
    background: transparent;
    border-radius: var(--dp-hero-content-radius, var(--dp-radius-lg, 20px));
  }

  .dp-home-hero--visual-full .dp-home-hero__image::after {
    background: linear-gradient(90deg, rgba(13, 32, 43, 0.62) 0%, rgba(13, 32, 43, 0.22) 100%);
  }

  .dp-home-hero--visual-full .dp-home-hero__title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .dp-home-hero--visual-full .dp-home-hero__description,
  .dp-home-hero--visual-full .dp-home-hero__description p {
    max-width: 100%;
    font-size: 15px;
  }
}
