body {
  background: #0f172a;
  color: white;
  font-family: Arial;
  text-align: center;
}

h1 {
  margin-top: 20px;
}

.form {
  margin: 20px;
}

input {
  padding: 10px;
  margin: 5px;
  border-radius: 8px;
  border: none;
}

button {
  padding: 10px 20px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* HERO */
.hero {
  height: 300px;
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e");

  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 32px;
  margin: 0;
}

.hero p {
  opacity: 0.8;
}

/* SEARCH */
#search {
  padding: 12px;
  width: 250px;
  border-radius: 10px;
  border: none;
  margin-top: 20px;
}

/* GRID как приложение */
#masters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 15px;
}

/* КАРТОЧКА (улучшенная) */
.card {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  transition: 0.2s;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin: 0;
  font-size: 16px;
}

.card p {
  color: white;
  opacity: 0.9;
  margin: 5px 0;
}

/* КНОПКИ */
.card a {
  text-decoration: none;
  font-weight: bold;
}

/* если добавишь кнопки через JS */
.map-btn {
  display: block;
  background: #3b82f6;
  padding: 8px;
  border-radius: 10px;
  color: white;
  margin-top: 6px;
}

.call-btn {
  display: block;
  background: #22c55e;
  padding: 8px;
  border-radius: 10px;
  color: white;
  margin-top: 6px;
}

/* 📱 АДАПТАЦИЯ ПОД ТЕЛЕФОН */
@media (max-width: 600px) {
  #masters {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .card {
    padding: 12px;
  }

  #search {
    width: 90%;
  }

.card iframe {
  margin-top: 10px;
}

  .hero h1 {
    font-size: 24px;
  }

.map {
  display: none;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.map iframe {
  border: none;
  border-radius: 12px;
}

.map-btn {
  margin-top: 8px;
  padding: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
}

.map-btn:hover {
  background: #2563eb;
}

.call-btn {
  display: block;
  margin-top: 8px;
  padding: 8px;
  background: #22c55e;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  text-align: center;
}
@media (max-width: 600px) {

  body {
    text-align: left;
  }

  h1 {
    font-size: 20px;
    padding: 10px;
  }

  .form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  input {
    width: 100%;
    box-sizing: border-box;
  }

  #search {
    width: 90%;
    margin: 10px auto;
    display: block;
  }

  #masters {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .card {
    width: 100%;
    border-radius: 14px;
  }

  .map-btn, .call-btn {
    font-size: 14px;
    padding: 10px;
  }

  .hero {
    height: 200px;
  }

  .hero h1 {
    font-size: 18px;
  }

* {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}
body {
  user-select: none;
}

}
