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

:root {
  --bg: #0b0d12;
  --bg-alt: #10131b;
  --surface: #151925;
  --surface-2: #1a1f2e;
  --border: #262c3d;
  --text: #e9ecf3;
  --muted: #a7aebe;
  --accent: #ffb703;
  --accent-2: #fb8500;
  --accent-grad: linear-gradient(135deg, #ffb703, #fb8500);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max-w: 1140px;
  color-scheme: dark;
}

*, *::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;
}

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: #12100a;
  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: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 44, 61, 0.6);
}
.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; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-text strong { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.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, 183, 3, 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); }

/* ===== 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: #17120a;
  box-shadow: 0 6px 22px rgba(251, 133, 0, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(251, 133, 0, 0.42); }
.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(21, 25, 37, 0.5);
}
.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; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-a {
  width: 480px; height: 480px;
  background: #fb8500;
  top: -180px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-b {
  width: 380px; height: 380px;
  background: #2547a8;
  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: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.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: var(--muted);
  max-width: 34rem;
}
.hero-sub strong { color: var(--text); }
.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;
}
.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: var(--muted); max-width: 9rem; }

.hero-visual { display: flex; justify-content: center; }
.drone-svg { width: min(100%, 420px); }
.drone-float { animation: float 5s ease-in-out infinite; transform-origin: 210px 170px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.prop { transform-origin: center; animation: propSpin 0.9s linear infinite; }
.prop-1 { transform-origin: 105px 105px; }
.prop-2 { transform-origin: 315px 105px; }
@keyframes propSpin {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.25); }
}
.beam { animation: beamPulse 3.5s ease-in-out infinite; }
@keyframes beamPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ===== sekcje ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 68px; }
.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-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, 183, 3, 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, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 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-item:hover { transform: translateY(-3px); border-color: rgba(255, 183, 3, 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, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 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: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.clients li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.clients li:hover { color: var(--text); border-color: rgba(255, 183, 3, 0.45); transform: translateY(-2px); }

.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-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, 183, 3, 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; }

/* ===== 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) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .drone-svg { width: min(70%, 320px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(11, 13, 18, 0.97);
    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; }

  .cards, .fleet, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .socials { flex-direction: column; align-items: stretch; }
}
