/* =========================================
   ГЛОБАЛЬНЫЕ СТИЛИ И ПРЕДУПРЕЖДЕНИЕ
   ========================================= */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Компактное уведомление */
.compact-warning {
  background-color: #fff0f0;
  color: #cc0000;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid #ffcccc;
}

/* Адаптивность для мобильных: чуть меньше шрифт и отступы */
@media (max-width: 640px) {
  .compact-warning {
    padding: 8px 10px;
    font-size: 13px;
  }
}


/* =========================================
   ШАПКА САЙТА
   ========================================= */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: auto;
}

.slogan {
  color: #003366;
  font-size: 14px;
  font-style: italic;
  flex: 1;
  max-width: 400px;
}

.phone-block {
  text-align: right;
}

.phone-number {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  text-decoration: none;
  display: block;
  margin-bottom: 3px;
  transition: color 0.3s;
}

.phone-number:hover {
  color: #0055bb;
}

.phone-label {
  font-size: 12px;
  color: #888;
}

.btn-online {
  background: #003366;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.btn-online:hover {
  background: #004080;
  color: #fff;
  transform: translateY(-1px);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0077ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.social-icon:hover {
  background: #0055bb;
  color: #fff;
  transform: translateY(-2px);
}

.social-icon i {
  font-size: 22px;
}

/* =========================================
   СЕКЦИЯ УСЛУГ
   ========================================= */
.services-section {
  padding: 60px 0;
  background: #fff;
}

.section-title {
  color: #003366;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #f0f8fc;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* Убираем подчеркивание ссылки */
}

.service-card:hover {
  background: #e0f0fa;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 51, 102, 0.1);
}

.service-card h3 {
  color: #003366;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* =========================================
   СЕКЦИЯ КОНТАКТОВ
   ========================================= */
.contacts-section {
  padding: 60px 0;
  background: #f5f7fa;
}

.contacts-section .section-title {
  color: #003366;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 51, 102, 0.08);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon i {
  font-size: 28px;
  color: #fff;
}

.contact-card h3 {
  color: #003366;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-address {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-schedule {
  margin: 20px 0;
  padding: 15px;
  background: #f0f8fc;
  border-radius: 5px;
}

.contact-schedule p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.contact-schedule strong {
  color: #003366;
  font-size: 15px;
}

.contact-details {
  margin: 15px 0;
}

.contact-details p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.contact-details a {
  color: #0055bb;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: #003366;
  text-decoration: underline;
}

.contact-btn {
  display: inline-block;
  background: #0055bb;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #003366;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* =========================================
   СЕКЦИЯ СПЕЦИАЛИСТЫ
   ========================================= */
.specialists-section {
  padding: 60px 0;
  background: #fff;
}

.specialists-section .section-title {
  color: #003366;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.specialists-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.specialists-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.specialists-intro p strong {
  color: #003366;
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.specialist-card {
  background: #f0f8fc;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none; /* Убираем подчеркивание ссылки */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.specialist-card:hover {
  background: #fff;
  border-color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 51, 102, 0.12);
}

.specialist-icon {
  width: 60px;
  height: 60px;
  background: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

.specialist-card:hover .specialist-icon {
  background: #0055bb;
  transform: scale(1.05);
}

.specialist-icon i {
  font-size: 26px;
  color: #fff;
}

.specialist-card h3 {
  color: #003366;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

/* =========================================
   СЕКЦИЯ ДЕТСКИЕ СПЕЦИАЛИСТЫ
   ========================================= */
.child-specialists-section {
  padding: 60px 0;
  background: #f5f7fa;
}

.child-specialists-section .section-title {
  color: #003366;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.child-specialists-section .specialists-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.child-specialists-section .specialists-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.child-specialists-section .specialists-intro p strong {
  color: #003366;
}

.child-specialists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.child-specialists-grid .specialist-card {
  background: #fff;
  padding: 35px 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.05);
}

.child-specialists-grid .specialist-card:hover {
  background: #fff;
  border-color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12);
}

.child-specialists-grid .specialist-icon {
  width: 65px;
  height: 65px;
  background: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}

.child-specialists-grid .specialist-card:hover .specialist-icon {
  background: #0055bb;
  transform: scale(1.08);
}

.child-specialists-grid .specialist-icon i {
  font-size: 28px;
  color: #fff;
}

.child-specialists-grid .specialist-card h3 {
  color: #003366;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1024px) {
  .specialists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .slogan {
    max-width: 100%;
    order: 3;
  }
  .phone-block {
    text-align: left;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .specialists-grid,
  .child-specialists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specialists-section,
  .child-specialists-section {
    padding: 40px 0;
  }
  .specialists-section .section-title,
  .child-specialists-section .section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .specialists-intro {
    margin-bottom: 35px;
  }
  .specialists-intro p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .logo img {
    height: 50px;
  }
  .slogan {
    font-size: 13px;
  }
  .btn-online {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
  .phone-number {
    font-size: 16px;
  }
  .services-section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .service-card {
    padding: 25px 20px;
    min-height: 80px;
  }
  .service-card h3 {
    font-size: 15px;
  }
  .contacts-section {
    padding: 40px 0;
  }
  .contacts-section .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card {
    padding: 30px 20px;
  }
  .contact-icon {
    width: 50px;
    height: 50px;
  }
  .contact-icon i {
    font-size: 24px;
  }
  .contact-card h3 {
    font-size: 18px;
  }
  .contact-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .specialists-grid,
  .child-specialists-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .specialist-card {
    padding: 25px 20px;
  }
  .specialist-icon {
    width: 50px;
    height: 50px;
  }
  .specialist-icon i {
    font-size: 22px;
  }
  .child-specialists-grid .specialist-card {
    padding: 25px 20px;
  }
  .child-specialists-grid .specialist-icon {
    width: 55px;
    height: 55px;
  }
  .child-specialists-grid .specialist-icon i {
    font-size: 24px;
  }
  .child-specialists-grid .specialist-card h3 {
    font-size: 15px;
  }
}