/* ============================================================
   GATE-LOGIC — style.css  (v2)
   ============================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --primary:     #00AEEF;
  --primary-dk:  #0071BC;
  --primary-lt:  #EBF7FF;
  --dark:        #1A2332;
  --text:        #374151;
  --muted:       #6B7A90;
  --border:      #E2ECF5;
  --bg:          #F8FAFF;
  --white:       #FFFFFF;

  --grad-primary:  linear-gradient(135deg, #00AEEF 0%, #0071BC 100%);
  --grad-hero:     linear-gradient(135deg, #00AEEF 0%, #0071BC 55%, #003d7a 100%);
  --grad-dark:     linear-gradient(135deg, #0a1628 0%, #0d2547 55%, #005a9e 100%);
  --grad-cta:      linear-gradient(135deg, #005a9e 0%, #00AEEF 60%, #00c4ff 100%);
  --grad-label:    linear-gradient(135deg, #00AEEF, #0071BC);

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow:     0 4px 20px rgba(0,113,188,0.12), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg:  0 16px 48px rgba(0,113,188,0.18), 0 4px 16px rgba(0,0,0,0.07);

  --r:    12px;
  --r-sm:  8px;
  --r-lg: 20px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--white); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: inherit; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 700; }

/* === GRADIENT TEXT UTIL === */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }

/* === LABEL === */
.label {
  display: inline-block;
  font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.13em;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.7rem;
}
.section-header h2 { color: var(--dark); }
.section-header p  { margin-top: 0.85rem; max-width: 580px; margin-left: auto; margin-right: auto; color: var(--muted); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.875rem; border-radius: 10px; font-weight: 700; font-size: 0.975rem; transition: all 0.22s; cursor: pointer; border: none; white-space: nowrap; font-family: inherit; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,113,188,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00BFFF 0%, #0085C8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,174,239,0.4);
}
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-outline-blue  { background: transparent; color: var(--primary-dk); border: 2px solid var(--primary); }
.btn-outline-blue:hover  { background: var(--primary-lt); transform: translateY(-1px); }
.btn-white  { background: #fff; color: var(--primary-dk); font-weight: 700; }
.btn-white:hover  { background: var(--primary-lt); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; border-radius: 8px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(to bottom, #d6eeff 0%, #ffffff 100%);
  border-bottom: 1px solid #b8ddf5;
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,113,188,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 1.5rem;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 0.125rem; }
.nav-links a {
  padding: 0.5rem 0.8rem; font-size: 0.875rem; font-weight: 600;
  color: var(--dark); border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-dk);
  background: var(--primary-lt);
}
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-phone {
  background: var(--grad-primary); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: 8px;
  font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,113,188,0.2);
}
.nav-phone:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,113,188,0.35); }
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-ham span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; padding: 1.5rem; border-top: 1px solid var(--border); background: #fff; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 0.75rem 0.5rem; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--border); font-size: 0.925rem; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary-dk); }

/* === HERO (light gradient) === */
.hero {
  min-height: 88vh;
  background: var(--grad-hero);
  display: flex; align-items: center;
  padding-top: 76px;
  position: relative; overflow: hidden;
}
/* decorative blobs */
.hero::before {
  content: '';
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
  top: -200px; right: -150px; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,30,80,0.25) 0%, transparent 65%);
  bottom: -100px; left: -100px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 5rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.45rem 1.1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero h1 { color: #fff; max-width: 700px; margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  color: #a8e4ff;
  background: none;
  -webkit-text-fill-color: #a8e4ff;
}
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 520px; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats {
  display: flex; gap: 3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2.5rem; flex-wrap: wrap;
}
.hero-stat strong {
  display: block; font-size: 2.25rem; font-weight: 800; line-height: 1;
  margin-bottom: 0.3rem;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}
.hero-stat span { font-size: 0.875rem; color: rgba(255,255,255,0.65); }

/* === ABOUT === */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text .label { display: block; }
.about-text h2 { color: var(--dark); margin-bottom: 1rem; }
.about-text > p { color: var(--muted); margin-bottom: 2rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.af { display: flex; align-items: flex-start; gap: 0.875rem; }
.af-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(0,174,239,0.12), rgba(0,113,188,0.08));
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary-dk); font-size: 1rem;
}
.af-text strong { display: block; font-size: 0.925rem; color: var(--dark); margin-bottom: 0.2rem; }
.af-text span   { font-size: 0.825rem; color: var(--muted); }
.about-image-block { position: relative; }
.about-img-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--grad-primary);
  color: #fff; border-radius: var(--r);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; }
.about-badge span   { font-size: 0.82rem; opacity: 0.85; }

/* === SERVICES PREVIEW (homepage) === */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.svc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.3s; display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,174,239,0.25); }
.svc-img { aspect-ratio: 4/3; overflow: hidden; background: var(--white); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.svc-img.contain img { object-fit: contain; padding: 1rem; }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { color: var(--dark); font-size: 0.975rem; margin-bottom: 0.4rem; }
.svc-body p  { font-size: 0.84rem; color: var(--muted); flex: 1; }
.svc-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 700; font-size: 0.84rem; margin-top: 1rem;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: gap 0.2s;
}
.svc-link:hover { gap: 0.6rem; }

/* === REALIZACJE PREVIEW (homepage) === */
.real-prev { background: var(--bg); }
.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all 0.3s; }
.rp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rp-img { aspect-ratio: 16/9; overflow: hidden; }
.rp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.rp-card:hover .rp-img img { transform: scale(1.04); }
.rp-body { padding: 1.25rem; }
.rp-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, rgba(0,174,239,0.1), rgba(0,113,188,0.08));
  border: 1px solid rgba(0,174,239,0.2);
  color: var(--primary-dk);
}
.rp-body h3 { color: var(--dark); font-size: 1rem; }

/* === CERTIFICATIONS on homepage === */
.certs { background: var(--white); }
.certs-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.certs-intro .label { display: block; }
.certs-intro h2 { color: var(--dark); margin-bottom: 1rem; }
.certs-intro p  { color: var(--muted); margin-bottom: 2rem; }
.cert-items { display: flex; flex-direction: column; gap: 0.625rem; }
.cert-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); transition: all 0.2s;
  color: var(--dark); font-weight: 600; font-size: 0.925rem;
}
.cert-item:hover {
  border-color: var(--primary); background: var(--primary-lt);
  transform: translateX(5px); box-shadow: var(--shadow-sm);
}
.cert-item-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--grad-primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.cert-item span { flex: 1; }
.cert-item-arrow { font-size: 0.75rem; color: var(--muted); opacity: 0; transition: opacity 0.2s; }
.cert-item:hover .cert-item-arrow { opacity: 1; color: var(--primary-dk); }

/* === CTA BAND === */
.cta-band { background: var(--grad-cta); padding: 5rem 0; }
.cta-band-inner { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,0.8); margin: 1rem auto 2rem; max-width: 500px; }
.cta-band-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* === FOOTER === */
footer { background: #0d1a2a; color: rgba(255,255,255,0.6); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-about p  { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.625rem; }
.social-link {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.95rem; transition: all 0.2s;
}
.social-link:hover { background: var(--grad-primary); color: #fff; }
footer h4 { color: #fff; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
footer ul li { margin-bottom: 0.55rem; }
footer ul li a { font-size: 0.875rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-contact li i { color: var(--primary); margin-top: 0.2rem; flex-shrink: 0; }
.footer-contact li a { transition: color 0.2s; }
.footer-contact li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a:hover { color: var(--primary); }

/* === PAGE HERO (subpages) === */
.page-hero { background: var(--grad-dark); padding: 8rem 0 4.5rem; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 1.25rem;
}
.page-hero .breadcrumb a { transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero .breadcrumb .sep { opacity: 0.3; }
.page-hero h1 { color: #fff; margin-bottom: 0.875rem; }
.page-hero p  { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 580px; }

/* === OFERTA PAGE === */
.oferta-sticky-nav {
  background: linear-gradient(to bottom, #e8f5ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 76px; z-index: 100;
  overflow-x: auto; scrollbar-width: none;
}
.oferta-sticky-nav::-webkit-scrollbar { display: none; }
.ofn-inner { display: flex; min-width: max-content; }
.ofn-link {
  padding: 1rem 1.125rem; font-size: 0.85rem; font-weight: 700;
  color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent; transition: all 0.2s;
}
.ofn-link:hover, .ofn-link.active { color: var(--primary-dk); border-bottom-color: var(--primary); }

.oferta-section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.oferta-section:last-of-type { border-bottom: none; }
.oferta-section-head { margin-bottom: 2.5rem; }
.oferta-section-head .label { display: block; }
.oferta-section-head h2 { color: var(--dark); }
.oferta-section-head p  { color: var(--muted); margin-top: 0.5rem; max-width: 600px; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.prod-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: all 0.25s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: #fff; border-bottom: 1px solid var(--border);
}
.prod-img img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.3s;
}
.prod-img.contain img { object-fit: contain; padding: 1rem; }
/* Render/white-bg products — contain by section */
#slupki-automatyczne .prod-img img,
#slupki-antyterrorystyczne .prod-img img,
#systemy-kontroli-dostepu .prod-img img,
#bramki .prod-img img { object-fit: contain; padding: 0.75rem; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-info { padding: 1rem; }
.prod-info h3 { font-size: 0.9rem; color: var(--dark); line-height: 1.35; }
.prod-info p  { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.todo { color: #f59e0b; font-weight: 700; font-style: italic; }

/* === REALIZACJE PAGE === */
.project-section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.project-section:last-of-type { border-bottom: none; }
.project-head { margin-bottom: 2rem; }
.project-num {
  display: inline-block; font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.project-head h2 { color: var(--dark); font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.project-head p  { color: var(--muted); margin-top: 0.5rem; max-width: 680px; }

/* === SLIDER === */
.slider-wrap { position: relative; }
.slider { position: relative; border-radius: var(--r); overflow: hidden; background: #000; }
.slider-track { display: flex; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.slide { min-width: 100%; }
.slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
  z-index: 10; color: var(--dark); font-size: 0.875rem;
}
.slider-btn:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-btn:disabled { opacity: 0.3; cursor: default; }
.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all 0.25s; padding: 0; }
.slider-dot.active { background: var(--grad-primary); background: var(--primary); transform: scale(1.35); }
.slide-count {
  position: absolute; bottom: 14px; right: 18px;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* === FAQ PAGE === */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.875rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(0,174,239,0.25); }
.faq-q {
  width: 100%; padding: 1.375rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: 1.025rem; font-weight: 700; color: var(--dark); gap: 1rem;
  font-family: inherit;
}
.faq-ico {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, rgba(0,174,239,0.12), rgba(0,113,188,0.08));
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary-dk); font-size: 0.875rem;
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--grad-primary); color: #fff; border-color: transparent; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-a-inner { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 1.5rem 1.5rem; color: var(--muted); line-height: 1.75; }

/* === CERTYFIKATY PAGE === */
.cert-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cert-page-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.25s; display: flex; flex-direction: column;
}
.cert-page-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0,174,239,0.25); }
.cert-page-img { display: block; overflow: hidden; background: #f8faff; border-bottom: 1px solid var(--border); }
.cert-page-img img { width: 100%; height: auto; display: block; transition: transform 0.35s; }
.cert-page-card:hover .cert-page-img img { transform: scale(1.03); }
.cert-page-pdf {
  aspect-ratio: 3/4; background: linear-gradient(135deg, #edf4ff, #dceeff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; border-bottom: 1px solid var(--border);
}
.cert-page-pdf i { font-size: 3.5rem; color: var(--primary-dk); }
.cert-page-pdf p { font-size: 0.85rem; font-weight: 700; color: var(--primary-dk); text-align: center; padding: 0 1rem; }
.cert-page-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cert-page-body h3 { color: var(--dark); font-size: 0.975rem; margin-bottom: 0.875rem; }
.cert-page-body .btn { width: 100%; justify-content: center; }

/* === KONTAKT === */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; align-items: start; }
.contact-info {
  background: var(--grad-primary);
  border-radius: var(--r-lg); padding: 2.5rem; color: #fff;
}
.contact-info h3 { color: #fff; margin-bottom: 2rem; font-size: 1.35rem; }
.ci-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.ci-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.18);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.ci-text small { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; margin-bottom: 0.3rem; }
.ci-text a, .ci-text p, .ci-text span { font-size: 0.95rem; color: #fff; transition: opacity 0.2s; }
.ci-text a:hover { opacity: 0.8; }
.contact-form-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.5rem;
}
.contact-form-box h3 { color: var(--dark); margin-bottom: 1.75rem; font-size: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.125rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 0.45rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.925rem; font-family: inherit; color: var(--dark);
  background: var(--bg); transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-msg { display: none; border-radius: 8px; padding: 1rem 1.25rem; font-weight: 600; font-size: 0.9rem; margin-top: 1rem; }
.form-msg.success { display: block; background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-msg.error   { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.map-wrap { margin-top: 5rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 0.83rem; }
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .certs-inner   { grid-template-columns: 1fr; }
  .cert-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap  { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-ham { display: flex; }
  .nav-inner { height: 68px; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero-inner { padding: 3.5rem 0; }
  .hero-stats { gap: 2rem; }
  .real-grid  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-features { grid-template-columns: 1fr; }
  .about-badge { bottom: -1rem; left: 0.75rem; }
  .cert-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .container     { padding: 0 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .prod-grid     { grid-template-columns: 1fr; }
  .hero-btns     { flex-direction: column; }
  .cta-band-btns { flex-direction: column; align-items: center; }
  .footer-grid   { grid-template-columns: 1fr; }
  .hero h1       { font-size: clamp(2rem, 8vw, 3rem); }
}
