/* ==========================================================
   PACS Engineering – pacse.pl
   Styl strony jednostronicowej. Kolory zmieniasz w :root.
   ========================================================== */

:root {
  --bg: #0b0b0c;
  --bg-panel: #121213;
  --bg-band: #111111;
  --line: #3a2f1f;
  --text: #f1eee8;
  --text-muted: #c9c4ba;
  --accent: #c9913f;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--text); }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0b0b0c; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 14px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.logo { display: block; line-height: 0; }
.logo img { display: block; height: 46px; width: auto; }

.main-nav { display: flex; flex-wrap: wrap; gap: 4px 40px; }
.main-nav a {
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .08em;
  padding: 10px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  background: var(--bg) url("../assets/img/hero.jpg") 70% center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px;
  padding: 72px 48px 72px 64px;
  display: flex; flex-direction: column; gap: 26px;
}
.hero h1 {
  margin: 0; font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12; font-weight: 600; letter-spacing: -.01em;
}
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  padding: 16px 26px; font-size: 14px; font-weight: 500; letter-spacing: .08em;
  text-decoration: none; color: var(--accent); background: var(--bg-panel);
  border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: #0b0b0c; }
.btn svg { width: 16px; height: 16px; flex: none; }

.hero-ehedg {
  position: absolute; right: 32px; top: 28px; z-index: 2;
  width: clamp(84px, 9vw, 132px); height: auto;
}

/* Plakietka „AI generated" – na każdym zdjęciu, prawy dolny róg */
.ai-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 76px; height: auto; pointer-events: none;
}
.hero .ai-badge { right: 16px; bottom: 16px; width: clamp(84px, 8vw, 112px); }

/* ---------- Sekcje ---------- */
.section { border-bottom: 1px solid var(--line); }
.section-inner {
  max-width: 1100px; margin: 0 auto; padding: 56px 32px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: .06em; }
.section-head p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); max-width: 520px; }

/* ---------- O nas ---------- */
.values { display: flex; flex-wrap: wrap; gap: 32px 0; width: 100%; }
.value {
  flex: 1 1 280px; min-width: 0; padding: 0 28px;
  display: flex; align-items: center; gap: 22px;
}
.value + .value { border-left: 1px solid var(--line); }
.value svg { flex: 0 0 72px; width: 72px; height: 72px; color: var(--accent); }
.value h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.value p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Oferta ---------- */
.offer-list { width: 100%; max-width: 940px; display: flex; flex-direction: column; gap: 12px; }
.offer {
  display: flex; flex-wrap: wrap;
  background: var(--bg-panel); border: 1px solid var(--line);
}
.offer-photo { position: relative; overflow: hidden; flex: 1 1 260px; min-height: 120px; }
.offer-photo img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.offer-body {
  flex: 2 1 400px; min-width: 0; padding: 20px 28px;
  display: flex; align-items: center; gap: 24px;
}
.offer-body svg { flex: 0 0 64px; width: 64px; height: 64px; color: var(--accent); }
.offer-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.offer-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Realizacje ---------- */
.gallery { width: 100%; max-width: 1136px; display: flex; flex-wrap: wrap; gap: 12px; }
.shot {
  position: relative; overflow: hidden; margin: 0;
  flex: 1 1 280px; min-width: 0; aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.shot img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:nth-child(2) { flex-grow: 1.1; }
.shot .ai-badge { right: 10px; bottom: 10px; width: 80px; }

/* ---------- Kontakt ---------- */
.contact-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 64px; width: 100%; }
.contact-col { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: center; gap: 18px; font-size: 16px; line-height: 1.5; font-style: normal; }
.contact-item svg { flex: 0 0 36px; width: 36px; height: 36px; color: var(--accent); }
.contact-item a { text-decoration: none; }

/* ---------- Stopka ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg); }
.footer-art {
  position: absolute; right: 0; bottom: 0; width: 380px; max-width: 55%;
  opacity: .9; pointer-events: none;
}
.footer-inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.footer-inner .logo img { height: 66px; }
.social { display: flex; gap: 14px; }
.social a {
  width: 44px; height: 44px; border: 1px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  text-decoration: none; transition: background .2s, color .2s;
}
.social a:hover, .social a:focus-visible { background: var(--accent); color: #0b0b0c; }
.social svg { width: 20px; height: 20px; }
.copyright { font-size: 13px; color: var(--accent); text-align: center; }

/* ---------- Tablet / telefon ---------- */
@media (max-width: 860px) {
  .header-inner { padding: 12px 20px; justify-content: center; }
  .main-nav { gap: 2px 24px; justify-content: center; }
  .hero { min-height: 520px; background-position: 62% center; }
  .hero::before {               /* przyciemnienie pod tekstem, gdy zdjęcie jest pod nim */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 100%);
  }
  .hero-content { padding: 56px 24px 72px; }
  .hero-ehedg { right: 16px; top: 16px; }
  .value { padding: 0 8px; }
  .value + .value { border-left: 0; }
  .offer-body { padding: 18px 20px; gap: 18px; }
  .offer-photo { flex-basis: 100%; min-height: 180px; }
  .section-inner { padding: 44px 20px 52px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .contact-item { font-size: 15px; }
  .btn { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .social a { transition: none; }
}
