/* ====== БАЗА ДЛЯ ЛЕНДИНГА ====== */

.page-landing {
  background: #f3f7fb;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #0ea5e9;
  border-color: rgba(148, 163, 184, 0.25);
}

.btn--ghost:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* ====== БЛОК С ВРАЧАМИ (СЛАЙДЕР) ====== */

.landing-doctors {
  width: 100%;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  padding: 24px 0 12px;
}

.landing-doctors__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* горизонтальный скролл на мобиле */
.landing-doctors__inner::-webkit-scrollbar {
  height: 6px;
}
.landing-doctors__inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

/* Карточка врача */

.doctor-card {
  flex: 0 0 260px;
  perspective: 1200px;
}

.doctor-card__inner {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
  box-shadow: -5px -3px 1px rgba(15, 23, 42, 0.16);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* состояние переворота */
.doctor-card.is-flipped .doctor-card__inner {
  transform: rotateY(180deg);
  box-shadow: 5px -3px 1px rgb(0 76 255 / 24%);
}

.doctor-card__face {
  position: absolute;
  inset: 0;
  padding: 14px 14px 12px;
  border-radius: 24px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

/* фронт */

.doctor-card__face--front {
  background: linear-gradient(145deg, #ffffff, #e0f2fe);
}

.doctor-card__photo {
  border-radius: 18px;
  overflow: hidden;
  height: 140px;
  margin-bottom: 12px;
  background: #cbd5f5;
}

.doctor-card__photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.doctor-card__photo--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #64748b;
  background: repeating-linear-gradient(
    45deg,
    #e0f2fe,
    #e0f2fe 6px,
    #bfdbfe 6px,
    #bfdbfe 12px
  );
}

.doctor-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctor-card__tag {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #0284c7;
}

.doctor-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.doctor-card__role {
  font-size: 13px;
  color: #334155;
}

/* кнопка-стрелка снизу справа */

.doctor-card__toggle {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  background: #0f172a;
  color: #f9fafb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.doctor-card__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.5);
  background: #020617;
  color: #ffffff;
}

.doctor-card__toggle-label {
  font-weight: 500;
}

.doctor-card__toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.doctor-card__toggle:hover .doctor-card__toggle-arrow {
  transform: translateX(2px);
}

/* обратная сторона */

.doctor-card__face--back {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #e5e7eb;
  transform: rotateY(180deg);
}

.doctor-card__back-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctor-card__back-title {
  font-size: 15px;
  font-weight: 700;
}

.doctor-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doctor-card__meta li span:first-child {
  color: #9ca3af;
  margin-right: 4px;
}

.doctor-card__skills {
  font-size: 12px;
}

.doctor-card__skills > span:first-child {
  color: #93c5fd;
  font-weight: 500;
  margin-right: 4px;
}

.doctor-card__bio {
  font-size: 12px;
  line-height: 1.4;
  color: #e5e7eb;
}

.doctor-card__toggle--back {
  justify-content: flex-start;
  background: #e0f2fe;
  color: #0f172a;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.6);
}

.doctor-card__toggle--back .doctor-card__toggle-arrow--back {
  transform: scaleX(-1);
}

/* ====== HERO-БЛОК ====== */

.landing-hero {
  padding: 48px 16px 40px;
}

.landing-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.landing-hero__text {
  padding: 20px 8px;
}

.landing-hero__title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0f172a;
}

.landing-hero__subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
  max-width: 480px;
  margin-bottom: 20px;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Правая колонка — филиалы */

.landing-hero__info {
  background: radial-gradient(circle at top left, #e0f2fe 0, #f8fafc 55%);
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.landing-hero__info-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0f172a;
}

/* Список филиалов */

.landing-branches-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.landing-branches-list__item {
  margin: 0;
}

.branch-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.branch-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #0f172a;
}

.branch-card__city {
  font-size: 13px;
  color: #64748b;
}

.branch-card__address {
  font-size: 13px;
  color: #334155;
  margin-top: 2px;
}

.branch-card__phone {
  font-size: 13px;
  color: #0ea5e9;
  margin-top: 4px;
  text-decoration: none;
}

/* ====== БЛОК ОНЛАЙН-ЗАПИСУ (СЕКЦИЯ) ====== */

.landing-booking {
  padding: 16px 16px 40px;
}

.landing-booking__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
}

/* Левая колонка – услуги */

.landing-booking__left-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.landing-booking__left-header h2 {
  margin: 0;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.services-list__item {
  margin: 0;
}

.service-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto;
  column-gap: 8px;
  row-gap: 4px;
  align-items: baseline;
}

.service-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.service-card__price {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  justify-self: end;
}

.service-card__desc {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #6b7280;
}

/* Пагинация услуг */

.services-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
}

.services-pagination__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d0dde8;
  color: #44bbeb;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.services-pagination__btn:hover {
  background-color: #e4f0fb;
  border-color: #b1cae7;
}

.services-pagination__btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.services-pagination__pages,
.services-pagination__info {
  font-size: 13px;
  color: #7a8ca0;
}

/* Правая колонка – коробка записи */

.landing-booking__right {
  display: flex;
  align-items: stretch;
}


/* ================================
   РЕЖИМ "ОНЛАЙН-ЗАПИС" (booking-expanded)
   ================================ */

/* Прячем все секции лендинга, кроме блока запису */
body.booking-expanded .landing-hero,
body.booking-expanded .landing-doctors,
body.booking-expanded .landing-treatments,
body.booking-expanded .landing-contacts {
  display: none;
}

/* Можно (по желанию) спрятать навигацию в хедере,
   чтобы не отвлекала в режиме запису */
body.booking-expanded .site-header__nav {
  display: none;
}

/* Делаем блок з онлайн-записом центральным */
body.booking-expanded .landing-booking {
  padding-block: 2.5rem;
}

body.booking-expanded .landing-booking__inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Прячем левую колонку "Популярні послуги" —
   остаётся тільки форма запису */
body.booking-expanded .landing-booking__left {
  display: none;
}

/* Правая колонка (віджет) розтягується на всю ширину */
body.booking-expanded .landing-booking__right {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}



/* ====== Booking box / віджет онлайн-запису ====== */

.booking-box {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 16px 20px;
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.booking-box__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-box__title {
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}

.booking-box__subtitle {
  font-size: 13px;
  color: #64748a;
  margin-top: 6px;
  margin-bottom: 10px;
}

.booking-box__toggle {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #f9fafb;
}

.booking-box__close {
  display: none;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: #64748a;
}

/* Розгорнутий режим (локалсторедж) */

body.booking-expanded .landing-hero {
  display: none;
}

body.booking-expanded .landing-booking__inner {
  grid-template-columns: 1fr;
}

body.booking-expanded .landing-booking__left {
  display: none;
}

body.booking-expanded .landing-booking__right {
  max-width: 1120px;
  margin-inline: auto;
}

body.booking-expanded .booking-box {
  transform: scale(1.02);
}

body.booking-expanded .booking-box__close {
  display: inline-block;
}

/* Фільтри */

.booking-filters {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.booking-filters__field {
  flex: 1;
  min-width: 150px;
}

.booking-filters__field label {
  display: block;
  font-size: 12px;
  color: #64748a;
  margin-bottom: 3px;
  text-align: center;
}

.booking-select {
    display: flex;
    width: 60%;
    padding: 11px 13px;
    border-radius: 13px;
    border: 1px solid #738bd7;
    font-size: 16px;
}

/* Кнопка дати */

.booking-date-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
}

.booking-date-btn__label {
  color: #0f172a;
}

/* Календар */

.booking-calendar {
  margin-top: 4px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid #dbeafe;
  display: none;
}

.booking-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.booking-calendar__month {
  font-weight: 600;
  font-size: 14px;
}

.booking-calendar__nav {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  color: #40aff7;
  font-weight: 700;
}

.booking-calendar__weekdays,
.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 11px;
}

.booking-calendar__weekdays span {
  text-align: center;
  color: #94a3b8;
}

.booking-calendar__day {
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  border: 1px solid #40aff7;
  background: #e0f2fe;
}

.booking-calendar__day--outside {
  opacity: 0.3;
}

.booking-calendar__day--today {
  border: 1px solid #38bdf8;
}

.booking-calendar__day--selected {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #f8fafc;
}

/* ====== Сітка розкладу ====== */

.booking-schedule {
  margin-top: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  display: none;
}

.booking-schedule__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.booking-schedule__date {
  font-weight: 600;
  font-size: 13px;
}

.booking-schedule__hint {
  font-size: 11px;
  color: #94a3b8;
}

/* Табличка с прокруткой */

.schedule-grid {
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #f9fafb;
  max-height: 340px;
  overflow-y: auto;

  /* кастомный скролл */
  scrollbar-width: thin;
  scrollbar-color: #e0f2fe transparent;
}

.schedule-grid::-webkit-scrollbar {
  width: 8px;
}

.schedule-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.schedule-grid::-webkit-scrollbar-thumb {
  background: #e0f2fe;
  border-radius: 999px;
}

.schedule-grid__corner {
  padding: 6px 8px;
  background: #eff6ff;
  font-size: 11px;
  color: #64748a;
}

.schedule-grid__doctors {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(90px, 1fr);
  gap: 1px;
  background: #eff6ff;
}

.schedule-grid__doctors-item {
  padding: 4px 13px;
  font-size: 11px;
  text-align: right;
  color: #0f172a;
  white-space: nowrap;
}

.schedule-grid__body {
  display: grid;
  grid-template-columns: auto 1fr;
}

/* одинаковая высота строк для времени и слотов */
.schedule-grid__times,
.schedule-grid__cells {
  display: grid;
  grid-auto-rows: 32px; /* высота одной полоски */
}

.schedule-grid__times {
  background: #eff6ff;
}

.schedule-grid__time-cell {
  padding: 4px 6px;
  font-size: 11px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

/* каждый ряд слотов по врачам */
.schedule-grid__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(90px, 1fr);
  border-top: 1px solid #e2e8f0;
}

.schedule-slot {
  border-left: 1px solid #e2e8f0;
  padding: 4px 4px;
  font-size: 11px;
  position: relative;
}

/* контент по центру по вертикали */
.schedule-grid__time-cell,
.schedule-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* свободный слот */

.schedule-slot__btn {
  width: 100%;
  border-radius: 999px;
  border: 1px dashed #38bdf8;
  padding: 3px 4px;
  font-size: 11px;
  background: #e0f2fe;
  color: #0369a1;
  cursor: pointer;
}

/* ближайший свободный слот */

.schedule-slot__btn--next {
  border-style: solid;
  border-color: #22c55e;
  background: #dcfce7;
  color: #166534;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* занято */

.schedule-slot__label-busy {
  font-size: 10px;
}

.schedule-slot--off {
  background: #f1f5f9;
}

.schedule-slot--hidden {
  visibility: hidden;
}

/* перерыв / обед */

.schedule-slot--break {
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-slot__label-break {
  font-size: 11px;
  color: #92400e;
}

/* ====== Модалка ====== */

.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.booking-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.55);
  z-index: 1;
}

.booking-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.booking-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.booking-modal__summary {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

.booking-modal__field label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #64748a;
}

.booking-textarea {
  width: 95%;
  max-width: 95%;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  padding: 6px 8px;
  font-size: 16px;
  line-height: 1.2;
}

.booking-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.booking-modal__hint {
  font-size: 11px;
  color: #94a3b8;
}

.booking-modal__submit {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.booking-modal__error {
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}

.booking-modal__success {
  margin-top: 6px;
  font-size: 12px;
  color: #15803d;
}

.booking-box__auth-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #64748a;
}

.booking-box__auth-hint a {
  color: #0369a1;
}

/* ====== Міні-модалка для неавторизованих користувачів ====== */

.booking-auth-modal {
  position: fixed;
  inset: 0;
  display: none; /* по замовчуванню схована */
  align-items: center;
  justify-content: center;
  z-index: 110; /* трохи вище основного контенту */
}

.booking-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.booking-auth-modal__dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px 12px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  border: 1px solid #dbeafe;
}

.booking-auth-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
}

.booking-auth-modal__content {
  padding-top: 10px;
}

.booking-auth-modal__text {
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 10px;
}

.booking-auth-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
}

.booking-auth-modal__btn:hover {
  filter: brightness(1.05);
}

.booking-filters__field--branch {
  position: relative;
}

/* обёртка дропдауна */
.booking-branch-dropdown {
  position: relative;
}

/* основная кнопка */
.booking-branch-toggle {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.booking-branch-toggle:hover {
  background: #e0f2fe;
  border-color: #93c5fd;
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.35);
}

.booking-branch-toggle__chevron {
  font-size: 11px;
  opacity: 0.7;
}

/* выпадающее меню поверх всего вниз */
.booking-branch-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 30; /* поверх сетки и формы */
}

/* показываем меню, когда открыт дропдаун */
.booking-branch-dropdown.is-open .booking-branch-menu {
  display: block;
}

/* элементы меню */
.booking-branch-option {
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.booking-branch-option:hover {
  background: #e0f2fe;
}

.booking-branch-option.is-active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #f9fafb;
}

/* скролл в меню */
.booking-branch-menu::-webkit-scrollbar {
  width: 6px;
}

.booking-branch-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.booking-branch-menu::-webkit-scrollbar-thumb {
  background: #e0f2fe;
  border-radius: 999px;
}

.booking-branch-menu {
  scrollbar-width: thin;
  scrollbar-color: #e0f2fe transparent;
}


/* ====== Сторінка "Напрями лікування" ====== */

.treatments-page {
  padding: 32px 16px 40px;
}

.treatments-page__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.treatments-page__header {
  margin-bottom: 20px;
}

.treatments-page__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.treatments-page__subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* обгортка для горизонтального скролу на мобілі */
.treatment-grid-wrapper {
  width: 100%;
}

/* сітка карток */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.landing-treatments__inner{
  max-width: 1120px;
  margin: auto;
}

.treatment-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.treatment-card__image {
    width: 100%;
    overflow: hidden;
    background: #e5f0ff;
    margin-left: 7px;
}


.treatment-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* плейсхолдер */
.treatment-card__image--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  background: repeating-linear-gradient(
    45deg,
    #e0f2fe,
    #e0f2fe 6px,
    #bfdbfe 6px,
    #bfdbfe 12px
  );
}

.treatment-card__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.treatment-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.treatment-card__excerpt {
  font-size: 13px;
  color: #6b7280;
  flex: 1;
}

.treatment-card__btn {
  align-self: flex-end;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #f9fafb;
  cursor: pointer;
  transition: filter 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.treatment-card__btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.4);
}

/* пагінація */

.treatment-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
}

.treatment-pagination__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d0dde8;
  color: #0ea5e9;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.treatment-pagination__btn:hover {
  background-color: #e4f0fb;
  border-color: #b1cae7;
}

.treatment-pagination__btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.treatment-pagination__info {
  color: #55657a;
}

/* Детальна сторінка */

.treatment-detail {
  padding: 32px 16px 40px;
}

.treatment-detail__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.treatment-detail__header {
  margin-bottom: 20px;
}

.treatment-detail__back-btn {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #0ea5e9;
  cursor: pointer;
  padding: 0;
  margin-bottom: 6px;
}

.treatment-detail__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.treatment-detail__subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* двоколонковий layout */
.treatment-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
}

.treatment-detail__image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e5f0ff;
}

.treatment-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}

.treatment-detail__article h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.treatment-detail__text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.treatment-detail__points {
  margin-top: 16px;
}

.treatment-detail__points h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.treatment-detail__points ul {
  padding-left: 18px;
  margin: 0;
}

.treatment-detail__points li {
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}

/* сайдбар */

.treatment-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.treatment-detail__box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 12px 12px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.treatment-detail__box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.treatment-detail__services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.treatment-detail__services li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.treatment-detail__service-name {
  color: #111827;
}

.treatment-detail__service-price {
  color: #0ea5e9;
  white-space: nowrap;
}

.treatment-detail__more {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.treatment-detail__more a {
  font-size: 13px;
  color: #0ea5e9;
  text-decoration: none;
}

.treatment-detail__more a:hover {
  text-decoration: underline;
}













/* ====== СЕКЦІЯ КОНТАКТІВ ====== */

.landing-contacts {
  padding: 56px 0 64px;
  background: #f3f7fb;
}

.landing-contacts__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.landing-contacts__header {
  margin-bottom: 20px;
}

.landing-contacts__title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.landing-contacts__subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* ТАБИ ФІЛІЙ (верхня лінія) */

.contacts-branches__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.contacts-branch-tab {
  border: none;
  background: #cffafe;
  color: #0f172a;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(34, 211, 238, 0.35);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.1s ease;
}

.contacts-branch-tab.is-active {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

.contacts-branch-tab:hover:not(.is-active) {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(34, 211, 238, 0.45);
}

/* ДВІ КОЛОНКИ: ФІЛІЯ + КАРТА */

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Ліва частина */

.contacts-layout__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(224, 242, 254, 0.6);
  border-radius: 26px;
  padding: 16px 16px 18px;
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.contacts-branch-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 14px 10px;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.contacts-branch-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.contacts-branch-card__row {
  display: flex;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}

.contacts-branch-card__label {
  min-width: 60px;
  color: #6b7280;
  font-weight: 500;
}

.contacts-branch-card__value {
  color: #111827;
}

.contacts-branch-card__value a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}

.contacts-branch-card__value a:hover {
  text-decoration: underline;
}

/* Соцмережі 2×2 */

.contacts-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contacts-social-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.contacts-social-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.45);
  background: #f9fafb;
}

.contacts-social-tile__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.contacts-social-tile__icon img {
    width: 66%;
    height: auto;
    }

.contacts-social-tile__label {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

/* цветовые акценты для соцсетей */

.contacts-social-tile--ig .contacts-social-tile__icon {
  background: linear-gradient(135deg, #ff4b4b, #ffffff);
  color: #be185d;
}

.contacts-social-tile--fb .contacts-social-tile__icon {
  background: linear-gradient(135deg, #0083ff, #9bbbf5);
  color: #1d4ed8;
}
.contacts-social-tile--fb .contacts-social-tile__icon img{
    width: 36%;
    }

.contacts-social-tile--yt .contacts-social-tile__icon {
  background: linear-gradient(135deg, #ff0000, #ff8989);
  color: #b91c1c;
}

.contacts-social-tile--tt .contacts-social-tile__icon {
  background: linear-gradient(135deg, #000000, #000000);
  color: #0f766e;
}

/* Права частина — карта */

.contacts-layout__right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts-map-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #e0f2fe, #e5e7eb);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.45);
  min-height: 240px;
}

.contacts-map-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.35), transparent 52%);
  pointer-events: none;
}

.contacts-map-card__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 26px;
}

.contacts-map-card__link {
  font-size: 14px;
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contacts-map-card__link::after {
  content: "↗";
  font-size: 12px;
}

.contacts-map-card__link:hover {
  text-decoration: underline;
}

/* НИЖНЯ ЛІНІЯ: ПІЛЮЛІ ГРАФІКА */

.contacts-schedule-pills {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts-schedule-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #d5f8ffdb;
    color: #0f172a;
    font-size: 13px;
    box-shadow: inset 0px 0px 4px 0px rgb(0 0 0 / 29%);
    white-space: nowrap;
}

.contacts-schedule-pill__day {
  font-weight: 600;
}

/* занятой чужой слот – темно-синий */
.schedule-slot--busy {
  background: #5f70f2;
}

.schedule-slot--busy .schedule-slot__label-busy {
  color: #e5e7eb;
}

/* свой слот пациента – мягкий синий акцент */
.schedule-slot--own {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.6);
}

/* прошедший слот */
.schedule-slot--past {
  background: #ffffff;
}

.schedule-slot__label-past {
  font-size: 10px;
  color: #64748b;
}

.booking-calendar__day:disabled,
.booking-calendar__day--disabled {
  cursor: default;
  background: #e5e7eb;
  color: #9ca3af;
}



.contacts-schedule-pill__time {
  font-weight: 400;
  color: #0369a1;
}

.contacts-schedule-pill--closed {
    background: #fee2e2;
    box-shadow: inset 0px 0px 3px rgb(0 0 0 / 40%);
}

.contacts-schedule-pill--closed .contacts-schedule-pill__time {
  color: #b91c1c;
  font-weight: 600;
}

/* Адаптив */

@media (max-width: 900px) {
  .contacts-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-treatments__header{
    margin-left: 5px;
  }

  .contacts-layout__right {
    order: -1;
  }

  .contacts-layout__right,
  .contacts-layout__left {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .landing-contacts {
    padding: 40px 0 48px;
  }
  .contacts-branches__tabs {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contacts-social-tile{
        flex-direction: row;
        align-items: center;
        box-shadow: inset 1px 1px 6px rgb(89 242 255 / 24%);
        background: #e6fcff9e;
      }
      
  .contacts-schedule-pills{
      margin-top: 22px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
      }


  .landing-contacts__title {
    font-size: 22px;
  }

  .contacts-social-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-map-card__frame {
    height: 100%;
  }

  .contacts-schedule-pill {
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    justify-content: center;
  }
}


/* Разовая анимация появления блока записи */
.booking-animate-once {
  animation: bookingAttention 0.9s ease-out;
}

@keyframes bookingAttention {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  15% {
    opacity: 0.4;
    transform: translateY(-4px) rotate(-0.5deg) scale(1);
  }
  30% {
    opacity: 0.7;
    transform: translateY(3px) rotate(0.5deg) scale(1);
  }
  45% {
    opacity: 1;
    transform: translateY(-2px) rotate(-0.3deg) scale(1);
  }
  60% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateY(0) scale(1.02); /* лёгкая пульсация */
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}




@media (max-width: 640px) {
  .contacts-branch-panel__chips {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-shell {
    padding: 16px 14px 14px;
    border-radius: 22px;
  }

  .contacts-map__frame {
    height: 180px;
  }
}


/* Адаптив */
@media (max-width: 600px) {
  .contacts-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 900px) {
  .landing-contacts__inner {
    grid-template-columns: 1fr;
  }

  .landing-contacts__right {
    order: -1;
  }
}


/* Адаптив */

@media (max-width: 900px) {
  .treatment-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px;
  }

  .treatment-card {
    flex: 0 0 240px;
  }

  .treatment-grid-wrapper {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .treatment-grid-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .treatment-grid-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
  }

  .treatment-grid-wrapper::-webkit-scrollbar-thumb {
    background: #e0f2fe;
    border-radius: 999px;
  }

  .treatment-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .treatment-detail__sidebar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .treatments-page__title,
  .treatment-detail__title {
    font-size: 22px;
  }
}


/* ====== АДАПТИВ ====== */

@media (max-width: 900px) {
  .landing-hero__inner,
  .landing-booking__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero__info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .landing-doctors__inner {
    padding-inline: 12px;
  }

  .doctor-card {
    flex: 0 0 230px;
  }

  .doctor-card__inner {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding-top: 28px;
  }

  .landing-hero__title {
    font-size: 26px;
  }

  .landing-hero__inner {
    gap: 20px;
  }

  .landing-booking {
    padding-bottom: 32px;
  }
}
