* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px max(20px, calc((100% - 960px) / 2));
  background: #172554;
  font-size: 13px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: 0.3s;
}

.topbar a:hover {
  color: white;
}

.topbar svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .topbar {
    justify-content: center;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 20px;
  background: white;
  border-bottom: 3px solid #2563eb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 30px;
  max-width: 960px;
  min-height: 80px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 46px;
  height: 46px;
}

.logo-name {
  display: block;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #1e3a8a;
}

.logo-tagline {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

nav a {
  padding: 10px 16px;
  border-radius: 25px;
  color: #1e293b;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #2563eb;
}

/* „Kontakt” wyróżniony jako przycisk */
nav > a[href="kontakt.html"] {
  margin-left: 8px;
  background: #2563eb;
  color: white;
}

nav > a[href="kontakt.html"]:hover,
nav > a[href="kontakt.html"].active {
  background: #1e40af;
  color: white;
}

@media (max-width: 700px) {
  header {
    position: static;
  }

  .header-inner {
    justify-content: center;
    padding: 14px 0;
  }

  nav {
    justify-content: center;
  }
}

.dropdown {
  position: relative;
  display: flex;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 280px;
  padding: 15px 0;
  background: #1a1a1a;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 25px;
  border-radius: 0;
  color: #ccc;
  font-size: 14px;
  text-transform: uppercase;
}

.dropdown-menu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  background: white;
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

section h2 {
  color: #1e3a8a;
  margin-top: 0;
}

article {
  background: #f8fafc;
  padding: 20px;
  margin-top: 15px;
  border-left: 5px solid #2563eb;
  border-radius: 10px;
}

/* Strona startowa */

.hero {
  padding: 50px 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2563eb;
}

.hero h2 {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 28px;
  font-size: 18px;
  color: #555;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button {
  margin-top: 0;
}

.button-outline {
  background: transparent;
  color: #2563eb;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.button-outline:hover {
  background: #2563eb;
  color: white;
}

@media (max-width: 600px) {
  .hero {
    padding: 30px 22px;
  }

  .hero h2 {
    font-size: 28px;
  }
}

.section-head {
  max-width: 650px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.feature h3,
.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #1e3a8a;
}

.feature p,
.step p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border: 2px solid #2563eb;
  border-radius: 50%;
  font-weight: bold;
  color: #2563eb;
}

.product-grid.offer-grid {
  grid-template-columns: repeat(2, 1fr);
}

.offer-grid .product-img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 600px) {
  .product-grid.offer-grid {
    grid-template-columns: 1fr;
  }
}

.offer-card h3 {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.offer-card p {
  flex: 1;
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
}

.cta {
  padding: 45px 30px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 25px;
  color: rgba(255, 255, 255, 0.85);
}

.cta .hero-actions {
  justify-content: center;
}

.button-light {
  background: white;
  color: #1e3a8a;
}

.button-light:hover {
  background: #eff6ff;
}

.button-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.breadcrumb {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.section-intro {
  max-width: 650px;
  color: #555;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

/* Szare tło z ikonką widać, dopóki nie dodasz zdjęcia do folderu img */
.product-img,
.gallery-main {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21'/%3E%3C/svg%3E") center / 48px no-repeat;
}

.product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.product-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card h3 {
  flex: 1;
  margin: 0 0 18px;
  font-size: 18px;
}

.product-card h3 a {
  color: #1e3a8a;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: #2563eb;
}

.product-link {
  padding: 10px 18px;
  border: 1px solid #2563eb;
  border-radius: 25px;
  color: #2563eb;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

.product-link:hover {
  background: #2563eb;
  color: white;
}

/* Strona szczegółów produktu */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-thumbs img:hover {
  border-color: #2563eb;
}

/* Jedna miniaturka nie ma sensu – pokazujemy je dopiero od dwóch zdjęć */
.gallery-thumbs img:only-child {
  display: none;
}

.product-info h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.product-lead {
  margin: 0 0 22px;
  color: #555;
}

.sizes-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.sizes span {
  padding: 5px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.packing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 25px;
  font-size: 14px;
  color: #1e3a8a;
}

.packing-note svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-info .button {
  margin-top: 0;
}

.product-sections {
  margin-top: 30px;
}

.product-sections details {
  border-top: 1px solid #e2e8f0;
}

.product-sections details:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.product-sections summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: bold;
  color: #1e3a8a;
  cursor: pointer;
  list-style: none;
}

.product-sections summary::-webkit-details-marker {
  display: none;
}

.product-sections summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: #2563eb;
}

.product-sections details[open] summary::after {
  content: "−";
}

.product-sections details > :not(summary) {
  margin-top: 0;
  color: #444;
}

.product-sections ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.product-sections li {
  margin-bottom: 4px;
}

.product-sections li::marker {
  color: #2563eb;
}

.type-item {
  padding: 20px 22px;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
}

.category-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.category-cta p {
  margin: 0;
  color: #555;
}

.category-cta .button {
  margin-top: 0;
}

.spec-table {
  width: 100%;
  margin-bottom: 15px;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 45%;
  padding-right: 15px;
  color: #64748b;
}

.contact-intro {
  color: #555;
  max-width: 600px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0 35px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

a.contact-card:hover {
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label,
.company-data dt {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
}

.contact-value {
  font-size: 17px;
  font-weight: bold;
  color: #1e3a8a;
  overflow-wrap: anywhere;
}

.company {
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.company h3 {
  margin: 0 0 18px;
  color: #1e3a8a;
}

.company-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 30px;
  margin: 0;
}

.company-data dd {
  margin: 4px 0 0;
  font-size: 16px;
}

footer {
  text-align: center;
  background: #111827;
  color: white;
  padding: 20px;
  margin-top: 40px;
}
.button {
  display: inline-block;
  margin-top: 15px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.button:hover {
  background: #1e40af;
  transform: translateY(-2px);
}