/* ========================================================================== 
   UKŁAD STRONY: HEADER, HERO, SEKCJE, GRIDY
   ========================================================================== */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  padding: 10px 20px;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.header-shell {
  width: min(100%, var(--container));
  height: 54px;
  margin-inline: auto;
  padding: 0 10px 0 8px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(17px) saturate(125%);
  -webkit-backdrop-filter: blur(17px) saturate(125%);
}
.brand {
  min-width: 224px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: .92rem; font-weight: 780; letter-spacing: -.025em; }
.brand-copy small { margin-top: 4px; color: var(--text-faint); font-family: var(--font-mono); font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.desktop-nav a {
  padding: .52rem .75rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 700;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current] { color: var(--text); background: var(--surface-muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }

.hero { padding-top: 14px; }
.hero-grid { grid-template-columns: minmax(0, 1.42fr) minmax(420px, .88fr); }
.panel--hero { min-height: 650px; display: flex; flex-direction: column; background: var(--surface-hero); color: var(--hero-text); }
.panel--control { min-height: 650px; padding: 28px; }
.panel--ticker { grid-column: 1 / -1; height: 64px; }

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: clamp(32px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }

.content-section { padding-top: clamp(92px, 10vw, 148px); }
/* Pierwsza sekcja po hero ma celowo mniejszy oddech niż kolejne sekcje. */
.hero + .content-section { padding-top: clamp(52px, 5.4vw, 82px); }
.section-heading {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: end;
  gap: 40px;
}
.section-heading h2 {
  max-width: 940px;
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.45vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.section-heading > p { max-width: 600px; margin: 0; color: var(--text-soft); font-size: .96rem; }

.about-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); }
.panel--story { min-height: 520px; padding: clamp(28px, 4vw, 50px); }
.panel--principles { padding: 20px; }

.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-explorer { margin-top: 16px; padding: clamp(24px, 4vw, 44px); }

.stack-layout { grid-template-columns: 1fr; }
.panel--stack-matrix { grid-column: 1 / -1; }
.stack-rider { grid-column: 1 / -1; padding: clamp(26px, 4vw, 44px); }

.partners-panel { padding: 20px; }
.contact-layout { grid-template-columns: 1.28fr .72fr; padding-bottom: clamp(82px, 10vw, 140px); }
.panel--contact { min-height: 520px; padding: clamp(30px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.panel--contact-data { min-height: 520px; padding: 30px; display: flex; flex-direction: column; }

.site-footer { padding-bottom: 30px; }
.footer-inner {
  min-height: 96px;
  padding: 22px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand > span:last-child { display: grid; }
.footer-brand strong { font-size: .82rem; }
.footer-brand small { color: var(--text-faint); font-size: .67rem; }
.back-to-top { color: var(--text-soft); font-size: .76rem; font-weight: 750; }

.mobile-nav {
  position: fixed;
  z-index: 120;
  top: calc(var(--header-height) + 4px);
  right: 14px;
  left: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-elevated) 94%, transparent);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(18px);
}
.mobile-nav a { display: block; padding: .9rem 1rem; border-radius: 11px; color: var(--text-soft); font-weight: 730; }
.mobile-nav a:hover { background: var(--surface-muted); color: var(--text); }
