@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');
/* ───────────────────────────────────────────────────────────────────────────
   bobrcraft-banner-app.css — styles for the BobrCraft App-CTA banner
   (banner_id=13, layout_template='app_v1').
   NOTE: @import above adds Sora + DM Sans (used by the mega-menu app-promo banner,
   .mmx-ab-*). Gunterz @font-face below is shared with .mmx-ab-headline. This file is
   loaded globally from common/header.twig, so the mega menu has these fonts everywhere.

   Scoped via .bbr-app-banner so this never leaks into other banner instances
   or generic .otb-* slider markup. Figma source nodes:
   - Desktop: 160:23339 (slide '4' inside Hero carousel, 1920×800)
   - Mobile:  1767:153522 (Hero Mobile, 375×500)

   Breakpoints follow the existing home banner #8: mobile ≤576, laptop ≤992,
   desktop ≥992 (matches OneTap convention + Figma frame sizes).
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Gunterz — 4 отдельных семейства (Regular / Medium / Bold / Black),
       каждое с normal + italic. Папки в /image/onetap_fonts/ конвенционно
       соответствуют family-name → admin font-picker показывает каждое отдельно.
       Backward compat: 'Gunterz' (legacy) сопоставлен с 'Gunterz Medium'. */
/* Gunterz Regular */
@font-face { font-family:'Gunterz Regular'; font-style:normal; font-weight:400;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Regular/Gunterz-Regular.otf') format('opentype'); font-display:swap; }
@font-face { font-family:'Gunterz Regular'; font-style:italic; font-weight:400;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Regular/Gunterz-Italic.otf') format('opentype'); font-display:swap; }
/* Gunterz Medium */
@font-face { font-family:'Gunterz Medium'; font-style:normal; font-weight:500;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Medium/Gunterz-Medium.otf') format('opentype'); font-display:swap; }
@font-face { font-family:'Gunterz Medium'; font-style:italic; font-weight:500;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Medium/Gunterz-MediumItalic.otf') format('opentype'); font-display:swap; }
/* Gunterz Bold */
@font-face { font-family:'Gunterz Bold'; font-style:normal; font-weight:700;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Bold/Gunterz-Bold.otf') format('opentype'); font-display:swap; }
@font-face { font-family:'Gunterz Bold'; font-style:italic; font-weight:700;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Bold/Gunterz-BoldItalic.otf') format('opentype'); font-display:swap; }
/* Gunterz Black */
@font-face { font-family:'Gunterz Black'; font-style:normal; font-weight:900;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Black/Gunterz-Black.otf') format('opentype'); font-display:swap; }
@font-face { font-family:'Gunterz Black'; font-style:italic; font-weight:900;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Black/Gunterz-BlackItalic.otf') format('opentype'); font-display:swap; }
/* Legacy 'Gunterz' alias → Medium (для совместимости с банерами .bca-headline). */
@font-face { font-family:'Gunterz'; font-style:normal; font-weight:500;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Medium/Gunterz-Medium.otf') format('opentype'); font-display:swap; }
@font-face { font-family:'Gunterz'; font-style:italic; font-weight:500;
  src:url('../../../../../image/onetap_fonts/Gunterz%20Medium/Gunterz-MediumItalic.otf') format('opentype'); font-display:swap; }

/* ───────────────────────────────────────────────────────────────────────────
   DESKTOP (≥ 992px) — Figma frame 1920 × 800
   ─────────────────────────────────────────────────────────────────────────── */

.bbr-app-banner {
  position: relative;
  width: 100%;
  height: 800px;
  background: #392923;
  overflow: hidden;
  color: #ffffff;
  /* When parent module sets fullscreen=1 the .otb-fs-d / .otb-fs-l class on
     the wrapper handles the 100vw bleed — no need to duplicate that here. */
}

/* Bottom band (slightly lighter brown stripe under the iPhone) */
.bbr-app-banner__bg-band {
  position: absolute;
  left: 0; right: 0; top: 616px;
  height: 184px;
  background: #513A31;
  z-index: 1;
}

/* iPhone mockup floats partially above the panel — top:-52 in Figma. */
.bbr-app-banner__iphone {
  position: absolute;
  top: -52px;
  left: 1063px;
  width: 602px;
  height: 903px;
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
}

/* Rounded-corner content "card" wrapper — only the bottom-right corner is
   rounded (300px on desktop, 100px on mobile) per Figma. The wrapper has no
   background of its own; the slide bg shows through. */
.bbr-app-banner__wrap {
  position: absolute;
  inset: 0;
  border-radius: 0 0 300px 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

/* Content column — anchored top-left (100, 51) per Figma. */
.bbr-app-banner__content {
  position: relative;
  z-index: 4;
  padding: 51px 0 0 100px;
  max-width: 949px; /* 849 content + 100 left padding */
  display: flex;
  flex-direction: column;
  gap: 41px;
  pointer-events: auto;
}

/* "App Exclusive" badge ─────────────────────────────────────────────────── */
.bbr-app-banner__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: linear-gradient(180deg, #F8B624 0%, #F1AC4C 100%);
  border-radius: 9px 12px 12px 9px;
}
.bbr-app-banner__badge-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: #392923;
  border-radius: 7px;
  box-shadow: 3px 0 3px 0 rgba(57, 41, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F1AC4C;
}
.bbr-app-banner__badge-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}
.bbr-app-banner__badge-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0;
  color: #392923;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Headline block ─────────────────────────────────────────────────────────── */
.bbr-app-banner__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.bbr-app-banner__h1-main,
.bbr-app-banner__h1-sub {
  display: block;
  font-family: 'Gunterz', 'Inter', sans-serif;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
}
.bbr-app-banner__h1-main {
  font-size: 124px;
  line-height: 127px;
}
.bbr-app-banner__h1-sub {
  font-size: 53px;
  line-height: 90px;
}

.bbr-app-banner__lead {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 43.6px;
  color: #ffffff;
  max-width: 720px;
}

/* Pills row ──────────────────────────────────────────────────────────────── */
.bbr-app-banner__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-self: stretch;
  max-width: 849px;
}
.bbr-app-banner__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background: linear-gradient(270deg, rgba(89, 58, 41, 0) 0%, rgba(89, 58, 41, 1) 100%);
  border-radius: 100px 0 0 100px;
  flex: 1 1 0;
  min-width: 0;
}
.bbr-app-banner__pill-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: #392923;
  border: 1px solid #6C4732;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.bbr-app-banner__pill-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.bbr-app-banner__pill-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.bbr-app-banner__pill-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24.51px;
  color: #ffffff;
  text-align: center;
}
.bbr-app-banner__pill-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 21.79px;
  color: #ffffff;
  text-align: center;
}

/* Download row (Available on + badges + QR) ─────────────────────────────── */
.bbr-app-banner__download {
  position: absolute;
  left: 100px;
  top: 581px;
  display: flex;
  align-items: flex-end;
  gap: 21px;
  z-index: 5;
}
.bbr-app-banner__download-col {
  display: flex;
  flex-direction: column;
  gap: 21px;
  align-items: flex-start;
}
.bbr-app-banner__available {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 27.24px;
  color: #ffffff;
}
.bbr-app-banner__stores {
  display: flex;
  align-items: center;
  gap: 24px;
}
.bbr-app-banner__store {
  display: inline-flex;
  line-height: 0;
}
.bbr-app-banner__store img {
  display: block;
  height: 61px;
  width: auto;
}
.bbr-app-banner__qr {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  background: #ffffff;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bbr-app-banner__qr img {
  width: 124px;
  height: 124px;
  display: block;
}

/* Decorative absolute-positioned 3D images ─────────────────────────────── */
.bbr-app-banner__beaver,
.bbr-app-banner__parcel,
.bbr-app-banner__hand,
.bbr-app-banner__tag {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
}
.bbr-app-banner__beaver {
  left: 1484px;
  top: 274px;
  width: 520px;
  height: 534px;
  z-index: 4;
}
.bbr-app-banner__parcel {
  left: 834px;
  top: 544px;
  width: 270px;
  height: 198px;
  z-index: 5;
}
.bbr-app-banner__hand {
  right: 0;
  top: 24px;
  width: 176px;
  height: 176px;
  z-index: 10;
}
.bbr-app-banner__tag {
  left: -85px;
  top: 446px;
  width: 221px;
  height: 221px;
  z-index: 11;
}

/* ───────────────────────────────────────────────────────────────────────────
   LAPTOP (≤ 1366px) — gentle scale-down for narrow laptops + 992-1366 range.
   Same layout, smaller headline so it doesn't crowd the iPhone.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1366px) {
  .bbr-app-banner__iphone {
    left: auto;
    right: 4%;
    width: 460px;
    height: auto;
  }
  .bbr-app-banner__h1-main { font-size: 96px; line-height: 100px; }
  .bbr-app-banner__h1-sub { font-size: 42px; line-height: 64px; }
  .bbr-app-banner__lead { font-size: 26px; line-height: 36px; }
  .bbr-app-banner__beaver { left: auto; right: -60px; width: 420px; height: auto; }
  .bbr-app-banner__parcel { left: 60%; }
  .bbr-app-banner__content { padding-left: 60px; max-width: 720px; }
  .bbr-app-banner__download { left: 60px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   MOBILE (≤ 576px) — full mobile layout overrides per Figma 1767:153522
   Frame 375 × 500, content padding 16, gap 16, headline orange #F1AC4C.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .bbr-app-banner {
    height: 500px;
  }
  .bbr-app-banner__bg-band {
    top: 405px;
    height: 94px;
  }
  .bbr-app-banner__iphone {
    left: 191px;
    top: 71px;
    width: 208px;
    height: 313px;
    object-fit: cover;
  }
  .bbr-app-banner__wrap {
    border-radius: 0 0 100px 0;
  }
  .bbr-app-banner__content {
    padding: 16px;
    max-width: 100%;
    gap: 16px;
  }
  .bbr-app-banner__badge {
    padding: 2px 9px 2px 2px;
    gap: 8px;
  }
  .bbr-app-banner__badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    padding: 3px;
  }
  .bbr-app-banner__badge-icon svg { width: 18px; height: 18px; }
  .bbr-app-banner__badge-text {
    font-size: 12px;
    line-height: 10px; /* 0.833em */
    letter-spacing: -0.02em;
  }
  .bbr-app-banner__h1-main {
    font-size: 44px;
    line-height: 66px; /* 1.5em */
    color: #F1AC4C; /* ⚠ mobile: orange headline, not white */
  }
  .bbr-app-banner__h1-sub {
    font-size: 19px;
    line-height: 26px; /* 1.368em */
  }
  .bbr-app-banner__lead {
    font-size: 16px;
    line-height: 21.8px; /* 1.362em */
    width: 206px;
    max-width: 206px;
  }
  .bbr-app-banner__pills {
    flex-direction: column;
    gap: 8px;
  }
  .bbr-app-banner__pill {
    padding: 6px 10px 6px 6px;
  }
  .bbr-app-banner__pill-icon {
    width: 16px;
    height: 16px;
    padding: 4px;
  }
  .bbr-app-banner__pill-icon svg {
    width: 12px;
    height: 12px;
  }
  .bbr-app-banner__pill-title {
    font-size: 14px;
    line-height: 19px;
  }
  .bbr-app-banner__pill-sub {
    font-size: 12px;
    line-height: 16.3px;
  }
  .bbr-app-banner__download {
    position: static;
    left: auto; top: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0 16px 16px;
    margin-top: 16px;
  }
  .bbr-app-banner__download-col {
    gap: 8px;
  }
  .bbr-app-banner__available {
    font-size: 14px;
    line-height: 19px;
  }
  .bbr-app-banner__stores {
    gap: 8px;
  }
  .bbr-app-banner__store img {
    height: 32px;
  }
  .bbr-app-banner__qr {
    display: none; /* No QR on mobile per Figma */
  }
  .bbr-app-banner__beaver {
    left: 207px;
    top: 280px;
    width: 208px;
    height: 208px;
  }
  .bbr-app-banner__parcel {
    left: 101px;
    top: 357px;
    width: 108px;
    height: 79px;
  }
  .bbr-app-banner__hand {
    right: 4px;
    top: 7px;
    width: 74px;
    height: 74px;
  }
  .bbr-app-banner__tag {
    left: -40px;
    top: 333px;
    width: 109px;
    height: 109px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   TABLET (577-991px) — bridge between mobile single-column and desktop.
   Keeps headline white (desktop look) but scales sizes down.
   ─────────────────────────────────────────────────────────────────────────── */
@media (min-width: 577px) and (max-width: 991px) {
  .bbr-app-banner { height: 600px; }
  .bbr-app-banner__bg-band { top: 460px; height: 140px; }
  .bbr-app-banner__iphone {
    left: auto;
    right: -40px;
    top: -40px;
    width: 360px;
    height: auto;
  }
  .bbr-app-banner__content {
    padding: 40px 0 0 40px;
    max-width: 60%;
    gap: 24px;
  }
  .bbr-app-banner__h1-main { font-size: 72px; line-height: 80px; }
  .bbr-app-banner__h1-sub { font-size: 32px; line-height: 48px; }
  .bbr-app-banner__lead { font-size: 18px; line-height: 26px; }
  .bbr-app-banner__pills { flex-wrap: wrap; }
  .bbr-app-banner__pill { flex: 1 1 calc(50% - 8px); }
  .bbr-app-banner__pill-icon { width: 36px; height: 36px; }
  .bbr-app-banner__pill-title { font-size: 15px; line-height: 20px; }
  .bbr-app-banner__pill-sub { font-size: 13px; line-height: 18px; }
  .bbr-app-banner__download {
    left: 40px;
    top: auto;
    bottom: 32px;
  }
  .bbr-app-banner__download-col { gap: 12px; }
  .bbr-app-banner__available { font-size: 16px; }
  .bbr-app-banner__store img { height: 48px; }
  .bbr-app-banner__qr { width: 100px; height: 100px; }
  .bbr-app-banner__qr img { width: 84px; height: 84px; }
  .bbr-app-banner__beaver { right: -40px; left: auto; top: 280px; width: 320px; height: auto; }
  .bbr-app-banner__parcel { left: 40%; top: 380px; width: 180px; height: 132px; }
  .bbr-app-banner__hand { right: 12px; top: 12px; width: 110px; height: 110px; }
  .bbr-app-banner__tag { left: -50px; top: 320px; width: 150px; height: 150px; }
}
