/* drukbanera — chrome (nagłówek + stopka) 1:1 z żywej strony, ładowane na każdej stronie sklepu */
:root{--bg:#fafaf7;--card:#fff;--text:#111;--muted:#555;--line:#e5e5e0;--accent:#f6c400;--dark:#1e1e1e;--shadow:0 18px 45px rgba(17,17,17,.08);--radius:22px}
/* --- sticky + topbar --- */
.site-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #ffd21a, var(--accent) 50%, #ffd21a);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.topbar strong {
  font-weight: 900;
}

@media (max-width: 680px) {
  .topbar {
    font-size: 0.79rem;
    padding: 8px 12px;
  }
}
/* --- header + nav + dropdown + buttony + nav-toggle --- */
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 229, 224, 0.85);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
}

.brand img {
  display: block;
  width: clamp(185px, 18vw, 260px);
  height: auto;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover,
.text-link:hover {
  color: #8f7200;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.phone-link {
  white-space: nowrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-link:hover {
  background: var(--accent, #f6c400);
  color: #1c1c1c;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.nav-social {
  display: none;
}

/* ===== Rozwijane menu „Banery" ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(246, 196, 0, 0.55);
  border-radius: 999px;
  background: #fff8d6;
  font: inherit;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-dropdown-toggle .chev {
  width: 12px;
  height: 12px;
  color: #b88f00;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown[data-open="true"] .nav-dropdown-toggle {
  background: var(--accent, #f6c400);
  border-color: var(--accent, #f6c400);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(246, 196, 0, 0.32);
}
.nav-dropdown:hover .nav-dropdown-toggle .chev,
.nav-dropdown:focus-within .nav-dropdown-toggle .chev,
.nav-dropdown[data-open="true"] .nav-dropdown-toggle .chev {
  color: var(--text);
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  transform-origin: top center;
  min-width: 268px;
  display: grid;
  gap: 1px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(17, 17, 17, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s;
  z-index: 80;
}
/* przezroczysty mostek wypełnia lukę między zakładką a menu — kursor nie traci hovera */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
/* strzałka wskazująca zakładkę */
.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 3px 0 0 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #faf7ec;
  color: #8f7200;
}
.nav-dropdown-menu a.is-overview {
  margin-bottom: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  color: var(--muted, #555);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--dark);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--text);
}
/* --- stopka --- */
.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
  align-items: start;
  gap: 26px 44px;
  padding: 46px clamp(18px, 4vw, 56px) 26px;
  background: #141413;
  color: #fff;
}

.site-footer nav a,
.footer-links a {
  font-size: 0.9rem;
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer nav a:hover,
.site-footer address a:hover,
.footer-links a:hover {
  color: #f6c400;
}

.site-footer nav,
.site-footer address {
  display: grid;
  align-content: start;
  gap: 9px;
  font-style: normal;
}

/* Długa lista linków lokalnych - w dwóch kolumnach, żeby nie była brzydkim słupkiem */
.footer-links {
  columns: 2;
  column-gap: 26px;
  font-style: normal;
}
.footer-links a {
  display: block;
  break-inside: avoid;
  margin-bottom: 9px;
}

.footer-logo {
  display: block;
  width: min(190px, 100%);
  height: auto;
  margin-bottom: 12px;
}

/* Pasek na samym dole stopki */
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
/* --- mobile drawer --- */
@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: calc(100% + 6px);
    right: 12px;
    left: 12px;
    width: auto;
    justify-self: stretch;
    justify-items: stretch;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
    text-align: left;
  }

  .main-nav.is-open a {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: left;
  }

  .main-nav.is-open .nav-social {
    display: block;
    color: var(--accent, #f6c400);
    font-weight: 800;
  }

  /* Dropdown „Banery" w menu mobilnym — rozwija się w pionie */
  .main-nav.is-open .nav-dropdown {
    display: block;
    width: 100%;
  }
  .main-nav.is-open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-weight: 800;
  }
  /* mobile: zakładka zostaje subtelna (kremowy pill), bez ciężkiego złota na otwarciu */
  .main-nav.is-open .nav-dropdown[data-open="true"] .nav-dropdown-toggle {
    background: #fff8d6;
    border-color: rgba(246, 196, 0, 0.55);
    box-shadow: none;
  }
  .main-nav.is-open .nav-dropdown[data-open="true"] .nav-dropdown-toggle .chev {
    color: #b88f00;
  }
  .main-nav.is-open .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    padding: 2px 0 6px 10px;
    border: none;
    box-shadow: none;
  }
  /* na mobile brak strzałki i mostka (menu jest statyczne) */
  .main-nav.is-open .nav-dropdown-menu::before,
  .main-nav.is-open .nav-dropdown-menu::after {
    display: none;
  }
  .main-nav.is-open .nav-dropdown[data-open="true"] .nav-dropdown-menu {
    display: grid;
  }
  .main-nav.is-open .nav-dropdown-menu a {
    padding: 11px 13px;
    white-space: normal;
  }

  .hero,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 28px;
  }

  .price-result {
    position: static;
    align-self: auto;
  }

  .trust-strip,
  .pricing-grid,
  .steps-grid,
  .steps-grid.steps-six {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .industry-grid,
  .mockup-grid-list,
  .three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card.featured {
    transform: none;
  }

  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* --- stopka mobile --- */
@media (max-width:760px){.site-footer{grid-template-columns:1fr;gap:20px}.footer-links{columns:1}}
/* --- ikona koszyka w nagłówku --- */
.cart-link{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:#fff; border:1px solid var(--line); color:var(--text); flex:0 0 auto; transition:background .15s ease,border-color .15s ease; }
.cart-link:hover{ background:var(--accent); border-color:var(--accent); }
.cart-link svg{ width:21px; height:21px; }
.cart-count{ position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:var(--accent); color:#111; font-size:.72rem; font-weight:800; line-height:19px; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.cart-count[hidden]{ display:none; }
@media (max-width:1050px){ .cart-link{ margin-left:auto; } }
/* --- mobile: koszyk zawsze widoczny (logo | koszyk | hamburger) --- */
@media (max-width:1050px){
  .site-header{ grid-template-columns:auto 1fr auto auto; column-gap:10px; }
  .brand{ grid-column:1; }
  .header-actions{ display:flex; grid-column:3; }
  .header-actions .phone-link, .header-actions .social-link{ display:none; }
  .nav-toggle{ grid-column:4; justify-self:end; }
}
