/* ===== Обёртка меню ===== */
#personalMenuWrap {
    all: unset;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;              /* ← горизонтальный скролл */
    -webkit-overflow-scrolling: touch;  /* плавный скролл на iOS */
    border-bottom: 1px solid #6F7C8E;
    box-sizing: border-box;
    margin-bottom: 40px;
    padding-bottom:7px;
}

/* Скрыть скроллбар (по желанию) */
#personalMenuWrap::-webkit-scrollbar {
    height: 0;
}
#personalMenuWrap {
    scrollbar-width: none;         /* Firefox */
}

/* ===== Список пунктов ===== */
#personalMenu {
    all: unset;
    display: flex;
    flex-wrap: nowrap;             /* ← запрет переноса, чтобы был скролл */
    align-items: flex-end;
    gap: 28px;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

#personalMenu li {
    all: unset;
    display: inline-block;
    flex: 0 0 auto;                /* не сжимать пункты */
    width: auto;
    white-space: nowrap;           /* текст пункта в одну строку */
    box-sizing: border-box;
}

/* ===== Ссылки ===== */
#personalMenu li a {
    all: unset;
    display: inline-block;
    width: auto;
    font-family: 'Inter', Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #6F7C8E;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
    box-sizing: border-box;
}

#personalMenu li a:hover {
    color: #3E4653;
}

/* ===== Активный пункт ===== */
#personalMenu li a.selected {
    width: auto;
    height: auto;
    font-family: 'Inter', Arial, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #3E4653;
    border-bottom: 0;
    padding-bottom: 0;
}



/* ===== Блок «Есть вопросы» ===== */
.contact-box {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 30px;
  background: linear-gradient(281.5deg, #FAFCFF 0.18%, #EEF0F5 100%);
  border-radius: 15px;
  font-family: 'Inter', sans-serif;
  color: #3E4653;
}

/* Базовые margin = 0 у всех блоков */
.contact-box > * {
  margin: 0;
}

/* Отступ 20px между всеми блоками */
.contact-box > * + * {
  margin-top: 20px;
}

/* Исключение: 9px между заголовком и подзаголовком */
.contact-box__title + .contact-box__subtitle {
  margin-top: 9px;
}

/* Заголовки и тексты */
.contact-box__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: #3E4653;
}

.contact-box__subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #6b7484;
}

/* Телефон и почта — h4 */
.contact-box__phone,
.contact-box__email {
  color: #3E4653;
  word-break: break-word;
}

.contact-box__phone a,
.contact-box__email a {
  color: inherit;
  text-decoration: none !important;
}

/* Ссылка «Написать в Max» */
.contact-box__messenger {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #3E4653;
  text-decoration: underline;
}

/* Адрес */
.contact-box__address {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #3E4653;
}

/* График работы */
.contact-box__schedule-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #3E4653;
}

.contact-box__schedule {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #3E4653;
}

/* Линия-разделитель */
.contact-box__divider {
  border: none;
  height: 1px;
  background: #BBC7D8;
  margin: 20px 0 0;
  opacity: .6;
}

/* Адаптив */
@media (max-width: 360px) {
  .contact-box {
    padding: 20px;
    border-radius: 12px;
  }
  .contact-box__title {
    font-size: 18px;
    line-height: 22px;
  }
  .contact-box__phone,
  .contact-box__email {
    font-size: 16px;
    line-height: 22px;
  }
}

.contact-box__messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #3E4653;
  text-decoration: underline;
}

.contact-box__messenger-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  display: block;
  color: #3E4653;
}