:root {
  --bg-main: #f2f2f0;
  --bg-card: #ffffff;
  --text-main: #1a1a1e;
  --text-muted: #5c5c66;
  --border-color: #d8d8de;
  --border-dark: rgba(255, 255, 255, 0.15);
  --accent: #1a1a1e;
  --accent-text: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border-dark);
  background: #141416;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: #ffffff;
  color: #141416 !important;
}

/* HERO / SEKCJA WSTĘPNA */
.intro-section {
  padding: 5.5rem 0 5rem;
  background: linear-gradient(rgba(10, 10, 12, 0.65), rgba(10, 10, 12, 0.8)), 
              url('tlo.jpg') center/cover no-repeat;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.intro-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.2rem;
}

.intro-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.intro-text p {
  font-size: 1.1rem;
  color: #d1d1d6;
  font-weight: 300;
}

.intro-cta-text {
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-top: 1rem;
  font-weight: 300;
}

.intro-actions {
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: #ffffff;
  color: #141416;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #e2e2e8;
  transform: translateY(-2px);
}

/* LOGO PO PRAWEJ STRONIE W HERO */
.intro-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  max-width: 100%;
  max-height: 500px; /* Zwiększona wysokość logo */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
}

/* KATALOG / REALIZACJE */
.catalog-section {
  padding: 3.5rem 0 4rem;
  background: var(--bg-main);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-main);
}

.count {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.card-image-wrap {
  position: relative;
  background: #ffffff;
  padding: 1.2rem;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.card-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.card-image-wrap:hover img {
  transform: scale(1.03);
}

.zoom-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.4rem;
  background: #ffffff;
}

.card-details {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
}

.select-btn {
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.select-btn:hover {
  opacity: 0.6;
}

/* KONTAKT / SEKCJA KONTAKTOWA */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(rgba(10, 10, 12, 0.75), rgba(10, 10, 12, 0.85)), 
              url('tlo.jpg') center/cover no-repeat;
  color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  color: #ffffff;
  line-height: 1.2;
}

.contact-text p {
  color: #d1d1d6;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: rgba(20, 20, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.8rem;
  transition: border-color 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.card-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: #d1d1d6;
}

.contact-address {
  font-style: normal;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.5;
}

/* MODAL */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-inner {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem 2rem;
  max-width: 850px;
  width: 100%;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close-btn {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
  width: auto;
  height: auto;
  padding: 0;
  z-index: 10;
}

.modal-close-btn:hover {
  opacity: 0.7;
}

.modal-inner img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.modal-caption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-main);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-dark);
  padding: 1.8rem 0;
  background: #141416;
  text-align: center;
  font-size: 0.85rem;
  color: #a1a1aa;
}

/* RESSUSPONSYWNOŚĆ / MOBILNE */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-logo-img {
    max-height: 300px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}