body {
  background-color: #1b1b1b;
  color: #656565;
  padding-top: 80px;
  font-family: "Montserrat", serif;
}

.fixed-top {
  height: 80px;
}

.btn {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 120px;
  min-height: 35px;
  transition: all 0.3s ease;
}

.btn-success {
  background-color: #20aa2e;
  box-shadow: 0 4px 10px rgba(32, 170, 46, 0.4);
}

.btn-success:hover {
  background-color: #1a8c25;
  box-shadow: 0 6px 15px rgba(32, 170, 46, 0.6);
}

.h1, h1 {
  color: #737373;
  font-weight: 600;
  text-align: center;
  font-size: 2rem;
}

a {
    color: #ffc42d;
}

p {
  color: #656565;
}

.btn.btn-custom-dark i {
  margin-right: 3px;
}

.btn-custom-dark {
  background-color: #262832;
  color: #5d5f69;
  border: 1px solid #262832;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-custom-dark:hover,
.btn-custom-dark:focus {
  background-color: #262832;
  color: #ffc107;
  border: 1px solid #ffc107;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
}

.btn-custom-yellow {
  background-color: #ffc107;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.btn-custom-yellow:hover,
.btn-custom-yellow:focus {
  background-color: #e6ac06;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}

.section-spacing {
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer-divider {
  border-top: 1px solid #444;
  margin-top: 40px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #626262;
  text-decoration: none;
  margin-right: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: #626262;
  margin-top: 20px;
  font-weight: 500;
}

button i {
  margin-right: 5px;
}

.card-block {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.card-block:hover img {
  filter: brightness(0.7);
}

.card-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}

.card-block:hover::before {
  opacity: 1;
}

.card-block img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  z-index: 0;
}

.mobile-menu-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  display: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: #1b1b1b;
  padding: 15px;
  z-index: 9999;
}

.mobile-menu.open {
  display: block;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
  padding-bottom: 50px;
  z-index: 9999;
}

.modal-content {
  background-color: #262832;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  border-radius: 5px;
  color: #fff;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

#popupContent p {
  margin-bottom: 1rem;
  color: #a8aab7;
  font-size: 0.9rem;
  line-height: 1.7rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 27, 27, 0.9) !important;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
  padding-bottom: 50px;
  z-index: 9999;
}

.modal-content::-webkit-scrollbar {
  width: 12px;
}

.modal-content::-webkit-scrollbar-track {
  background: #262832;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #ffc107;
  border-radius: 6px;
  border: 3px solid #262832;
}

/* Стили для баннеров */
.desktop-banner {
  display: block;
}

.mobile-banner {
  display: none;
}

@media (max-width: 1000px) {
  .desktop-buttons {
    display: none !important;
  }
  .mobile-menu-icon {
    display: block !important;
  }
  .h1, h1 {
    font-size: 1.4rem;
    text-align: left;
  }
  .card-block::before {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  /* Отображаем мобильный баннер и скрываем десктопный */
  .desktop-banner {
    display: none;
  }
  .mobile-banner {
    display: block;
  }
}
