/* ═══════════════════════════════════════════════════════════
   AGDAR — Przedsiębiorstwo Usług Transportowych
   style.css
═══════════════════════════════════════════════════════════ */

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --blue:        #0093d0;
  --blue-dark:   #006fa0;
  --blue-light:  #e6f5fc;
  --dark:        #1a1a2e;
  --dark-80:     rgba(26, 26, 46, 0.8);
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f0f4f7;
  --gray-200:    #e2e8ed;
  --gray-400:    #9aa5b1;
  --gray-600:    #6b7280;
  --text:        #2d3a45;
  --text-light:  #556070;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --nav-h:       76px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.13);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: #f0f6fb;
  /* Subtle, multi-stop gradient — gives depth without screaming */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0,147,208,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(0,147,208,0.05) 0%, transparent 55%),
    linear-gradient(160deg, #eef4f9 0%, #f8fafc 45%, #f0f5f8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; }
address { font-style: normal; }

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

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 24px;
  pointer-events: none; /* let clicks pass through padding area */
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 20px;
  box-shadow: 0 4px 24px rgba(0, 147, 208, 0.08), 0 1px 4px rgba(0,0,0,0.06);
  pointer-events: all;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--dark);
  background: rgba(0, 147, 208, 0.07);
}

.nav-link.active {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}

.lang-option {
  background: none;
  border: none;
  padding: 4px 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.lang-option:hover {
  color: var(--dark);
}

.lang-option.active {
  color: var(--blue);
  font-weight: 600;
}

.lang-separator {
  color: var(--gray-400);
  font-size: 0.75rem;
  user-select: none;
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}

.hamburger:hover { background: rgba(0,147,208,0.08); }

.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   ANIMATED TRUCK
═══════════════════════════════════════════════════════════ */
.truck-wrapper {
  position: fixed;
  bottom: 8px;
  left: 0;
  z-index: 200;
  pointer-events: none;
  will-change: left;
  transition: left 0.12s linear;
}

.truck-img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero_page.jpeg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 18, 36, 0.52) 0%,
      rgba(10, 18, 36, 0.30) 40%,
      rgba(0, 60, 100, 0.35) 70%,
      rgba(10, 18, 36, 0.65) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 80px 24px 120px;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.88;
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0, 147, 208, 0.45);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: transparent;
  border-color: rgba(255,255,255,0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Scroll hint chevron */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(0); }
  50%       { opacity: 0.9; transform: rotate(45deg) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════
   CONTENT SECTIONS — SHARED
═══════════════════════════════════════════════════════════ */
.content-section {
  padding: 110px 0;
}

.alt-bg {
  background: rgba(255,255,255,0.55);
}

/* Reveal animation */
.reveal-section {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.visible {
  opacity: 1;
  transform: none;
}

/* Section header */
.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-title .accent {
  color: var(--blue);
}

.title-rule {
  width: 56px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 18px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.6;
}

/* Shared text */
.section-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 18px;
}

.section-motto {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--blue);
  margin-top: 4px;
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — O NAS
═══════════════════════════════════════════════════════════ */
.onas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Feature cards */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 147, 208, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.feature-text span {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* Main photo + thumbnails */
.onas-right {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.main-photo-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
  aspect-ratio: 4/3;
}

.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.main-photo-wrapper:hover .main-photo {
  transform: scale(1.03);
}

.onas-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.thumb:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — OFERTA
═══════════════════════════════════════════════════════════ */
.oferta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 36px;
}

.tag {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--white);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tag-accent {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

/* Oferta small photos */
.oferta-small-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.oferta-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.oferta-thumb:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Oferta main photo (right column) */
.oferta-right {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.oferta-main-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s ease;
}

.oferta-right:hover .oferta-main-photo {
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — HISTORIA (TIMELINE)
═══════════════════════════════════════════════════════════ */
.historia-section {
  background: rgba(10, 18, 36, 0.028);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
}

/* Horizontal line through the middle of .tl-connector */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  /* sit in the middle of the connector zone (bottom of each column) */
  bottom: 27px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue), var(--blue-light));
  z-index: 0;
}

/* Each item: two rows — content + connector */
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tl-above {
  flex-direction: column;
}

.tl-below {
  flex-direction: column-reverse;
}

/* Content box */
.tl-content {
  padding: 20px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Connector (just the dot + space around the line) */
.tl-connector {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  flex-shrink: 0;
}

/* Timeline year */
.tl-year {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Timeline photo */
.tl-photo-wrap {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tl-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tl-photo-wrap:hover .tl-photo {
  transform: scale(1.05);
}

.tl-gallery {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tl-gallery .tl-photo {
  display: none;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tl-gallery .tl-photo.tl-photo-landscape {
  aspect-ratio: 4/3;
}

.tl-gallery .tl-photo.tl-photo-portrait {
  aspect-ratio: 3/4;
  max-height: 220px;
  object-fit: contain;
}

.tl-gallery .tl-photo.active {
  display: block;
}

.tl-gallery:hover .tl-photo {
  transform: scale(1.05);
}

.tl-gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.tl-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tl-gallery-dot.active {
  background: var(--white);
}

.tl-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: var(--white);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.tl-gallery:hover .tl-gallery-nav {
  opacity: 1;
}

.tl-gallery-nav.prev { left: 6px; }
.tl-gallery-nav.next { right: 6px; }

.tl-text {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  text-align: center;
  max-width: 200px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — KONTAKT
═══════════════════════════════════════════════════════════ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: stretch;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.company-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--dark);
}

.company-name strong {
  font-size: 1.6rem;
  color: var(--blue);
}

.kontakt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.kontakt-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kontakt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
}

.kontakt-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 9px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text);
}

.kontakt-detail a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.kontakt-detail a:hover {
  color: var(--blue);
}

.kontakt-sub {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Map */
.kontakt-map {
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.kontakt-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 40px 0 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 0.82rem;
  flex: 1;
  min-width: 200px;
}

.footer-motto {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(0,147,208,0.7);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .onas-grid,
  .oferta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .onas-right,
  .oferta-right {
    position: static;
  }

  .oferta-main-photo {
    aspect-ratio: 16/9;
  }

  .oferta-grid .oferta-right {
    order: -1;
  }

  .timeline {
    display: flex;
    flex-direction: column;
  }

  .timeline::before {
    left: 28px;
    right: unset;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue-light), var(--blue), var(--blue-light));
    transform: none;
  }

  /* Tablet: vertical timeline, connector always on left */
  .tl-item.tl-above {
    grid-column: unset;
    flex-direction: row-reverse; /* connector (2nd in DOM) → left */
  }
  .tl-item.tl-below {
    grid-column: unset;
    flex-direction: row; /* connector (1st in DOM) → left */
  }
  .tl-connector {
    height: auto;
    width: 56px;
    flex-shrink: 0;
  }
  .tl-content {
    padding: 16px 16px 32px;
    text-align: left;
    align-items: flex-start;
  }
  .tl-text { text-align: left; max-width: 100%; }
  .tl-photo-wrap { max-width: 320px; }
  .tl-gallery { max-width: 320px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .navbar { padding: 10px 16px; }
  .nav-inner { padding: 8px 12px 8px 16px; }

  /* Language switcher on mobile: before hamburger */
  .lang-switcher {
    margin-right: 4px;
  }

  /* Show hamburger, hide link list by default */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 11px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .container { padding: 0 20px; }

  .content-section { padding: 80px 0; }

  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  .feature-cards { grid-template-columns: 1fr; }

  .onas-thumbnails { grid-template-columns: repeat(3, 1fr); }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Vertical timeline on mobile */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .timeline::before {
    left: 20px;
    top: 0;
    bottom: 0;
    right: unset;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue-light), var(--blue), var(--blue-light));
    transform: none;
  }

  /* tl-above DOM order: [content, connector] → row-reverse puts connector on left */
  .tl-item.tl-above {
    flex-direction: row-reverse;
    grid-column: unset;
  }
  /* tl-below DOM order: [connector, content] → row keeps connector on left */
  .tl-item.tl-below {
    flex-direction: row;
    grid-column: unset;
  }

  .tl-connector {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    justify-content: center;
  }

  .tl-content {
    padding: 16px 12px 32px;
    text-align: left;
    align-items: flex-start;
  }

  .tl-photo-wrap {
    max-width: 100%;
    width: 100%;
  }

  .tl-gallery {
    max-width: 100%;
    width: 100%;
  }

  .tl-gallery-nav {
    opacity: 1;
  }

  .tl-text {
    text-align: left;
    max-width: 100%;
  }

  .truck-img {
    height: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .oferta-small-photos { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .cta-button { padding: 13px 30px; }
  .onas-thumbnails { grid-template-columns: 1fr 1fr; }
  .onas-thumbnails .thumb:last-child { display: none; }
}
