body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  padding-top: 170px;
  padding: 0;
}
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffa726;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.8);
}
.header-top {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  transition: height 0.3s ease;
}
.main-header.shrink {
  transform: translateY(-140%);
  transition: transform 0.8s ease;
}
.header-top h3 {
  line-height: 1;
}
.header-top p {
  line-height: 0.5;
}
.header-box {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.logo-img {
  max-height: 80px;
  transition: max-height 0.5s ease;
}
.main-header.shrink .logo-img {
  max-height: 50px;
}
.main-menu {
  position: fixed;
  top: 120px;
  width: 100%;
  z-index: 999;
  transition: top 0.5s ease;
}
.main-header.shrink + .main-menu {
  top: auto;
}
.navbar-nav .nav-link {
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ffa726;
}
.page-header {
  background-color: #f0f0f0;
  padding: 200px 0 60px;
  text-align: center;
}
.page-header .logo-img {
  max-height: 100px;
}
.hero {
  width: 100%;
  min-height: auto;
  padding: 200px 1rem 4rem;
  background: url('assets/background.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.custom-section {
  background-color: #fff8e1;
}
.container.clickable {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}
.container.clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.lego-kartya .lego-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.lego-kartya .lego-card:hover {
  
}
.lego-kartya .lego-img-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}
.lego-kartya .lego-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lego-kartya .lego-img-container img:hover {
  transform: scale(1.05);
}
.lego-modal-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lego-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}
.lego-info-grid .age {
  grid-column: 1;
  font-weight: bold;
  color: #444;
}
.lego-info-grid .set-number {
  grid-column: 2;
  text-align: right;
  font-weight: bold;
  color: #444;
}
.lego-info-grid .set-name {
  grid-column: 1;
  font-size: 0.95rem;
}
.lego-info-grid {
  grid-column: 2;
  text-align: right;
  font-size: 0.95rem;
}
.lego-pieces {
  font-size: 0.875rem;
  color: #6c757d;
}
.lego-info-grid .lego-type {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}
.lego-info-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  row-gap: 4px;
}
.lego-text-block {
  grid-row: 1 / span 2;
}
.lego-icon-block {
  grid-row: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lego-type-icon {
  width: 305px;
  height: 40px;
  object-fit: contain;
}
.card-img-top {
      object-fit: cover;
      height: 200px;
      width: 100%;
      cursor: pointer;
	  border-radius: 0.5rem;
	  box-shadow: 0 4px 12px rgba(0,0,0,0.9);
}
.card-img-container {
      height: 200px;
      overflow: hidden;
      background-color: #f9f9f9;
      display: flex;
      align-items: center;
      justify-content: center;
    }
.card-img-container img {
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
      cursor: pointer;
    }
.oklevel-img {
  width: 100%;
  height: auto;
  object-fit: unset;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.9);
}
.oklevel-img:hover {
  transform: scale(1.05);
}
.modal-body img.oklevel-img {
  max-height: 90vh;
  object-fit: contain;
}
.modal-content {
      background-color: #000;
      border: none;
    }
.modal-body img {
      width: 100%;
      height: auto;
    }
.btn-close-white {
      filter: invert(1);
    }
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 32px;
  height: 32px;
  background-image: url('assets/top-arrow.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 1000;
}
footer {
  background-color: #222;
  font-size: 0.8rem;
  color: #fff;
  padding: 1rem;
  text-align: center;
}
@media (max-width: 576px) {
  .header-top {
    height: 120px;
  }
  .main-header.shrink .header-top {
    height: 50px;
  }
  .logo-img {
    max-height: 50px;
  }
  .main-menu {
    top: 120px;
	margin-top: 0;
	padding-top: 0;
  }
  .main-header.shrink + .main-menu {
    top: 0;
  }
  .hero {
    background-attachment: scroll;
    padding-top: 200px;
    padding-bottom: 2rem;
  }
  .display-5 {
    font-size: 1.8rem;
  }
  .lead {
    font-size: 1rem;
  }
}
