/* Kryst-Trans - wspólna baza makiet (tokeny klienta: #181818 / #FFCC00 / #FFFFFF, Montserrat + Inter) */
/* Fonty z własnego hostingu (scripts/fonty.py): zmienne WOFF2 ograniczone do używanych grubości i znaków łacińskich z polskimi */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600-900.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400-600.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
:root {
  --ink: #181818;
  --ink-2: #202020;
  --ink-3: #2a2a2a;
  --ink-4: #343434;
  --yellow: #FFCC00;
  --yellow-2: #E6B800;
  --white: #FFFFFF;
  --g50: #F6F6F6;
  --g100: #ECECEC;
  --g200: #DCDCDC;
  --g400: #9A9A9A;
  --g600: #5A5A5A;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --max: 1200px;
  --gutter: 20px;
  --radius: 6px;
  --btn-radius: 6px;
  --shadow: 0 10px 30px rgba(24, 24, 24, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
strong, b { font-weight: 600; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { .container { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); display: inline-block; }
.lead { font-size: 18px; line-height: 1.6; color: var(--g600); }
.dark .lead { color: rgba(255, 255, 255, .86); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 12px 0 14px; }
.dark { background: var(--ink); color: var(--white); }
.dark .eyebrow { color: var(--yellow); }
.gray { background: var(--g50); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--btn-radius); border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: #FFD633; box-shadow: 0 10px 24px rgba(255, 204, 0, .35); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-outline:hover { background: rgba(255, 204, 0, .12); }
.btn-lg { min-height: 60px; padding: 14px 34px; font-size: 16px; }
@media (max-width: 599px) {
  .btn { white-space: normal; text-align: center; padding-left: 18px; padding-right: 18px; }
  .btn > span { white-space: nowrap; }
  .btn-lg { padding: 12px 18px; font-size: 15px; }
  .hero-actions .btn, .actions .btn { width: 100%; }
}
.btn .num { font-size: 1.1em; letter-spacing: .02em; }

/* Nagłówek - wspólny szkielet, kolory per wariant */
.site-header { position: sticky; top: 0; z-index: 80; }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand img { display: block; height: 46px; width: auto; }
.site-footer .brand img { height: 50px; }
@media (max-width: 599px) { .brand img { height: 40px; } .site-footer .brand img { height: 44px; } }
.brand .mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border-radius: 8px; flex: none; }
.brand .mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .12em; opacity: .7; margin-top: 4px; }
.nav { display: none; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 500; font-size: 15px; border-radius: 6px; }
.nav li { position: relative; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 9px 12px; font-size: 14px; }
.nav .sub a:hover { background: var(--g50); }
.nav .sub.mega { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 6px 18px; min-width: 600px; padding: 16px 18px; }
.nav .sub.mega .grp > b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--g600); padding: 4px 12px 8px; border-bottom: 2px solid var(--yellow); margin-bottom: 4px; }
.nav li:hover > .sub.mega, .nav li:focus-within > .sub.mega { display: grid; }
.header-cta { margin-left: auto; display: none; }
.nav-toggle { margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 2px solid currentColor; border-radius: 8px; color: inherit; cursor: pointer; }
.header-phone-mobile { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); border-radius: 8px; margin-left: auto; }
.header-phone-mobile + .nav-toggle { margin-left: 0; }
@media (min-width: 1000px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .header-phone-mobile { display: none; }
}
@media (max-width: 999px) {
  .site-header.is-open .nav { display: block; position: fixed; inset: 76px 0 0 0; background: var(--ink); color: var(--white); padding: 24px var(--gutter) 120px; overflow: auto; z-index: 79; }
  .site-header.is-open .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.is-open .nav a { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
  .site-header.is-open .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; color: inherit; box-shadow: none; padding: 0 0 8px 16px; }
  .site-header.is-open .nav .sub a { font-size: 16px; opacity: .85; }
  .site-header.is-open .nav .sub.mega { display: block; min-width: 0; padding: 0 0 8px 16px; }
  .site-header.is-open .nav .sub.mega .grp > b { color: var(--yellow); border-bottom: 0; padding: 12px 8px 2px; margin: 0; }
  .site-header.is-open .nav .sub.mega .grp ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .site-header.is-open .nav .sub.mega .grp ul a { font-size: 15px; padding: 8px 8px; border-bottom: 0; }
  .site-header.is-open .nav .mobile-call { margin-top: 24px; }
}
.nav .mobile-call { display: none; }
.site-header.is-open .nav .mobile-call { display: block; }

/* Przyklejony przycisk na telefonie - wymóg klienta. Uwaga klienta 2026-11-03: pasek 58 px z obrysem zasłaniał treść i formularze ->
   46 px, jeden wiersz, mniejszy cień; app.js dodaje .is-hidden przy fokusie w polu formularza i gdy widać sekcję z numerem/formularzem */
.sticky-call {
  position: fixed; left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 12px;
  background: var(--yellow); color: var(--ink); border-radius: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-call svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.sticky-call .num { font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.sticky-call .num::before { content: "·"; margin-right: 8px; opacity: .6; }
.js .sticky-call.is-hidden, body.consent-open .sticky-call { transform: translateY(calc(100% + 20px)); opacity: 0; pointer-events: none; }
/* bez JS na telefonie: menu zawinięte w wiersz pod logo zamiast przycisku hamburgera (na desktopie .nav i tak jest widoczne) */
@media (max-width: 999px) {
  html:not(.js) .site-header .bar { flex-wrap: wrap; }
  html:not(.js) .nav { display: block; flex-basis: 100%; order: 9; padding: 0 0 8px; }
  html:not(.js) .nav > ul { flex-wrap: wrap; gap: 0 2px; }
  html:not(.js) .nav a { padding: 6px 8px; font-size: 14px; }
  html:not(.js) .nav .sub { display: none; }
  html:not(.js) .nav-toggle { display: none; }
}
@media (min-width: 1000px) { .sticky-call { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 62px; } }

/* Baner zgody na cookies (Consent Mode v2) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 12px; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-box { pointer-events: auto; max-width: 760px; margin: 0 auto; background: var(--ink); color: var(--white); border: 1px solid rgba(255, 255, 255, .14); border-top: 4px solid var(--yellow); padding: 18px 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); display: grid; gap: 10px; }
.consent-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin: 0; }
.consent-text { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .84); margin: 0; }
.consent-text a { color: var(--yellow); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.consent-actions .btn { min-height: 44px; padding: 8px 18px; font-size: 13px; }
.consent-actions .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .5); }
@media (max-width: 599px) { .consent { padding: 8px; } .consent-box { padding: 14px 16px; } .consent-actions .btn { flex: 1 1 140px; } }

/* Okruszki */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--g600); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.dark .crumbs { color: rgba(255, 255, 255, .6); }
.dark .crumbs a:hover { color: var(--white); }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
details.faq { border: 1px solid var(--g200); border-radius: var(--radius); background: var(--white); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--yellow-2); font-weight: 600; flex: none; width: 28px; text-align: center; }
details.faq[open] summary::after { content: "−"; }
details.faq .a { padding: 0 20px 20px; color: var(--g600); max-width: 760px; }
.dark details.faq { background: var(--ink-3); border-color: rgba(255, 255, 255, .12); }
.dark details.faq .a { color: rgba(255, 255, 255, .86); }

/* Stopka */
/* stopka ciemniejsza niż CTA końcowe nad nią (user 2026-10-23: oddzielić CTA z numerem od części z linkami) */
.site-footer { background: #101010; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); }
.site-footer .grid { display: grid; gap: 36px 28px; padding: 64px 0 40px; }
@media (min-width: 760px) { .site-footer .grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer .col-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .site-footer .grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.25fr; } .site-footer .col-brand { grid-column: auto; } }
.site-footer h4, .site-footer .ft-h { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { display: grid; gap: 9px; font-size: 15px; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: rgba(255, 255, 255, .68); }
.site-footer .bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-footer .phone-big { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--yellow); letter-spacing: .01em; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg.i { color: var(--yellow); margin-top: 3px; }

/* Pasek makiety (tylko podgląd, nie trafia na produkcję) */
.mk-strip { position: fixed; top: 0; right: 0; z-index: 100; background: #0b7a3b; color: #fff; font: 600 11px/1 var(--font-body); padding: 5px 10px; border-radius: 0 0 0 8px; letter-spacing: .04em; opacity: .9; }
@media (min-width: 1000px) { .mk-strip { top: auto; bottom: 0; border-radius: 8px 0 0 0; } }
@media (max-width: 999px) { .mk-strip { top: auto; bottom: 86px; border-radius: 8px 0 0 8px; font-size: 10px; padding: 4px 8px; opacity: .7; } .mk-strip a { display: none; } }

/* Telefon: bez animacji pojawiania i bez efektów hover (content-visibility celowo nie: powoduje skoki wysokości przy przewijaniu) */
@media (hover: none) {
  .btn:hover, .card:hover, .rel-card:hover, .card-b:hover, .svc-card:hover, .loc-pill:hover, .loc-sign:hover { transform: none; }
}
.mk-strip a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* Animacje pojawienia tylko na desktopie (CSS, z poszanowaniem reduce-motion) */
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  /* tylko gdy działa JS (html.js z layoutu): bez skryptu treść ma być widoczna od razu */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero .reveal:nth-child(1) { transition-delay: .05s; }
  .hero .reveal:nth-child(2) { transition-delay: .15s; }
  .hero .reveal:nth-child(3) { transition-delay: .25s; }
  .hero .reveal:nth-child(4) { transition-delay: .35s; }
}
