﻿/* ===== UwagaDron.pl — Igor Mudziejewski — strona osobista ===== */

:root {
  /* ---- motyw ciemny (domyślny) ---- */
  --bg: #0a0a0c;
  --bg-alt: #101013;
  --surface: #16161a;
  --surface-2: #1c1c21;
  --border: #2a2a31;
  --text: #e9ecf3;
  --muted: #a8a8b3;
  --accent: #ff3b30;
  --accent-2: #c81e14;
  --accent-grad: linear-gradient(135deg, #ff3b30, #c81e14);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(10, 10, 12, 0.82);
  --menu-bg: rgba(10, 10, 12, 0.97);
  --ghost-bg: rgba(21, 25, 37, 0.5);
  --logo-bg: #f4f4f6;

  --radius: 16px;
  --radius-sm: 10px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max-w: 1140px;
  color-scheme: dark;
}

/* ---- motyw jasny: wspólny zestaw wartości ---- */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f1f2f6;
  --border: #e4e6ec;
  --text: #16171d;
  --muted: #5b6170;
  --accent: #d81f16;
  --accent-2: #b3140c;
  --accent-grad: linear-gradient(135deg, #e11d15, #b3140c);
  --shadow: 0 10px 30px rgba(24, 26, 40, 0.10);
  --header-bg: rgba(255, 255, 255, 0.85);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --ghost-bg: rgba(255, 255, 255, 0.6);
  --logo-bg: #f6f7f9;
  color-scheme: light;
}

/* ---- auto: gdy użytkownik nie wybrał ręcznie, użyj ustawienia systemu ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff;
    --bg-alt: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #f1f2f6;
    --border: #e4e6ec;
    --text: #16171d;
    --muted: #5b6170;
    --accent: #d81f16;
    --accent-2: #b3140c;
    --accent-grad: linear-gradient(135deg, #e11d15, #b3140c);
    --shadow: 0 10px 30px rgba(24, 26, 40, 0.10);
    --header-bg: rgba(255, 255, 255, 0.85);
    --menu-bg: rgba(255, 255, 255, 0.97);
    --ghost-bg: rgba(255, 255, 255, 0.6);
    --logo-bg: #f6f7f9;
    color-scheme: light;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== dostępność ===== */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--accent);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ===== nagłówek / nawigacja ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }

/* logo (dron w trójkącie) - wariant wg motywu */
.brand-logo { display: inline-flex; flex: none; }
.brand-logo img {
  width: 92px; height: 92px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}
.brand-logo--for-light { display: none; }
.brand-logo--for-dark { display: block; }
:root[data-theme="light"] .brand-logo--for-light { display: block; }
:root[data-theme="light"] .brand-logo--for-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo--for-light { display: block; }
  :root:not([data-theme="dark"]) .brand-logo--for-dark { display: none; }
}

/* wordmark UWAGA DRON - Open Sans, dwie linie, z cieniem */
.brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--text);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
/* obie linie równej szerokości: krótsza (DRON) rozkłada litery do szerokości UWAGA */
.brand-line { display: flex; justify-content: space-between; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-links a:not(.btn) {
  display: block;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 59, 48, 0.08);
  text-decoration: none;
}
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* ===== przełącznik motywu (jasny / ciemny) ===== */
.theme-toggle {
  --tt-w: 62px;
  --tt-h: 30px;
  position: relative;
  width: var(--tt-w);
  height: var(--tt-h);
  flex: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.tt-ico {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.tt-sun { left: 7px; }
.tt-moon { right: 7px; }
.tt-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translate(0, -50%);
  transition: transform 0.28s cubic-bezier(0.4, 0.1, 0.2, 1);
}
/* pozycja suwaka = motyw jasny (dzień) — suwak po lewej, przy słońcu */
:root[data-theme="light"] .tt-thumb { transform: translate(0, -50%); }
:root[data-theme="light"] .tt-sun { color: var(--accent); }
:root[data-theme="light"] .tt-moon { color: var(--muted); }
/* motyw ciemny — suwak po prawej, przy księżycu */
:root[data-theme="dark"] .tt-thumb { transform: translate(calc(var(--tt-w) - 30px), -50%); }
:root[data-theme="dark"] .tt-moon { color: var(--accent); }
/* domyślnie (bez ręcznego wyboru): ciemny = suwak przy księżycu */
.tt-thumb { transform: translate(calc(var(--tt-w) - 30px), -50%); }
.tt-moon { color: var(--accent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .tt-thumb { transform: translate(0, -50%); }
  :root:not([data-theme="dark"]) .tt-sun { color: var(--accent); }
  :root:not([data-theme="dark"]) .tt-moon { color: var(--muted); }
}

/* ===== przyciski ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(200, 30, 20, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(200, 30, 20, 0.42); }
.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: var(--ghost-bg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ===== hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero.jpg") center 35% / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.72) 45%, rgba(10, 10, 12, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.15) 40%, rgba(10, 10, 12, 0.96) 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}
.orb-a {
  width: 480px; height: 480px;
  background: #c81e14;
  top: -180px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-b {
  width: 380px; height: 380px;
  background: #5a1a16;
  bottom: -160px; left: -120px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(233, 236, 243, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 236, 243, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
/* hero leży na ciemnym zdjęciu — tekst zawsze jasny, niezależnie od motywu */
.hero-copy { max-width: 40rem; color: #f2f3f7; }
.hero-copy h1 { color: #ffffff; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cfcfd8;
  max-width: 34rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.hero-sub strong { color: #ffffff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.4rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.2rem 2.2rem;
  margin: 0;
  justify-content: start;
  align-items: start;
}
.stat { display: flex; flex-direction: column-reverse; }
.stat dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat dt { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); max-width: 9rem; }
.stat-unit {
  font-size: 0.5em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.75);
  background: none;
}

/* ikony Phosphor w kartach i wyróżnikach */
.card-icon i, .hl-icon i { color: var(--accent); line-height: 1; display: block; }
.card-icon i { font-size: 1.6rem; }
.hl-icon i { font-size: 1.4rem; }

/* kotwica sekcji wideo pod sticky-header */
#realizacje-wideo { scroll-margin-top: 116px; }

.hero-stats dt { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }

/* ===== sekcje ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 108px; }
.section-alt { background: var(--bg-alt); }

/* ===== o mnie ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo {
  margin: 0 0 1.4rem;
}
.about-photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-photo figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
.about-text { font-size: 1.05rem; color: var(--muted); }
.about-text strong { color: var(--text); }
.about-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.about-highlights li {
  display: flex;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.hl-icon { font-size: 1.4rem; flex: none; }
.about-highlights strong { display: block; margin-bottom: 0.2rem; }
.about-highlights span:not(.hl-icon) { color: var(--muted); font-size: 0.95rem; }

/* ===== karty specjalizacji ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.25);
  margin-bottom: 1rem;
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ===== flota ===== */
.fleet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.fleet-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fleet-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin-bottom: 1.2rem;
  background: radial-gradient(ellipse 85% 80% at 50% 45%, #ffffff 55%, #ececef 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fleet-img img {
  height: 175px;
  width: auto;
  max-width: 95%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.fleet-item:hover .fleet-img img { transform: translateY(-5px) scale(1.03); }
.fleet-item:hover { transform: translateY(-3px); border-color: rgba(255, 59, 48, 0.45); }
.fleet-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.fleet-item h3 { margin: 0; }
.fleet-item h3 span { color: var(--muted); font-weight: 500; font-size: 0.85em; }
.fleet-tag {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.fleet-item > p { color: var(--muted); font-size: 0.97rem; }
.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.specs li {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

/* ===== klienci / social ===== */
.clients {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.clients li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--logo-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  min-height: 96px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clients li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.clients img {
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.socials-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.socials-panel > p:first-child { color: var(--muted); margin-bottom: 1.2rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.social-link svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.social-link .handle { color: var(--muted); font-weight: 400; font-size: 0.88em; }
.socials-panel .note { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ===== proces ===== */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.8rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===== FAQ / akordeon ===== */
.accordion { margin-top: 2rem; display: grid; gap: 0.8rem; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.acc-item h3 { margin: 0; font-size: 1rem; }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.acc-btn:hover { color: var(--accent); }
.acc-chevron {
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.acc-btn[aria-expanded="true"] .acc-chevron { transform: rotate(225deg); margin-top: 4px; }
.acc-panel { padding: 0 1.4rem 1.2rem; }
.acc-panel p { color: var(--muted); margin: 0; }

/* ===== kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}
.contact-info > p { color: var(--muted); font-size: 1.05rem; }
.contact-photo {
  margin: 0 0 1.4rem;
}
.contact-photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  gap: 0.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
}
.ci-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a, .contact-list li > span:not(.ci-label) {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-list a:hover { color: var(--accent); text-decoration: none; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.field label span { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #ff5c5c; }
.field-error { color: #ff8080; font-size: 0.85rem; margin: 0.35rem 0 0; min-height: 1em; }
.form-status { margin: 0.9rem 0 0; font-weight: 600; color: var(--accent); }
.form-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.85rem; }
.form-recaptcha { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.78rem; }
.form-recaptcha a { color: var(--accent); }

/* ===== stopka ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== animacje wejścia ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* fallback bez JS */
.no-js .reveal { opacity: 1; transform: none; }

/* ===== responsywność ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* menu zwija się do hamburgera odpowiednio wcześnie, by nie nachodziło na logo */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--menu-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.25rem 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.8rem 0.75rem; }
  .nav-links .btn { margin-top: 0.5rem; }
}

@media (max-width: 700px) {
  .cards, .fleet, .steps { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .socials { flex-direction: column; align-items: stretch; }
  .brand-logo img { width: 60px; height: 60px; }
  .brand-text { font-size: 1.05rem; }
}

/* ===== Najnowsze z YouTube ===== */
.yt-latest { margin-top: 2.5rem; }
.yt-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}
.yt-consent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.yt-consent[hidden] { display: none; }
.yt-consent p { margin: 0; color: var(--muted); max-width: 40rem; }
.yt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.yt-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.yt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.yt-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: rgba(200, 30, 20, 0.92);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.yt-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.yt-card:hover .yt-play { transform: scale(1.08); background: #e11d15; }
.yt-info { padding: 0.85rem 0.95rem 1rem; }
.yt-vtitle {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-date { color: var(--muted); font-size: 0.78rem; }
.yt-skeleton {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  animation: ytpulse 1.3s ease-in-out infinite;
}
@keyframes ytpulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }
.yt-msg { color: var(--muted); grid-column: 1 / -1; margin: 0; }

/* ===== modal odtwarzacza (popup) ===== */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.yt-modal.is-open { opacity: 1; }
.yt-modal__box { position: relative; width: min(960px, 100%); }
.yt-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.yt-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.yt-modal__close {
  position: absolute;
  top: -16px; right: -16px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.yt-modal__close:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  .yt-modal__close { top: -48px; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .yt-modal { transition: none; }
}

/* ===== honeypot (ukryte pole antyspamowe) ===== */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ===== zgoda w formularzu ===== */
.field-consent { margin-top: 0.4rem; }
.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex: none;
}
.checkbox a { color: var(--accent); }

/* ===== stany statusu formularza ===== */
.form-status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-ok { color: #35c65a; }
.form-status.is-err { color: #ff6b6b; }
.form-status.is-busy { color: var(--muted); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.6; pointer-events: none; }

/* ===== baner cookies ===== */
.cookie-bar {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: cookieUp 0.35s ease both;
}
@keyframes cookieUp { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 62ch; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }

/* ===== strona: polityka prywatności ===== */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.legal .lead { color: var(--muted); margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal h3 { font-size: 1.02rem; margin: 1.2rem 0 0.4rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal .back { display: inline-block; margin-top: 2.5rem; }

@media (max-width: 700px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}
