body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #f9fafc, #f0f2f5);
  color: #1a1a1a;
}

/* Контейнер */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  width: 100%;
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  min-height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  padding: 8px 0;
}

.top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Левая часть */
.left {
  flex-shrink: 0;
}

.left .logo {
  max-height: 70px;
  margin-left: -60px;
  width: auto;
  height: auto;
  display: block;
}

/* Центр */
.center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #4a5568;
  gap: 15px;
}

/* Верхняя строка */
.info-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
}

.info-top-row p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
}

.info-top-row p:not(:last-child)::after {
  content: "|";
  color: #cbd5e0;
  font-weight: 600;
  margin-left: 12px;
  user-select: none;
}

/* Нижняя строка (телефон + адрес) */
.info-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  margin-left: 35px; /* ← Сдвиг вправо */
}


.info-bottom-row p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
}

.info-bottom-row p:not(:last-child)::after {
  content: "|";
  color: #cbd5e0;
  font-weight: 600;
  margin-left: 12px;
  user-select: none;
}

/* Телефон */
.info-phone {
  margin: 8px 0 0 0;
  font-weight: 600;
  font-size: 15px;
  color: #2b6cb0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Иконки */
.info-top-row i,
.info-bottom-row i,
.info-phone i {
  color: #3182ce;
  font-size: 16px;
  vertical-align: middle;
}

/* Правая часть */
.right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-right: -30px;
}

/* Кнопки */
.buttonsss {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 8px 14px;
  border: 1px solid #3182ce;
  background: white;
  color: #3182ce;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  background-color: #ebf8ff;
}

.btn.primary {
  background: #3182ce;
  color: white;
  font-weight: 600;
}

.btn.primary:hover {
  background: #2b6cb0;
}

/* Поиск */
.search input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  font-size: 14px;
  width: 185px;
  transition: border-color 0.2s;
}

.search input:focus {
  border-color: #3182ce;
  outline: none;
}

/* ---------- НАВИГАЦИЯ ---------- */
.nav-bar {
  background: linear-gradient(to right, #3182ce, #2b6cb0);
  padding: 8px 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Подменю */
.nav-menu .submenu {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
  background-color: white;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  min-width: 180px;
  z-index: 1000;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu .submenu li {
  display: block;
  margin: 0;
}

.nav-menu .submenu li a {
  color: #1a1a1a;
  padding: 8px 16px;
  display: block;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-menu .submenu li a:hover {
  background-color: #f0f4f8;
}

.nav-menu .has-submenu {
  position: relative;
}

.nav-menu .has-submenu:hover .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu .submenu li a {
  color: #1a1a1a;
  padding: 8px 16px;
  display: block;
  text-align: left;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.nav-menu .submenu li a:hover {
  background-color: #f0f4f8;
  transform: translateX(4px) scale(1.02);
  border-radius: 6px;
}

.nav-menu .submenu {
  overflow: hidden;
}

.oftalmolog-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.oftalmolog-header {
  font-size: 32px;
  font-weight: 700;
  color: #2c5282;
  margin-bottom: 8px;
  position: relative;
}

.oftalmolog-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #3182ce;
  border-radius: 2px;
  margin-top: 6px;
}

.breadcrumbs {
  font-size: 14px;
  color: #718096;
  margin: 16px 0 30px;
}

.breadcrumbs i {
  color: #4a90e2;
  margin-right: 6px;
}

.breadcrumbs a {
  text-decoration: none;
  color: inherit;
  /*font-weight: 500; можно добавить*/ 
  transition: all 0.3s ease;
}

.breadcrumbs a:hover {
  color: #3182ce;
  text-shadow: 0 0 0 rgba(49, 130, 206, 0.6); /* Светящийся эффект */
}

/* Навигация: Описание | Врачи */
.oftalmolog-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.oftalmolog-nav a {
  text-decoration: none;
  font-weight: 500;
  color: #2b6cb0;
  padding: 8px 14px;
  border-radius: 12px;
  background-color: #ebf8ff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.oftalmolog-nav a:hover {
  background-color: #2b6cb0;
  color: white;
}

/* Заголовки разделов */
.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin-top: 40px;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #3182ce;
  border-radius: 2px;
  margin-top: 6px;
  margin-left: 5px; /* смещает вправо */
}

/* Основной текст */
.oftalmolog-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #4a5568;
}

/* Списки */
.oftalmolog-list {
  padding-left: 20px;
  margin-bottom: 25px;
}

.oftalmolog-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

/* Заголовок ВРАЧИ */
.oftalmolog-doctors-title {
  font-size: 26px;
  font-weight: 700;
  color: #2c5282;
  margin-top: 50px;
  margin-bottom: 20px;
  position: relative;
}

.oftalmolog-doctors-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #3182ce;
  border-radius: 2px;
  margin-top: 6px;
}

/* Карточки врачей */
.doctor-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.doctor-card {
  width: 280px;
  height: 530px;
  background: #f8f9fb;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.experience {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
}


.doctor-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.doctor-img-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.blur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px; /* было 60px — теперь больше для плавности */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 70%, #ffffff 100%);
  backdrop-filter: blur(5px); /* усиленный блюр */
  pointer-events: none;
}


.doctor-name {
  font-weight: 700;
  font-size: 18px;
  color: #1a202c;
  margin-top: 16px;
  line-height: 1.4;
}

.doctor-specialty {
  display: inline-block;
  background-color: #f0f1fa;
  color: #4a5568;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 14px;
  margin-top: 8px;
}

.appointment-btn {
  margin-top: 16px;  /*было auto*/
  background-color: #5b8ecf;
  color: white;
  font-size: 16px;
  padding: 14px 0;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s ease;
}

.appointment-btn:hover {
  background-color: #3e76b3;
}

.footer {
  background-color: #f5f7fa;
  padding: 60px 20px;
  color: #1e2f48;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  color: #4a6fa5;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 8px;
  color: #33475b;
}

.footer-contact {
  flex: 1 1 240px;
  min-width: 240px;
}

.footer-contact .phone {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1e2f48;
}

.callback-link {
  display: inline-block;
  color: #4a6fa5;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
}

.callback-link:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 13px;
  color: #6c7a89;
  margin-top: 16px;
  line-height: 1.5;
}

.arrow {
  margin-right: 8px;
  color: #4a6fa5;
  font-weight: bold;
}


/* Адаптация для мобильных */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }
  .footer-contact {
    text-align: center;
  }
}

.oftalmolog-reasons p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #333;
}
.oftalmolog-reasons strong {
  color: #2b6cb0;
}

html {
  scroll-behavior: smooth;
}

/*[id^="description"] {
  scroll-margin-top: 100px; /* вариант
} */

.doctor-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
