/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --banner-max: 1120px;
  --slide-img-w: 250px;
  --slide-img-h: 350px;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ── Banner container ─────────────────────────────────────── */
.promo-banner {
  width: 100%;
  max-width: var(--banner-max);
  background: #f7f9fc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 40, 100, .10);
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
}

/* ── Top header ribbon ─────────────────────────────────────── */
.promo-header {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: #005ba2;
  min-height: 0;
}

.promo-header__ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dce6f0;
  border-bottom: 1px solid #c5d3e0;
  border-bottom-left-radius: 4px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #1a3a5c;
  white-space: nowrap;
}

.promo-header__ribbon a {
  color: #1a3a5c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-header__ribbon a:hover {
  color: #0050a0;
}

.promo-header__ribbon img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  margin-top: 1px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(42%) saturate(748%) hue-rotate(169deg) brightness(94%) contrast(93%);
  transition: transform .2s ease;
}

.promo-header__ribbon a:hover + img,
.promo-header__ribbon:hover img {
  transform: translateX(2px);
}

/* ── Fixed logo sidebar ───────────────────────────────────── */
.promo-logo {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #fff;
}

.promo-logo__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #1a3a5c;
  transition: opacity .2s;
}

.promo-logo__link:hover {
  opacity: .85;
}

.promo-logo__frame {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.promo-logo__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Slider section ───────────────────────────────────────── */
.promo-slider {
  grid-column: 2;
  grid-row: 2;
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 48px 40px;
  overflow: hidden;
  min-height: 380px;
  background: #005ba2;
}

.promo-slider__viewport {
  flex: 1;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.promo-slider__viewport.is-dragging {
  cursor: grabbing;
}

.promo-slider__track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* ── Individual slide ───────────────────────────────────────── */
.promo-slide {
  flex: 0 0 33.333333%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-width: 0;
}

.promo-slide__image-wrap {
  flex: 0 0 var(--slide-img-w);
  width: var(--slide-img-w);
  height: var(--slide-img-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-slide__image-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.promo-slide__image-wrap img {
  width: var(--slide-img-w);
  height: var(--slide-img-h);
  object-fit: contain;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
}

/* ── Navigation arrows ────────────────────────────────────── */
.promo-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(26, 58, 92, .12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  padding: 0;
}

.promo-slider__arrow svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promo-slider__arrow:hover {
  background: rgba(26, 58, 92, .22);
}

.promo-slider__arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.promo-slider__arrow--prev { left: 8px; }
.promo-slider__arrow--next { right: 8px; }

/* ── Pagination dots ──────────────────────────────────────── */
.promo-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.promo-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.promo-slider__dot:hover {
  background: rgba(26, 58, 92, .25);
}

.promo-slider__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet: 2 slides visible */
@media (max-width: 960px) {
  .promo-banner {
    grid-template-columns: 160px 1fr;
  }

  .promo-slide {
    flex: 0 0 50%;
  }

  .promo-logo__frame {
    width: 110px;
    height: 110px;
  }

  .promo-slider {
    padding: 16px 40px 36px;
    min-height: 340px;
  }
}

/* Mobile: stacked layout, 1 slide visible */
@media (max-width: 680px) {
  body {
    padding: 12px 8px;
    align-items: flex-start;
  }

  .promo-banner {
    border-radius: 4px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .promo-header__ribbon {
    font-size: .75rem;
    padding: 8px 12px;
    white-space: normal;
    text-align: right;
    max-width: 100%;
  }

  .promo-logo {
    grid-column: 1;
    grid-row: 1;
    border-right: none;
    border-bottom: 1px solid #d0dce8;
    padding: 16px 20px;
  }

  .promo-header {
    grid-column: 1;
    grid-row: 2;
  }

  .promo-slider {
    grid-column: 1;
    grid-row: 3;
    min-height: auto;
  }

  .promo-logo__link {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .promo-logo__frame {
    width: 160px;
    height: 60px;
    padding: 0;
    flex-shrink: 0;
  }

  .promo-slide {
    flex: 0 0 100%;
  }

  :root {
    --slide-img-w: min(250px, calc(100vw - 96px));
    --slide-img-h: calc(var(--slide-img-w) * 1.4);
  }

  .promo-slider {
    padding: 12px 44px 32px;
    min-height: calc(var(--slide-img-h) + 48px);
  }

  .promo-slider__arrow {
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
  }

  .promo-slider__arrow svg {
    width: 20px;
    height: 20px;
  }

  .promo-slider__arrow--prev { left: 4px; }
  .promo-slider__arrow--next { right: 4px; }

  .promo-slider__dots {
    bottom: 10px;
    gap: 6px;
  }

  .promo-slider__dot {
    width: 8px;
    height: 8px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .promo-header__ribbon {
    font-size: .7rem;
  }

  .promo-logo__frame {
    width: 130px;
    height: 50px;
  }

  :root {
    --slide-img-w: calc(100vw - 80px);
  }

  .promo-slider {
    padding: 10px 36px 28px;
  }
}