.home-duo-cards,
.home-duo-cards * {
  box-sizing: border-box;
}

.home-duo-section {
  margin: 24px 0 0;
  padding: 34px 0 32px;
  border-top: 1px solid rgba(15, 96, 150, 0.12);
  border-bottom: 0;
  background: #fff;
}

#service-lnd[hidden],
#service-core[hidden],
.service-separator[hidden] {
  display: none !important;
}

.home-duo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 0;
}

.home-duo-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(15, 96, 150, 0.18);
  border-radius: 10px;
  background: #182535;
  isolation: isolate;
}

.home-duo-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-duo-card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 22, 31, 0.9) 0%, rgba(11, 22, 31, 0.73) 48%, rgba(11, 22, 31, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 16, 23, 0.62), transparent 58%);
}

.home-duo-card__content {
  display: flex;
  width: min(520px, 82%);
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 38px;
  color: #fff;
}

.home-duo-card__kicker {
  margin: 0 0 10px;
  color: #ff772e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-duo-card h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(28px, 2.35vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.home-duo-card__content > p:not(.home-duo-card__kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.48;
}

.home-duo-card__content > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: #fff;
  background: rgba(15, 96, 150, 0.9);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: background 180ms ease, transform 180ms ease;
}

.home-duo-card__content > a:hover {
  color: #fff;
  background: #0b4b78;
  transform: translateY(-2px);
}

.home-duo-card:hover > img {
  transform: scale(1.025);
}

body.edit-mode .home-duo-section > .edit-controls,
body.edit-mode .home-duo-cards > .edit-controls,
body.edit-mode .home-duo-card > .edit-controls,
body.edit-mode .home-duo-card > .element-controls,
body.edit-mode .home-duo-card > img + .element-controls {
  display: none !important;
}

body.edit-mode .home-duo-card__content {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

body.edit-mode .home-duo-card__shade {
  z-index: 1;
  pointer-events: none;
}

body.edit-mode .home-duo-card__content [contenteditable="true"] {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: text;
}

body.edit-mode .home-duo-card > img.admin-photo-active {
  z-index: 0;
}

@media (max-width: 900px) {
  .home-duo-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-duo-card,
  .home-duo-card__content {
    min-height: 350px;
  }

  .home-duo-card__content {
    width: 100%;
    justify-content: flex-end;
    padding: 28px 22px;
  }

  .home-duo-card__shade {
    background: linear-gradient(0deg, rgba(8, 16, 23, 0.94) 0%, rgba(8, 16, 23, 0.42) 82%, rgba(8, 16, 23, 0.16) 100%);
  }
}
