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

html, body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background-color: #e3f2fd;
  border-bottom: 1px solid #bbdefb;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 50px;
}

.nav-text {
  flex: 1;
  min-width: 280px;
  color: #0d47a1;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.nav-text strong {
  color: #1565c0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: #1565c0;
  color: white;
}

.nav-ne-link {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.doc-link {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main {
  flex: 1 0 auto;
  width: 100%;
}

.section {
  padding: 60px 0;
  display: none;
}

.section.active {
  display: block;
}

.section h2 {
  color: #0d47a1;
  margin-bottom: 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid #90caf9;
  padding-bottom: 10px;
}

.section p,
.section ul {
  margin-bottom: 15px;
  color: #444;
}

.section ul {
  padding-left: 20px;
}

.logo,
.nav-text {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.logo img {
  pointer-events: none;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.price-table th {
  background-color: #bbdefb;
  color: #0d47a1;
  font-weight: 600;
}

.price-table tr:hover {
  background-color: #f5f9ff;
}

.price-table td {
  color: #444;
}

.footer {
  flex-shrink: 0;
  background-color: #0d47a1;
  color: #bbdefb;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: #f0f4f8;
  border-radius: 6px;
  margin-block: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: #79aeeb;
  border-radius: 6px;
  border: 2px solid #e3f2fd;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0d47a1;
}

::-webkit-scrollbar-corner {
  background-color: #f0f4f8;
  border-radius: 6px;
}

.btn-download,
.btn-manual,
.btn-certificate {
  display: inline-block;
  margin: 10px 10px 10px 0;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-download {
  background-color: #28a745;
  color: white;
}

.btn-download:hover {
  background-color: #218838;
}

.btn-manual {
  background-color: #17a2b8;
  color: white;
}

.btn-manual:hover {
  background-color: #138496;
}

.btn-certificate {
  background-color: #ffc107;
  color: #212529;
}

.btn-certificate:hover {
  background-color: #e0a800;
}

.product-block {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fafafa;
}

.delivery-terms {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

.btn-more {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 20px 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-more:hover {
  background-color: #0056b3;
}

.product-description {
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #007BFF;
  margin: 20px 0;
  border-radius: 5px;
  line-height: 1.6;
  padding-left: 30px;
}

.product-description.hidden {
  display: none;
}

.two-columns {
  display: flex;
  gap: 30px;
  margin: 20px 0;
}

.two-columns > div {
  flex: 1;
}

@supports (-moz-appearance: none) {
  * {
      scrollbar-width: thin;
      scrollbar-color: #79aeeb #f0f4f8;
  }
}

@media (max-width: 768px) {
  .header-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
  }

  .logo {
      order: -1;
  }

  .nav-text {
      font-size: 0.85rem;
      min-width: auto;
      max-width: 400px;
      margin: 0 auto;
  }

  .nav-list {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      width: 100%;
  }

  .nav-link {
      font-size: 0.9rem;
      padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .footer {
      font-size: 0.85rem;
      padding: 15px 0;
  }
}

.zso-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 12px 0 24px 0;
}

.zso-gallery figure {
  background: white;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eef6ff;
}

.zso-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.zso-gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #1565c0;
  font-weight: 600;
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.img-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.img-modal #modalCaption {
  text-align: center;
  color: #f1f1f1;
  padding: 10px 0;
  font-size: 1rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #bbb;
}

table.zapas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.zapas-table th,
table.zapas-table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
}

table.zapas-table thead th {
  background: #bbdefb;
  color: #0d47a1;
  position: sticky;
  z-index: 2;
}

table.zapas-table thead tr:first-child th {
  top: 0;
}

table.zapas-table thead tr:nth-child(2) th {
  top: 64px;
}

table.zapas-table th {
  height: 64px;
  vertical-align: middle;
}