/* ============================================================
   Magic Flagpole — navy + gold design system
   Custom, zero-dependency. No CDN. PHP 8 site.
   Corporate/B2B identity keyed to the brand banner (deep navy
   + gold), with sky-blue kept only as a light accent.
   ============================================================ */

:root {
  /* Brand — navy + gold (banner-derived) */
  --navy:      #12385f;
  --navy-deep: #0b2740;
  --navy-mid:  #1f5183;
  --gold:      #c79a3e;
  --gold-deep: #a97f2c;
  --gold-soft: #eeddb4;

  /* Sky — demoted to light accents only */
  --sky-deep: #1f5fa0;
  --sky-mid:  #4d8fc9;
  --sky-soft: #a9d2ef;
  --sky-haze: #e7f3fb;
  --sun:      #f0c04e;

  /* Hungarian tricolour — used sparingly as accents */
  --hu-red:   #c8102e;
  --hu-green: #1f7a4d;

  /* Core neutrals */
  --ink:      #0b2740;
  --paper:    #f8fafc;
  --slate:    #f2f5f9;
  --muted:    #5a6b81;
  --line:     #dce3ec;
  --card:     #ffffff;

  /* Type */
  --serif: "Constantia", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Rhythm */
  --container: 1140px;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(11,39,64,.06);
  --shadow-md: 0 12px 34px -18px rgba(11,39,64,.35);
  --shadow-lg: 0 26px 60px -28px rgba(11,39,64,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; text-wrap: balance; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* ---- Eyebrow / section heading ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep);
}
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); text-align: center; margin-bottom: .6rem; }
.section-lead { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section--haze { background: linear-gradient(180deg, #ffffff, var(--sky-haze)); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
/* Primary — navy solid (default brand action) */
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(18,56,95,.7); }
.btn-primary:hover { transform: translateY(-2px); background: var(--navy-deep); box-shadow: 0 16px 30px -14px rgba(18,56,95,.75); color: #fff; }
/* Accent — gold solid (the focus B2B "request a quote" action) */
.btn-accent { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(199,154,62,.7); }
.btn-accent:hover { transform: translateY(-2px); background: var(--gold-deep); color: #fff; box-shadow: 0 16px 30px -14px rgba(169,127,44,.7); }
/* Light — white solid (secondary action on the navy hero bar) */
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.btn-light:hover { transform: translateY(-2px); background: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-on-sky { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-on-sky:hover { background: #fff; color: var(--navy); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center;
  padding: .8rem 0;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(199,154,62,.28);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, padding .3s ease;
}
.nav__inner { display: flex; align-items: center; gap: .8rem; width: 100%; }
.nav__brand { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; white-space: nowrap;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #fff; letter-spacing: .01em; }
.nav__brand b { color: var(--gold); font-weight: 700; }
.nav__brand img { height: 30px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.nav__links { display: flex; flex-wrap: nowrap; gap: .1rem; margin-left: auto; list-style: none; }
.nav__links a { color: #eaf1f9; font-family: var(--sans); font-weight: 500; font-size: .95rem; white-space: nowrap;
  padding: .45rem .6rem; border-radius: 9px; opacity: .9; }
.nav__links a:hover { background: rgba(199,154,62,.18); color: #fff; text-decoration: none; opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.nav__actions .btn { padding: .55rem 1rem; }
.lang { display: inline-flex; border: 1.5px solid rgba(255,255,255,.4); border-radius: 9px; overflow: hidden; }
.lang a { color: #fff; padding: .35rem .6rem; font-size: .85rem; font-weight: 600; }
.lang a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.lang a.is-active { background: var(--gold); color: var(--navy-deep); }

/* Compact state after scrolling */
.nav.scrolled { padding: .45rem 0; box-shadow: 0 8px 24px -10px rgba(11,39,64,.6); }

.nav__toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 9px; background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff; cursor: pointer; }
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle:hover { background: rgba(199,154,62,.18); }
.nav__links-cta { display: none; }  /* mobile-menu-only quote button */

/* ============================================================
   Hero — brand banner masthead + navy action bar
   ============================================================ */
.hero { background: var(--navy-deep); padding-top: 58px; } /* clear the fixed nav */
.hero__banner { display: block; width: 100%; height: auto; }
.hero__bar { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; padding: clamp(1.4rem, 3vw, 2.1rem) 0; }
.hero__bar-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; max-width: 100%; }
.hero__lead { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.7rem); line-height: 1.3; max-width: min(46ch, 100%); }
.hero__lead b { color: var(--gold); font-weight: 600; }
.hero__cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; max-width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: linear-gradient(180deg, var(--ink), #06192b); color: #cfe0f0; padding: 3rem 0 2rem; text-align: center; }
.footer__quote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #fff; margin-bottom: .6rem; }
.footer__credit { color: var(--sky-soft); margin-bottom: 1rem; }
.footer__meta { font-size: .85rem; color: #7fa0c0; }

/* ============================================================
   Responsive + motion
   ============================================================ */
@media (max-width: 820px) {
  /* Hamburger menu: links collapse into a dropdown; HU/EN stays in the bar */
  .nav__toggle { display: inline-flex; }
  .nav__actions { margin-left: auto; }
  .nav__actions .nav__quote { display: none; }   /* quote moves into the menu */

  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    margin: 0; padding: .5rem .6rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--navy-deep); border-top: 1px solid rgba(199,154,62,.28);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 100%); overflow-y: auto;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: .85rem 1rem; font-size: 1.02rem; border-radius: 9px; opacity: 1; }
  .nav__links-cta { display: block; margin-top: .5rem; }
  .nav__links-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
  .hero::before { animation: none; }
}

/* ============================================================
   Content components (Task 10)
   ============================================================ */

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-mid), var(--navy-deep)); color: #fff; margin-bottom: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(199,154,62,.35);
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.card__text { color: var(--muted); font-size: .96rem; }

/* Before / After slider */
.ba {
  position: relative; max-width: 640px; margin: 3rem auto 0; height: 380px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  user-select: none; touch-action: none;
}
.ba__img, .ba__after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.ba__after img { width: 640px; max-width: none; }
.ba__badge {
  position: absolute; top: 14px; z-index: 3; padding: .35rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: #fff; background: rgba(11,39,64,.72); backdrop-filter: blur(6px);
}
.ba__badge--l { left: 14px; } .ba__badge--r { right: 14px; }
.ba__handle {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%,-50%);
  border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 4; pointer-events: none;
}
.ba__handle::before { content: "\2039 \203A"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy); font-weight: 700; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.ba__range:focus-visible + .ba__handle { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Compatibility box */
.compat { margin: 3rem auto 0; max-width: 900px; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--navy), var(--navy-deep)); color: #eaf3fb; box-shadow: var(--shadow-md);
  border: 1px solid rgba(199,154,62,.3); }
.compat__title { color: #fff; margin-bottom: 1rem; }
.compat p { margin-bottom: .6rem; font-size: .98rem; color: #d6e6f4; }
.compat p:last-child { margin-bottom: 0; }

/* Sizes strip */
.sizes { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2rem; }
.sizes__item { min-width: 66px; text-align: center; padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); }
.sizes__item b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--gold-deep); }
.sizes__item small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Why list */
.why { max-width: 760px; margin: 0 auto; list-style: none; display: grid; gap: .2rem; }
.why li { padding: 1rem 1.2rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.why li:last-child { border-bottom: 0; }
.why strong { color: var(--navy); }

/* Applications grid */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.app { text-align: center; padding: 2rem 1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease; }
.app:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app__icon { font-size: 2.6rem; display: block; margin-bottom: .6rem; }
.app__label { font-weight: 600; }
.proof { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); max-width: 900px; margin: 0 auto; }
.proof figcaption { padding: .8rem 1rem; font-size: .9rem; color: var(--muted); background: var(--card); text-align: center; }

/* Carousel */
.carousel { position: relative; max-width: 680px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.carousel__slide { position: relative; }
.carousel__slide img { width: 100%; height: 440px; object-fit: cover; }
.carousel__slide figcaption { position: absolute; left: 14px; bottom: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 12px; } .carousel__btn--next { right: 12px; }
.carousel__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: .4rem; justify-content: center; z-index: 3; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.carousel__dots button.is-active { background: #fff; }

/* Device */
.device-guide { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow-sm); font-size: 1.02rem; color: #24425f; }
.device-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.device-imgs img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.device-product { max-width: 720px; margin: 3rem auto 0; text-align: center; }
.device-product img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 0 auto; }

/* Video */
.demo-video { max-width: 640px; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Contact */
.contact-card { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: var(--shadow-md); }
.contact-card p { margin-bottom: .5rem; font-size: 1.05rem; }
.contact-card__meta { color: var(--muted); font-size: .85rem; margin-top: .8rem; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,39,64,.55); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 90vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal__head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--line); }
.modal__title { font-size: 1.2rem; }
.modal__x { margin-left: auto; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__body { padding: 1.4rem 1.6rem; overflow-y: auto; }
.modal__body--legal h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.modal__body--legal ul { margin: .3rem 0 .3rem 1.2rem; }
.modal__body--legal p, .modal__body--legal li { font-size: .94rem; color: #33506d; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.6rem; border-top: 1px solid var(--line); }
.modal__foot small { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) { .cards, .apps, .device-imgs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cards, .apps, .device-imgs { grid-template-columns: 1fr; }
  .ba { height: 300px; } .carousel__slide img { height: 300px; }
}

/* ============================================================
   Order / checkout (Task 11)
   ============================================================ */
.modal__dialog--order { max-width: 900px; }
.order { padding: 0; }
.order__grid { display: grid; grid-template-columns: 1fr 300px; gap: 0; }
.order__fields { padding: 1.4rem 1.6rem; display: grid; gap: 1.3rem; }
.order__set { border: 0; padding: 0; display: grid; gap: .7rem; }
.order__set legend { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; padding: 0; }
.order__set label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: #3a577a; }
.order__set label span { color: var(--hu-red); }
.order__set input {
  font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.order__set input:focus { outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(31,81,131,.22); }
.order__set input.is-invalid { border-color: var(--hu-red); box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.order__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.order__zip { max-width: 130px; }
.order__hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.order__check-line { flex-direction: row !important; display: flex !important; align-items: center; gap: .5rem; font-weight: 500 !important; }
.order__check-line input { width: auto; }

.qty { display: flex; align-items: center; gap: .5rem; }
.qty__btn { width: 40px; height: 40px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  font-size: 1.3rem; cursor: pointer; color: var(--navy); }
.qty__btn:hover { border-color: var(--gold); }
.qty input { width: 84px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.qty__unit { color: var(--muted); font-weight: 600; }

.order__alert { background: #fdecec; color: #9a1020; border: 1px solid #f3c0c6; border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; }

.order__summary { background: linear-gradient(180deg, var(--slate), #e6ebf2); padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.order__summary h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.order__summary dl { display: grid; gap: .5rem; margin-bottom: .8rem; }
.order__summary dl div { display: flex; justify-content: space-between; font-size: .92rem; color: #35577a; }
.order__summary dt { color: var(--muted); }
.order__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; border-top: 1px solid #bcd6ec; }
.order__total strong { font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.order__ship { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.order__submit { width: 100%; justify-content: center; margin-top: 1.2rem; }
.order__submit[disabled] { opacity: .65; cursor: default; }
.order__terms { font-size: .76rem; color: var(--muted); margin-top: .7rem; text-align: center; }

.order__success { text-align: center; padding: 2.5rem 1.6rem; display: grid; gap: .6rem; place-items: center; }
.order__check { width: 64px; height: 64px; border-radius: 50%; background: var(--hu-green); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.order__num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.order__success .btn { margin-top: 1rem; }

@media (max-width: 680px) {
  .order__grid { grid-template-columns: 1fr; }
  .order__summary { border-left: 0; border-top: 1px solid var(--line); }
  .order__row { grid-template-columns: 1fr; }
}

/* Quote form: single-column reuse of the order field styles + a textarea */
.order__set textarea {
  font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); min-height: 92px; resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.order__set textarea:focus { outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(31,81,131,.22); }
.order__set textarea.is-invalid { border-color: var(--hu-red); box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.quote__fields { padding: 1.4rem 1.6rem; display: grid; gap: 1.3rem; }
.quote__submit { width: 100%; justify-content: center; margin-top: .4rem; }

/* ============================================================
   Trust / credentials bar (B2B)
   ============================================================ */
.trustbar { background: var(--slate); border-bottom: 1px solid var(--line); }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2rem; padding: 1.1rem 0 .5rem; }
.trustbar__item { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; color: var(--navy); }
.trustbar__item svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }
.trustbar__buyers { width: 100%; text-align: center; font-size: .84rem; color: var(--muted); padding: 0 1rem 1.1rem; }
.trustbar__buyers b { color: var(--navy); font-weight: 600; }

/* ============================================================
   B2B / institutional panel
   ============================================================ */
.b2b__panel {
  max-width: 960px; margin: 0 auto; text-align: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #eaf1f9;
  border: 1px solid rgba(199,154,62,.3); border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.2rem); box-shadow: var(--shadow-lg);
}
.b2b__panel .eyebrow { color: var(--gold); }
.b2b__panel h2 { color: #fff; }
.b2b__lead { max-width: 60ch; margin: .6rem auto 1.8rem; color: #cddbec; }
.b2b__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 2rem; text-align: left; }
.b2b__point { display: flex; gap: .65rem; }
.b2b__point svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: .15rem; }
.b2b__point b { display: block; color: #fff; font-family: var(--serif); font-size: 1.02rem; }
.b2b__point span { font-size: .9rem; color: #adc0d6; }

/* ============================================================
   Packaging / real-product proof
   ============================================================ */
.packaging { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 900px; margin: 0 auto; }
.packaging figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--card); border: 1px solid var(--line); }
.packaging img { width: 100%; height: 320px; object-fit: cover; }
.packaging figcaption { padding: .85rem 1rem; font-size: .9rem; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .b2b__points { grid-template-columns: 1fr; gap: 1rem; }
  .packaging { grid-template-columns: 1fr; }
}

/* ============================================================
   References — real installations
   Three landscape sites across the top, the detail shot last;
   the portrait tile spans two rows so the grid stays flush.
   ============================================================ */
/* minmax(0, 1fr): without the 0 floor the photos' intrinsic width inflates the
   tracks and the grid blows past the viewport on narrow screens. */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; max-width: 1020px; margin: 0 auto; align-items: start; }
.ref { min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--card);
       border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.ref__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ref img { display: block; width: 100%; height: 230px; object-fit: cover; transition: transform .35s ease; }
.ref__btn:hover img { transform: scale(1.04); }
.ref figcaption { padding: .8rem .95rem; font-size: .88rem; line-height: 1.45; color: var(--muted); text-align: center; }
.ref--portrait { grid-column: 2; }
.ref--portrait img { height: 340px; object-position: center 25%; }

.refs__foot { text-align: center; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.refs__foot p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.1rem; }

/* International references — dark band, so it reads as its own chapter under the
   light Hungarian gallery. Every tile shares one contain-box: the 3:4 photos and the
   two 9:16 clips all show whole, and the leftover space reads as dark matting. */
.section--navy { background: var(--navy-deep); }
.section--navy .section-title { color: #fff; }
.eyebrow--on-navy { color: var(--gold); }
.section-lead--on-navy { color: #cddbec; }

.intrefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem); max-width: 940px; margin: 0 auto; }
.intref { min-width: 0; }
.intref__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.intref__media { position: relative; display: block; height: clamp(320px, 42vw, 540px);
  background: #081d33; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); }
.intref__media img, .intref__media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.intref__btn:hover .intref__media { border-color: rgba(199,154,62,.55); }

.intref__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(199,154,62,.92); color: #0b2740;
  display: grid; place-items: center; font-size: 1.35rem; padding-left: 4px;
  box-shadow: 0 6px 22px rgba(0,0,0,.4); transition: transform .25s ease, opacity .4s ease; }
.intref__btn:hover .intref__play { transform: translate(-50%, -50%) scale(1.08); }
.intref__vid.is-playing + .intref__play { opacity: 0; }
.intref__dur { position: absolute; right: .7rem; bottom: .7rem; padding: .18rem .5rem;
  border-radius: 999px; background: rgba(8,29,51,.78); color: #e8f0f8; font-size: .78rem; font-weight: 600; }
.intref__tag { position: absolute; left: .7rem; top: .7rem; padding: .22rem .62rem;
  border-radius: 999px; background: var(--gold); color: #0b2740;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.intref figcaption { padding: .85rem .4rem 0; font-size: .9rem; line-height: 1.5;
  color: #cddbec; text-align: center; }

.intrefs__foot { text-align: center; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.intrefs__foot p { color: #cddbec; max-width: 52ch; margin: 0 auto 1.1rem; }

.modal__dialog--photo video { max-width: 100%; max-height: 74vh; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .intref__btn:hover .intref__play { transform: translate(-50%, -50%); }
}
@media (max-width: 700px) {
  .intrefs { grid-template-columns: 1fr; max-width: 420px; }
  .intref__media { height: clamp(300px, 82vw, 440px); }
}

/* Photo lightbox */
.modal__dialog--photo { max-width: 900px; background: var(--navy-deep); padding: .8rem; align-items: center; }
.modal__dialog--photo .modal__x { position: absolute; top: .4rem; right: .8rem; color: #fff; z-index: 2; }
.modal__dialog--photo img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 6px; }
.modal__dialog--photo p { color: #cddbec; font-size: .9rem; text-align: center; padding: .8rem 1rem .3rem; }

@media (max-width: 900px) {
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref--portrait { grid-column: auto; }
  .ref--portrait img { height: 230px; }
}
@media (max-width: 560px) {
  .refs { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Accessibility — visible keyboard focus
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
