.bvgn-hml {
  --bvgn-hml-blue: #163f73;
  --bvgn-hml-blue-deep: #0d2c52;
  --bvgn-hml-accent: #1f5fa8;
  --bvgn-hml-accent-deep: #184f8d;
  --bvgn-hml-ice: #eef6fb;
  --bvgn-hml-line: rgba(22, 63, 115, 0.12);
  --bvgn-hml-shadow: 0 20px 50px rgba(7, 31, 58, 0.10);
  --bvgn-hml-text: #17324f;
  --bvgn-hml-muted: #5a7088;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 8px 28px;
  width: 100%;
  box-sizing: border-box;
}

.bvgn-hml__header {
  margin-bottom: 24px;
}

.bvgn-hml__title {
  margin: 0;
  color: var(--bvgn-hml-blue);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-align: center;
}

.bvgn-hml__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bvgn-hml__note,
.bvgn-hml__empty {
  margin: 18px auto 0;
  max-width: 860px;
  color: var(--bvgn-hml-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.bvgn-hml-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--bvgn-hml-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(226, 241, 250, 0.9), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: var(--bvgn-hml-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.bvgn-hml-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(7, 31, 58, 0.15);
  border-color: rgba(22, 63, 115, 0.22);
}

.bvgn-hml-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bvgn-hml-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bvgn-hml-blue);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bvgn-hml-card__badge--ghost {
  background: rgba(22, 63, 115, 0.08);
  color: var(--bvgn-hml-blue);
}

.bvgn-hml-card__carousel {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.bvgn-hml-card__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bvgn-hml-card__slides {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
}

.bvgn-hml-card__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.bvgn-hml-card__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.bvgn-hml-card__image {
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 8px;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
}

.bvgn-hml-card__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  padding-top: 12px;
}

.bvgn-hml-card__dots.is-placeholder {
  visibility: hidden;
}

.bvgn-hml-card__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 63, 115, 0.22);
  transition: transform 180ms ease, background-color 180ms ease, width 180ms ease;
}

.bvgn-hml-card__dot.is-active {
  width: 20px;
  background: var(--bvgn-hml-blue);
}

.bvgn-hml-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 16px 6px 4px;
}

.bvgn-hml-card__title {
  margin: 0;
  color: var(--bvgn-hml-text);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bvgn-hml-card__subtitle {
  margin: 0;
  color: var(--bvgn-hml-muted);
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: center;
}

.bvgn-hml-card__price {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 4px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 95, 168, 0.08) 0%, rgba(31, 95, 168, 0.03) 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 95, 168, 0.08);
}

.bvgn-hml-card__price-value {
  color: #0f4d8f;
  font-size: 1.34rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bvgn-hml-card__price-note {
  color: #3d6a99;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-weight: 700;
}

.bvgn-hml-card__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bvgn-hml-accent) 0%, var(--bvgn-hml-accent-deep) 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(24, 79, 141, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.bvgn-hml-card__button:visited,
.bvgn-hml-card__button:hover,
.bvgn-hml-card__button:active,
.bvgn-hml-card__button:focus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.bvgn-hml-card__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(24, 79, 141, 0.28);
}

.bvgn-hml-card__button:focus-visible,
.bvgn-hml-card__dot:focus-visible {
  outline: 2px solid #7cc8ff;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .bvgn-hml__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .bvgn-hml {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bvgn-hml__grid {
    gap: 18px;
  }

  .bvgn-hml-card {
    padding: 12px;
  }

  .bvgn-hml-card__slides {
    min-height: 220px;
  }

  .bvgn-hml-card__image {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    margin: 14px;
    max-width: calc(100% - 28px);
    max-height: calc(100% - 28px);
  }

  .bvgn-hml-card__title {
    font-size: 1.15rem;
  }

  .bvgn-hml-card__price-value {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .bvgn-hml {
    max-width: none;
    padding: 8px 0 18px;
  }

  .bvgn-hml__header {
    margin-bottom: 12px;
  }

  .bvgn-hml__title {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 0.98;
    text-align: left;
    letter-spacing: -0.05em;
    padding: 0 4px;
  }

  .bvgn-hml__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bvgn-hml-card {
    padding: 7px;
    border-radius: 16px;
  }

  .bvgn-hml-card__top {
    gap: 6px;
    margin-bottom: 8px;
  }

  .bvgn-hml-card__badge {
    min-height: 28px;
    font-size: 0.72rem;
    padding: 5px 9px;
  }

  .bvgn-hml-card__slides {
    aspect-ratio: 1 / 0.88;
    min-height: 120px;
    border-radius: 14px;
  }

  .bvgn-hml-card__carousel {
    border-radius: 14px;
  }

  .bvgn-hml-card__body {
    gap: 5px;
    padding: 8px 0 0;
  }

  .bvgn-hml-card__title {
    font-size: 0.82rem;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .bvgn-hml-card__subtitle {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .bvgn-hml-card__price {
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
  }

  .bvgn-hml-card__price-value {
    font-size: 0.98rem;
  }

  .bvgn-hml-card__price-note {
    font-size: 0.52rem;
  }

  .bvgn-hml-card__button {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .bvgn-hml-card__dots {
    gap: 6px;
    min-height: 16px;
    padding-top: 7px;
  }

  .bvgn-hml-card__dot {
    width: 6px;
    height: 6px;
  }

  .bvgn-hml-card__dot.is-active {
    width: 16px;
  }

  .bvgn-hml__note,
  .bvgn-hml__empty {
    margin-top: 12px;
    font-size: 0.82rem;
    text-align: left;
    padding: 0 4px;
  }
}

@media (max-width: 389px) {
  .bvgn-hml {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .bvgn-hml__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .bvgn-hml-card {
    padding: 6px;
  }

  .bvgn-hml-card__slides {
    aspect-ratio: 1 / 0.9;
    min-height: 104px;
  }

  .bvgn-hml-card__badge {
    min-height: 24px;
    font-size: 0.64rem;
    padding: 4px 8px;
  }

  .bvgn-hml-card__title {
    font-size: 0.74rem;
  }

  .bvgn-hml-card__price {
    gap: 5px;
    min-height: 28px;
    padding: 5px 8px;
  }

  .bvgn-hml-card__price-value {
    font-size: 0.86rem;
  }

  .bvgn-hml-card__price-note {
    font-size: 0.48rem;
  }

  .bvgn-hml-card__button {
    min-height: 34px;
    font-size: 0.62rem;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bvgn-hml-card,
  .bvgn-hml-card__slide,
  .bvgn-hml-card__button,
  .bvgn-hml-card__dot {
    transition: none;
  }
}
