/*=============================
  VARIABLES
=============================*/
:root {
  --accent: #4cc9f0;
  --bg1: #f0f0f0;
  --bg2: #e0e0e0;
  --glass: rgba(255,255,255,0.6);
  --glass-border: rgba(0,0,0,0.08);
  --glass-shadow: 0 8px 24px rgba(0,0,0,0.08);
  --container: 1200px;
  --header-h: 84px;
  --footer-h: 60px;
}

/*=============================
  BASE
=============================*/
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #2c2c2c;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
}

body { padding-top: var(--header-h); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

/*=============================
  HEADER
=============================*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  max-width: var(--container);
  margin: 0 auto;
  flex-wrap: nowrap;
}

.logo { max-height: 64px; display: block; }

.main-nav { display: flex; }
.main-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.2s;
}
.main-nav a:hover {
  background: rgba(76,201,240,0.15);
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/*=============================
  HERO
=============================*/
.hero { padding: 36px 0; }
.hero-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-text { max-width: 720px; }
.hero h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.hero p {
  margin: 0 0 12px;
  color: #f5f5f5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0.95;
}

/*=============================
  BUTTONS
=============================*/
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  background: rgba(255,255,255,0.3);
  color: #2c2c2c;
}
.btn-secondary:hover { background: rgba(255,255,255,0.45); }

/* Styl nowoczesny tylko dla przycisków blogowych */
.btn-blog {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.btn-blog:hover {
  background: linear-gradient(135deg, #334155, #1e293b);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.25);
}


/*=============================
  GLASS CARDS & FORMS
=============================*/
.card-glass,
form.service-form {
  background: var(--glass);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: #2c2c2c;
}

/*=============================
  PRICE GRID
=============================*/
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0;
}
.price-card {
  background: var(--glass);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  color: #2c2c2c;
  box-shadow: var(--glass-shadow);
}
.price-card img {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.price { font-weight: 400; margin-top: 8px; }

/*=============================
  LAYOUT SECTIONS
=============================*/
.sche-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sche-left { flex: 1 1 420px; }
.sche-right { flex: 0 0 420px; }
.sche-right img { width: 100%; border-radius: 12px; }

/*=============================
  TABS
=============================*/
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-btn {
  padding: 8px 12px;
  background: rgba(255,255,255,0.3);
  color: #2c2c2c;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}
.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/*=============================
  FORM GRID
=============================*/
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.65);
  color: #2c2c2c;
  outline: none;
  transition: all 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(76,201,240,0.2);
}
textarea { min-height: 120px; resize: vertical; }
.file-note {
  font-size: 13px;
  background: rgba(255,255,255,0.3);
  padding: 8px;
  border-radius: 10px;
  border: 1px dashed rgba(0,0,0,0.12);
  margin-bottom: 8px;
  color: #2c2c2c;
}
.form-actions { display: flex; gap: 12px; margin-top: 16px; }
small, .small { font-size: 13px; color: #2c2c2c; }

/*=============================
  FOOTER
=============================*/
.site-footer {
  padding: 20px;
  text-align: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,0.08);
  position: relative;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  color: #2c2c2c;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
}
.site-footer a:hover { text-decoration: underline; }

/*=============================
  LEGAL CONTAINER
=============================*/
.legal-container {
  max-width: 800px;
  margin: 40px auto 20px auto;
  padding: 24px;
  background: var(--glass);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  line-height: 1.6;
  overflow-y: auto;
  max-height: 80vh;
  color: #2c2c2c;
}
.legal-container h1,
.legal-container h2 { color: #2c2c2c; margin: 24px 0 12px; }
.legal-container p, .legal-container li { color: #2c2c2c; }
.legal-container a { color: var(--accent); text-decoration: underline; }
.legal-container ul, .legal-container ol { margin-left: 20px; margin-bottom: 12px; }

/*=============================
  COOKIE BANNER
=============================*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass);
  color: #2c2c2c;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1300;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px 12px 0 0;
}
.cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.cookie-icon {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1301;
  font-size: 24px;
  color: #fff;
}

/*=============================
  FADE-IN
=============================*/
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: all .6s ease;
}
.fade-in.show {
  opacity: 1;
  transform: none;
}

/*=============================
  RESPONSIVE
=============================*/
@media (max-width: 1000px) {
  .sche-right, .sche-left { flex: 1 1 100%; }
  .form-grid { grid-template-columns: 1fr; }
  body { padding-top: 110px; }
}

@media(max-width:768px){
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1501;
    }

    .hamburger span {
        display: block;
        height: 3px;
        background: #222;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: none;
        flex-direction: column;
        padding: 16px 0;
        z-index: 1500;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }
}

  .contact-form .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .legal-container { padding: 16px; margin: 20px auto; }
}

.page-column { padding: 0 16px; }

/*=============================
  FILE LIST
=============================*/
#fileList li {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.remove-file {
  color: red;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

/*=============================
  SPECIFIC MARGINS
=============================*/
#etapy, #kontakt { margin-bottom: 40px; }
#sche { margin-top: 40px; }

/*=============================
  IMAGE LAZY LOADING
=============================*/
img[loading] { display: block; max-width: 100%; height: auto; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* allows items to wrap nicely */
}

@media (max-width: 768px) {
  .header-inner   }
  }

  /* Remove these or set to default */
  .main-nav { order: 0; }
  .top-contact { order: 1; }
  .logo-link { order: 2; }
}

.top-contact{display:flex;gap:12px;align-items:center;}
.top-contact a{color:var(--accent);text-decoration:none;font-weight:700;}

/* Pasek postępu */
#progress-container {
  width: 100%;
  background: #eee;
  border-radius: 6px;
  margin-bottom: 20px;
  height: 12px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: width 0.3s ease;
}


/* === KOLORY SEKCJI === */

/* Dane podstawowe i zwykłe pola */
.filled-basic { background-color: #e6ffe6 !important; }

/* Przegrody / warstwy */
.filled-przegrody { background-color: #e0f0ff !important; }

/* Okna / drzwi */
.filled-okna { background-color: #fff0d4 !important; }

/* Systemy techniczne */
.filled-systemy { background-color: #f0e0ff !important; }

/* Animacja */
input, select, textarea {
  transition: background-color 0.25s ease;
}
