:root{
  --primary:#C8D32F;
  --bg:#ffffff;
  --text:#222;
  --muted:#666;
  --max-width:1100px;
  --radius:10px;
  --transition:300ms cubic-bezier(.2,.9,.3,1);
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color-scheme: light;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:16px;
}

/* Container */
.container{
  width:90%;
  max-width:var(--max-width);
  margin:0 auto;
}

/* Header */
.site-header{
  background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(0,0,0,0.04);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.logo{display:flex;align-items:center;text-decoration:none;color:var(--text)}
.logo-img{width:156px;height:56px;margin-right:12px;object-fit:contain}
.brand-main{font-weight:700;display:block}
.brand-sub{font-size:0.9rem;color:var(--muted);display:block}

/* Nav */
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:18px}
.nav-list a{color:var(--text);text-decoration:none;padding:8px 10px;border-radius:8px;transition:var(--transition)}
.nav-list a:hover{background:rgba(200,211,47,0.1)}
.nav-list a.active{color:var(--primary);font-weight:600}

/* Burger */
.burger{display:none;background:none;border:0;padding:8px;cursor:pointer}
.burger-line{display:block;width:22px;height:2px;background:var(--text);margin:4px 0;border-radius:2px;transition:transform 220ms ease, opacity 220ms ease}

/* Hero */
.hero{padding:48px 0}
.hero-inner{display:flex;gap:32px;align-items:center}
.hero-left{flex:1}
.hero-right{flex:1;display:flex;justify-content:center}
.hero h1{font-size:2rem;margin:0;color:var(--text)}
.hero h2{font-size:1.1rem;color:var(--muted);margin:8px 0 16px}
.lead{color:var(--muted);max-width:60ch}
.hero-illustration{width:100%;max-width:420px;border-radius:12px;box-shadow:var(--shadow)}

/* Buttons */
.btn{display:inline-block;padding:10px 16px;border-radius:10px;text-decoration:none;cursor:pointer;border:1px solid transparent;transition:var(--transition)}
.btn-primary{background:var(--primary);color:#fff}
.btn-outline{background:transparent;color:var(--text);border-color:rgba(0,0,0,0.06)}

/* Slider */
.slider-section{padding:28px 0}
.slider{position:relative;overflow:hidden;border-radius:12px;box-shadow:var(--shadow)}
.slides{display:flex;transition:transform 600ms cubic-bezier(.2,.9,.3,1)}
.slide{min-width:100%;flex-shrink:0}
.slide img{width:100%;height:320px;object-fit:cover;display:block}

/* Slider controls */
.slider-controls{position:absolute;right:12px;top:12px;display:flex;gap:8px}
.slider-controls button{background:rgba(255,255,255,0.9);border:0;padding:8px 10px;border-radius:8px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.06)}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.card{background:#fff;border-radius:12px;padding:18px;box-shadow:var(--shadow)}

/* CTA */
.cta{padding:28px 0}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.cta p{margin:0}

/* Footer */
.site-footer{background:#fafafa;padding:22px 0;border-top:1px solid rgba(0,0,0,0.04)}
.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.footer-left{display:flex;align-items:center;gap:12px}
.footer-right{display:flex;align-items:center;gap:12px}
.footer-bottom{padding-top:12px;border-top:1px solid rgba(0,0,0,0.03);margin-top:12px}

/* Social icon in footer */
.social .social-link { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; text-decoration:none; background:transparent; transition:var(--transition) }
.social .social-link:hover { background: rgba(0,0,0,0.03) }
.social .icon { display:block; width:20px; height:20px }

/* Mobile call and map pin buttons */
.mobile-call, .map-pin-btn, .open-map, .mobile-call {
  position:fixed;
  right:16px;
  border-radius:50%;
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  z-index:90;
  box-shadow:var(--shadow);
  font-size:20px;
}
.mobile-call{bottom:80px;background:var(--primary)}
.map-pin-btn{bottom:150px;background:#333}
.open-map{bottom:150px;background:#333}

/* Icon images inside buttons */
.mobile-call .icon-phone, .open-map .icon-pin, .map-pin-btn .icon-pin {
  width:20px;
  height:20px;
  display:block;
  filter: none;
}

/* Map wrap */
.map-wrap{border-radius:12px;overflow:hidden;box-shadow:var(--shadow);margin-top:12px}

/* Cookie banner */
.cookie-banner{
  position:fixed;left:16px;right:16px;bottom:16px;background:#fff;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:95
}
.cookie-actions{display:flex;gap:12px;align-items:center}

/* Accessibility focus */
a:focus, button:focus{outline:3px solid rgba(200,211,47,0.25);outline-offset:2px}

/* Responsive */
@media (max-width:900px){
  .hero-inner{flex-direction:column-reverse}
  .cards{grid-template-columns:1fr}
  .nav{display:none}
  .burger{display:block}
  .logo-img{width:156px;height:48px}
  .slide img{height:220px}
  .mobile-call, .open-map, .map-pin-btn { right:14px; width:52px; height:52px; }
}

/* Menu open state */
.nav.open{display:block;position:absolute;top:72px;right:16px;background:#fff;padding:12px;border-radius:12px;box-shadow:var(--shadow)}
.nav.open .nav-list{flex-direction:column;gap:8px}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{transition:none!important}
  .slides{transition:none}
}

/* Small utilities */
.hidden{display:none}
.center{text-align:center}

/* Ensure images are responsive and accessible */
img{max-width:100%;height:auto;display:block}

/* Specific adjustments for footer variants on subpages */
.page-subpage .site-footer .footer-left{display:none}
.page-subpage .site-footer .nav{display:none}

/* Fine-tuning for icon contrast on dark backgrounds */
.mobile-call svg path, .open-map svg path, .map-pin-btn svg path { vector-effect: non-scaling-stroke; }

/* High contrast focus for keyboard users */
:focus-visible { outline: 3px solid rgba(200,211,47,0.35); outline-offset: 2px; }

/* Minor animation for hero elements (respects reduced motion) */
@media (prefers-reduced-motion: no-preference){
  .hero-left { transform: translateY(6px); opacity: 0; animation: heroIn 700ms ease forwards 200ms; }
  @keyframes heroIn {
    to { transform: translateY(0); opacity: 1; }
  }
}

/* Footer social hover color tweak */
.social .social-link:hover svg path { opacity: 0.95; }

/* Ensure cookie banner buttons are prominent on small screens */
@media (max-width:480px){
  .cookie-banner{left:12px;right:12px;bottom:12px;padding:10px}
  .cookie-actions .btn{padding:8px 12px}
}

/* Small print adjustments */
small{color:var(--muted);font-size:0.9rem}

/* Formularz kontaktowy */
/* Kontener formularza */
.contact-form {
  max-width: 480px;
  margin: 40px auto;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  animation: fadeIn .45s ease;
}

/* Animacja wejścia */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nagłówki */
.contact-form h2 {
  font-size: 26px;
  margin-bottom: 6px;
  color: #333;
  font-weight: 700;
}

.contact-form p {
  margin-bottom: 22px;
  color: #666;
  font-size: 15px;
}

/* Etykiety */
.form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

/* Wrapper pola z ikoną */
.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #C8D32F;
  pointer-events: none;
}

/* Pola formularza */
/* ===========================
   MODAL – TŁO
=========================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* ===========================
   PRZYCISK OTWIERAJĄCY FORMULARZ
=========================== */
.btn-open-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #C8D32F;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(200,211,47,0.25);
}

.btn-open-form i {
  font-size: 18px;
  transition: transform .25s ease;
}

.btn-open-form:hover {
  background-color: #b7c12b;
  box-shadow: 0 6px 18px rgba(200,211,47,0.35);
}

.btn-open-form:hover i {
  transform: translateX(3px);
}

.btn-open-form:active {
  transform: scale(0.97);
}

/* ===========================
   OKNO FORMULARZA
=========================== */
.form-modal {
  background: #fff;
  padding: 32px 36px;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp .35s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nagłówek */
.form-modal h2 {
  font-size: 24px;
  margin-bottom: 18px;
  color: #222;
  font-weight: 700;
}

/* ===========================
   POLA FORMULARZA
=========================== */
.form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: #C8D32F;
  pointer-events: none;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  transition: all .25s ease;
  box-sizing: border-box;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #C8D32F;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,211,47,0.18);
  outline: none;
}

/* ===========================
   PRZYCISK WYSYŁKI
=========================== */
.btn-submit {
  background-color: #C8D32F;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background .25s ease, transform .15s ease;
}

.btn-submit:hover {
  background-color: #b7c12b;
}

.btn-submit:active {
  transform: scale(0.97);
}

/* ===========================
   PRZYCISK ZAMKNIĘCIA
=========================== */
.close-btn {
  margin-top: 18px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* ===========================
   POLITYKA PRYWATNOŚCI
=========================== */
.privacy-note {
  font-size: 12.5px;
  color: #666;
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

.privacy-note a {
  color: #C8D32F;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease;
}

.privacy-note a:hover {
  color: #b7c12b;
}

/* ===========================
   MODAL POTWIERDZENIA
=========================== */
.modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-content h2 {
  color: #6AA6C9;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ===========================
   RESPONSYWNOŚĆ – TELEFONY
=========================== */
@media (max-width: 600px) {

  .modal {
    align-items: flex-start;
    padding-top: 40px;
    overflow-y: auto;
  }

  .form-modal {
    padding: 22px 20px;
    margin: 0 12px 40px;
    border-radius: 10px;
    width: calc(100% - 24px);
  }

  .form-modal h2 {
    font-size: 20px;
  }

  .form label {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .form input,
  .form select,
  .form textarea {
    font-size: 14px;
    padding-left: 38px;
  }

  .input-wrapper i {
    font-size: 16px;
    left: 10px;
  }

  .btn-open-form {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
  }
}
/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
}

.cookie-text { flex: 1; }

/* PANEL USTAWIEŃ */
.cookie-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.cookie-panel-inner {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.hidden { display: none !important; }

/* High contrast */
body.high-contrast .cookie-banner,
body.high-contrast .cookie-panel-inner {
  background: #111 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}
.media-info {
    margin: 60px auto 40px;
    text-align: center;
}

.media-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(10px);
    animation: mediaFade 0.6s ease forwards;
}

.media-logos img {
    height: 40px;
    width: auto;
}

@keyframes mediaFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.high-contrast .media-info h3 {
    color: #ffff00 !important;
}

body.high-contrast .media-logos img {
    filter: invert(100%);
}

