

 html {
  scroll-behavior: smooth;
} 

body {

  background: linear-gradient(180deg, #f8fafc, #e0f2fe);
  color: #0f172a;
  font-family: "Oswald", sans-serif;
}


/* HERO */
.catalog-hero {
  position: relative;
    background: linear-gradient(
    180deg,
    #2563eb 0%,   /* ярко-синий сверху */
    #1e40af 50%,  /* глубже */
    #172554 100%  
    );
  text-align: center;
  padding: 80px 20px 40px;
  color: white;
}

.catalog-hero h1 {
  font-size: 80px;
  letter-spacing: 10px;
  margin-bottom: 20px;
}

.catalog-hero img {
  width: 100%;
  max-width: 700px;
}

/* TITLE */
.catalog-title {
  text-align: center;
  padding: 40px 20px;
}

.catalog-title h2 {
  font-size: 50px;
  font-weight: 900;
}

/* GRID */
.catalog {
  padding: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 700px;
  margin: auto;
}

/* CARD */
.product-card {
  background: white;
  border-radius: 20px;
  padding: 15px;
  position: relative;

  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

/* BADGE */
.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #facc15;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* IMAGE */
.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

/* TEXT */
.product-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: 900;
}

.type {
  color: gray;
  font-size: 14px;
}

.desc {
  font-size: 14px;
  color: #555;
}

/* PRICE */
.price {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #f59e0b;
}

/* BUTTON */
.btn {
  display: block;
  text-align: center;
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  background: #f59e0b;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #d97706;
}








/* ФОН (затемнение) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.7);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

/* ОКНО */
.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 20px;

  position: relative;
  overflow: visible;
  animation: scaleIn 0.3s ease;
}



/* АНИМАЦИЯ */
@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* КРЕСТИК */
.close {
  position: absolute;
  top: 15px;
  right: 15px;

  width: 35px;
  height: 35px;

  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 28px;
  cursor: pointer;
  z-index: 100;
}

/* ФОТО */
.modal-img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 10px;
}

/* ТЕКСТ */
.modal-content h2 {
  margin: 10px 0;
}

.type {
  color: gray;
}

.price {
  color: #f59e0b;
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0;
}

.desc {
  font-size: 14px;
  color: #333;
}

/* КНОПКА */
.order-btn {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: #dc2626;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}



.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  overflow-y: auto;   /* 🔥 даёт прокрутку */
  padding: 30px 15px; /* чтобы сверху/снизу был воздух */
}

.modal.active {
  opacity: 1;
  pointer-events: all;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* iPhone анимация */
.modal-content {
  width: 100%;
  max-width: 450px;

  background: white;
  border-radius: 28px;

  padding: 20px;
  text-align: center;
  position: relative;

  transform: scale(0.8) translateY(50px);
  opacity: 0;
  transition: 0.4s;
  max-height: none;   /* чтобы не обрезало */
  overflow: visible;  /* чтобы текст не прятался */
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* крестик */
.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* 📱 СЛАЙДЕР */
.slider {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 15px;
}

.slides {
  display: flex;
  transition: 0.4s;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 15px;
}

/* кнопки */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.order-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.tg {
  background: #229ED9;
}

.wa {
  background: #25D366;
}


.modal .desc {
  text-align: left;
  font-size: 14px;
}




.slide-btn {
  position: absolute;
  top: 40%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  cursor: pointer;
  z-index: 5;
}

.prev { left: 10px; }
.next { right: 10px; }






@media (max-width: 800px) {
 .catalog-hero h1 {
  font-size: 45px;
}
} 


@media (max-width: 700px) {
      .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: auto;
      }
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
}

.catalog-hero h1 {
  font-size: 50px;
}

}


@media (max-width: 650px) {
  .catalog-hero {
    padding: 60px 5px 20px;
  }
  .catalog-hero h1 {
  font-size: 45px;
}
.catalog-title {
  padding: 0;
}

  .catalog-title h2 {
  font-size: 40px;
  padding: 0px;

}

      .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: auto;
      }

      .product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
}

}



@media (max-width: 500px) {

  .catalog-hero h1 {
  font-size: 38px;
  
}
  .catalog-title h2 {
  font-size: 38px;
  padding: 30px 10px;
}
      .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: auto;
      }

.catalog {
  padding: 5px;
}
.product-card {
  padding: 7px;
}
      .product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
}

}

@media (max-width: 434px) {

 .catalog-hero h1 {
  font-size: 30px;
 }
}