/* ===========================================================================
   RISER.domy — nagłówek, menu i stopka.

   Identyczne na każdej podstronie, dlatego osobny arkusz ładowany zawsze
   razem z core.css.
   =========================================================================== */

/* --- Nagłówek ----------------------------------------------------------- */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo img { height: 20px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 300; }
.nav-links > a,
.nav-drop-t { color: var(--ink); opacity: .75; transition: opacity .2s ease; }
.nav-links > a:hover,
.nav-drop:hover .nav-drop-t { opacity: 1; }

/* Pozycja aktywna — redaktor nie musi o niej pamiętać, ustawia ją widok. */
.nav-links .aktywny { opacity: 1; color: var(--beige-dark); }

.nav-cta { display: flex; align-items: center; gap: 26px; }
.phone { font-size: 15px; font-weight: 400; white-space: nowrap; }

/* Brandowy skos na CTA w nagłówku. */
.nav-cta .btn {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

/* --- Rozwijane podmenu -------------------------------------------------- */

.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-t { display: inline-flex; align-items: center; gap: 7px; }

.nd-caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: .55;
  transition: transform .25s ease;
}
.nav-drop:hover .nd-caret { transform: rotate(45deg) translate(1px, 1px); }

.nav-drop-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 120;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; }

.nd-inner {
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(26, 26, 28, .12);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.nav-links .nd-inner a { padding: 11px 16px; font-size: 14.5px; border-radius: 9px; opacity: .85; color: var(--ink); }
.nav-links .nd-inner a:hover { background: var(--bg-alt); opacity: 1; color: var(--beige-dark); }

/* --- Menu mobilne ------------------------------------------------------- */

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 84%;
  max-width: 340px;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  padding: 80px 36px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .08);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 16px 0; font-size: 19px; font-weight: 300; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 28px; }

/* Grupa rozwijana (akordeon) — te samo podstrony co dropdown na desktopie,
   dotknięciem zamiast hoverem. Przycisk wygląda jak zwykła pozycja menu. */
.mobile-grupa-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-family: inherit;
  font-size: 19px;
  font-weight: 300;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  cursor: pointer;
}
.mobile-grupa-t .nd-caret { flex-shrink: 0; margin-top: 0; transform: rotate(45deg); transition: transform .25s ease; }
.mobile-grupa.open .mobile-grupa-t .nd-caret { transform: rotate(225deg); }

.mobile-grupa-lista { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-grupa.open .mobile-grupa-lista { max-height: 600px; }
.mobile-grupa-lista a { display: block; padding: 14px 0 14px 18px; font-size: 16.5px; }

.menu-close {
  position: absolute;
  top: 24px; right: 30px;
  background: none; border: none;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  font-weight: 200;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.overlay.show { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .nav-links, .phone, .nav-cta .btn { display: none; }
  .burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .overlay { transition: none; }
}

/* --- Stopka ------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: 74px 0 30px;
  font-weight: 300;
  font-size: 15px;
}

.site-footer .sf-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* `width: auto` jest konieczne: obrazek ma atrybuty `width`/`height` (dla CLS),
   a bez tego atrybut szerokości wygrywa z proporcją i logo się rozciąga. */
.site-footer .sf-logo { height: 22px; width: auto; margin-bottom: 16px; }
.site-footer .sf-tag { color: var(--beige); font-size: 16px; margin-bottom: 26px; }
.site-footer .sf-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.site-footer .sf-ln { font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.site-footer a.sf-ln:hover { color: var(--beige); }
.site-footer .sf-ln.muted { color: rgba(255, 255, 255, .5); font-size: 13px; line-height: 1.7; }

/* Kropka przy numerze — sygnał, że numer działa też na WhatsAppie. */
.site-footer .wa {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3fae57;
  margin: 0 6px 1px 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.site-footer .sf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer .sf-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  transition: .2s ease;
}
.site-footer .sf-social a:hover { background: var(--beige); border-color: var(--beige); color: #fff; transform: translateY(-2px); }
.site-footer .sf-social a svg { width: 16px; height: 16px; display: block; }

.site-footer .sf-col h5 {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-weight: 500;
}
.site-footer .sf-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.site-footer .sf-col a { color: rgba(255, 255, 255, .66); font-size: 14.5px; }
.site-footer .sf-col a:hover { color: var(--beige); }

.site-footer .sf-cta p { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; max-width: 270px; }
.site-footer .sf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--beige);
  color: #fff;
  font-size: 14.5px;
  padding: 13px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background .2s ease, transform .2s ease;
}
.site-footer .sf-cta-btn:hover { background: var(--beige-dark); transform: translateY(-2px); color: #fff; }
.site-footer .sf-cta-btn span { transition: transform .2s ease; }
.site-footer .sf-cta-btn:hover span { transform: translateX(3px); }

.site-footer .sf-awards { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.site-footer .sf-awards img { height: 40px; width: auto; opacity: .82; transition: opacity .2s ease; }
.site-footer .sf-awards img:hover { opacity: 1; }
@media (max-width: 560px) {
  .site-footer .sf-awards { gap: 18px; }
  .site-footer .sf-awards img { height: 34px; }
}
@media (min-width: 861px) {
  .site-footer .sf-brand { display: flex; flex-direction: column; align-items: flex-start; }
  .site-footer .sf-social { margin-top: auto; }
  .site-footer .sf-cta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .site-footer .sf-cta p { align-self: stretch; margin-left: auto; }
  .site-footer .sf-awards { margin-top: auto; justify-content: flex-end; }
}

.site-footer .sf-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}
.site-footer .sf-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .sf-legal a:hover { color: var(--beige); }

@media (max-width: 860px) {
  .site-footer .sf-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .site-footer .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer .sf-top { grid-template-columns: 1fr; }
}
