html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #ffffff 0%, #e5ccfa 50%, #c2a3e8 100%);
  background-size: cover;
  background-attachment: fixed;
}







.puppies-section {
  padding: 160px 60px 60px 60px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}



.group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  max-width: 240px;
  flex-grow: 1;
}

.input {
  width: 100%;
  height: 40px;
  line-height: 28px;
  padding: 0 1rem;
  padding-left: 2.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  background-color: #ffffff;
  color: #0d0c22;
  transition: .3s ease;
  font-size: 16px;
}

.input::placeholder {
  color: #9e9ea7;
}

.input:focus,
.input:hover {
  outline: none;
  border-color: rgba(116, 101, 228, 0.4);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(116, 101, 228, 0.1);
}

.icon {
  position: absolute;
  left: 1rem;
  fill: #9e9ea7;
  width: 1rem;
  height: 1rem;
}






.custom-select-wrapper {
  position: relative;
  max-width: 240px;
  flex-grow: 1;
  z-index: 10;
}

.custom-select {
  position: relative;
  background-color: #ffffff;
  border: 2px solid transparent;
  border-radius: 8px;
  height: 37px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: .3s ease;
}

.custom-select:hover,
.custom-select.open {
  border-color: rgba(116, 101, 228, 0.4);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(116, 101, 228, 0.1);
}

.selected-option {
  flex: 1;
  color: #0d0c22;
}

.options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: none;
  margin-top: 4px;
  overflow: hidden;
}

.custom-select.open .options {
  display: block;
}

.option {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.option:hover {
  background-color: #f0f0f0;
}




.puppy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 0 160px;
}

/* .puppy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  padding: 0 160px;
} */

.puppy-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 20px;
  width: 350px;
  text-align: center;
  box-shadow:
    0 10px 30px rgba(116, 101, 228, 0.15),
    0 0 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.puppy-card:hover {
  transform: translateY(-5px);
}

.puppy-card img {
  width: 100%;
  height: 250px;
  /* можно подогнать под твой вкус */
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 15px;
}

.puppy-status {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.puppy-status.free {
  background-color: #28a745;
}

.puppy-status.reserved {
  background-color: #dc3545;
}

.puppy-status.sold {
  background-color: #dc8b35;
}

.price {
  font-weight: 600;
  margin-top: 10px;
  color: var(--black);
}






/* ЗАЯВКА НА ЩЕНКА */

.reserve-trigger {
  height: 40px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #ffffff;
  color: #0d0c22;
  font-size: 16px;
  cursor: pointer;
  transition: .3s ease;
  font-weight: 500;
}

.reserve-trigger:hover {
  border-color: rgba(116, 101, 228, 0.4);
  box-shadow: 0 0 0 4px rgba(116, 101, 228, 0.1);
}


/* === Модалка === */
.modal {
  display: none;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 40px;
  border-radius: 30px;
  /* width: 100%;
  max-width: 600px; */
  position: relative;
  box-shadow:
    0 0 12px rgba(187, 177, 230, 0.2),
    inset 0 0 30px rgba(116, 101, 228, 0.05);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}

/* === Форма заявки === */
.puppy-request-wrapper h2 {
  margin-bottom: 30px;
  text-align: center;
}

.puppy-request-wrapper .form-group {
  margin-bottom: 20px;
}

.puppy-request-wrapper label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}


.form-group .custom-select-wrapper {
  max-width: unset;
}



/* === Стили input как у фильтра === */
.puppy-request-wrapper input[type="text"],
.puppy-request-wrapper input[type="tel"] {
  width: 100%;
  height: 40px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #ffffff;
  color: #0d0c22;
  font-size: 16px;
  transition: .3s ease;
  box-sizing: border-box;
}

.puppy-request-wrapper input:focus,
.puppy-request-wrapper input:hover {
  border-color: rgba(116, 101, 228, 0.4);
  box-shadow: 0 0 0 4px rgba(116, 101, 228, 0.1);
  outline: none;
}

/* === Кнопка === */
.puppy-request-wrapper button[type="submit"] {
  width: 100%;
  padding: 12px 30px;
  background-color: #744ae4;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
}

.puppy-request-wrapper button:hover {
  background-color: #5e37cc;
}



@media (max-width: 900px) {

  .puppies-section {
    padding: 160px 20px 60px 20px;
  }

  .filters {
    flex-direction: column-reverse;
    padding: 0 40px;
  }

  .group {
    max-width: unset;
  }

  .custom-select-wrapper {
    max-width: unset;
  }

  .selected-option {
    text-align: center;
  }


  .puppy-grid {
    padding: unset;
  }

  .modal {
    padding: unset;
  }

  .modal-content {
    max-width: 300px;
  }
}