:root {
  --primary: #00a8a8;
  --primary-dark: #008f8f;
  --primary-light: #e6f7f7;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --border: #e0e6ed;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 72px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.header__logo img { height: 48px; width: auto; }

.header__nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.header__nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.header__nav a:hover { color: var(--primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.header__phone:hover { color: var(--primary); }

.header__staff-link {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.header__staff-link:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--lg { padding: 14px 32px; font-size: 16px; }

.btn--sm { padding: 6px 16px; font-size: 13px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 60%);
  padding: 60px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__image {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero__image svg { width: 100%; max-width: 360px; opacity: 0.9; }

/* Info cards */
.info-cards {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.info-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.info-card__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-card__value {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__category {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.service-card__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card__price {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.service-card__duration {
  font-size: 12px;
  color: var(--text-light);
}

/* Doctors */
.doctors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.doctor-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.doctor-card__photo {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), #cceeee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--primary);
}

.doctor-card__body { padding: 20px; }

.doctor-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doctor-card__specialty {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-card__qual {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.doctor-card__exp {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.doctor-card__schedule {
  font-size: 12px;
  background: var(--bg-alt);
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* About */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.about__feature-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Map */
.map-section { padding: 0 0 80px; }

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.map-placeholder__icon { font-size: 48px; }

/* Footer */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 60px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo img { height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer__desc {
  font-size: 13px;
  color: #bdc3c7;
  line-height: 1.6;
}

.footer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: #fff;
}

.footer__links { list-style: none; }

.footer__links li { margin-bottom: 8px; }

.footer__links a {
  color: #bdc3c7;
  font-size: 13px;
}

.footer__links a:hover { color: #fff; }

.footer__contact {
  font-size: 13px;
  color: #bdc3c7;
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #7f8c8d;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-message {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 20px;
}

.auth-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card__logo img { height: 64px; margin: 0 auto; }

.auth-card__title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-card__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Admin */
.admin-page { padding-top: var(--header-h); min-height: 100vh; background: var(--bg-alt); }

.admin-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 32px;
}

.admin-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header__title { font-size: 22px; font-weight: 700; }

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
  width: fit-content;
}

.admin-tab {
  padding: 8px 20px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.admin-tab.active {
  background: var(--primary);
  color: #fff;
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.table-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: var(--bg-alt);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

tr:hover td { background: var(--bg-alt); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge--green { background: #d4edda; color: #155724; }
.badge--red { background: #f8d7da; color: #721c24; }
.badge--blue { background: var(--primary-light); color: var(--primary-dark); }

.admin-form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.admin-form__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .info-cards__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .hero__title { font-size: 28px; }
  .section__title { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__features { grid-template-columns: 1fr; }
}

/* Slot picker (patient booking) */
.slot-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
}

.slot-picker__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.slot-picker__hint--error { color: #c0392b; }

.slot-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}

.slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Success modal */
.modal--success { text-align: center; }

.success-icon {
  width: 64px;
  height: 64px;
  background: #d4edda;
  color: #155724;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.success-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Doctor calendar */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.calendar-toolbar__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.calendar-day {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  min-height: 100px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.calendar-day:hover { border-color: var(--primary); }

.calendar-day.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.calendar-day__date {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.calendar-day__weekday {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-day__stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.calendar-day--today .calendar-day__date { color: var(--primary); }

.day-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-slot {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg);
  min-width: 80px;
  text-align: center;
}

.day-slot--free {
  background: var(--primary-light);
  border-color: #b2eaea;
  color: var(--primary-dark);
}

.day-slot--booked {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.day-slot:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* Patient card modal */
.modal--wide { max-width: 720px; }

.patient-info {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.patient-info__row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.patient-info__label {
  color: var(--text-muted);
  min-width: 100px;
}

.history-list, .records-list, .files-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item, .record-item, .file-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 13px;
}

.history-item { cursor: pointer; transition: background 0.15s; }
.history-item:hover { background: var(--bg-alt); }
.history-item.current { border-color: var(--primary); background: var(--primary-light); }

.record-item__type {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
}

.section-block { margin-bottom: 24px; }
.section-block__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: var(--primary-light) !important; }

/* MedLock / integrations admin */
.integration-banner {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.integration-banner a { color: var(--primary); font-weight: 600; }

.integration-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.integration-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.integration-card__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.integration-card__value {
  font-size: 15px;
  font-weight: 700;
}

.integration-card__value--small {
  font-size: 11px;
  font-weight: 500;
  word-break: break-all;
}

.checklist { list-style: none; padding: 0; margin: 0; }

.checklist__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checklist__item--done { opacity: 0.85; }

.checklist__mark {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.checklist__progress {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.checklist__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.mapping-input {
  width: 100%;
  min-width: 140px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
}

.medflex-widget {
  min-height: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.section--medflex { background: var(--bg-alt); }

/* ===== Загрузка и пустые состояния ===== */

.skeleton-card {
  min-height: 180px;
  border-radius: var(--radius-lg, 12px);
  background: linear-gradient(90deg, var(--bg-alt) 25%, #eef3f5 50%, var(--bg-alt) 75%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card { animation: none; }
}

.grid-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
}

.grid-message--error { color: var(--danger, #d9534f); }

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 20px 0;
}

.hint-text {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Фильтры услуг ===== */

.service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.section__note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Уведомления в панели сотрудников ===== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 1000;
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--error { background: #c0392b; }
.toast--success { background: #1e8e5a; }

/* ===== Карточка пациента и расписание ===== */

.day-slot__label {
  font-size: 11px;
  font-weight: 400;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.file-item__date {
  color: var(--text-light, var(--text-muted));
  font-size: 11px;
}

.log-error {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 260px;
  overflow-wrap: anywhere;
}

/* ===== Подвал ===== */

.footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__contact a { color: inherit; text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }

.auth-card__demo {
  margin-top: 24px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-muted);
}

.admin-form__subtitle {
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.credentials-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-light, #e8f8f7);
}

.credentials-result div { margin-top: 8px; }
.credentials-result .btn { margin-top: 12px; }
.credentials-result code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff;
  user-select: all;
}

.info-card__value a {
  color: inherit;
  text-decoration: none;
}

.info-card__value a:hover { color: var(--primary); }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  text-align: center;
  padding: 24px;
}

.doctor-card__book { margin-top: 12px; }

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
