/* =====================================================
   ДЕНТОН — denton-nvkz.ru
   Основные стили, CSS-переменные, дизайн-система
   ===================================================== */

/* --- CSS-переменные (дизайн-система) --- */
:root {
  /* Палитра (из оригинального сайта denton-nvkz.ru) */
  --accent:        #25c9da;
  --accent-dark:   #438a92;
  --accent-light:  #d4f4f7;
  --link:          #1a8a96;
  --link-hover:    #145f68;
  --primary:       #264653;
  --primary-light: #3D6073;
  --white:         #FFFFFF;
  --bg:            #F8F9FA;
  --bg-card:       #FFFFFF;
  --text:          #333333;
  --text-muted:    #888888;
  --text-light:    #aaaaaa;
  --border:        #e4e4e4;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:  0 6px 24px rgba(37,201,218,.15);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    .25s ease;

  /* Оранжевый акцент (кнопки форм, имя врача, цены) */
  --orange:        #e87c4f;
  --orange-dark:   #d06a3d;
  --orange-light:  #fef0ea;

  /* Типографика */
  --ff-main:  'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-heading: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Размеры */
  --container: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-heading); line-height: 1.25; color: var(--primary); }

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Типографика --- */
h1 { font-size: 2rem; font-weight: 700; margin-bottom: .75em; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .4em; }
h4 { font-size: 1.1rem;   font-weight: 600; margin-bottom: .3em; }
p { margin-bottom: 1em; }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: .5em auto 0;
  border-radius: 2px;
}

/* --- Секции --- */
.section {
  padding: 4rem 0;
}
.section--alt {
  background: var(--white);
}

/* --- Хедер (инъекция через main.js) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(38,70,83,.08);
}

/* Верхняя полоса: адрес, режим, телефоны */
.header-top {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 8px 0;
}
.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.header-top__address,
.header-top__schedule {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.header-top__address svg,
.header-top__schedule svg {
  flex-shrink: 0;
  opacity: .7;
}
.header-top__phones {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.header-top__phones a {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.header-top__phones a:hover {
  color: var(--white);
}

/* Нижняя полоса: лого + навигация + кнопка */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.header-main__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-main__logo img {
  height: 44px;
  width: auto;
}
.header-main__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.header-main__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.header-main__tagline {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--link);
  font-weight: 500;
}
.header-main__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.header-main__btn:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Навигация --- */
.nav__list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__link {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover,
.nav__link--active {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* Выпадающее меню */
.nav__item--dropdown {
  position: relative;
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown .nav__link {
  padding: 10px 18px;
  font-size: .85rem;
}

/* --- Ссылка «Все специалисты» под слайдером --- */
.doctors-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.doctors-more__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}
.doctors-more__link:hover {
  color: var(--link-hover);
}
.doctors-more__link svg {
  transition: transform var(--transition);
}
.doctors-more__link:hover svg {
  transform: translateX(3px);
}

/* --- Бургер (кнопка) --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 110;
}
.burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger--active .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--active .burger__line:nth-child(2) { opacity: 0; }
.burger--active .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Хлебные крошки --- */
.breadcrumbs {
  padding: 1rem 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .85rem;
  color: var(--text-muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before {
  content: '/';
  color: var(--text-light);
  margin-right: 4px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--link); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* --- Герой (hero-слайдер) --- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-slider {
  position: relative;
  min-height: 420px;
}

/* Слайд */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 1;
}
.hero-slide--active {
  opacity: 1;
  z-index: 2;
}

/* Фоновое изображение */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* Затенение + градиент поверх фото */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38,70,83,.88) 0%, rgba(37,201,218,.7) 100%);
}

/* Контент слайда */
.hero-slide__content {
  position: absolute;
  top: 66%;
  transform: translateY(-50%);
  z-index: 3;
  left: 0;
  right: 0;
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5em;
}
.hero__subtitle {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 1.5em;
  max-width: 600px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Стрелки слайдера */
.hero-slider__prev,
.hero-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.hero-slider__prev:hover,
.hero-slider__next:hover {
  background: rgba(255,255,255,.4);
}
.hero-slider__prev { left: 16px; }
.hero-slider__next { right: 16px; }

/* Точки-индикаторы */
.hero-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.hero-slider__dot:hover {
  background: rgba(255,255,255,.7);
}
.hero-slider__dot--active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.15);
}

/* --- Быстрые ссылки (под hero) --- */
.quick-links {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.quick-links__inner {
  display: flex;
}
.quick-links__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), color var(--transition);
  border-right: 1px solid var(--border);
}
.quick-links__item:last-child { border-right: none; }
.quick-links__item:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.quick-links__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.quick-links__item:hover .quick-links__icon {
  background: var(--accent);
  color: var(--white);
}
.quick-links__item--phone {
  background: var(--orange);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}
.quick-links__item--phone .quick-links__icon {
  background: rgba(255,255,255,.2);
  color: var(--white);
}
.quick-links__item--phone:hover {
  background: var(--orange-dark);
  color: var(--white);
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.3;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,201,218,.35);
}
.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--primary);
}
.btn--white:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn--sm {
  padding: 8px 18px;
  font-size: .85rem;
}

/* --- Карточки --- */
.cards {
  display: grid;
  gap: 24px;
}
.cards--2col { grid-template-columns: repeat(2, 1fr); }
.cards--3col { grid-template-columns: repeat(3, 1fr); }
.cards--4col { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card__body {
  padding: 1.25rem;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .4em;
}
.card__title a { color: var(--primary); }
.card__title a:hover { color: var(--link); }
.card__text {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .75em;
}
.card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 20px;
}

/* --- Карточка врача --- */
.doctor-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.5rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.doctor-card__photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.doctor-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.doctor-card__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .2em;
}
.doctor-card__name a { color: var(--primary); }
.doctor-card__name a:hover { color: var(--link); }
.doctor-card__role {
  color: var(--orange);
  font-weight: 500;
  margin-bottom: .5em;
}
.doctor-card__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
.doctor-card__link:hover {
  color: var(--link-hover);
}
.doctor-card__link svg {
  transition: transform var(--transition);
}
.doctor-card__link:hover svg {
  transform: translateX(3px);
}
.doctor-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
}

/* --- Карточка врача: вертикальный вариант (страница Врачи) --- */
.doctor-card--vertical {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.doctor-card--vertical .doctor-card__photo {
  width: 160px;
  height: 200px;
  margin-bottom: .5rem;
}
.doctor-card--vertical .doctor-card__info {
  align-items: center;
}
.doctor-card--vertical .doctor-card__link {
  justify-content: center;
}

/* --- Слайдер врачей --- */
.doctors-slider {
  position: relative;
}
.doctor-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 1;
}
.doctor-slide--active {
  position: relative;
  opacity: 1;
  z-index: 2;
}

/* Стрелки слайдера врачей */
.doctors-slider__prev,
.doctors-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.doctors-slider__prev:hover,
.doctors-slider__next:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.doctors-slider__prev { left: -12px; }
.doctors-slider__next { right: -12px; }

/* Точки-индикаторы врачей */
.doctors-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.25rem;
}
.doctors-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.doctors-slider__dot:hover {
  background: var(--accent);
}
.doctors-slider__dot--active {
  background: var(--accent);
  transform: scale(1.25);
}

/* --- Прайс-таблица --- */
.price-table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.5em 0;
}
.price-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: .9rem;
}
.price-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.price-table tr:nth-child(even) td {
  background: var(--bg);
}
.price-table tr:hover td {
  background: var(--accent-light);
}
.price-table .price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--orange);
}

/* --- Секция отзывов: сетка 3 колонки (2 слайдер + 1 CTA) --- */
.reviews-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.reviews-slider {
  position: relative;
}
.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 1;
}
.review-slide--active {
  position: relative;
  opacity: 1;
  z-index: 2;
}
.reviews-slider__prev,
.reviews-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.reviews-slider__prev:hover,
.reviews-slider__next:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.reviews-slider__prev { left: -12px; }
.reviews-slider__next { right: -12px; }
.reviews-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}
.reviews-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.reviews-slider__dot:hover { background: var(--accent); }
.reviews-slider__dot--active {
  background: var(--accent);
  transform: scale(1.25);
}

/* CTA-карточка «Оставить отзыв» */
.review-card--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  margin-top: -115px;
}

/* --- Внешние отзывы (ссылки на 2ГИС и Яндекс) --- */
.reviews-external {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--accent-light);
  border-radius: var(--radius);
}
.reviews-external p {
  margin-bottom: .75rem;
  font-weight: 500;
  color: var(--primary);
}
.reviews-external__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.reviews-external__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.reviews-external__link:hover {
  transform: translateY(-2px);
}
.reviews-external__link--2gis {
  background: #00C753;
  color: var(--white);
}
.reviews-external__link--2gis:hover {
  background: #00a845;
  color: var(--white);
}
.reviews-external__link--yandex {
  background: #FC3F1D;
  color: var(--white);
}
.reviews-external__link--yandex:hover {
  background: #e03315;
  color: var(--white);
}

/* --- Список отзывов (страница отзывов) --- */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Отзывы (базовые стили карточки) --- */
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform var(--transition);
}
.review-card:hover { transform: translateY(-2px); }
.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .75em;
}
.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.review-card__avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.review-card__name {
  font-weight: 600;
  color: var(--primary);
}
.review-card__stars {
  color: #F59E0B;
  font-size: .9rem;
  margin-top: 2px;
}
.review-card__text {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Форма записи --- */
.form-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
}
.form-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.form-section h2 { color: var(--white); }
.form-section p { opacity: .9; }

.appointment-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-hover);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-main);
  transition: border-color var(--transition);
  color: var(--text);
  background: var(--white);
}
.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .error {
  font-size: .8rem;
  color: #E53E3E;
  margin-top: 4px;
  display: none;
}
.form-group--error input,
.form-group--error textarea {
  border-color: #E53E3E;
}
.form-group--error .error { display: block; }
.form-submit {
  margin-top: .5rem;
  width: 100%;
}

/* Чекбокс согласия */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.consent-group input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: .1rem;
  width: 32px;
  height: 32px;
  accent-color: var(--accent);
}
.consent-group label {
  display: inline;
  font-weight: 400;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}
.consent-group label a {
  color: var(--link);
}
.consent-group--error label {
  color: #E53E3E;
}
.consent-group--error input[type="checkbox"] {
  outline: 2px solid #E53E3E;
}

/* --- Футер (инъекция через main.js) --- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin-bottom: .75em;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}
.footer-grid a {
  color: var(--link);
  font-size: .9rem;
  display: block;
  padding: 2px 0;
  transition: color var(--transition);
}
.footer-grid a:hover { color: var(--link-hover); }
.footer-contacts p {
  font-size: .9rem;
  margin-bottom: .3em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
}
.footer-contacts a {
  display: inline;
  color: var(--link);
  text-decoration: none;
}
.footer-contacts a:hover {
  color: var(--link-hover);
}
.footer-disclaimer {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #264653;
  margin-bottom: .75rem;
  letter-spacing: .02em;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text);
}
.footer-bottom a {
  color: var(--link);
  text-decoration: underline;
}
.footer-bottom a:hover {
  color: var(--link-hover);
}

/* --- Перетяжка «Сайт изготовлен...» --- */
.site-credit {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  font-size: .8rem;
  padding: 10px 0;
}
.site-credit a {
  color: var(--white);
  text-decoration: underline;
}
.site-credit a:hover {
  color: var(--accent-light);
}

/* --- Утилиты --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Анимации (IntersectionObserver) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Страница с боковым меню (услуги, врачи) --- */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.sidebar-nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
}
.sidebar-nav h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .75em;
}
.sidebar-nav a {
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a--active {
  background: var(--accent-light);
  color: var(--link);
}

/* --- Сетка изображений (кабинеты, документы) --- */
.gallery {
  display: grid;
  gap: 16px;
}
.gallery--3col { grid-template-columns: repeat(3, 1fr); }
.gallery--4col { grid-template-columns: repeat(4, 1fr); }
.gallery img {
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--transition);
}
.gallery img:hover { transform: scale(1.03); }

/* --- Lightbox (для фото-галереи) --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox--open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,.35);
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  z-index: 1001;
}

/* --- Баннеры преимуществ --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card__title {
  font-weight: 600;
  margin-bottom: .3em;
  color: var(--primary);
}
.feature-card__text {
  font-size: .85rem;
  color: var(--text-muted);
}

/* --- Контент-страницы (о нас, гарантии, документы и т.д.) --- */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.page-content h1 { margin-bottom: 1.5rem; }
.page-content h2 { margin-top: 2rem; }
.page-content ul,
.page-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .3em; }
.page-content img {
  border-radius: var(--radius-sm);
  margin: 1em 0;
}

/* --- Контактная информация --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: .75em; }
.contact-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .3em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-card a { color: var(--link); }
.contact-card a:hover { color: var(--link-hover); }

/* --- Карта --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Alert / Уведомление --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1em;
}
.alert--info {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-left: 4px solid var(--accent);
}
.alert--warning {
  background: #FFF7ED;
  color: #92400E;
  border-left: 4px solid #F59E0B;
}

/* --- Форма сообщения (успех/ошибка) --- */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.form-message.alert--info {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-left: 4px solid var(--accent);
}
.form-message.alert--warning {
  background: #FFF7ED;
  color: #92400E;
  border-left: 4px solid #F59E0B;
}

/* --- Карта-заглушка (пока 2ГИС виджет не подключён) --- */
.map-container img {
  transition: transform var(--transition);
}
.map-container:hover img {
  transform: scale(1.02);
}

/* --- Ссылка-карточка (услуги) --- */
a.card {
  text-decoration: none;
  color: inherit;
}
a.card:hover .card__title {
  color: var(--link);
}

/* --- Ссылка-врач --- */
/* --- Карточка вакансии --- */
.vacancy-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 1rem;
}
.vacancy-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--primary);
  color: var(--white);
}
.vacancy-card__title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--white);
}
.vacancy-card__badge {
  flex-shrink: 0;
  padding: .3rem 1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vacancy-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.vacancy-card__detail {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.vacancy-card__detail svg {
  flex-shrink: 0;
  color: var(--accent);
}
.vacancy-card__body {
  padding: 2rem;
}
.vacancy-card__body h3 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.vacancy-card__body h3:first-child {
  margin-top: 0;
}
.vacancy-card__body ul {
  list-style: disc;
  padding-left: 1.25em;
  margin-bottom: 1em;
}
.vacancy-card__body li {
  margin-bottom: .4em;
  line-height: 1.6;
}
.vacancy-card__cta {
  padding: 1.5rem 2rem;
  background: var(--accent-light);
  text-align: center;
}
.vacancy-card__cta p {
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--primary);
}
.vacancy-card__contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Cookie-баннер --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--primary);
  color: rgba(255,255,255,.9);
  padding: 0;
  transform: translateY(100%);
  transition: transform .4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-banner__text p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(37,201,218,.4);
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover {
  color: var(--accent-light);
  text-decoration-color: var(--accent-light);
}
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--ff-main);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.cookie-banner__btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* --- Дополнительные брейкпоинты для главной --- */
@media (max-width: 479px) {
  .hero__title { font-size: 1.5rem; }
  .hero__subtitle { font-size: .9rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cookie-banner__inner { flex-direction: column; gap: 1rem; text-align: center; padding: 14px 16px; }
  .cookie-banner__btn { width: 100%; }
}