/* =========================================================
   SzlifZone — Public site
   Direction: INDUSTRIAL TECH PREMIUM
   Black / white base, orange as a precise technical accent.
   ========================================================= */


:root {
  /* ---- Brand colors ---- */
  --black:          #0a0a0a;
  --black-soft:      #121212;
  --black-elevated:  #171717;
  --black-line:      #232320;

  --white:          #f6f6f3;
  --gray-100:       #cfcfc9;
  --gray-300:       #9a9a93;
  --gray-500:       #6b6b64;

  --orange:         #ff5a1f;
  --orange-dim:      #c94414;
  --orange-glow:     rgba(255, 90, 31, 0.20);

  /* ---- Type ---- */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ---- Layout ---- */
  --container: 1240px;
  --gutter: 24px;
  --radius: 3px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Hero background image — swap this to use a real photo/video
     still frame. Falls back to a CSS technical pattern when unset. */
  --hero-image: none;
}

/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
  color: var(--gray-100);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* =========================================================
   Accessibility helpers
   ========================================================= */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--orange);
  color: var(--black);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s var(--ease);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--black-line);
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p {
  font-size: 17px;
}

/* Blueprint grid background used behind hero + a few sections */
.grid-field {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--black-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--black-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
  pointer-events: none;
}

/* Technical corner brackets, applied to cards/panels */
.tech-frame {
  position: relative;
}

.tech-frame::before,
.tech-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--orange);
  opacity: 0.7;
  transition: opacity 0.25s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease);
}

.tech-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.tech-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.tech-frame:hover::before,
.tech-frame:hover::after {
  width: 18px;
  height: 18px;
  opacity: 1;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  --btn-fg: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: #ff7a45;
  border-color: #ff7a45;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-500);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-ghost {
  background: transparent;
  color: var(--orange);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost::after {
  content: "→";
  margin-left: 4px;
  transition: transform 0.18s var(--ease);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-placeholder {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--black-line);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: var(--orange-dim);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.brand .brand-mark {
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex-shrink: 0;
}

.brand .brand-sub {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-100);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--black-line);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle .bar {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav panel — base (hidden) state, defined outside the
   860px media query on purpose. Previously this only had rules
   inside that media query, so above 860px the browser rendered
   it as a normal in-flow block (no positioning/hiding rule
   applied at all) — duplicating the nav + CTA button under the
   header on desktop. position:fixed takes it out of flow at
   every width; opacity/pointer-events keep it invisible and
   inert until JS adds .is-open (which only happens from a
   hamburger click, and the hamburger itself stays display:none
   outside the 860px media query below — see nav-toggle above).
   The mobile-only layout specifics (68px offset match the
   68px header height at that width, panel content styling)
   still live inside the media query, unchanged. */
.site-nav-panel {
  position: fixed;
  top: 68px;
  right: 0;
  left: 0;
  height: calc(100vh - 68px);
  background: var(--black);
  border-top: 1px solid var(--black-line);
  padding: 32px var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility is transitioned too, with a delay equal to the
     opacity/transform duration, so closing still fades out fully
     before the panel leaves the accessibility tree — only after
     that does visibility flip, taking focus/tab stops with it. */
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 400;
  overflow-y: auto;
}

.site-nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  /* opening should reach visibility:visible immediately so the
     fade-in is visible from the start, not delayed. */
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0s;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 96px;
  border-bottom: 1px solid var(--black-line);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  margin-bottom: 22px;
}

.hero .lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--gray-100);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-300);
  flex-wrap: wrap;
}

.hero-tags .tag {
  border: 1px solid var(--black-line);
  padding: 6px 10px;
  border-radius: var(--radius);
}

/* Hero visual — a small, subtle branding accent, in normal document
   flow as the first child of .hero-copy, directly above the eyebrow.
   NOT the hero's main visual: H1 + CTA carry the hero. Deliberately
   no border/background/card/controls — the video's own near-black
   background blends straight into the page. Being a normal-flow
   block (not absolutely positioned) means it needs no artificial
   padding-top reserve on .hero and naturally inherits .hero-copy's
   left edge, so it lines up with the eyebrow/H1 without any extra
   alignment rules. width sets the accent's size (110–130px mobile,
   150–180px desktop below); height follows via the video/img's own
   aspect-ratio. */
.hero-media {
  width: 120px;
  margin-bottom: 24px;
}

.hero-logo-video,
.hero-logo-static {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Static last-frame fallback — hidden by default, swapped in
   under prefers-reduced-motion below. Also what a browser shows
   if it can't load/play the <video> at all (broken src, codec
   unsupported, etc.), since it renders in normal flow either way
   and only .hero-logo-video is suppressed by that media query. */
.hero-logo-static {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-video {
    display: none;
  }

  .hero-logo-static {
    display: block;
  }
}

/* Hero — from ~1024px up, the branding accent grows to its desktop
   size (150–180px). Text stays a single flowing column at every
   width; only the accent's size changes by breakpoint. */
@media (min-width: 1024px) {
  .hero-media {
    width: 165px;
    /* Slightly smaller than the mobile margin: the eyebrow's
       inline-flex line box adds a few extra px of visual gap on
       top of the margin at this width, so the margin is trimmed
       to keep the rendered gap in the ~20-28px target range
       (verified via real-browser measurement, not just CSS math). */
    margin-bottom: 17px;
  }
}

/* =========================================================
   Specializations
   ========================================================= */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--black-line);
  border: 1px solid var(--black-line);
}

.spec-card {
  background: var(--black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.spec-card .spec-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.spec-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.spec-card .spec-desc {
  font-size: 15px;
  margin-bottom: 22px;
}

.spec-card .spec-ops {
  margin-bottom: 28px;
  flex-grow: 1;
}

.spec-card .spec-ops li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--gray-100);
  margin-bottom: 10px;
}

.spec-card .spec-ops li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

.spec-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  border: 1px solid var(--black-line);
  padding: 4px 8px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  width: fit-content;
}

.spec-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =========================================================
   Why SzlifZone
   ========================================================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--black-line);
  border: 1px solid var(--black-line);
}

.why-item {
  background: var(--black);
  padding: 32px 28px;
}

.why-item .why-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 16px;
}

.why-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* =========================================================
   Process timeline
   ========================================================= */

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.process-line::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black-line);
}

.process-step {
  position: relative;
  padding-top: 48px;
}

.process-step .step-dot {
  position: absolute;
  top: 10px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--orange);
  background: var(--black);
}

.process-step .step-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.process-step.is-visible .step-dot::after {
  opacity: 1;
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-300);
  margin-bottom: 10px;
  display: block;
}

.process-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  margin-bottom: 0;
}

/* =========================================================
   Pricing / calculator section
   ========================================================= */

.pricing-section {
  background: var(--black-soft);
}

.pricing-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.pricing-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--black);
  border: 1px solid var(--black-line);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.pricing-card p {
  flex-grow: 1;
}

.pricing-cta {
  text-align: center;
  padding-top: 8px;
}

/* =========================================================
   Realizations / education
   ========================================================= */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.showcase-card {
  background: var(--black-soft);
  border: 1px solid var(--black-line);
  padding: 0;
  overflow: hidden;
}

.showcase-media {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, var(--black-elevated) 0 2px, transparent 2px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--black-line);
  position: relative;
}

.showcase-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card {
  transition: border-color 0.2s var(--ease);
}

.showcase-card:has(a:hover),
.showcase-card:has(a:focus-visible) {
  border-color: var(--orange-dim);
}

.showcase-media-img {
  transition: filter 0.2s var(--ease);
}

.showcase-card a:hover .showcase-media-img,
.showcase-card a:focus-visible .showcase-media-img {
  filter: brightness(1.06);
}

/* Techniczny podpis platformy w rogu kafelka — subtelny znacznik,
   nie dekoracja: pomarańczowa linia + nazwa platformy w mono. */
.media-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  background: rgba(10, 10, 10, 0.72);
  border-top: 1px solid var(--orange-dim);
  padding: 4px 10px;
}

.showcase-media .badge-soon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
  border: 1px dashed var(--gray-500);
  padding: 6px 10px;
  border-radius: var(--radius);
}

.showcase-body {
  padding: 22px 24px 26px;
}

.showcase-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.showcase-body p {
  font-size: 14px;
  margin-bottom: 0;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--black-line);
  border: 1px solid var(--black-line);
  margin-bottom: 40px;
}

.contact-item {
  background: var(--black);
  padding: 28px;
}

.contact-item .contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.contact-item .contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  overflow-wrap: anywhere;
}

.contact-item a.contact-value {
  text-decoration: none;
}

.contact-item a.contact-value:hover {
  color: var(--orange);
}

.contact-item .contact-value.is-todo {
  color: var(--gray-300);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 13px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.map-placeholder {
  border: 1px solid var(--black-line);
  background: var(--black-soft);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  text-align: center;
  padding: 24px;
}

/* =========================================================
   CTA band (before footer)
   ========================================================= */

.cta-band {
  padding: 72px 0;
  border-bottom: 1px solid var(--black-line);
  position: relative;
  overflow: hidden;
}

.cta-band .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 0;
}

/* =========================================================
   Final CTA / Contact (homepage closing block)
   Replaces the old Kontakt section + CTA band pair — see
   UX audit. One block: headline + CTA + secondary CTA +
   a WhatsApp placeholder, nothing more.
   ========================================================= */

.cta-final {
  background: var(--black-soft);
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.cta-final-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-final-copy {
  max-width: 560px;
}

.cta-final-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.cta-final-contact {
  border: 1px solid var(--black-line);
  background: var(--black);
  padding: 22px 26px;
  min-width: 220px;
}

.cta-final-contact .contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.cta-final-contact .contact-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
}

.cta-final-contact .contact-value:hover {
  color: var(--orange);
}

.cta-final-contact .contact-hours {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-300);
}

/* =========================================================
   Services page — component detail blocks
   ========================================================= */

.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--black-line);
  position: relative;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  margin-bottom: 14px;
}

.page-hero .lede {
  max-width: 620px;
}

.service-block {
  padding-bottom: 24px;
}

.service-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.service-block-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: 8px;
}

.service-table {
  border: 1px solid var(--black-line);
  border-bottom: none;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--black-line);
}

.service-row .service-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.service-row .service-note {
  font-size: 13px;
  color: var(--gray-300);
  margin-top: 4px;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--black-line);
  color: var(--gray-300);
  white-space: nowrap;
}

.status-pill.is-available {
  color: var(--orange);
  border-color: var(--orange-dim);
}

.status-pill.is-limited {
  color: var(--gray-100);
  border-color: var(--gray-500);
}

.other-elements-panel {
  border: 1px solid var(--black-line);
  background: var(--black-soft);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 280px;
}

.footer-powered {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
}

/* "Powered by" endorsement — Korczyński is the workshop behind the
   SzlifZone brand, so this stays a quiet signature, not a second
   logo competing with the SzlifZone brand mark above it: small,
   label first, no glow/shadow. The supplied logo file is a solid
   black mark on a transparent background, so it disappears against
   the page's near-black background — .powered-by-mark gives it a
   small light neutral field to sit on instead of altering the
   original asset (e.g. via filter:invert). */
.powered-by {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.powered-by-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--black-line);
  border-radius: var(--radius);
}

.powered-by-mark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .powered-by-mark {
    width: 170px;
    padding: 10px 14px;
  }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--gray-100);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--black-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {
  .spec-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .process-line::before {
    display: none;
  }
}

@media (max-width: 860px) {
  /* WYCENA CTA (.header-actions .btn) deliberately stays visible at
     every width — only the category links (.main-nav) collapse into
     the hamburger panel. The CTA must never be hidden exclusively
     inside the mobile menu (nav redesign spec, sekcja MOBILE). */
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .btn {
    padding: 11px 16px;
    font-size: 12px;
  }

  .site-header .container {
    height: 68px;
  }

  .site-nav-panel .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav-panel .main-nav a {
    display: block;
    width: 100%;
    padding: 16px 4px;
    font-size: 18px;
    border-bottom: 1px solid var(--black-line);
  }

  .site-nav-panel .btn {
    margin-top: 24px;
    width: 100%;
  }

  .pricing-paths,
  .spec-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-step {
    padding-top: 0;
    padding-left: 32px;
  }

  .process-step .step-dot {
    top: 2px;
    left: 0;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-final-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-final-contact {
    width: 100%;
  }

  .other-elements-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .hero-actions .btn,
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .service-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .status-pill {
    width: fit-content;
  }
}

@media (max-width: 400px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Social media — featured video cards (YouTube / TikTok)

   Sized to each platform's real aspect ratio instead of the
   generic 4:3 showcase-media default: YouTube is landscape
   (16:9), TikTok is portrait (9:16). Column widths are set so
   both cards render at roughly the same height side by side.
   ========================================================= */

.platform-featured {
  display: grid;
  grid-template-columns: 3.15fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.platform-featured .showcase-media {
  aspect-ratio: 16 / 9;
}

.platform-featured .showcase-card.is-vertical .showcase-media {
  aspect-ratio: 9 / 16;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.play-glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--orange-dim);
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.play-glyph::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--orange);
  margin-left: 4px;
}

.showcase-card a:hover .play-glyph {
  transform: scale(1.08);
  background: var(--orange-dim);
}

.media-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.platform-secondary {
  /* 2.75fr : 1fr tak, by poziomy Facebook (2213x1426) i pionowy
     Instagram (768x1365) wychodziły z tej samej sekcji z podobną
     wysokością kart — ta sama logika co .platform-featured wyżej. */
  grid-template-columns: 2.75fr 1fr;
}

.platform-secondary .showcase-card.is-facebook .showcase-media {
  aspect-ratio: 2213 / 1426;
}

.platform-secondary .showcase-card.is-instagram .showcase-media {
  /* Materiał Instagrama jest w rzeczywistości pionowy (768x1365,
     ~9:16) — nie wymuszamy 1:1/4:5, bo rozciągałoby/przycinałoby
     kadr niezgodnie z faktycznym plikiem. */
  aspect-ratio: 768 / 1365;
}

@media (max-width: 720px) {
  .platform-featured {
    grid-template-columns: 1fr;
  }

  .platform-secondary {
    grid-template-columns: 1fr;
  }
}

/* FINAL: kompaktowe pełne logo w headerze */
.site-header .brand-logo-only {
  display: block;
  width: 120px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 120px;
  position: relative;
}

.site-header .brand-logo-only .brand-full-logo {
  position: absolute;
  width: 112px;
  height: 112px;
  max-width: none;
  object-fit: contain;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .site-header .brand-logo-only {
    width: 95px;
    height: 50px;
    flex-basis: 95px;
  }

  .site-header .brand-logo-only .brand-full-logo {
    width: 90px;
    height: 90px;
  }
}
