/* Общие стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #0d6efd, #00c6ff);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  padding: 10px 20px;
  background: white;
  color: #0d6efd;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #e6e6e6;
}

/* Section */
.section {
  padding: 3rem 0;
}
.bg-light {
  background-color: #f8f9fa;
}
h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.product-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

/* Footer */
.footer {
  background: #333;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
}

/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
  /* .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav a {
    margin: 10px 0;
  } */
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* // ========================================= */

/* Галерея */
.filter-buttons {
  text-align: center;
  margin-bottom: 2rem;
}
.filter-btn {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.filter-btn.active {
  background-color: #004fd6;
}
.filter-btn:hover {
  background-color: #004fd6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.gallery-item img:hover {
  transform: scale(1.03);
}

/* ============================================ */

/* Преимущества */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item i {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* //======================================================
 */

 /* Hero с фоном */
.hero--background {
  /* https://labprom.by/img/index/main_back2.jpg */
  /* background-image: url('https://placehold.co/1600x800/0d6efd/ffffff?text= Медицинская+мебель'); */
  background-image: url('https://labprom.by/img/index/main_back2.jpg');

  background-size: cover;
  background-position: center;
  color: white;
  text-align: left;
  padding: 6rem 0;
}

.hero--background .hero-content {
  background-color: rgba(0, 0, 0, 0.6); /* затемнение фона под текст */
  border-radius: 10px;
  padding: 2rem;
  max-width: 700px;
}

.hero--background h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero--background p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ddd;
}

/* Контакты в герое */
.hero-contacts {
  margin-top: 1rem;
}

.hero-contacts p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.hero-contacts i {
  width: 24px;
  text-align: center;
  color: #0d6efd;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .hero--background h1 {
    font-size: 2rem;
  }
  .hero--background .hero-content {
    padding: 1.5rem;
  }
}


/* ============================================== */

/* === Липкая шапка === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0d6efd;
  color: white;
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.85;
}

/* @media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
  }
} */


/* =========================== */


/* === Липкий хэдер === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0d6efd;
  color: white;
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  font-size: 1rem;
}

.nav-link:hover {
  opacity: 0.85;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Адаптация под мобильные === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 46px;
    left: 0;
    right: 0;
    background-color: #0d6efd;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    gap: 0.2rem;
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav-link {
    padding: 0.25rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* // ================================================ */
/* === Галерея сертификатов ! === */
.gallery-section {
  padding: 3rem 1rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* === Модальное окно === */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: 5% auto;
  display: block;
  max-width: 100%;
  max-height: 100vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: wheat;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {

  .modal { 
    width: 100%;
    height: 100%;
  }
  .modal-content {
    max-height: 150vh;
    margin: 5rem 0 !important;
  }
 }