/* =============================================
   P3con – style.css
   Paleta: grafit (#1A1A1A, #2D2D2D) + brand orange-red (#E84010)
   Typografia: Montserrat (nagłówki) + Open Sans (treść)
   Kolorystyka na podstawie logo P3con
   ============================================= */

/* ---------- Google Fonts import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

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

:root {
  /* ── Brand palette z logo P3con ──────────────────── */
  --navy:        #1A1A1A;   /* grafit (header, stopka)          */
  --navy-mid:    #2D2D2D;   /* ciemny grafit (sekcje dark)       */
  --navy-light:  #404040;   /* średni grafit                     */
  --gold:        #E84010;   /* P3con brand orange-red (akcent)   */
  --gold-dark:   #BF3500;   /* ciemniejszy orange (hover)        */
  /* ── Neutralne ──────────────────────────────────── */
  --white:       #FFFFFF;
  --light:       #F5F5F5;
  --border:      #E0E0E0;
  --text:        #2C2C2C;
  --text-muted:  #666666;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.18);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s ease;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-pad { padding-block: 6rem; }
.section-pad-sm { padding-block: 4rem; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold)  !important; }
.text-navy   { color: var(--navy)  !important; }
.text-muted  { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.bg-navy  { background-color: var(--navy); }
.bg-light { background-color: var(--light); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 167, 59, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(10,22,40,0.3);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}
/* "P3" w brand orange, "con" biały */
.logo-main .logo-p3 { color: var(--gold); }
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
/* Footer logo */
.site-footer .logo-main { font-size: 1.45rem; }
.site-footer .logo-sub  { color: rgba(255,255,255,0.38); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-menu li a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.nav-menu li a:focus-visible { outline: 2px solid var(--gold); }


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger:focus-visible { outline: 2px solid var(--gold); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-block: 5rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 640px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  list-style: none;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; }

/* ---------- Hero Section (index) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #1A1A1A 0%, #2D2D2D 55%, #1A1A1A 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* subtelny wzór diamentowy */
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Duże lekkie logo P3con jako watermark po prawej stronie */
.hero-accent {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.045;
  background: url('../img/logo.jpg') center/contain no-repeat;
  filter: grayscale(1) brightness(3);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(242,167,59,0.15);
  border: 1px solid rgba(242,167,59,0.4);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { opacity: 0.5; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Cards (3-column) ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 0.75rem; color: var(--navy); font-size: 1.2rem; }
.card p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Section Heading ---------- */
.section-heading { margin-bottom: 3.5rem; }
.section-heading.text-center { text-align: center; }
.section-heading h2 { margin-bottom: 0.75rem; }
.section-heading p  { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }
.section-heading.text-center p { margin-inline: auto; }

.divider {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.divider.center { margin-inline: auto; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-block: 4rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---------- Service list ---------- */
.service-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  align-items: flex-start;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-body h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.service-body p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Competency badges ---------- */
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.cert-badge:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(242,167,59,0.15);
}
.cert-badge .badge-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.cert-badge h4 { margin-bottom: 0.25rem; color: var(--navy); font-size: 1rem; }
.cert-badge p  { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(242,167,59,0.2));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { color: var(--navy); margin-bottom: 0.25rem; }
.timeline-item .timeline-meta {
  font-size: 0.82rem;
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.form-group label .req { color: var(--gold); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.12);
  background: var(--white);
}
.form-control::placeholder { color: #aab0c0; }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-notice a { color: var(--navy-mid); }

.form-success, .form-error {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.form-success { background: #e6f4ea; color: #276c37; border: 1px solid #b7e0bf; }
.form-error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }

.contact-info-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.contact-info-card .lead { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 2rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(242,167,59,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-text p  { margin: 0; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.contact-info-text small { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  padding-block: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242,167,59,0.1) 0%, transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; max-width: 560px; margin-inline: auto; }
.cta-banner .btn-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; max-width: 300px; }
.footer-tagline {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Scroll-in animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Industry tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: rgba(27,58,107,0.08);
  color: var(--navy-mid);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet ≤ 992px */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .section-pad { padding-block: 4rem; }
  .section-pad-sm { padding-block: 3rem; }

  /* Nav mobile */
  .hamburger { display: flex; }
  .nav-wrap {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    padding: 2rem 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-wrap.open { display: flex; }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }
  .nav-menu li a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    text-align: left;
    border-radius: var(--radius);
  }

  /* Hero adjustments */
  .hero { min-height: 100svh; }
  .hero-inner { max-width: 100%; }
  .hero-accent { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid > *:first-child { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .contact-form { padding: 1.5rem; }
  .contact-info-card { padding: 1.75rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cta-banner, .site-footer { display: none; }
  .hero { min-height: auto; padding: 3rem 0; }
}

/* =============================================
   DODATKOWE KOMPONENTY
   ============================================= */

/* ---------- Project filter ---------- */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.filter-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Project card ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.project-card.hidden { display: none !important; }

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.project-client-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--navy);
  color: var(--gold);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-type-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(27,58,107,0.08);
  color: var(--navy-mid);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.project-card p {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

/* Filter counter */
.project-count {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.project-count strong { color: var(--navy); }

/* ---------- Certificate gallery ---------- */
.cert-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cert-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--light);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  transition: all var(--transition);
}
.cert-gallery-item:hover,
.cert-gallery-item:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(242,167,59,0.18);
  transform: translateY(-4px);
}
.cert-gallery-item:focus-visible { outline: 3px solid var(--gold); }
.cert-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.cert-placeholder-icon { color: var(--navy-mid); opacity: 0.35; }
.cert-placeholder-text {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.cert-overlay-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,0.88));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 2.5rem 1rem 0.9rem;
  text-align: center;
}
.cert-gallery-item .cert-zoom-icon {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: rgba(10,22,40,0.55);
  color: var(--white);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
}
.cert-gallery-item:hover .cert-zoom-icon { display: flex; }

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,22,40,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1.5rem;
}
#lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: min(860px, 95vw);
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -3rem; right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close:focus-visible { outline: 2px solid var(--gold); }
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.88rem;
  margin-top: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact social link ---------- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: rgba(242,167,59,0.18);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Service content block ---------- */
.service-content-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 1.75rem;
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  align-items: start;
}
.service-content-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-content-block .service-icon {
  width: 56px; height: 56px;
  grid-row: span 2;
  align-self: start;
  margin-top: 0.2rem;
}
.service-content-block h3 { margin-bottom: 0.75rem; grid-column: 2; }
.service-content-block p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; grid-column: 2; }

@media (max-width: 580px) {
  .service-content-block {
    grid-template-columns: 1fr;
  }
  .service-content-block .service-icon { grid-row: auto; }
  .service-content-block h3,
  .service-content-block p { grid-column: 1; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .cert-gallery-grid { grid-template-columns: 1fr; }
}
