/* ---- Глобальные стили и переменные (без изменений) ---- */
:root {
  --primary-green: #2e8b57; /* SeaGreen - основной зеленый */
  --dark-green: #256d44; /* Более темный для наведения */
  --light-green-bg: #f0f8f0; /* Очень светлый фон, почти белый */
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
  --font-family: "Montserrat", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: #ffffff;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
h1,
h2,
h3 {
  line-height: 1.3;
  color: var(--primary-green);
  font-weight: 600;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-green);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ---- Стили кнопок (без изменений) ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--primary-green);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(46, 139, 87, 0.3);
}
.btn-header {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}
.btn-header:hover {
  background-color: var(--primary-green);
  color: var(--text-light);
}

/* ---- Шапка (Header) - ИЗМЕНЕНИЯ ЗДЕСЬ ---- */
.main-header {
  background-color: var(--text-light);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
} /* Переименовано с nav в .main-nav */
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---- НОВОЕ: Стили переключателя языков ---- */
.lang-switcher {
  margin-left: 20px;
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: background-color 0.3s, color 0.3s;
}
.lang-btn.active {
  background-color: var(--primary-green);
  color: var(--text-light);
}

/* ---- Все остальные стили ниже остаются БЕЗ ИЗМЕНЕНИЙ ---- */
/* ... (скопируйте сюда все стили от .hero до .main-footer из предыдущей версии) ... */

/* ---- Секция "Герой" ---- */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--light-green-bg);
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text {
  flex-basis: 55%;
}
.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-text .specialty {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 25px;
}
.hero-text .intro {
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.hero-image {
  flex-basis: 40%;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid white;
  box-shadow: var(--card-shadow-hover);
}

/* ---- Секция "Ключевая информация" ---- */
.key-info {
  padding: 80px 0;
}
.key-info-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}
.info-block {
  text-align: center;
}
.info-block i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}
.info-block h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.info-block p {
  font-weight: 500;
}

/* ---- Секция "О враче" ---- */
.about {
  padding: 80px 0;
  background-color: var(--light-green-bg);
}
.about-content {
  display: flex;
  gap: 40px;
}
.about-block {
  flex: 1;
}
.about-block h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.about-block ul {
  list-style: none;
  margin-top: 20px;
}
.about-block ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}
.about-block ul i {
  color: var(--primary-green);
  margin-right: 15px;
  margin-top: 5px;
}

/* ---- Секция "Услуги" ---- */
.services {
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}
.service-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-dark);
}

/* ---- Секция "Сертификаты" ---- */
.certificates {
  padding: 80px 0;
  background-color: var(--light-green-bg);
}
.certificates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.certificates-grid img {
  height: 280px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}
.certificates-grid img:hover {
  transform: scale(1.05);
}

/* ---- Секция "Призыв к действию" ---- */
.cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(rgba(46, 139, 87, 0.8), rgba(46, 139, 87, 0.9)),
    url("https://via.placeholder.com/1920x500") center/cover no-repeat;
  color: var(--text-light);
}
.cta h2 {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.cta p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}
.contact-info {
  margin-bottom: 40px;
}
.contact-info p {
  margin: 10px auto;
  font-weight: 500;
}
.cta .btn {
  background-color: #fff;
  color: var(--primary-green);
}
.cta .btn:hover {
  background-color: #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ---- Подвал (Footer) ---- */
footer.main-footer {
  padding: 20px 0;
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ---- Анимации при скролле ---- */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Адаптивность (Media Queries) - ИЗМЕНЕНИЯ ЗДЕСЬ ---- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-text {
    flex-basis: 100%;
  }
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 15px;
  }
  .hero {
    padding-top: 220px; /* Увеличено, чтобы освободить место для шапки */
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  } /* Позволяем элементам переноситься */
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-image img {
    width: 280px;
    height: 280px;
  }
  .key-info-container {
    flex-direction: column;
    gap: 40px;
  }
  .certificates-grid img {
    height: 220px;
  }
  .cta {
    padding: 60px 20px;
  }
  .cta h2 {
    font-size: 2rem;
  }
}
