body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d0d0d;
    color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- MENU GÓRNE --- */

.nav {
    background: rgba(0,0,0,0.75);
    padding: 18px 0;
    position: sticky;       /* 🔑 KLUCZOWA ZMIANA */
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    
}

/* --- LOGO --- */

.logo {
    display: flex;
    align-items: center;
	position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* --- HAMBURGER (mobile) --- */

.hamburger {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* --- MENU DESKTOP --- */

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #d9a441;
}

nav .cta {
    color: #d9a441;
}

/* --- RESPONSYWNOŚĆ (MOBILE) --- */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    nav {
      position: fixed;
        top: 40px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        gap: 0;
        display: none;
		margin-top: 0;
    }

    nav a {
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    nav.active {
        display: flex;
    }
}


/* --- HERO --- */

.hero {
    position: relative;
    min-height: 90vh;
    background: url("img/hero.png") center 15% / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .hero {
        background-position: center top;
        min-height: 70vh;
    }
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1); /* stopień zaciemnienia */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2; /* aby tekst był nad przyciemnieniem */
}

.hero h1 { font-size: 46px; margin-bottom: 10px; }
.hero p { font-size: 20px; opacity: .9; }

.btn, .btn-outline {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px;
}
.btn { background: #d9a441; color: #000; }
.btn-outline { color: white; border: 1px solid #d9a441; }

/* --- GRIDY --- */



.product-grid {
    grid-template-columns: repeat(4, 1fr);
}

.tile, .product-card {
    background: #1b1b1b;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.tile h3, .product-card h3 { color: #d9a441; }

/* --- GALERIA --- */

.gallery {
    display: flex;
    gap: 20px;
}
.gallery img {
    width: 33%;
    border-radius: 8px;
    object-fit: cover;
}

/* --- KROKI --- */

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}
.steps div { width: 24%; text-align: center; }

.steps span {
    display: block;
    width: 40px;
    height: 40px;
    background: #d9a441;
    color: black;
    border-radius: 50%;
    margin: auto;
    line-height: 40px;
    font-weight: bold;
}



/* --- STOPKA --- */

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #111;
}

/* -------------------------------------------------------------------
   RESPONSYWNOŚĆ – MOBILE FIRST
------------------------------------------------------------------- */

@media (max-width: 980px) {

    .why-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        flex-direction: column;
    }
    .gallery img {
        width: 100%;
    }

    .steps {
        flex-direction: column;
        gap: 20px;
    }
    .steps div {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* hamburger ON */
    .hamburger { display: flex; }

    /* menu mobile */
    nav {
        position: absolute;
        top: 65px;
        right: 0;
        background: #0d0d0d;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        display: none;
    }

    nav a {
        padding: 12px 0;
        font-size: 18px;
    }

    .product-grid, .why-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 32px; }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: 0.6s;
}
.tile, .product-card, .gallery img, .steps div {
    opacity: 1;
    transform: translateY(0);
}

.top-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    border-bottom: 1px solid #222;
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-right: 1px solid #222;
}

.top-item:last-child {
    border-right: none;
}

.top-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
}

.top-item:hover {
    background: rgba(255,255,255,0.05);
}

/* --- PRODUKTY / KAFLE --- */
.produkty {
    padding: 20px 0;
	background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.product-tile {
    position: relative;
      height: auto;           /* usuwamy sztywną wysokość */
    background-size: 105%;
    background-position: center;
    transition: background-size .6s ease;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

/* przyciemnienie */
.product-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background .4s ease;
}

/* zawartość */
.tile-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.tile-content h3 {
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 18px;
    text-transform: lowercase;
}

/* CTA */
.tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: .85;
    transition: opacity .4s ease;
}

.tile-cta .arrow {
    width: 34px;
    height: 34px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent; /* STAN PRZED */
    color: #fff;             /* STAN PRZED */

    transition: background .4s ease, color .4s ease;
}

/* INTERAKCJA – DESKTOP + MOBILE */
.product-tile:hover .tile-cta .arrow,
.product-tile:active .tile-cta .arrow,
.product-tile:focus .tile-cta .arrow {
    background: #fff; /* STAN PO */
    color: #000;      /* STAN PO */
}

/* HOVER – tło */
.product-tile:hover {
    background-size: 110%;
}

.product-tile:hover::before {
    background: rgba(0,0,0,0.15);
}

.product-tile:hover .tile-cta {
    opacity: 1;
}

/* MOBILE – TYLKO LAYOUT */
@media (max-width: 768px) {
    .product-tile {
        background-size: cover;
        height: 240px;
    }

    .tile-content {
        padding: 24px;
    }

    .tile-content h3 {
        font-size: 24px;
    }
}

/* ===============================
   PREMIUM GRODZKI – KONTAKT
   UNIKALNE KLASY / ZERO KOLIZJI
================================ */

.pg-contact {
  background: #000;
  padding: 56px 0;
  color: #fff;
}

.pg-contact-header {
  margin-bottom: 24px;
}

.pg-contact-header h6 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.pg-contact-header .muted {
  color: #aaa;
  margin-top: 6px;
}

/* GRID */
.pg-contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  gap: 24px;
}

/* PANEL */
.pg-contact-panel {
  background: #fff;
  color: #111;
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
}

/* LEWA STRONA */
.pg-contact-logo img {
  max-width: 160px;
  height: auto;
  margin-bottom: 16px;
}

.pg-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.pg-contact-item i {
  width: 18px;
  height: 18px;
  color: #d9a441;
  flex-shrink: 0;
}

.pg-contact-note {
  margin-top: 16px;
  font-size: 12px;
  opacity: .7;
}

/* FORMULARZ */
.pg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pg-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pg-form-field input,
.pg-form-field select,
.pg-form-field textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.pg-form-field textarea {
  resize: vertical;
}

.pg-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.pg-check {
  margin-top: 3px;
}

.pg-rodo {
  font-size: 7px;
  color: #555;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .hero {
    min-height: 55vh;              /* było 70–90vh → teraz mniej */
    background-position: center center;
    background-size: contain;      /* KLUCZOWE */
  }
}

@media (max-width: 900px) {
  .pg-contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hero {
    background-position: center 5%;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 38vh;      /* było ~50–55vh */
    padding-bottom: 0;    /* usuwa sztuczny dół */
  }
}

.hero-success {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-msg {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #0f5132;
  text-align: center;
  line-height: 1.3;
  padding: 2.5rem 3rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
 
}
