/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-600: #555;
  --gray-400: #999;
  --gray-200: #e0e0e0;
  --white: #f5f5f5;
  --accent: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.12);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 110px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  background: var(--black);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10002;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ===== MECHANICAL BACKGROUND ===== */
.mech-bg {
  position: relative;
  isolation: isolate;
}

.mech-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.018) 14px,
      rgba(255, 255, 255, 0.018) 15px
    );
  background-size:
    64px 64px,
    16px 16px,
    16px 16px,
    64px 64px,
    64px 64px,
    auto;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.mech-bg > * {
  position: relative;
  z-index: 1;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) - 2px);
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  z-index: 10001;
  opacity: 0;
  box-shadow: none;
  transition: width 0.1s linear, opacity 0.2s;
  pointer-events: none;
}

/* ===== NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.75) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  display: block;
  height: auto;
  max-height: calc(var(--nav-h) - 28px);
  width: auto;
  max-width: min(200px, 38vw);
  object-fit: contain;
  object-position: center center;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.nav__logo:hover img {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  color: var(--black) !important;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.nav__cta svg {
  width: 20px;
  height: 20px;
}

.nav__cta::after,
.social-icon::after {
  display: none !important;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
}

.social-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.social-icon:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

.social-icon__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  transition: color 0.3s;
}

.social-icon--footer:hover .social-icon__label {
  color: var(--white);
}

.social-icon--footer {
  margin-left: auto;
}

.nav__cta:hover {
  background: var(--gray-200);
  color: var(--black) !important;
  transform: scale(1.06);
}

.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--black);
}

.hero__bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.02);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.45) 22%, transparent 50%),
    linear-gradient(to right, rgba(10, 10, 10, 0.55) 0%, transparent 45%);
  z-index: 1;
}

.hero__watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 35vw, 28rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  animation: watermarkFloat 8s ease-in-out infinite alternate;
}

@keyframes watermarkFloat {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-48%) translateX(-12px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 8vh;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}

.hero__title span {
  color: var(--gray-400);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2.5rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUp 0.9s 0.45s forwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.hero-stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hero-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.hero-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--gray-400);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 60px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
  margin-top: -1px;
}

.section-divider--flip {
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  background: var(--black);
}

/* ===== SERVICES ===== */
.services {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.service-card {
  position: relative;
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.25rem 2rem 2rem;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s,
              box-shadow 0.4s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  transition: transform 0.4s;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(-4deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.services__grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services__grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services__grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services__grid .service-card:nth-child(4) { transition-delay: 0.2s; }
.services__grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services__grid .service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about__image {
  position: relative;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.5s;
}

.about__image:hover img {
  filter: grayscale(0%);
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--white);
}

.about__text p {
  color: var(--gray-400);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--dark);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 3rem;
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--gray-900);
  padding: 0;
  width: 100%;
  transition: border-color 0.3s, transform 0.35s ease;
}

.gallery__item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
  z-index: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox__nav:hover { background: var(--white); color: var(--black); }
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact__card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}

.contact__card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.contact__card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.contact__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact__card p,
.contact__card a {
  color: var(--gray-400);
  font-size: 1.05rem;
  transition: color 0.3s;
}

.contact__card a:hover {
  color: var(--white);
}

.contact__card .big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.contact__card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact__card--link .big {
  display: block;
  transition: color 0.3s;
}

.contact__card--link:hover .big {
  color: var(--gray-200);
}

.contact__card--link .big::after {
  content: ' →';
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.contact__card--link:hover .big::after {
  opacity: 1;
  transform: translateX(0);
}

.contact__card-sub {
  margin-top: 0.35rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===== MAP ===== */
.map-section {
  background: var(--dark);
  padding-bottom: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

#kontakt {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.map__wrapper {
  margin-top: 3rem;
  position: relative;
  height: 450px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.map__wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(80%) contrast(1.1);
  transition: filter 0.5s;
}

.map__wrapper:hover iframe {
  filter: grayscale(30%) contrast(1);
}

.map__cta {
  text-align: center;
  padding: 2.5rem 0 5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo img {
  height: auto;
  max-height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__text {
  color: var(--gray-600);
  font-size: 0.85rem;
}

.footer__text strong {
  color: var(--gray-400);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 999;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gray-200);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  background: var(--white);
  color: var(--black);
  padding: 0.75rem 0;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 2rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --nav-h: 88px; }

  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav__links.open {
    transform: translateY(0);
  }

  .nav__burger { display: flex; }

  .nav__end {
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__burger.active span:nth-child(2) { opacity: 0; }
  .nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .about__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav__inner {
    width: 94vw;
    align-items: center;
  }

  .nav__logo {
    padding-top: 6px;
  }

  .nav__logo img {
    height: 46px;
    width: auto;
    max-height: none;
    max-width: min(142px, 42vw);
  }

  .hero {
    position: relative;
    display: block;
    min-height: 0;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0;
    overflow: hidden;
    align-items: unset;
  }

  .hero__bg {
    position: relative;
    inset: unset;
    width: 100%;
    aspect-ratio: 1080 / 715;
  }

  .hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: none;
    animation: none;
  }

  .hero__overlay {
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 1080 / 715;
    z-index: 1;
    background:
      linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.35) 22%, transparent 50%);
  }

  .hero__watermark {
    display: none;
  }

  .hero__content {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 100vw * 468 / 1080);
    bottom: auto;
    z-index: 2;
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 0 8px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    margin-bottom: 0.4rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .hero__actions {
    gap: 0.5rem;
  }

  .hero__actions .btn {
    min-height: 44px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .service-card {
    padding: 1.15rem 0.9rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .service-card p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .service-card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
  }

  .service-card__icon svg {
    width: 20px;
    height: 20px;
  }

  #usluge,
  #kontakt {
    padding: 4rem 0;
  }

  #kontakt .section-title {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  #kontakt .section-desc {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .contact__card {
    padding: 1.15rem 0.9rem;
  }

  .contact__card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.6rem;
  }

  .contact__card-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact__card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .contact__card .big {
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .contact__card p,
  .contact__card a {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .contact__card p + p {
    margin-top: 0.15rem;
  }

  .contact__card-sub {
    display: none;
  }

  .social-icon--footer .social-icon__label {
    display: none;
  }

  .social-icon--footer {
    margin-left: 0;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }

  .footer__text {
    width: 100%;
  }

  .map__wrapper {
    height: 320px;
  }
}

@media (max-width: 480px) {
  section:not(.hero) { padding: 4rem 0; }
  .container { width: min(1200px, 94vw); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero__title span { -webkit-text-stroke: 1.5px var(--white); }
  .hero__subtitle { font-size: 0.75rem; margin-bottom: 0.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; min-height: 38px; }
  .btn { width: 100%; justify-content: center; min-height: 48px; }
  .back-to-top { width: 46px; height: 46px; }
  .nav__cta { min-width: 44px; min-height: 44px; }
  .nav__burger { min-width: 44px; min-height: 44px; }
  :root { --nav-h: 86px; }

  .nav__logo {
    padding-top: 5px;
  }

  .nav__logo img {
    height: 42px;
    max-width: min(130px, 40vw);
  }

  .hero__watermark { display: none; }
  .nav__links {
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

}
