/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f9ff;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #2f9a09;
  padding: 20px 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 24px;
  font-weight: 700;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #90caf9;
}

.hero {
  background: url('https://images.unsplash.com/photo-1588776814546-0a7213448c07?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  padding: 0 20px;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  color: #2f9a09;
  margin-bottom: 20px;
  text-align: center;
}

.services {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(30,136,229,0.3);
}

.service-card img {
  width: 80px;
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 10px;
  color:#2f9a09;
}

.contact {
  background: #2f9a09;
  color: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
}

.contact p {
  font-size: 18px;
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

/* --- ОБНОВЛЕННЫЙ БЛОК О НАС (о враче) --- */
#about {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-text {
  flex: 2;
  font-size: 18px;
  text-align: justify;
}

.doctor-card {
  flex: 1;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin-bottom: 15px;
}

.doctor-card h3 {
  margin: 10px 0 5px;
  font-size: 20px;
  color: #333;
}

.doctor-card p {
  font-size: 16px;
  color: #666;
}

/* Мобильная адаптация */
@media(max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
  }

  #about {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .doctor-card img {
    width: 160px;
    height: 160px;
  }
}
.location {
  background: #f0f7ff;
  padding: 40px 20px;
  text-align: center;
}

.location h2 {
  color: #1e88e5;
  font-size: 26px;
  margin-bottom: 20px;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.map-container .address {
  font-size: 18px;
  color: #333;
}

.map-container iframe {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media(max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

