/* ==========================================================================
   KUZNIK THERMAL SOLUTIONS — style.css
   Design: jasne/ciemne sekcje na wzór apple.com, z motywem "termalnej kuli"
   (gradient ciepło↔chłód) jako powtarzającym się elementem marki.
   ========================================================================== */

:root {
  /* Kolory */
  --bg-light: #fbfbfd;
  --bg-light-alt: #f5f5f7;
  --bg-dark: #0a0e12;
  --bg-dark-alt: #12171c;

  --text-dark: #1d1d1f;
  --text-dark-secondary: #6e6e73;
  --text-light: #f5f5f7;
  --text-light-secondary: #a1a7ad;

  --accent-warm: #ff6b35;
  --accent-cool: #2f9bff;
  --accent-warm-soft: rgba(255, 107, 53, 0.14);
  --accent-cool-soft: rgba(47, 155, 255, 0.14);

  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typografia */
  --font-display: -apple-system, "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  /* Odstępy */
  --space-section-y: 140px;
  --space-section-y-mobile: 72px;
  --container-width: 1160px;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 880px) {
  :root {
    --space-section-y: var(--space-section-y-mobile);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 22px;
  }
}

/* Skip link / accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-warm);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: rgba(10, 14, 18, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(10, 14, 18, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--text-light);
}

.nav__brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.nav__brand-sub {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 13px;
  color: var(--text-light-secondary);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--text-light);
}

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

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-light-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 100px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch button.is-active {
  background: var(--text-light);
  color: var(--bg-dark);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--text-light);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  transition: opacity 0.2s var(--ease);
}

.nav__cta:hover {
  opacity: 0.82;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
}

.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav__mobile-panel {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg-dark);
  z-index: 480;
  padding: 32px;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav__mobile-panel.is-open {
  display: flex;
}

.nav__mobile-panel a {
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--text-light);
}

@media (max-width: 880px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
}

body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */

.section {
  padding: var(--space-section-y) 0;
  position: relative;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section--alt {
  background: var(--bg-light-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section__head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 18px;
}

.section--dark .eyebrow {
  color: var(--text-light-secondary);
}

.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool));
  flex-shrink: 0;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.section__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-dark-secondary);
  margin: 0;
}

.section--dark .section__lede {
  color: var(--text-light-secondary);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

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

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
      circle at 35% 35%,
      var(--accent-warm) 0%,
      transparent 55%
    ),
    radial-gradient(circle at 65% 65%, var(--accent-cool) 0%, transparent 55%);
  filter: blur(90px);
  opacity: 0.55;
  transform: translate(-50%, -50%);
  animation: orb-breathe 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-46%, -54%) scale(1.12) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__orb {
    animation: none;
  }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  max-width: 880px;
  background: linear-gradient(115deg, #ffffff 35%, #ffd9c4 55%, #cfe8ff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-light-secondary);
  max-width: 560px;
  margin: 0;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), background 0.2s var(--ease);
}

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

.btn--primary {
  background: linear-gradient(120deg, var(--accent-warm), #ff8c5a);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.13);
}

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

.btn--dark:hover {
  opacity: 0.85;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light-secondary);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.hero__scroll-cue .hero__scroll-line {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-light-secondary), transparent);
  animation: cue-pulse 2s ease-in-out infinite;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   OFERTA
   ========================================================================== */

.oferta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .oferta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .oferta-grid {
    grid-template-columns: 1fr;
  }
}

.oferta-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.oferta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.18);
}

.oferta-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-warm-soft), var(--accent-cool-soft));
}

.oferta-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
}

.oferta-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}

.oferta-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dark-secondary);
  margin: 0;
}

/* ==========================================================================
   O NAS / STATS
   ========================================================================== */

.onas-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 880px) {
  .onas-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.onas-text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-light-secondary);
}

.onas-text p:first-child {
  color: var(--text-light);
  font-size: 19px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat {
  background: var(--bg-dark);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat:last-child {
  grid-column: 1 / -1;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent-warm), var(--accent-cool));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-size: 13px;
  color: var(--text-light-secondary);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   REALIZACJE
   ========================================================================== */

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .realizacje-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .realizacje-grid {
    grid-template-columns: 1fr;
  }
}

.realizacja-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.realizacja-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.18);
}

.realizacja-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.realizacja-card__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.realizacja-card__track::-webkit-scrollbar {
  display: none;
}

.realizacja-card__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--accent-cool) 0%, var(--accent-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.realizacja-card__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.realizacja-card__media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.realizacja-card__media-fallback svg {
  width: 44px;
  height: 44px;
  stroke: rgba(255, 255, 255, 0.85);
}

.realizacja-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 14, 18, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
  z-index: 3;
}

.realizacja-card__nav svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

.realizacja-card__nav:hover {
  background: rgba(10, 14, 18, 0.7);
}

.realizacja-card__nav--prev {
  left: 9px;
}

.realizacja-card__nav--next {
  right: 9px;
}

.realizacja-card__media:hover .realizacja-card__nav,
.realizacja-card__nav:focus-visible {
  opacity: 1;
}

.realizacja-card__dots {
  position: absolute;
  bottom: 11px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.realizacja-card__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.realizacja-card__dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

.realizacja-card__body {
  padding: 22px 22px 26px;
}

.realizacja-card__tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 8px;
  display: block;
}

.realizacja-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.realizacja-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark-secondary);
  margin: 0;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */

.kontakt-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.kontakt-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 40px;
}

@media (max-width: 760px) {
  .kontakt-info-grid {
    grid-template-columns: 1fr;
  }
}

.kontakt-info-card {
  background: var(--bg-dark-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.kontakt-info-card .kontakt-info__icon {
  margin-bottom: 4px;
}

.kontakt-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.kontakt-info__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-info__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-light);
}

.kontakt-info__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-secondary);
  margin-bottom: 3px;
}

.kontakt-info__value {
  font-size: 16px;
  font-weight: 500;
}

.kontakt-info__value a:hover {
  color: var(--accent-warm);
}

.kontakt-map {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  filter: grayscale(0.3) contrast(1.05);
}

.kontakt-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light-secondary);
  font-size: 13px;
}

.footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool));
}

.footer__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-light-secondary);
}

.footer__links a:hover {
  color: var(--text-light);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
