    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');


    body {
      font-family: 'Inter', sans-serif;
      margin: 0;
      background: white;
      color: #333;
    }
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 40px;
      background: white;
      color: #e60023;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    /* Логотип */
    .logo {
      font-size: 1.8rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .logo-img {
      height: 60px;
      width: auto;
    }
    .logo-red {
      color: #e60023;
    }
    .logo-box {
      background: #e60023;
      color: white;
      padding: 4px 10px;
      border-radius: 4px;
    }

    /* Меню */
    .menu {
      display: flex;
      gap: 20px;
      align-items: center;
    }
    .menu a {
      color: #e60023;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
    }
    .menu a:hover {
      color: #ff4d6d;
    }

    /* Поле поиска */
    #search {
      padding: 6px 12px;
      border: 2px solid #e60023;
      border-radius: 20px;
      font-size: 0.9rem;
      outline: none;
      transition: 0.3s;
    }
    #search:focus {
      border-color: #ff4d6d;
      box-shadow: 0 0 5px rgba(230,0,35,0.5);
    }

    /* Навигация */
    .nav {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 25px auto;
      flex-wrap: wrap;
      max-width: 1000px;
    }
    .nav button {
  padding: 10px 16px;
  border: 2px solid #e60023; /* ← рамка всегда есть */
  background: #e60023;
  color: white;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav button:hover {
  background: white;
  color: #e60023;
}
    /* Сетка карточек */
    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
      justify-items: center;
      padding: 0 30px 60px;
      max-width: 1200px;
      margin: 0 auto;
    }
    .product-card img {
  max-width: 280px;
  max-height: 280px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.product-card {
  width: 100%;
  max-width: 320px;
  height: 380px;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
    .product-card h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e60023;
}
    .product-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 3px 0;
}
   .product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0);
}
  .product-card:hover img {
  transform: scale(1.1);
}

    /* Подсветка поиска */
    mark {
      background: yellow;
      color: black;
      padding: 0 2px;
      border-radius: 3px;
    }

   
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Футер */
    footer {
      text-align: center;
      background: #e60023;
      color: white;
      padding: 20px;
      font-size: 0.9rem;
      margin-top: 30px;
    }


/* Модалка */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  position: relative; /* фикс для крестика */
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  max-width: 600px;
  width: 95%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.modal-content img {
  max-width: 300px;
  margin-bottom: 15px;
}
.close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  color: #e60023;
}
.btn-order {
  margin-top: 15px;
  background: #e60023;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}
.btn-order:hover {
  background: #ff4d6d;
}

