* { box-sizing: border-box; margin: 0; padding: 0; }
body, button, input, select, textarea {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

body {
  background: #f5f7fa;
}

/* TOP MENU BAR */
.top-bar {
  background: #1a1a1a;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 1.4em;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 0.9;
}

/* BREADCRUMB */
.breadcrumbs {
  padding: 16px 20px 10px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  color: #666;
}
.breadcrumbs a {
  color: #007bff;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .divider {
  padding: 0 6px;
  color: #999;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  padding: 60px 20px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.2em;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 20px;
  opacity: 0.95;
}
.hero .btn {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: #0056b3;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.hero .btn:hover {
  background: #f0f0f0;
}

/* MAIN ORDER FORM CONTAINER */
.page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* LEFT – product preview */
.product-preview {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.id-card {
  width: 100%;
  max-width: 300px;
  height: 180px;
  background: #e0e0e0;
  border-radius: 8px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  border: 1px dashed #ccc;
}
.id-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-preview h2 {
  margin-bottom: 8px;
  font-size: 1.4em;
  color: #222;
}
.product-preview p {
  margin-bottom: 16px;
  color: #555;
  line-height: 1.6;
}
.product-preview h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}
.product-preview ul {
  margin: 0;
  padding-left: 18px;
  color: #555;
  line-height: 1.6;
}
.product-preview ul li {
  margin-bottom: 4px;
}

/* RIGHT – 2‑step order form */
.order-form {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-title {
  font-size: 1.4em;
  margin-bottom: 18px;
  color: #222;
}

/* STEPS nav */
.step-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.step-nav-item {
  padding: 6px 16px;
  border-radius: 30px;
  border: 2px solid #007bff;
  background: #e0e0e0;
  color: #007bff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  flex: 1;
  opacity: 0.8;
  cursor: pointer;
}
.step-nav-item.active {
  background: #007bff;
  color: #fff;
  opacity: 1;
}

/* STEP form */
.step-form {
  display: none;
}
.step-form.current {
  display: block;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}
label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
}
.help-wrapper {
  display: inline-flex;
  align-items: center;
}
.help-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 11px;
  cursor: help;
  margin-left: 4px;
  position: relative;
}
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.help-icon:hover .tooltip {
  opacity: 1;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
textarea {
  height: 80px;
  resize: vertical;
}

/* FOCUS and active states */
input:focus, select:focus, textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.btn-submit {
  margin-top: 14px;
  padding: 10px 16px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  font-weight: 500;
}
.btn-submit:hover {
  background: #0d5dbb;
}
.btn-back {
  padding: 10px 16px;
  background: #666;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-back:hover {
  background: #444;
}

/* BTN container */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* PAYMENT & SHIPPING BLOCK */
.payment-shipping {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f2f5 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.payment-shipping h2 {
  margin-bottom: 16px;
  font-size: 1.6em;
  color: #1a1a1a;
}
.payment-options, .shipping-options {
  margin-bottom: 24px;
}
.payment-options p,
.shipping-options p {
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.method-card {
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
  transition: transform 0.2s, box-shadow 0.2s;
}
.method-card input[type="radio"] {
  margin-right: 6px;
}
.method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.method-card svg {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #ddd;
}
.svg-paypal {
  fill: #007bff;
}
.svg-stripe {
  fill: #6772e5;
}
.svg-bitcoin {
  fill: #f7931a;
}
.svg-litecoin {
  fill: #a6a9aa;
}
.svg-dhl {
  fill: #ff0000;
}
.svg-fedex {
  fill: #4d148c;
}
.svg-usps {
  fill: #0000ff;
}
.svg-poczta {
  fill: #000000;
}

/* GALLERY BLOCK */
.gallery-section {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.gallery-section h2 {
  margin-bottom: 16px;
  font-size: 1.5em;
}
.gallery-section p {
  margin-bottom: 16px;
  color: #666;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LIGHTBOX GALLERY */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.lightbox.visible {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border: 3px solid #fff;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.lightbox-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.lightbox-nav button:hover {
  background: rgba(255,255,255,0.4);
}

/* CONTACT FORM */
.contact-section {
  max-width: 700px;
  margin: 60px auto 40px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.contact-section h2 {
  margin-bottom: 16px;
  font-size: 1.5em;
}
.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #555;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}
.contact-form textarea {
  height: 100px;
  resize: vertical;
}
.contact-form button {
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.contact-form button:hover {
  background: #0056b3;
}

/* FAQ SECTION */
.faq-section {
  max-width: 1000px;
  margin: 60px auto 40px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.faq-section h2 {
  margin-bottom: 24px;
  font-size: 1.7em;
  color: #1a1a1a;
  text-align: center;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.faq-question {
  padding: 16px 20px;
  background: #f0f0f0;
  color: #222;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s, border-color 0.2s;
}
.faq-question:hover {
  background: #e0e0e0;
}
.faq-question.open {
  background: #007bff;
  color: #fff;
}
.faq-question .icon-open  { display: none; }
.faq-question.open .icon-open   { display: inline-block; }
.faq-question .icon-closed { display: inline-block; }
.faq-question.open .icon-closed { display: none; }
.faq-answer {
  padding: 16px 20px;
  background: #ffffff;
  color: #555;
  font-size: 14px;
  line-height: 1.65;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.faq-answer.show {
  max-height: 300px;
  opacity: 1;
}

/* FOOTER */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 30px 20px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 30px;
  align-items: start;
}
.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2em;
}
.footer-info {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 16px;
}
.footer-links {
  margin-top: auto;
  margin-bottom: 0;
}
.footer-links h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: right;
}
.footer-links a {
  color: #999;
  display: block;
  text-decoration: none;
  margin-bottom: 4px;
  font-size: 13px;
  text-align: right;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 16px;
  border-top: 1px solid #444;
  padding-top: 12px;
}
.footer-bottom p {
  margin: 0;
  color: #666;
  text-align: right;
  font-size: 12px;
}

/* "TO TOP" BUTTON */
.btn-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-top.visible {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .breadcrumbs {
    padding-top: 10px;
  }
  .step-nav {
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .step-nav-item {
    padding: 8px 12px;
    font-size: 12px;
  }
  .hero h1 {
    font-size: 1.8em;
  }
  .page-container {
    grid-template-columns: 1fr;
    padding: 15px;
    margin: 15px auto;
  }
  .methods-grid {
    grid-template-columns: 1fr;
  }
  .payment-shipping {
    padding: 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .lightbox-nav {
    flex-direction: row;
  }
  .lightbox-nav button {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-info {
    order: 1;
  }
  .footer-links {
    order: 0;
    text-align: left !important;
  }
  .footer-links h4, .footer-links a {
    text-align: left;
  }

  /* FILE UPLOAD PREVIEW miniatures */
  .file-preview {
    gap: 6px;
    margin-top: 4px;
  }
  .file-preview-item {
    width: 76px;
    height: 76px;
  }
}
/* MODALE */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s;
}
.modal.visible {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}
.modal-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  margin: 0;
  font-size: 1.3em;
  color: #1a1a1a;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 2px 6px;
}
.modal-close:hover {
  color: #000;
}
.modal-body {
  padding: 16px 20px;
  color: #555;
  font-size: 14px;
}
.modal-body pre {
  margin-top: 8px;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  color: #888;
  overflow: auto;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #e0e0e0;
  text-align: right;
}
.btn-close-modal {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.btn-close-modal:hover {
  background: #5a6268;
}